diff --git a/cargo-apk/README.md b/cargo-apk/README.md index 2dae917..5178167 100644 --- a/cargo-apk/README.md +++ b/cargo-apk/README.md @@ -90,6 +90,9 @@ runtime_libs = "path/to/libs_folder" # desired, run in the same process. shared_user_id = "my.shared.user.id" +# Controls where the app is installed. Either on external SD card or auto +install_location = "preferExternal" + # Defaults to `$HOME/.android/debug.keystore` for the `dev` profile. Will ONLY # generate a new debug.keystore if this file does NOT exist. A keystore is never # auto-generated for other profiles. diff --git a/ndk-build/CHANGELOG.md b/ndk-build/CHANGELOG.md index 8c2dfdb..cfedaa6 100644 --- a/ndk-build/CHANGELOG.md +++ b/ndk-build/CHANGELOG.md @@ -1,5 +1,7 @@ # Unreleased +- Add `android:installLocation` attribute to the manifest's root. + # 0.10.0 (2023-11-30) - Add `android:extractNativeLibs`, `android:usesCleartextTraffic` attributes to the manifest's `Application` element, and `android:alwaysRetainTaskState` to the `Activity` element. ([#15](https://github.com/rust-mobile/cargo-apk/pull/15)) diff --git a/ndk-build/src/manifest.rs b/ndk-build/src/manifest.rs index 6e3696c..7c70e8f 100644 --- a/ndk-build/src/manifest.rs +++ b/ndk-build/src/manifest.rs @@ -17,6 +17,8 @@ pub struct AndroidManifest { pub version_code: Option, #[serde(rename(serialize = "android:versionName"))] pub version_name: Option, + #[serde(rename(serialize = "android:installLocation"))] + pub install_location: Option, #[serde(rename(serialize = "uses-sdk"))] #[serde(default)] @@ -44,6 +46,7 @@ impl Default for AndroidManifest { shared_user_id: Default::default(), version_code: Default::default(), version_name: Default::default(), + install_location: Default::default(), sdk: Default::default(), uses_feature: Default::default(), uses_permission: Default::default(),