Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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']"
13 changes: 8 additions & 5 deletions Sources/SkipAndroidBridge/AndroidBundle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading