Skip to content
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

Always unpacking JVM native lib when using SNAPSHOT version #1786

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

nhachicha
Copy link
Collaborator

@nhachicha nhachicha commented Jun 19, 2024

Fixes #1715

This was tested locally by adding a JVM test that checks the schema version

assertEquals(realm.schemaVersion(), 42)

Then on AS edit the Core method realm_get_schema_version (inside https://github.com/realm/realm-core/blob/master/src/realm/object-store/c_api/schema.cpp#L52-L56) to return a different version which should compile a new native shared library to be extracted which has the new value. Observe that the test passes with the modified version .

Note: Obviously If you edit the buildSrc/src/main/kotlin/Config.kt to use a named version locally this work around won't work

@nhachicha nhachicha self-assigned this Jun 19, 2024
@cla-bot cla-bot bot added the cla: yes label Jun 19, 2024
Copy link
Contributor

@rorbech rorbech left a comment

Choose a reason for hiding this comment

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

LGTM

@nhachicha nhachicha merged commit 17e92c2 into main Jul 4, 2024
68 of 71 checks passed
@nhachicha nhachicha deleted the nh/jvm_unpacking_improvement branch July 4, 2024 09:02
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improved mechanism for unpacking of JVM native libs suitable for local development
2 participants