@capgo/native-market 1.0.6 → 1.0.7
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.
- package/ios/Plugin/Plugin.swift +7 -7
- package/package.json +1 -1
package/ios/Plugin/Plugin.swift
CHANGED
|
@@ -19,11 +19,11 @@ public class NativeMarket: CAPPlugin {
|
|
|
19
19
|
if UIApplication.shared.canOpenURL(appUrl!) {
|
|
20
20
|
if #available(iOS 10.0, *) {
|
|
21
21
|
UIApplication.shared.open(appUrl!, options: [:]) { (success) in
|
|
22
|
-
call.
|
|
22
|
+
call.resolve()
|
|
23
23
|
}
|
|
24
24
|
} else {
|
|
25
25
|
UIApplication.shared.openURL(appUrl!)
|
|
26
|
-
call.
|
|
26
|
+
call.resolve()
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -33,15 +33,15 @@ public class NativeMarket: CAPPlugin {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
@objc func openDevPage(_ call: CAPPluginCall) {
|
|
36
|
-
call.
|
|
36
|
+
call.resolve() // TODO: Implement
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
@objc func openCollection(_ call: CAPPluginCall) {
|
|
40
|
-
call.
|
|
40
|
+
call.resolve() // TODO: Implement
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
@objc func openEditorChoicePage(_ call: CAPPluginCall) {
|
|
44
|
-
call.
|
|
44
|
+
call.resolve() // TODO: Implement
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
@objc func search(_ call: CAPPluginCall) {
|
|
@@ -54,11 +54,11 @@ public class NativeMarket: CAPPlugin {
|
|
|
54
54
|
if UIApplication.shared.canOpenURL(appUrl!) {
|
|
55
55
|
if #available(iOS 10.0, *) {
|
|
56
56
|
UIApplication.shared.open(appUrl!, options: [:]) { (success) in
|
|
57
|
-
call.
|
|
57
|
+
call.resolve()
|
|
58
58
|
}
|
|
59
59
|
} else {
|
|
60
60
|
UIApplication.shared.openURL(appUrl!)
|
|
61
|
-
call.
|
|
61
|
+
call.resolve()
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
} else {
|