diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ccdbede..c2dd59a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,4 +14,6 @@ permissions: jobs: call-workflow: uses: skiptools/actions/.github/workflows/skip-framework.yml@v1 - + with: + runs-on: "['macos-15-intel', 'ubuntu-24.04']" + swift-android-sdk-version: "['', 'nightly-main']" diff --git a/Sources/SkipAndroidBridge/AndroidBundle.swift b/Sources/SkipAndroidBridge/AndroidBundle.swift index 09719f5..67827b2 100644 --- a/Sources/SkipAndroidBridge/AndroidBundle.swift +++ b/Sources/SkipAndroidBridge/AndroidBundle.swift @@ -50,16 +50,19 @@ open class AndroidBundle : Foundation.Bundle, @unchecked Sendable { super.init(path: Foundation.Bundle.main.bundlePath)! } - // These inits require 'override' on Android but not iOS or ROBOLECTRIC + // These inits require 'override' on Android but not iOS or ROBOLECTRIC. + // They must not be marked unavailable because the auto-generated + // resource_bundle_accessor.swift (produced by the swiftbuild build system) + // calls Bundle(for: BundleFinder.self) as part of its fallback chain. #if os(Android) - @available(*, unavailable) public override init(for aClass: AnyClass) { - fatalError() + self.bundleAccess = BundleAccess.main + super.init(path: Foundation.Bundle.main.bundlePath)! } - @available(*, unavailable) public override init?(identifier: String) { - fatalError() + self.bundleAccess = BundleAccess.main + super.init(path: Foundation.Bundle.main.bundlePath)! } #endif