Fix Android binding generation and local build setup#139
Conversation
76a4afc to
f90e705
Compare
| authors = ["World Contributors"] | ||
| readme = "./README.md" | ||
| homepage = "https://docs.world.org" # TODO: Update to specific WalletKit page | ||
| rust-version = "1.86" # MSRV |
There was a problem hiding this comment.
Bumped the rust-version as I was running into Format, Clippy & Build and Tests issues https://github.com/worldcoin/walletkit/actions/runs/21117220277
| [profile.release] | ||
| opt-level = 'z' # Optimize for size. | ||
| lto = true # Enable Link Time Optimization. | ||
| strip = true # Automatically strip symbols from the binary. |
There was a problem hiding this comment.
This was the culprit of preventing bindings to get exposed and available from walletkit-android.
f90e705 to
5c332f2
Compare
| dependencies { | ||
| /// ... | ||
| implementation "org.world:walletkit:VERSION" | ||
| implementation "org.world:walletkit-android:VERSION" |
There was a problem hiding this comment.
| implementation "org.world:walletkit-android:VERSION" | |
| implementation "org.world:walletkit:VERSION" |
There was a problem hiding this comment.
walletkit/kotlin/lib/build.gradle.kts
Line 52 in 9916b32
walletkit?
|
Going ahead and merging here, we can follow up on the |
Create a ticket https://linear.app/worldcoin/issue/MCORE-603/change-walletkit-artifact-name-and-publish-to-maven-repository |
2 similar comments
Create a ticket https://linear.app/worldcoin/issue/MCORE-603/change-walletkit-artifact-name-and-publish-to-maven-repository |
Create a ticket https://linear.app/worldcoin/issue/MCORE-603/change-walletkit-artifact-name-and-publish-to-maven-repository |
Description
Changes
build_android_local.shscript to build, generate UniFFI bindings (re-usingkotlin/build.sh), and publishSNAPSHOTsREADMEwith local development prerequisites (NDK, protoc) and instructionsbuild.gradle.ktscc @MarinJuricevcompileSdkto35in thelibmodule cc @MarinJuricev.gitignorerules so generated bindings,jnilibs, and IDE/Gradle artifacts don't get committedTesting
$> RUSTUP_HOME=~/.rustup CARGO_HOME=~/.cargo ./build_android_local.sh 0.3.1-SNAPSHOTorg.world:walletkit-android:0.3.1-SNAPSHOTintowld-androidand confirmed UniFFI bindings are present and 16KB page warnings are gone