-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
63 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This is free software: you can redistribute and/or modify it | ||
// under the terms of the GNU Lesser General Public License 3.0 | ||
// as published by the Free Software Foundation https://fsf.org | ||
|
||
import Foundation | ||
#if canImport(AndroidNative) | ||
import AndroidNative | ||
#else | ||
import OSLog | ||
#endif | ||
|
||
fileprivate let logger: Logger = Logger(subsystem: "AndroidBridge", category: "AndroidSwiftBridge") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Foundation | ||
import OSLog | ||
|
||
fileprivate let logger: Logger = Logger(subsystem: "AndroidBridge", category: "AndroidKotlinBridge") | ||
|
||
// SKIP @BridgeToSwift | ||
func getJavaSystemProperty(_ name: String) -> String? { | ||
#if SKIP | ||
return java.lang.System.getProperty(name) | ||
#else | ||
return nil | ||
#endif | ||
} | ||
|
||
// SKIP @BridgeToSwift | ||
public class AndroidContext { | ||
#if SKIP | ||
public static let shared: AndroidContext = AndroidContext(context: ProcessInfo.processInfo.androidContext) | ||
|
||
private let context: android.content.Context | ||
|
||
private init(context: android.content.Context) { | ||
self.context = context | ||
} | ||
#endif | ||
} |
File renamed without changes.
14 changes: 0 additions & 14 deletions
14
Sources/SkipAndroidBridge/Kotlin/AndroidKotlinBridge.swift
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.