Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
marcprux committed Dec 7, 2024
1 parent 4a9086e commit 096a18b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 41 deletions.
42 changes: 1 addition & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,5 @@

SkipBridge provides bridging between Swift and Java.


demo-package
ModA
ModB

demo-package.output/ModA/skipstone/ModA/src/main/swift/Package.swift -> FileA_SpecialBridge.swift

demo-package.output/ModB/skipstone/ModA/src/main/build.gradle.kts
demo-package.output/ModB/skipstone/ModA/src/main/kotlin/…
demo-package.output/ModB/skipstone/ModA/src/main/swift/Package.swift
/Sources
/ModA
/FileA.swift
/FileA_Bridge.swift
/FileA_SpecialBridge.swift

demo-package.output/ModB/skipstone/ModB/src/main/build.gradle.kts
demo-package.output/ModB/skipstone/ModB/src/main/kotlin/…
demo-package.output/ModB/skipstone/ModB/src/main/swift/Package.swift
/Sources
/ModA -> ../../../../ModA/src/main/swift/Sources/ModA
/FileA.swift
/FileA_Bridge.swift
/ModB
/FileB.swift
/FileB_Bridge.swift
/FileB_SpecialBridge.swift

demo-package.output/ModB/skipstone/ModB/test/main/build.gradle.kts
demo-package.output/ModB/skipstone/ModB/test/main/kotlin/…
demo-package.output/ModB/skipstone/ModB/test/main/swift/Package.swift
/Tests
/ModATests
/TestFileA.swift
/ModBTests
/TestFileB.swift


## Tips

To speed up local testing, set the `SKIP_BRIDGE_ANDROID_BUILD_DISABLED=1` environment variable from Xcode, which will prevent the `skip android` command from building the Android libraries for each supported architecture, leaving just the local Robolectric build. Conversly, if you are *only* testing against an Android emulator/device (by setting the `ANDROID_SERIAL` environment variable), you can disable the local Robolectric build by setting the `SKIP_BRIDGE_ROBOLECTRIC_BUILD_DISABLED=1` variable, which will only build for the support Android architectures and avoid building locally.
Documentation can be found at https://skip.tools/docs/native/#bridging.

1 change: 1 addition & 0 deletions Sources/SkipBridge/Observation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ private final class BridgeObservationSupport: @unchecked Sendable {
#if os(Android)
// Without this we get the crash on launch: 08-09 18:45:51.978 10431 10431 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN5swift9threading5fatalEPKcz" referenced by "/data/app/~~aevIacTPjMLuc5Cymf5l-A==/skip.droid.app--cf8i3s7JV9Ln9saNnThMg==/base.apk!/lib/arm64-v8a/libswiftObservation.so"...
// Seem like Swift/lib/Threading/Errors.cpp (https://github.com/swiftlang/swift/blob/3934f78ecdd53031ac40d68499f9ee046a5abe50/lib/Threading/Errors.cpp#L13) is missing
// Should be fixed by: https://github.com/swiftlang/swift/pull/77890
@_cdecl("_ZN5swift9threading5fatalEPKcz")
func swiftThreadingFatal() { }
#endif
Expand Down

0 comments on commit 096a18b

Please sign in to comment.