Skip to content

Commit

Permalink
Merge pull request #2 from skiptools/nobridgeextensions
Browse files Browse the repository at this point in the history
Do not bridge extensions that were not meant to be bridged
  • Loading branch information
aabewhite authored Dec 23, 2024
2 parents 6107a53 + 79620a8 commit 199c010
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/SkipAndroidBridge/AndroidBridgeBootstrap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ private func bootstrapSSLCertificates(fromCertficateFolders certsFolders: [Strin

// URL.applicationSupportDirectory exists in Darwin's Foundation but not in Android's Foundation
#if os(Android)
// SKIP @nobridge
extension URL {
public static var applicationSupportDirectory: URL {
try! FileManager.default.url(for: .applicationSupportDirectory, in: .userDomainMask, appropriateFor: nil, create: false)
Expand All @@ -148,6 +149,7 @@ extension URL {
}
#endif

// SKIP @nobridge
extension UserDefaults {
// TODO: we can't do this because there will be an `ambiguous use` error
// #if os(Android) || ROBOLECTRIC
Expand Down

0 comments on commit 199c010

Please sign in to comment.