From 096a18bf6b2ce3fd67398ff91be013a63073a103 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Sat, 7 Dec 2024 10:52:33 -0500 Subject: [PATCH] Update README --- README.md | 42 +--------------------------- Sources/SkipBridge/Observation.swift | 1 + 2 files changed, 2 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 58563d1..386cf18 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/Sources/SkipBridge/Observation.swift b/Sources/SkipBridge/Observation.swift index 920039f..3c7bf54 100644 --- a/Sources/SkipBridge/Observation.swift +++ b/Sources/SkipBridge/Observation.swift @@ -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