ManifestMergerMojo
@Deprecated @Mojo(name="manifest-update", defaultPhase=PROCESS_RESOURCES) public class ManifestUpdateMojo extends AbstractAndroidMojo
AndroidManifest.xml
file.Modifier and Type | Field and Description |
---|---|
protected List<CompatibleScreen> |
manifestCompatibleScreens
Deprecated.
|
protected Boolean |
manifestDebuggable
Deprecated.
Update the
android:debuggable attribute with the specified parameter. |
protected Properties |
manifestProviderAuthorities
Deprecated.
For a given provider (named by
android:name update the android:authorities
attribute for the provider. |
protected String |
manifestSharedUserId
Deprecated.
Update the
android:sharedUserId attribute with the specified parameter. |
protected SupportsScreens |
manifestSupportsScreens
Deprecated.
|
protected UsesSdk |
manifestUsesSdk
Deprecated.
Update the uses-sdk tag.
|
protected Integer |
manifestVersionCode
Deprecated.
Update the
android:versionCode attribute with the specified parameter. |
protected Boolean |
manifestVersionCodeUpdateFromVersion
Deprecated.
Update the
android:versionCode attribute automatically from the project version
e.g 3.2.1 will become version code 3002001. |
protected String |
manifestVersionName
Deprecated.
Update the
android:versionName with the specified parameter. |
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 |
---|
ManifestUpdateMojo()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Deprecated.
|
void |
updateManifest(File manifestFile)
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
@Parameter(property="android.manifest.versionName", defaultValue="${project.version}") protected String manifestVersionName
android:versionName
with the specified parameter. If left empty it
will use the version number of the project. Exposed via the project property
android.manifest.versionName
.@Parameter(property="android.manifest.versionCode") protected Integer manifestVersionCode
android:versionCode
attribute with the specified parameter. Exposed via
the project property android.manifest.versionCode
.@Parameter(property="android.manifest.versionCodeUpdateFromVersion", defaultValue="false") protected Boolean manifestVersionCodeUpdateFromVersion
android:versionCode
attribute automatically from the project version
e.g 3.2.1 will become version code 3002001. As described in this blog post
http://www.simpligility.com/2010/11/release-version-management-for-your-android-application/
but done without using resource filtering. The value is exposed via the project property
property android.manifest.versionCodeUpdateFromVersion
and the resulting value
as android.manifest.versionCode
.
For the purpose of generating the versionCode, if a version element is missing it is presumed to be 0.
The maximum values for the version increment and version minor values are 999,
the version major should be no larger than 2000. Any other suffixes do not
participate in the version code generation.@Parameter(property="android.manifest.sharedUserId") protected String manifestSharedUserId
android:sharedUserId
attribute with the specified parameter. If
specified, exposes the project property android.manifest.sharedUserId
.@Parameter(property="android.manifest.debuggable") protected Boolean manifestDebuggable
android:debuggable
attribute with the specified parameter. Exposed via
the project property android.manifest.debuggable
.@Parameter(property="android.manifest.providerAuthorities") protected Properties manifestProviderAuthorities
android:name
update the android:authorities
attribute for the provider. Exposed via the project property android.manifest.providerAuthorities
.protected SupportsScreens manifestSupportsScreens
protected List<CompatibleScreen> manifestCompatibleScreens
protected UsesSdk manifestUsesSdk
android:minSdkVersion
,
android:maxSdkVersion
and android:targetSdkVersion
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public void updateManifest(File manifestFile) throws IOException, ParserConfigurationException, SAXException, TransformerException, org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
manifestFile
- IOException
ParserConfigurationException
SAXException
TransformerException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2008–2019 simpligility technologies inc.. All rights reserved.