We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd6fe6f commit 25a1ac1Copy full SHA for 25a1ac1
Demo/app/src/main/swift/Application.swift
@@ -21,6 +21,7 @@ public extension Application {
21
func onCreateSwift() {
22
log("\(self).\(#function)")
23
24
+ printAPIVersion()
25
sayHello()
26
}
27
@@ -30,6 +31,20 @@ public extension Application {
30
31
32
33
34
+private extension Application {
35
+
36
+ func printAPIVersion() {
37
38
+ do {
39
+ let api = try AndroidOS.AndroidAPI.current
40
+ Self.logInfo("Running on Android API \(api)")
41
+ }
42
+ catch {
43
+ Self.logError("\(error)")
44
45
46
+}
47
48
extension Application {
49
50
static var logTag: LogTag { "Application" }
0 commit comments