Skip to content

Commit b4cc15d

Browse files
committed
Add install_location manifest entry
1 parent caa8062 commit b4cc15d

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

cargo-apk/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ runtime_libs = "path/to/libs_folder"
9090
# desired, run in the same process.
9191
shared_user_id = "my.shared.user.id"
9292

93+
# Controls where the app is installed. Either on external SD card or auto
94+
install_location = "preferExternal"
95+
9396
# Defaults to `$HOME/.android/debug.keystore` for the `dev` profile. Will ONLY
9497
# generate a new debug.keystore if this file does NOT exist. A keystore is never
9598
# auto-generated for other profiles.

ndk-build/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Unreleased
22

3+
- Add `android:installLocation` attribute to the manifest's root.
4+
35
# 0.10.0 (2023-11-30)
46

57
- 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))

ndk-build/src/manifest.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ pub struct AndroidManifest {
1717
pub version_code: Option<u32>,
1818
#[serde(rename(serialize = "android:versionName"))]
1919
pub version_name: Option<String>,
20+
#[serde(rename(serialize = "android:installLocation"))]
21+
pub install_location: Option<String>,
2022

2123
#[serde(rename(serialize = "uses-sdk"))]
2224
#[serde(default)]
@@ -44,6 +46,7 @@ impl Default for AndroidManifest {
4446
shared_user_id: Default::default(),
4547
version_code: Default::default(),
4648
version_name: Default::default(),
49+
install_location: Default::default(),
4750
sdk: Default::default(),
4851
uses_feature: Default::default(),
4952
uses_permission: Default::default(),

0 commit comments

Comments
 (0)