@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.3"
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
- if #available(iOS 10.0, *) {
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
- if #available(iOS 10.0, *) {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/native-market",
3
- "version": "8.0.3",
3
+ "version": "8.0.5",
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/plugin.cjs.js",