Skip to content

Bundle core extension on Android - #1096

Draft
simolus3 wants to merge 1 commit into
mainfrom
bundle-android-core-extension
Draft

Bundle core extension on Android#1096
simolus3 wants to merge 1 commit into
mainfrom
bundle-android-core-extension

Conversation

@simolus3

@simolus3 simolus3 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Soon, we might not be able to publish the core extension to Maven Central anymore. To prepare for that eventuality, this migrates the react-native and capacitor packages to contain Android builds for the core extension in their npm package. These builds are then picked as jni sources directly instead of requiring a Gradle dependency.

The core extension download script for node lives in tools/ now and also covers downloading JNI dependencies for Android. We bundle them to android/core/jniLibs/<abi>/libpowersync.so, which is the same format the Gradle dependency had before. So apps continue to work without the Gradle dependency.

I have tested tools/powersynctests and demos/example-capacitor on Android.

AI use: The new download script is mostly generated by Claude Code.

@changeset-bot

changeset-bot Bot commented Sep 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 482a2ed

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@powersync/react-native Patch
@powersync/capacitor Patch
@powersync/node Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant