AarMojo
@Deprecated @Mojo(name="apklib", defaultPhase=PACKAGE, requiresDependencyResolution=COMPILE) public class ApklibMojo extends AbstractAndroidMojo
Modifier and Type | Field and Description |
---|---|
static String |
NATIVE_LIBRARIES_FOLDER
Deprecated.
The name of the top level folder in the APKLIB where native libraries are found.
|
aaptExtraArgs, aaptVerbose, adbConnectionTimeout, androidManifestFile, assetsDirectory, attachJar, attachSources, combinedAssets, configurations, customPackage, dependencyGraphBuilder, destinationManifestFile, device, devices, deviceThreads, ENV_ANDROID_HOME, ENV_ANDROID_NDK_HOME, execution, extractedDependenciesDirectory, extractedDependenciesJavaResources, extractedDependenciesJavaSources, finalName, genDirectory, generateApk, ips, nativeLibrariesDirectory, ndkOutputDirectory, proguardFile, project, projectHelper, projectOutputDirectory, release, renameManifestPackage, resourceDirectory, resourceOverlayDirectories, resourceOverlayDirectory, resources, session, sourceDirectory, sourceEncoding, SUPPORTED_PACKAGING_TYPES, targetDirectory, undeployBeforeDeploy
Constructor and Description |
---|
ApklibMojo()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDirectory(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver,
File directory,
String prefix)
Deprecated.
Adds a directory to a
JarArchiver with a directory prefix. |
protected void |
addJavaResource(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver,
org.apache.maven.model.Resource javaResource,
String prefix)
Deprecated.
Adds a Java Resources directory (typically "src/main/resources") to a
JarArchiver . |
protected void |
addJavaResources(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver,
List<org.apache.maven.model.Resource> javaResources,
String prefix)
Deprecated.
|
protected void |
addSharedLibraries(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver,
File directory,
String architecture)
Deprecated.
Adds all shared libraries (.so) to a
JarArchiver under 'libs'. |
protected String |
endWithSlash(String prefix)
Deprecated.
Makes sure the string ends with "/"
|
void |
execute()
Deprecated.
|
copyFolder, deployApk, deployBuiltApk, deployDependencies, doWithDevices, extractInstrumentationRunnerFromAndroidManifest, extractPackageNameFromAndroidArtifact, extractPackageNameFromAndroidManifest, extractPackageNameFromAndroidManifestXmlTree, extractPackageNameFromApk, getAndroidManifestPackageName, getAndroidNdk, getAndroidSdk, getArtifactResolverHelper, getDependencyResolver, getDirectDependencyArtifacts, getJack, getLibraryUnpackDirectory, getNativeHelper, getRelevantCompileArtifacts, getResourceOverlayDirectories, getTransitiveDependencyArtifacts, getTransitiveDependencyArtifacts, getUnpackedAarClassesJar, getUnpackedApkLibSourceFolder, getUnpackedLibAssetsFolder, getUnpackedLibFolder, getUnpackedLibHelper, getUnpackedLibNativesFolder, getUnpackedLibResourceFolder, getUnpackedLibsDirectory, initAndroidDebugBridge, isAPKBuild, isInstrumentationTest, resolveArtifactToFile, undeployApk, undeployApk, waitForInitialDeviceList
public static final String NATIVE_LIBRARIES_FOLDER
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void addJavaResources(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver, List<org.apache.maven.model.Resource> javaResources, String prefix) throws IOException
IOException
protected void addJavaResource(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver, org.apache.maven.model.Resource javaResource, String prefix) throws IOException
JarArchiver
.jarArchiver
- javaResource
- The Java resource to add.prefix
- An optional prefix for where in the Jar file the directory's contents should go.IOException
- in case the resource path can not be resolvedprotected String endWithSlash(String prefix)
prefix
- any string, or null.protected void addDirectory(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver, File directory, String prefix)
JarArchiver
with a directory prefix.jarArchiver
- directory
- The directory to add.prefix
- An optional prefix for where in the Jar file the directory's contents should go.protected void addSharedLibraries(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver, File directory, String architecture)
JarArchiver
under 'libs'.jarArchiver
- The jarArchiver to add files todirectory
- The directory to scan for .so filesarchitecture
- The prefix for where in the jar the .so files will go.Copyright © 2008–2019 simpligility technologies inc.. All rights reserved.