Skip to content

Conversation

@gre-ledger
Copy link
Contributor

@gre-ledger gre-ledger commented Sep 23, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

  • rfc4648 were updated

Description

In order to be compatible with upcoming Android requirements, we must upgrade NDK and all build tools to be able to support 16 KB page size. Fixes #56

The FastCryptoTest app were upgraded to latest React Native and is confirmed to works on Android 16KB simulator and pass all the tests. I also confirm it works on iOS.


@swansontec
Copy link
Contributor

Thanks. This is a pretty big PR - if we just wanted 16KiB support, we could have had that much more simply. On the other hand, updating the build system is certainly worthwhile, so I'm happy to do the review. It might just take a bit longer.

@gre
Copy link

gre commented Sep 24, 2025

@swansontec yes this is mainly due to the reboot of the FastCryptoTest project on the latest React Native stack (new arch & latest version to be ready for 16kb and to be able to test end2end on the 16kb simulator)

Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

I still need to review the FastCryptoTest project, but here are my initial thoughts about the changes to react-native-fast-crypto itself.

Since this PR includes changes to the binaries, we do risk supply-chain attacks. Before I merge it, I'll be sure to re-run the build so we have known-good .so files.

Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

We don't actually need the scripts/utils/android-tools.js file.

@gre-ledger gre-ledger requested a review from swansontec October 2, 2025 12:55
@swansontec
Copy link
Contributor

I have been unable to build libsecp256k1 with these changes, sadly.

Instead of trying to fix the the old deps system, I've started a branch that copies over the react-native-zano build system, which is written in TypeScript. So far I have the Android side building, and should have iOS done soon. I understand that the deadline for 16KiB support is the end of the month, so I do want to get this working & published.

@swansontec
Copy link
Contributor

swansontec commented Oct 8, 2025

Here is the follow-on PR: #58

I kept your FastCryptoTest upgrade pretty much as-is, so thanks for that.

@swansontec swansontec closed this Oct 8, 2025
@swansontec swansontec mentioned this pull request Oct 8, 2025
2 tasks
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.

Android 16KB Page Size Support - Compatibility with Android 15+

3 participants