@capgo/native-market 8.0.3 → 8.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,7 +25,7 @@ struct APIResult: Codable {
|
|
|
25
25
|
*/
|
|
26
26
|
@objc(NativeMarket)
|
|
27
27
|
public class NativeMarket: CAPPlugin, CAPBridgedPlugin {
|
|
28
|
-
private let pluginVersion: String = "8.0.
|
|
28
|
+
private let pluginVersion: String = "8.0.5"
|
|
29
29
|
public let identifier = "NativeMarketPlugin"
|
|
30
30
|
public let jsName = "NativeMarket"
|
|
31
31
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -63,12 +63,7 @@ public class NativeMarket: CAPPlugin, CAPBridgedPlugin {
|
|
|
63
63
|
|
|
64
64
|
DispatchQueue.main.async {
|
|
65
65
|
if UIApplication.shared.canOpenURL(appUrl) {
|
|
66
|
-
|
|
67
|
-
UIApplication.shared.open(appUrl, options: [:]) { (_) in
|
|
68
|
-
call.resolve()
|
|
69
|
-
}
|
|
70
|
-
} else {
|
|
71
|
-
UIApplication.shared.openURL(appUrl)
|
|
66
|
+
UIApplication.shared.open(appUrl, options: [:]) { (_) in
|
|
72
67
|
call.resolve()
|
|
73
68
|
}
|
|
74
69
|
}
|
|
@@ -99,12 +94,7 @@ public class NativeMarket: CAPPlugin, CAPBridgedPlugin {
|
|
|
99
94
|
let appUrl = URL(string: url)
|
|
100
95
|
|
|
101
96
|
if UIApplication.shared.canOpenURL(appUrl!) {
|
|
102
|
-
|
|
103
|
-
UIApplication.shared.open(appUrl!, options: [:]) { (_) in
|
|
104
|
-
call.resolve()
|
|
105
|
-
}
|
|
106
|
-
} else {
|
|
107
|
-
UIApplication.shared.openURL(appUrl!)
|
|
97
|
+
UIApplication.shared.open(appUrl!, options: [:]) { (_) in
|
|
108
98
|
call.resolve()
|
|
109
99
|
}
|
|
110
100
|
}
|