@Mojo(name="aar",
defaultPhase=VERIFY,
requiresDependencyResolution=COMPILE)
public class AarMojo
extends AbstractAndroidMojo
| Modifier and Type | Field and Description |
|---|---|
static String |
NATIVE_LIBRARIES_FOLDER
The name of the top level folder in the AAR 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 |
|---|
AarMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDirectory(org.codehaus.plexus.archiver.zip.ZipArchiver zipArchiver,
File directory,
String prefix,
boolean includeEmptyFolders)
Adds a directory to a
JarArchiver with a directory prefix. |
protected void |
addSharedLibraries(org.codehaus.plexus.archiver.zip.ZipArchiver zipArchiver,
File directory,
String architecture)
Adds all shared libraries (.so) to a
JarArchiver under 'jni'. |
protected File |
createAarClassesJar()
Creates an appropriate aar/classes.jar that does not include R
|
protected File |
createAarLibraryFile(File classesJar) |
protected String |
endWithSlash(String prefix)
Makes sure the string ends with "/"
|
void |
execute() |
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, waitForInitialDeviceListpublic static final String NATIVE_LIBRARIES_FOLDER
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected File createAarClassesJar() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected File createAarLibraryFile(File classesJar) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected String endWithSlash(String prefix)
prefix - any string, or null.protected void addDirectory(org.codehaus.plexus.archiver.zip.ZipArchiver zipArchiver,
File directory,
String prefix,
boolean includeEmptyFolders)
JarArchiver with a directory prefix.zipArchiver - ZipArchiver to use to archive the file.directory - The directory to add.prefix - An optional prefix for where in the Jar file the directory's contents should go.includeEmptyFolders - Whether to include an entry for empty folder in the archive.protected void addSharedLibraries(org.codehaus.plexus.archiver.zip.ZipArchiver zipArchiver,
File directory,
String architecture)
JarArchiver under 'jni'.zipArchiver - 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.