Skip to content

Commit

Permalink
[android] Remove (32-bit) x86 support
Browse files Browse the repository at this point in the history
32-bit x86 is not really used anywhere for Android.

We are keeping x86_64, as it is still useful for debugging locally.

Closes #8149
  • Loading branch information
paw-hub committed Dec 20, 2024
1 parent 56011d4 commit 6fe0f2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tuta-sdk/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ android.useAndroidX=true
# maximum allowed memory usage
org.gradle.jvmargs=-Xmx4096m

# choose which ABI to build (arm, arm64, x86, x86_64)
# choose which ABI to build (arm, arm64, x86_64)
#targetABI=arm64
6 changes: 4 additions & 2 deletions tuta-sdk/android/sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fun getABITargets(): List<String> {
abi = findProperty("targetABI") as String?

return if (abi.isNullOrBlank())
listOf("arm", "arm64", "x86", "x86_64")
listOf("arm", "arm64", "x86_64")
else
listOf(abi)
}
Expand All @@ -37,7 +37,6 @@ fun getJNILibsDirs(): List<String> {
when (it) {
"arm" -> "armeabi-v7a"
"arm64" -> "arm64-v8a"
"x86" -> "x86"
"x86_64" -> "x86_64"
else -> "arm64-v8a"
}
Expand All @@ -56,6 +55,9 @@ android {
// Proguard rules that are passed on to the users of the library
// See https://developer.android.com/studio/projects/android-library#Considerations
consumerProguardFiles("consumer-rules.pro")

// Limit the ABIs this can be built for; we do not support base x86
ndk.abiFilters += listOf("armeabi-v7a", "arm64-v8a", "x86_64")
}

buildTypes {
Expand Down

0 comments on commit 6fe0f2e

Please sign in to comment.