@capgo/native-market 1.0.5 → 1.0.8
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/CapgoNativeMarket.podspec +13 -0
- package/README.md +2 -1
- package/ios/Plugin/Plugin.swift +7 -7
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
Pod::Spec.new do |s|
|
|
3
|
+
s.name = 'CapgoNativeMarket'
|
|
4
|
+
s.version = '0.0.1'
|
|
5
|
+
s.summary = 'A native market plugin for linking to google play / Apple store.'
|
|
6
|
+
s.license = 'MIT'
|
|
7
|
+
s.homepage = 'https://github.com/Cap-go/native-market'
|
|
8
|
+
s.author = 'Priyank Patel <priyank.patel@stackspace.ca>'
|
|
9
|
+
s.source = { :git => 'https://github.com/Cap-go/native-market', :tag => s.version.to_s }
|
|
10
|
+
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
11
|
+
s.ios.deployment_target = '12.0'
|
|
12
|
+
s.dependency 'Capacitor'
|
|
13
|
+
end
|
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Capacitor Native Market Plugin
|
|
2
|
-
|
|
2
|
+
<a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
|
|
3
|
+
|
|
3
4
|
Capacitor community plugin for native market for Play Store/App Store.
|
|
4
5
|
|
|
5
6
|
## Maintainers
|
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 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/native-market",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "A native market plugin for linking to google play or app store.",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dist/",
|
|
42
42
|
"ios/",
|
|
43
43
|
"android/",
|
|
44
|
-
"
|
|
44
|
+
"CapgoNativeMarket.podspec"
|
|
45
45
|
],
|
|
46
46
|
"keywords": [
|
|
47
47
|
"capacitor",
|