refactor(ffi): Use the shared default features for the Kotlin bindings

This should align them with iOS.
This commit is contained in:
Jorge Martín
2026-04-21 09:15:51 +02:00
committed by Andy Balaam
parent 58a139bf96
commit a3d6114ddd
+3 -8
View File
@@ -21,13 +21,8 @@ enum Package {
impl Package {
fn values(self) -> PackageValues {
match self {
Package::CryptoSDK => {
PackageValues { name: "matrix-sdk-crypto-ffi", features: "bundled-sqlite" }
}
Package::FullSDK => PackageValues {
name: "matrix-sdk-ffi",
features: "bundled-sqlite,unstable-msc4274,experimental-element-recent-emojis,sentry",
},
Package::CryptoSDK => PackageValues { name: "matrix-sdk-crypto-ffi", features: "" },
Package::FullSDK => PackageValues { name: "matrix-sdk-ffi", features: "sentry" },
}
}
}
@@ -171,7 +166,7 @@ fn build_for_android_target(
let sh = sh();
cmd!(
sh,
"cargo ndk --target {target} -o {dest_dir} build --profile {profile} --package {package_name} --no-default-features --features {features}"
"cargo ndk --target {target} -o {dest_dir} build --profile {profile} --package {package_name} --features {features}"
)
.run()?;