@capgo/native-market 6.0.2 → 7.1.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.
- package/.eslintignore +5 -0
- package/.github/FUNDING.yml +1 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +86 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +45 -0
- package/.github/workflows/autofix.yml +23 -0
- package/.github/workflows/build.yml +82 -0
- package/.github/workflows/bump_version.yml +57 -0
- package/.github/workflows/test.yml +58 -0
- package/.prettierrc.js +3 -0
- package/CHANGELOG.md +500 -0
- package/CapgoNativeMarket.podspec +1 -1
- package/PLUGIN_AUTHOR_README.md +51 -0
- package/README.md +5 -15
- package/android/build.gradle +7 -7
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/gradlew +13 -9
- package/android/gradlew.bat +12 -10
- package/android/src/main/java/com/getcapacitor/community/nativemarket/NativeMarket.java +70 -73
- package/bun.lock +820 -0
- package/dist/docs.json +10 -10
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/Plugin.swift +10 -2
- package/ios/Plugin.xcodeproj/project.pbxproj +4 -12
- package/ios/Plugin.xcworkspace/contents.xcworkspacedata +10 -0
- package/ios/Podfile +1 -1
- package/java_code_style.xml +24 -0
- package/package.json +44 -46
- package/renovate.json +20 -0
- package/rollup.config.mjs +22 -0
- package/src/definitions.ts +58 -0
- package/src/index.ts +10 -0
- package/src/web.ts +28 -0
- package/tsconfig.json +19 -0
- package/android/android.iml +0 -109
- package/android/src/main/res/layout/bridge_layout_main.xml +0 -15
- package/android/src/main/res/values/colors.xml +0 -3
- package/android/src/main/res/values/strings.xml +0 -3
- package/android/src/main/res/values/styles.xml +0 -3
- package/ios/Plugin/Plugin.h +0 -10
- package/ios/Plugin/Plugin.m +0 -12
package/dist/docs.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"methods": [
|
|
8
8
|
{
|
|
9
9
|
"name": "openStoreListing",
|
|
10
|
-
"signature": "(options: { appId: string; country?: string; }) =>
|
|
10
|
+
"signature": "(options: { appId: string; country?: string; }) => Promise<void>",
|
|
11
11
|
"parameters": [
|
|
12
12
|
{
|
|
13
13
|
"name": "options",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"type": "{ appId: string; country?: string | undefined; }"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
|
-
"returns": "
|
|
18
|
+
"returns": "Promise<void>",
|
|
19
19
|
"tags": [
|
|
20
20
|
{
|
|
21
21
|
"name": "param",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"name": "openDevPage",
|
|
43
|
-
"signature": "(options: { devId: string; }) =>
|
|
43
|
+
"signature": "(options: { devId: string; }) => Promise<void>",
|
|
44
44
|
"parameters": [
|
|
45
45
|
{
|
|
46
46
|
"name": "options",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"type": "{ devId: string; }"
|
|
49
49
|
}
|
|
50
50
|
],
|
|
51
|
-
"returns": "
|
|
51
|
+
"returns": "Promise<void>",
|
|
52
52
|
"tags": [
|
|
53
53
|
{
|
|
54
54
|
"name": "param",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"name": "openCollection",
|
|
72
|
-
"signature": "(options: { name: string; }) =>
|
|
72
|
+
"signature": "(options: { name: string; }) => Promise<void>",
|
|
73
73
|
"parameters": [
|
|
74
74
|
{
|
|
75
75
|
"name": "options",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"type": "{ name: string; }"
|
|
78
78
|
}
|
|
79
79
|
],
|
|
80
|
-
"returns": "
|
|
80
|
+
"returns": "Promise<void>",
|
|
81
81
|
"tags": [
|
|
82
82
|
{
|
|
83
83
|
"name": "param",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"name": "openEditorChoicePage",
|
|
101
|
-
"signature": "(options: { editorChoice: string; }) =>
|
|
101
|
+
"signature": "(options: { editorChoice: string; }) => Promise<void>",
|
|
102
102
|
"parameters": [
|
|
103
103
|
{
|
|
104
104
|
"name": "options",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"type": "{ editorChoice: string; }"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
|
-
"returns": "
|
|
109
|
+
"returns": "Promise<void>",
|
|
110
110
|
"tags": [
|
|
111
111
|
{
|
|
112
112
|
"name": "param",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
"name": "search",
|
|
130
|
-
"signature": "(options: { terms: string; }) =>
|
|
130
|
+
"signature": "(options: { terms: string; }) => Promise<void>",
|
|
131
131
|
"parameters": [
|
|
132
132
|
{
|
|
133
133
|
"name": "options",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"type": "{ terms: string; }"
|
|
136
136
|
}
|
|
137
137
|
],
|
|
138
|
-
"returns": "
|
|
138
|
+
"returns": "Promise<void>",
|
|
139
139
|
"tags": [
|
|
140
140
|
{
|
|
141
141
|
"name": "param",
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst NativeMarket = registerPlugin(\"NativeMarket\", {\n web: () => import(\"./web\").then((m) => new m.NativeMarketWeb()),\n});\nexport * from \"./definitions\";\nexport { NativeMarket };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class NativeMarketWeb extends WebPlugin {\n openStoreListing(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n openDevPage(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n openCollection(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n openEditorChoicePage(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n search(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACnE,CAAC;;ACFM,MAAM,eAAe,SAASC,cAAS,CAAC;AAC/C,IAAI,gBAAgB,CAAC,OAAO,EAAE;AAC9B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst NativeMarket = registerPlugin(\"NativeMarket\", {\n web: () => import(\"./web\").then((m) => new m.NativeMarketWeb()),\n});\nexport * from \"./definitions\";\nexport { NativeMarket };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class NativeMarketWeb extends WebPlugin {\n openStoreListing(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n openDevPage(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n openCollection(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n openEditorChoicePage(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n search(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACnE,CAAC;;ACFM,MAAM,eAAe,SAASC,cAAS,CAAC;AAC/C,IAAI,gBAAgB,CAAC,OAAO,EAAE;AAC9B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC;AAC5D;AACA,IAAI,WAAW,CAAC,OAAO,EAAE;AACzB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC;AAC5D;AACA,IAAI,cAAc,CAAC,OAAO,EAAE;AAC5B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC;AAC5D;AACA,IAAI,oBAAoB,CAAC,OAAO,EAAE;AAClC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC;AAC5D;AACA,IAAI,MAAM,CAAC,OAAO,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC;AAC5D;AACA;;;;;;;;;"}
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst NativeMarket = registerPlugin(\"NativeMarket\", {\n web: () => import(\"./web\").then((m) => new m.NativeMarketWeb()),\n});\nexport * from \"./definitions\";\nexport { NativeMarket };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class NativeMarketWeb extends WebPlugin {\n openStoreListing(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n openDevPage(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n openCollection(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n openEditorChoicePage(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n search(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACnE,CAAC;;ICFM,MAAM,eAAe,SAASC,cAAS,CAAC;IAC/C,IAAI,gBAAgB,CAAC,OAAO,EAAE;IAC9B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst NativeMarket = registerPlugin(\"NativeMarket\", {\n web: () => import(\"./web\").then((m) => new m.NativeMarketWeb()),\n});\nexport * from \"./definitions\";\nexport { NativeMarket };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class NativeMarketWeb extends WebPlugin {\n openStoreListing(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n openDevPage(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n openCollection(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n openEditorChoicePage(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n search(options) {\n throw new Error(\"Method not implemented.\" + options);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACnE,CAAC;;ICFM,MAAM,eAAe,SAASC,cAAS,CAAC;IAC/C,IAAI,gBAAgB,CAAC,OAAO,EAAE;IAC9B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC;IAC5D;IACA,IAAI,WAAW,CAAC,OAAO,EAAE;IACzB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC;IAC5D;IACA,IAAI,cAAc,CAAC,OAAO,EAAE;IAC5B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC;IAC5D;IACA,IAAI,oBAAoB,CAAC,OAAO,EAAE;IAClC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC;IAC5D;IACA,IAAI,MAAM,CAAC,OAAO,EAAE;IACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC;IAC5D;IACA;;;;;;;;;;;;;;;"}
|
package/ios/Plugin/Plugin.swift
CHANGED
|
@@ -24,8 +24,16 @@ struct APIResult: Codable {
|
|
|
24
24
|
* here: https://capacitor.ionicframework.com/docs/plugins/ios
|
|
25
25
|
*/
|
|
26
26
|
@objc(NativeMarket)
|
|
27
|
-
public class NativeMarket: CAPPlugin {
|
|
28
|
-
|
|
27
|
+
public class NativeMarket: CAPPlugin, CAPBridgedPlugin {
|
|
28
|
+
public let identifier = "InAppBrowserPlugin"
|
|
29
|
+
public let jsName = "InAppBrowser"
|
|
30
|
+
public let pluginMethods: [CAPPluginMethod] = [
|
|
31
|
+
CAPPluginMethod(name: "openStoreListing", returnType: CAPPluginReturnPromise),
|
|
32
|
+
CAPPluginMethod(name: "openDevPage", returnType: CAPPluginReturnPromise),
|
|
33
|
+
CAPPluginMethod(name: "openCollection", returnType: CAPPluginReturnPromise),
|
|
34
|
+
CAPPluginMethod(name: "openEditorChoicePage", returnType: CAPPluginReturnPromise),
|
|
35
|
+
CAPPluginMethod(name: "search", returnType: CAPPluginReturnPromise)
|
|
36
|
+
]
|
|
29
37
|
@objc func openStoreListing(_ call: CAPPluginCall) {
|
|
30
38
|
guard let appId = call.getString("appId") else {
|
|
31
39
|
call.reject("appId is missing")
|
|
@@ -11,9 +11,7 @@
|
|
|
11
11
|
20C0B05DCFC8E3958A738AF2 /* Pods_PluginTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F6753A823D3815DB436415E3 /* Pods_PluginTests.framework */; };
|
|
12
12
|
50ADFF92201F53D600D50D53 /* NativeMarket.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50ADFF88201F53D600D50D53 /* NativeMarket.framework */; };
|
|
13
13
|
50ADFF97201F53D600D50D53 /* PluginTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50ADFF96201F53D600D50D53 /* PluginTests.swift */; };
|
|
14
|
-
50ADFF99201F53D600D50D53 /* Plugin.h in Headers */ = {isa = PBXBuildFile; fileRef = 50ADFF8B201F53D600D50D53 /* Plugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
|
15
14
|
50ADFFA42020D75100D50D53 /* Capacitor.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50ADFFA52020D75100D50D53 /* Capacitor.framework */; };
|
|
16
|
-
50ADFFA82020EE4F00D50D53 /* Plugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 50ADFFA72020EE4F00D50D53 /* Plugin.m */; };
|
|
17
15
|
50E1A94820377CB70090CE1A /* Plugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50E1A94720377CB70090CE1A /* Plugin.swift */; };
|
|
18
16
|
/* End PBXBuildFile section */
|
|
19
17
|
|
|
@@ -30,13 +28,11 @@
|
|
|
30
28
|
/* Begin PBXFileReference section */
|
|
31
29
|
3B2A61DA5A1F2DD4F959604D /* Pods_Plugin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Plugin.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
32
30
|
50ADFF88201F53D600D50D53 /* NativeMarket.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = NativeMarket.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
33
|
-
50ADFF8B201F53D600D50D53 /* Plugin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Plugin.h; sourceTree = "<group>"; };
|
|
34
31
|
50ADFF8C201F53D600D50D53 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
|
35
32
|
50ADFF91201F53D600D50D53 /* PluginTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PluginTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
36
33
|
50ADFF96201F53D600D50D53 /* PluginTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PluginTests.swift; sourceTree = "<group>"; };
|
|
37
34
|
50ADFF98201F53D600D50D53 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
|
38
35
|
50ADFFA52020D75100D50D53 /* Capacitor.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Capacitor.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
39
|
-
50ADFFA72020EE4F00D50D53 /* Plugin.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Plugin.m; sourceTree = "<group>"; };
|
|
40
36
|
50E1A94720377CB70090CE1A /* Plugin.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Plugin.swift; sourceTree = "<group>"; };
|
|
41
37
|
5E23F77F099397094342571A /* Pods-Plugin.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Plugin.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig"; sourceTree = "<group>"; };
|
|
42
38
|
91781294A431A2A7CC6EB714 /* Pods-Plugin.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Plugin.release.xcconfig"; path = "Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig"; sourceTree = "<group>"; };
|
|
@@ -91,8 +87,6 @@
|
|
|
91
87
|
isa = PBXGroup;
|
|
92
88
|
children = (
|
|
93
89
|
50E1A94720377CB70090CE1A /* Plugin.swift */,
|
|
94
|
-
50ADFF8B201F53D600D50D53 /* Plugin.h */,
|
|
95
|
-
50ADFFA72020EE4F00D50D53 /* Plugin.m */,
|
|
96
90
|
50ADFF8C201F53D600D50D53 /* Info.plist */,
|
|
97
91
|
);
|
|
98
92
|
path = Plugin;
|
|
@@ -135,7 +129,6 @@
|
|
|
135
129
|
isa = PBXHeadersBuildPhase;
|
|
136
130
|
buildActionMask = 2147483647;
|
|
137
131
|
files = (
|
|
138
|
-
50ADFF99201F53D600D50D53 /* Plugin.h in Headers */,
|
|
139
132
|
);
|
|
140
133
|
runOnlyForDeploymentPostprocessing = 0;
|
|
141
134
|
};
|
|
@@ -303,7 +296,6 @@
|
|
|
303
296
|
buildActionMask = 2147483647;
|
|
304
297
|
files = (
|
|
305
298
|
50E1A94820377CB70090CE1A /* Plugin.swift in Sources */,
|
|
306
|
-
50ADFFA82020EE4F00D50D53 /* Plugin.m in Sources */,
|
|
307
299
|
);
|
|
308
300
|
runOnlyForDeploymentPostprocessing = 0;
|
|
309
301
|
};
|
|
@@ -375,7 +367,7 @@
|
|
|
375
367
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
376
368
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
377
369
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
378
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
370
|
+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
|
379
371
|
MTL_ENABLE_DEBUG_INFO = YES;
|
|
380
372
|
ONLY_ACTIVE_ARCH = YES;
|
|
381
373
|
SDKROOT = iphoneos;
|
|
@@ -429,7 +421,7 @@
|
|
|
429
421
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
430
422
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
431
423
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
432
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
424
|
+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
|
433
425
|
MTL_ENABLE_DEBUG_INFO = NO;
|
|
434
426
|
SDKROOT = iphoneos;
|
|
435
427
|
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
|
@@ -452,7 +444,7 @@
|
|
|
452
444
|
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
|
453
445
|
INFOPLIST_FILE = Plugin/Info.plist;
|
|
454
446
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
|
455
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
447
|
+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
|
456
448
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)";
|
|
457
449
|
MARKETING_VERSION = 0.1;
|
|
458
450
|
ONLY_ACTIVE_ARCH = YES;
|
|
@@ -478,7 +470,7 @@
|
|
|
478
470
|
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
|
479
471
|
INFOPLIST_FILE = Plugin/Info.plist;
|
|
480
472
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
|
481
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
473
|
+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
|
482
474
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
|
|
483
475
|
MARKETING_VERSION = 0.1;
|
|
484
476
|
ONLY_ACTIVE_ARCH = NO;
|
package/ios/Podfile
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
|
2
|
+
<profile version="1.0">
|
|
3
|
+
<option name="myName" value="Project Default" />
|
|
4
|
+
<inspection_tool class="AutoCloseableResource" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
5
|
+
<inspection_tool class="FieldMayBeFinal" enabled="true" level="ERROR" enabled_by_default="true" />
|
|
6
|
+
<inspection_tool class="GroovyVariableCanBeFinal" enabled="true" level="ERROR" enabled_by_default="true" />
|
|
7
|
+
<inspection_tool class="IOResource" enabled="true" level="WARNING" enabled_by_default="true">
|
|
8
|
+
<option name="ignoredTypesString" value="java.io.ByteArrayOutputStream,java.io.ByteArrayInputStream,java.io.StringBufferInputStream,java.io.CharArrayWriter,java.io.CharArrayReader,java.io.StringWriter,java.io.StringReader" />
|
|
9
|
+
<option name="insideTryAllowed" value="false" />
|
|
10
|
+
</inspection_tool>
|
|
11
|
+
<inspection_tool class="LocalCanBeFinal" enabled="true" level="ERROR" enabled_by_default="true">
|
|
12
|
+
<option name="REPORT_VARIABLES" value="true" />
|
|
13
|
+
<option name="REPORT_PARAMETERS" value="true" />
|
|
14
|
+
</inspection_tool>
|
|
15
|
+
<inspection_tool class="PublicField" enabled="true" level="WARNING" enabled_by_default="true">
|
|
16
|
+
<option name="ignoreEnums" value="false" />
|
|
17
|
+
<option name="ignorableAnnotations">
|
|
18
|
+
<value />
|
|
19
|
+
</option>
|
|
20
|
+
</inspection_tool>
|
|
21
|
+
<inspection_tool class="UnqualifiedFieldAccess" enabled="true" level="ERROR" enabled_by_default="true" />
|
|
22
|
+
<inspection_tool class="UnqualifiedMethodAccess" enabled="true" level="ERROR" enabled_by_default="true" />
|
|
23
|
+
</profile>
|
|
24
|
+
</component>
|
package/package.json
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/native-market",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.1.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/esm/index.js",
|
|
7
7
|
"types": "dist/esm/index.d.ts",
|
|
8
|
+
"author": "Martin Donadieu <martin@capgo.app>",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/Cap-go/capacitor-native-market.git"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/Cap-go/capacitor-native-market/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"capacitor",
|
|
19
|
+
"plugin",
|
|
20
|
+
"market",
|
|
21
|
+
"google play",
|
|
22
|
+
"app store"
|
|
23
|
+
],
|
|
8
24
|
"scripts": {
|
|
9
25
|
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
10
|
-
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..",
|
|
26
|
+
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -sdk iphoneos -scheme Plugin && cd ..",
|
|
11
27
|
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
12
28
|
"verify:web": "npm run build",
|
|
13
29
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
@@ -15,49 +31,40 @@
|
|
|
15
31
|
"eslint": "eslint .",
|
|
16
32
|
"prettier": "prettier --config .prettierrc.js \"**/*.{css,html,ts,js,java}\"",
|
|
17
33
|
"swiftlint": "node-swiftlint",
|
|
34
|
+
"docgen": "docgen --api NativeMarketPlugin --output-readme README.md --output-json dist/docs.json",
|
|
18
35
|
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
19
36
|
"clean": "rimraf ./dist",
|
|
20
37
|
"watch": "tsc --watch",
|
|
21
|
-
"docgen": "docgen --api NativeMarketPlugin --output-readme README.md --output-json dist/docs.json",
|
|
22
38
|
"prepublishOnly": "npm run build"
|
|
23
39
|
},
|
|
24
|
-
"author": "Martin Donadieu <martindonadieu@gmail.com>",
|
|
25
|
-
"license": "MIT",
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@capacitor/core": "^6.0.0"
|
|
28
|
-
},
|
|
29
40
|
"devDependencies": {
|
|
30
|
-
"@capacitor/android": "^
|
|
31
|
-
"@capacitor/
|
|
32
|
-
"@capacitor/
|
|
33
|
-
"@capacitor/docgen": "^0.
|
|
34
|
-
"@capacitor/ios": "^
|
|
35
|
-
"@ionic/eslint-config": "^0.
|
|
41
|
+
"@capacitor/android": "^7.0.0",
|
|
42
|
+
"@capacitor/core": "^7.0.0",
|
|
43
|
+
"@capacitor/cli": "^7.0.0",
|
|
44
|
+
"@capacitor/docgen": "^0.3.0",
|
|
45
|
+
"@capacitor/ios": "^7.0.0",
|
|
46
|
+
"@ionic/eslint-config": "^0.4.0",
|
|
36
47
|
"@ionic/prettier-config": "^4.0.0",
|
|
37
|
-
"@ionic/swiftlint-config": "^
|
|
38
|
-
"@
|
|
39
|
-
"
|
|
40
|
-
"eslint": "^
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"prettier": "^
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"typescript": "^5.4.5"
|
|
48
|
+
"@ionic/swiftlint-config": "^2.0.0",
|
|
49
|
+
"@types/node": "^22.13.1",
|
|
50
|
+
"eslint": "^8.57.0",
|
|
51
|
+
"eslint-plugin-import": "^2.31.0",
|
|
52
|
+
"husky": "^9.1.7",
|
|
53
|
+
"prettier": "^3.4.2",
|
|
54
|
+
"prettier-plugin-java": "^2.6.7",
|
|
55
|
+
"rimraf": "^6.0.1",
|
|
56
|
+
"rollup": "^4.34.6",
|
|
57
|
+
"swiftlint": "^2.0.0",
|
|
58
|
+
"typescript": "^5.7.3"
|
|
49
59
|
},
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
"plugin",
|
|
59
|
-
"native"
|
|
60
|
-
],
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"@capacitor/core": ">=7.0.0"
|
|
62
|
+
},
|
|
63
|
+
"eslintConfig": {
|
|
64
|
+
"extends": "@ionic/eslint-config/recommended"
|
|
65
|
+
},
|
|
66
|
+
"prettier": "@ionic/prettier-config",
|
|
67
|
+
"swiftlint": "@ionic/swiftlint-config",
|
|
61
68
|
"capacitor": {
|
|
62
69
|
"ios": {
|
|
63
70
|
"src": "ios"
|
|
@@ -65,14 +72,5 @@
|
|
|
65
72
|
"android": {
|
|
66
73
|
"src": "android"
|
|
67
74
|
}
|
|
68
|
-
},
|
|
69
|
-
"prettier": "@ionic/prettier-config",
|
|
70
|
-
"swiftlint": "@ionic/swiftlint-config",
|
|
71
|
-
"repository": {
|
|
72
|
-
"type": "git",
|
|
73
|
-
"url": "https://github.com/riderx/native-market"
|
|
74
|
-
},
|
|
75
|
-
"bugs": {
|
|
76
|
-
"url": "https://github.com/riderx/native-market/issues"
|
|
77
75
|
}
|
|
78
76
|
}
|
package/renovate.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
|
+
"extends": [
|
|
4
|
+
"config:base",
|
|
5
|
+
"schedule:earlyMondays"
|
|
6
|
+
],
|
|
7
|
+
"lockFileMaintenance": {
|
|
8
|
+
"enabled": true,
|
|
9
|
+
"automerge": true,
|
|
10
|
+
"automergeType": "branch",
|
|
11
|
+
"platformAutomerge": true
|
|
12
|
+
},
|
|
13
|
+
"packageRules": [
|
|
14
|
+
{
|
|
15
|
+
"matchUpdateTypes": ["minor", "patch"],
|
|
16
|
+
"matchCurrentVersion": "!/^0/",
|
|
17
|
+
"automerge": true
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
input: "dist/esm/index.js",
|
|
3
|
+
output: [
|
|
4
|
+
{
|
|
5
|
+
file: "dist/plugin.js",
|
|
6
|
+
format: "iife",
|
|
7
|
+
name: "capacitorCapacitorUpdater",
|
|
8
|
+
globals: {
|
|
9
|
+
"@capacitor/core": "capacitorExports",
|
|
10
|
+
},
|
|
11
|
+
sourcemap: true,
|
|
12
|
+
inlineDynamicImports: true,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
file: "dist/plugin.cjs.js",
|
|
16
|
+
format: "cjs",
|
|
17
|
+
sourcemap: true,
|
|
18
|
+
inlineDynamicImports: true,
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
external: ["@capacitor/core"],
|
|
22
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export interface NativeMarketPlugin {
|
|
2
|
+
/**
|
|
3
|
+
* This method will launch link in Play/App Store.
|
|
4
|
+
*
|
|
5
|
+
* @param {String} appId - ID of your application. Eg. com.example.app
|
|
6
|
+
* @param {String} [country] - International country code if application is not published in the US App store (only for iOS). Eg. IT
|
|
7
|
+
*
|
|
8
|
+
* @returns void
|
|
9
|
+
*
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
openStoreListing(options: { appId: string; country?: string }): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* This method will deep-link directly to an Play/App store listing page.
|
|
15
|
+
*
|
|
16
|
+
* Only in Android.
|
|
17
|
+
*
|
|
18
|
+
* @param {String} devId - ID of developer. Eg. com.example.app
|
|
19
|
+
*
|
|
20
|
+
* @returns void
|
|
21
|
+
*
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
*/
|
|
24
|
+
openDevPage(options: { devId: string }): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* This method will link users to a collection or top charts.
|
|
27
|
+
* Only in Android.
|
|
28
|
+
*
|
|
29
|
+
* @param {String} name - name of the collection. Click [here](https://developer.android.com/distribute/marketing-tools/linking-to-google-play#OpeningCollection) for android options.
|
|
30
|
+
*
|
|
31
|
+
* @returns void
|
|
32
|
+
*
|
|
33
|
+
* @since 1.0.0
|
|
34
|
+
*/
|
|
35
|
+
openCollection(options: { name: string }): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* This method will link users to Editor's choice page.
|
|
38
|
+
*
|
|
39
|
+
* Only in Android.
|
|
40
|
+
*
|
|
41
|
+
* @param {String} editorChoice - ID of your application. Eg. editorial_fitness_apps_us
|
|
42
|
+
* @returns void
|
|
43
|
+
*
|
|
44
|
+
* @since 1.0.0
|
|
45
|
+
*/
|
|
46
|
+
openEditorChoicePage(options: { editorChoice: string }): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* This method will link users to custom search query.
|
|
49
|
+
*
|
|
50
|
+
* Only in Android.
|
|
51
|
+
*
|
|
52
|
+
* @param {String} editorChoice - terms to be searched in Play/App store.
|
|
53
|
+
* @returns void
|
|
54
|
+
*
|
|
55
|
+
* @since 1.0.0
|
|
56
|
+
*/
|
|
57
|
+
search(options: { terms: string }): Promise<void>;
|
|
58
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { registerPlugin } from "@capacitor/core";
|
|
2
|
+
|
|
3
|
+
import type { NativeMarketPlugin } from "./definitions";
|
|
4
|
+
|
|
5
|
+
const NativeMarket = registerPlugin<NativeMarketPlugin>("NativeMarket", {
|
|
6
|
+
web: () => import("./web").then((m) => new m.NativeMarketWeb()),
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export * from "./definitions";
|
|
10
|
+
export { NativeMarket };
|
package/src/web.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { WebPlugin } from "@capacitor/core";
|
|
2
|
+
|
|
3
|
+
import type { NativeMarketPlugin } from "./definitions";
|
|
4
|
+
|
|
5
|
+
export class NativeMarketWeb extends WebPlugin implements NativeMarketPlugin {
|
|
6
|
+
openStoreListing(options: {
|
|
7
|
+
appId: string;
|
|
8
|
+
country?: string;
|
|
9
|
+
}): Promise<void> {
|
|
10
|
+
throw new Error("Method not implemented." + options);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
openDevPage(options: { devId: string }): Promise<void> {
|
|
14
|
+
throw new Error("Method not implemented." + options);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
openCollection(options: { name: string }): Promise<void> {
|
|
18
|
+
throw new Error("Method not implemented." + options);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
openEditorChoicePage(options: { editorChoice: string }): Promise<void> {
|
|
22
|
+
throw new Error("Method not implemented." + options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
search(options: { terms: string }): Promise<void> {
|
|
26
|
+
throw new Error("Method not implemented." + options);
|
|
27
|
+
}
|
|
28
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowUnreachableCode": false,
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"esModuleInterop": true,
|
|
6
|
+
"lib": ["dom", "es2017"],
|
|
7
|
+
"module": "esnext",
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"noFallthroughCasesInSwitch": true,
|
|
10
|
+
"noUnusedLocals": true,
|
|
11
|
+
"noUnusedParameters": true,
|
|
12
|
+
"outDir": "dist/esm",
|
|
13
|
+
"pretty": true,
|
|
14
|
+
"sourceMap": true,
|
|
15
|
+
"strict": true,
|
|
16
|
+
"target": "es2017"
|
|
17
|
+
},
|
|
18
|
+
"files": ["src/index.ts"]
|
|
19
|
+
}
|