Skip to content

Commit

Permalink
Always unpacking JVM native lib when using SNAPSHOT version (#1786)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhachicha authored Jul 4, 2024
1 parent 18b4def commit 17e92c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- None.

### Enhancements
- None.
- Improved mechanism for unpacking of JVM native libs suitable for local development. (Issue [#1715](https://github.com/realm/realm-kotlin/issues/1715) [JIRA](https://jira.mongodb.org/browse/RKOTLIN-1065)).

### Fixed
- None.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class SoLoader {
// path should be <default user lib dir>/io.realm.kotlin/libraryVersion]/librealmffi.so
// if the full path exists then load it otherwise unpack and load it.
val libraryInstallationLocation: File = defaultAbsolutePath(libraryName)
if (!libraryInstallationLocation.exists()) {
if (!libraryInstallationLocation.exists() || SDK_VERSION.endsWith("-SNAPSHOT", ignoreCase = true)) {
unpackAndInstall(libraryName, libraryInstallationLocation)
}
@Suppress("UnsafeDynamicallyLoadedCode")
Expand Down

0 comments on commit 17e92c2

Please sign in to comment.