You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add AndroidContext and dependency on swift-jni (#2)
* Add AndroidContext and dependency on swift-jni
* Update AndroidContext
* Add docs and example of using an ANativeActivity
* Fix conditional import
* Add AndroidContext.assetManager accessor for AndroidAssetManager
* Switch CI to Linux
* Switch CI to Linux
* Fix OSLog import for Linux
* Fix OSLog import for Linux
* Update CI
* Import fixes
* Import fixes
* Package fixes
Copy file name to clipboardExpand all lines: README.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,62 @@ function.
86
86
-`OSLogMessage` is simply a typealias to `Swift.String`, and does not implement any of the [redaction features](https://developer.apple.com/documentation/os/logging/generating_log_messages_from_your_code#3665948) of the Darwin version.
87
87
88
88
89
+
# AndroidContext
90
+
91
+
This module provides a minimal wrapper for [android.content.Context](https://developer.android.com/reference/android/content/Context)
92
+
that uses [SwiftJNI](https://github.com/skiptools/swift-jni) to bridge into the global application context.
93
+
94
+
## Installation
95
+
96
+
Add the `AndroidContext` module as a conditional dependency for any targets that need it:
0 commit comments