Cake Build addin for [de]serializing and updating an Android AppManifest.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tools
.gitattributes
.gitignore
CONTRIBUTING.md
LICENSE.md
README.md
RELEASENOTES.md
appveyor.yml
bootstrap.ps1
build.cake
build.ps1
build.sh

README.md

Cake.AndroidAppManifest Build status NuGet NuGet Downloads

Cake Build addin for [de]serializing and updating an Android AppManifest.

Installation

Add the following reference to your cake build script:

#addin "Cake.AndroidAppManifest"

Usage

// load
var manifest = DeserializeAppManifest(new FilePath("AndroidManifest.xml"));

// adjust as needed
manifest.MinSdkVersion = 24;
manifest.PackageName = "com.example.mycoolapp";
manifest.VersionName = "1.0";
manifest.VersionCode = 10;
manifest.ApplicationIcon = "@mipmap/ic_launcher";
manifest.ApplicationLabel = "Android Application";
manifest.Debuggable = false;

// save
SerializeAppManifest(new FilePath("AndroidManifest.xml"), manifest);

With thanks to

  • Xamarin for open sourcing their build tools, the internals of this addin were pulled directly from Xamarin.Android.Build.Utilities.