AndroidManifest.xml
When building an Android Archive (AAR) with scd archive --type android-aar, scd reads an AndroidManifest.xml file from the SPM project root.
The minimum content is a <manifest> element with the package attribute set to the Android package ID:
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.mylibrary" android:versionCode="1" android:versionName="1.0.0" ></manifest>| Attribute | Description |
|---|---|
package | Android package ID. Overridden by --package-id if provided |
android:versionCode | Integer version code. Overridden by --package-version |
android:versionName | String version name. Overridden by --package-string-version |
If AndroidManifest.xml does not exist, pass --generate-android-manifest to have scd generate a minimal one automatically. The generated file is placed in the project root and can be committed to version control and customized from there.