Skip to content

Commit

Permalink
Configure jniLibs to use pickFirsts to prevent errors about duplicate…
Browse files Browse the repository at this point in the history
… symbols
  • Loading branch information
marcprux committed Oct 31, 2024
1 parent 4c0d1cc commit e105aa5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Sources/SkipBridge/Skip/skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ build:
contents:
# .build/jni-libs/ is the folder where our toolchain outputs the natively-compiled .so files
- 'getByName("main").jniLibs.srcDirs(".build/jni-libs")'
- block: 'packagingOptions'
- block: 'packaging'
contents:
# doNotStrip is needed to prevent errors like: java.lang.UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/data/app/~~Zoepnr93K9vyUtTUUM0POg==/skip.bridge.samples.test-3nePwd6ioGZtLQ0K0EJpBQ==/base.apk!/lib/arm64-v8a/libdispatch.so" (new hash type from the future?) (see: https://github.com/finagolfin/swift-android-sdk/issues/67)
# also seems to affect libandroid-spawn.so
- 'jniLibs.keepDebugSymbols.add("*/*/*.so")'
- block: 'jniLibs'
contents:
# doNotStrip is needed to prevent errors like: java.lang.UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/data/app/~~Zoepnr93K9vyUtTUUM0POg==/skip.bridge.samples.test-3nePwd6ioGZtLQ0K0EJpBQ==/base.apk!/lib/arm64-v8a/libdispatch.so" (new hash type from the future?) (see: https://github.com/finagolfin/swift-android-sdk/issues/67)
# also seems to affect libandroid-spawn.so
- 'keepDebugSymbols.add("**/*.so")'
- 'pickFirsts.add("**/*.so")'
1 change: 1 addition & 0 deletions Sources/SkipBridgeSamples/Skip/skip.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Configuration file for https://skip.tools project
skip:
mode: 'kotlin'

0 comments on commit e105aa5

Please sign in to comment.