Skip to content

Commit

Permalink
Merge pull request zxing-cpp#872 from ccrowell-kr/android_flexible_pa…
Browse files Browse the repository at this point in the history
…ge_sizes

android: add linker flag to support flexible page sizes in Android 15
  • Loading branch information
axxel authored Dec 6, 2024
2 parents 22adcab + ede30db commit a864dc8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 10 additions & 1 deletion wrappers/android/zxingcpp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ android {
}
externalNativeBuild {
cmake {
arguments("-DCMAKE_BUILD_TYPE=RelWithDebInfo", "-DANDROID_ARM_NEON=ON", "-DZXING_WRITERS=OFF")
arguments(
"-DCMAKE_BUILD_TYPE=RelWithDebInfo",
"-DANDROID_ARM_NEON=ON",
"-DZXING_WRITERS=OFF",
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON" // This flag can be removed when NDK 28 is the default version
)
}
}

Expand Down Expand Up @@ -116,6 +121,10 @@ publishing {
}

signing {
setRequired {
// signing is required if the artifacts are to be published
gradle.taskGraph.allTasks.any { it is PublishToMavenRepository }
}
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
Expand Down
2 changes: 0 additions & 2 deletions wrappers/android/zxingcpp/src/main/AndroidManifest.xml

This file was deleted.

0 comments on commit a864dc8

Please sign in to comment.