Skip to content

android: add linker flag to support flexible page sizes in Android 15 #872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

ccrowell-kr
Copy link
Contributor

This enables the Android wrapper to be used in apps running Android 15 on devices with a 16KB page size.

I have tested this locally with a 16KB emulator. Without the flag, the demo app crashes immediately, with the new flag, the demo app works as expected.

Addresses #871

@@ -116,6 +121,10 @@ publishing {
}

signing {
setRequired {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to remove this or change the implementation. I added it because it allows us to run ./gradlew publishToMavenLocal and use the mavenLocal() repository rather than manually including the aar for testing.

I borrowed the implementation from this discussion on the gradle forums

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The empty manifest is not required now that namespace is declared in the build.gradle.kts but happy to restore this if desired.

@axxel axxel merged commit a864dc8 into zxing-cpp:master Dec 6, 2024
18 checks passed
@axxel
Copy link
Collaborator

axxel commented Dec 6, 2024

Thanks a lot and sorry for the delayed response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants