@capgo/native-market 1.0.4 → 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.
@@ -1,12 +1,12 @@
1
1
 
2
2
  Pod::Spec.new do |s|
3
- s.name = 'NativeMarket'
3
+ s.name = 'CapgoNativeMarket'
4
4
  s.version = '0.0.1'
5
5
  s.summary = 'A native market plugin for linking to google play / Apple store.'
6
6
  s.license = 'MIT'
7
- s.homepage = 'https://github.com/riderx/native-market'
7
+ s.homepage = 'https://github.com/Cap-go/native-market'
8
8
  s.author = 'Priyank Patel <priyank.patel@stackspace.ca>'
9
- s.source = { :git => 'https://github.com/riderx/native-market', :tag => s.version.to_s }
9
+ s.source = { :git => 'https://github.com/Cap-go/native-market', :tag => s.version.to_s }
10
10
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
11
11
  s.ios.deployment_target = '12.0'
12
12
  s.dependency 'Capacitor'
@@ -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.success()
22
+ call.resolve()
23
23
  }
24
24
  } else {
25
25
  UIApplication.shared.openURL(appUrl!)
26
- call.success()
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.success() // TODO: Implement
36
+ call.resolve() // TODO: Implement
37
37
  }
38
38
 
39
39
  @objc func openCollection(_ call: CAPPluginCall) {
40
- call.success() // TODO: Implement
40
+ call.resolve() // TODO: Implement
41
41
  }
42
42
 
43
43
  @objc func openEditorChoicePage(_ call: CAPPluginCall) {
44
- call.success() // TODO: Implement
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.success()
57
+ call.resolve()
58
58
  }
59
59
  } else {
60
60
  UIApplication.shared.openURL(appUrl!)
61
- call.success()
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.4",
3
+ "version": "1.0.7",
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
- "NativeMarket.podspec"
44
+ "CapgoNativeMarket.podspec"
45
45
  ],
46
46
  "keywords": [
47
47
  "capacitor",