@capgo/native-market 7.1.8 → 7.1.10

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.
Files changed (41) hide show
  1. package/CapgoNativeMarket.podspec +16 -12
  2. package/Package.swift +28 -0
  3. package/ios/Tests/NativeMarketPluginTests/NativeMarketPluginTests.swift +20 -0
  4. package/package.json +12 -3
  5. package/.eslintignore +0 -5
  6. package/.github/FUNDING.yml +0 -1
  7. package/.github/ISSUE_TEMPLATE/bug-report.md +0 -84
  8. package/.github/ISSUE_TEMPLATE/feature-request.md +0 -41
  9. package/.github/workflows/autofix.yml +0 -23
  10. package/.github/workflows/build.yml +0 -106
  11. package/.github/workflows/bump_version.yml +0 -57
  12. package/.github/workflows/test.yml +0 -58
  13. package/.prettierrc.js +0 -3
  14. package/CHANGELOG.md +0 -506
  15. package/PLUGIN_AUTHOR_README.md +0 -51
  16. package/android/.classpath +0 -6
  17. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  18. package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  19. package/android/gradle.properties +0 -20
  20. package/android/gradlew +0 -252
  21. package/android/gradlew.bat +0 -94
  22. package/android/proguard-rules.pro +0 -21
  23. package/android/settings.gradle +0 -2
  24. package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +0 -27
  25. package/android/src/test/java/com/getcapacitor/ExampleUnitTest.java +0 -18
  26. package/bun.lock +0 -820
  27. package/ios/Plugin/Info.plist +0 -24
  28. package/ios/Plugin.xcodeproj/project.pbxproj +0 -548
  29. package/ios/Plugin.xcworkspace/contents.xcworkspacedata +0 -10
  30. package/ios/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  31. package/ios/PluginTests/Info.plist +0 -22
  32. package/ios/PluginTests/PluginTests.swift +0 -25
  33. package/ios/Podfile +0 -16
  34. package/java_code_style.xml +0 -24
  35. package/renovate.json +0 -48
  36. package/rollup.config.mjs +0 -22
  37. package/src/definitions.ts +0 -58
  38. package/src/index.ts +0 -10
  39. package/src/web.ts +0 -28
  40. package/tsconfig.json +0 -19
  41. /package/ios/{Plugin/Plugin.swift → Sources/NativeMarketPlugin/NativeMarketPlugin.swift} +0 -0
@@ -1,13 +1,17 @@
1
+ require 'json'
1
2
 
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 = '14.0'
12
- s.dependency 'Capacitor'
13
- end
3
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = 'CapgoNativeMarket'
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.license = package['license']
10
+ s.homepage = package['repository']['url']
11
+ s.author = package['author']
12
+ s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
+ s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
+ s.ios.deployment_target = '14.0'
15
+ s.dependency 'Capacitor'
16
+ s.swift_version = '5.1'
17
+ end
package/Package.swift ADDED
@@ -0,0 +1,28 @@
1
+ // swift-tools-version: 5.9
2
+ import PackageDescription
3
+
4
+ let package = Package(
5
+ name: "CapgoNativeMarket",
6
+ platforms: [.iOS(.v14)],
7
+ products: [
8
+ .library(
9
+ name: "CapgoNativeMarket",
10
+ targets: ["NativeMarketPlugin"])
11
+ ],
12
+ dependencies: [
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0")
14
+ ],
15
+ targets: [
16
+ .target(
17
+ name: "NativeMarketPlugin",
18
+ dependencies: [
19
+ .product(name: "Capacitor", package: "capacitor-swift-pm"),
20
+ .product(name: "Cordova", package: "capacitor-swift-pm")
21
+ ],
22
+ path: "ios/Sources/NativeMarketPlugin"),
23
+ .testTarget(
24
+ name: "NativeMarketPluginTests",
25
+ dependencies: ["NativeMarketPlugin"],
26
+ path: "ios/Tests/NativeMarketPluginTests")
27
+ ]
28
+ )
@@ -0,0 +1,20 @@
1
+ import XCTest
2
+ @testable import NativeMarketPlugin
3
+
4
+ final class NativeMarketPluginTests: XCTestCase {
5
+ func testApiResultDecoding() throws {
6
+ let payload = """
7
+ {
8
+ "resultCount": 1,
9
+ "results": [
10
+ { "trackId": 42 }
11
+ ]
12
+ }
13
+ """.data(using: .utf8)!
14
+
15
+ let decoded = try JSONDecoder().decode(APIResult.self, from: payload)
16
+
17
+ XCTAssertEqual(decoded.resultCount, 1)
18
+ XCTAssertEqual(decoded.apps.first?.trackId, 42)
19
+ }
20
+ }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@capgo/native-market",
3
- "version": "7.1.8",
3
+ "version": "7.1.10",
4
4
  "description": "A native market plugin for linking to google play or app store.",
5
5
  "module": "dist/esm/index.js",
6
- "main": "dist/esm/index.js",
6
+ "main": "dist/plugin.cjs.js",
7
7
  "types": "dist/esm/index.d.ts",
8
8
  "author": "Martin Donadieu <martin@capgo.app>",
9
9
  "license": "MIT",
@@ -21,9 +21,18 @@
21
21
  "google play",
22
22
  "app store"
23
23
  ],
24
+ "files": [
25
+ "android/src/main/",
26
+ "android/build.gradle",
27
+ "dist/",
28
+ "ios/Sources",
29
+ "ios/Tests",
30
+ "Package.swift",
31
+ "CapgoNativeMarket.podspec"
32
+ ],
24
33
  "scripts": {
25
34
  "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
26
- "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -sdk iphoneos -scheme Plugin && cd ..",
35
+ "verify:ios": "xcodebuild -scheme CapgoNativeMarket -destination generic/platform=iOS",
27
36
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
28
37
  "verify:web": "npm run build",
29
38
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
package/.eslintignore DELETED
@@ -1,5 +0,0 @@
1
- build
2
- dist
3
- example
4
- examples
5
- docs
@@ -1 +0,0 @@
1
- github: riderx
@@ -1,84 +0,0 @@
1
- ---
2
- name: 🚨 Bug Report
3
- about: Report something not working
4
- title: 'bug: '
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- ## Bug Report
11
-
12
- ### Capacitor Version
13
- <!--
14
- Paste the output from the `npx cap doctor` command into the code block below. This will provide the versions of Capacitor packages and related dependencies.
15
- -->
16
-
17
- ```
18
- PASTE OUTPUT HERE
19
- ```
20
-
21
- ### Plugin Version
22
- <!--
23
- Paste the output from the `npx @capgo/cli@latest doctor` command into the code block below. This will provide the versions of Capacitor updater package.
24
- -->
25
- ```
26
- PASTE OUTPUT HERE
27
- ```
28
-
29
- ### context(s)
30
- <!--
31
- Please change the value acording to your context
32
- -->
33
- ```md
34
- ManualModel: false
35
- AutoMode: false
36
- CapgoCloud: false
37
- OnPremise: false
38
- ```
39
-
40
- ### Platform(s)
41
- <!--
42
- List the platforms that this bug affects.
43
- -->
44
-
45
-
46
-
47
- ### Current Behavior
48
- <!--
49
- Describe how the bug manifests. Be specific.
50
- -->
51
-
52
-
53
-
54
- ### Expected Behavior
55
- <!--
56
- Describe what the behavior should be.
57
- -->
58
-
59
-
60
-
61
- ### Code Reproduction
62
- <!--
63
- To isolate the cause of the problem, we ask you to provide a minimal sample application that demonstrates the issue.
64
- For full instructions, see: https://github.com/ionic-team/capacitor/blob/HEAD/CONTRIBUTING.md#creating-a-code-reproduction
65
- -->
66
-
67
-
68
-
69
- ### Other Technical Details
70
- <!--
71
- Please provide the following information with your request and any other relevant technical details (versions of IDEs, local environment info, plugin information or links, etc).
72
- -->
73
-
74
- `npm --version` output:
75
-
76
- `node --version` output:
77
-
78
- `pod --version` output (iOS issues only):
79
-
80
- ### Additional Context
81
- <!--
82
- List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc.
83
- -->
84
-
@@ -1,41 +0,0 @@
1
- ---
2
- name: ⚡️ Feature Request
3
- about: Request a feature or change
4
- title: 'feat: '
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- ## Feature Request
11
-
12
- ### Description
13
- <!--
14
- Describe the feature request. If your feature request is related to a problem, be sure to describe that as well.
15
- -->
16
-
17
-
18
-
19
- ### Platform(s)
20
- <!--
21
- List the platforms for which this feature should be added.
22
- -->
23
-
24
-
25
-
26
- ### Preferred Solution
27
- <!-- Describe the solution you would prefer. -->
28
-
29
-
30
-
31
- ### Alternatives
32
- <!-- Describe alternative solutions or features you've considered, if any. -->
33
-
34
-
35
-
36
- ### Additional Context
37
- <!--
38
- List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc.
39
- -->
40
-
41
-
@@ -1,23 +0,0 @@
1
- name: autofix.ci # needed to securely identify the workflow
2
-
3
- on:
4
- pull_request:
5
- permissions:
6
- contents: read
7
-
8
- jobs:
9
- autofix:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - name: Checkout
13
- uses: actions/checkout@v5
14
- - name: Setup bun
15
- uses: oven-sh/setup-bun@v2
16
- with:
17
- bun-version: latest
18
- - name: Install dependencies
19
- run: bun install
20
- - name: Lint
21
- id: lint_code
22
- run: npm run fmt
23
- - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
@@ -1,106 +0,0 @@
1
- name: Build source code and check lint
2
-
3
- concurrency:
4
- group: ${{ github.workflow }}-${{ github.ref }}
5
- cancel-in-progress: true
6
-
7
- on:
8
- push:
9
- tags:
10
- - "*"
11
-
12
- jobs:
13
- lint:
14
- runs-on: ubuntu-latest
15
- steps:
16
- - name: Check out
17
- uses: actions/checkout@v5
18
- - uses: oven-sh/setup-bun@v2
19
- - name: Install dependencies
20
- id: install_code
21
- run: bun i
22
- - name: Lint
23
- id: lint_code
24
- run: bun run lint
25
- - name: Build
26
- id: build_code
27
- run: bun run build
28
- - name: Verify
29
- id: verify_code
30
- run: bun run verify:web
31
- build_android:
32
- needs: lint
33
- runs-on: ubuntu-latest
34
- steps:
35
- - name: Check out
36
- uses: actions/checkout@v5
37
- - uses: oven-sh/setup-bun@v2
38
- - name: Install dependencies
39
- id: install_code
40
- run: bun i
41
- - name: Setup java
42
- uses: actions/setup-java@v5
43
- with:
44
- distribution: 'zulu'
45
- java-version: '21'
46
- cache: 'gradle'
47
- cache-dependency-path: | # optional
48
- android/.gradle/*.gradle*
49
- android/**/gradle-wrapper.properties
50
- - name: Build
51
- id: build_code
52
- run: npm run verify:android
53
- build_ios:
54
- needs: lint
55
- runs-on: macOS-latest
56
- steps:
57
- - name: Check out
58
- uses: actions/checkout@v5
59
- - uses: oven-sh/setup-bun@v2
60
- - uses: actions/cache@v4
61
- id: cocoapods-cache
62
- with:
63
- path: ios/Pods
64
- key: ${{ runner.os }}-pods-${{ hashFiles('ios/Podfile.lock') }}
65
- restore-keys: |
66
- ${{ runner.os }}-pods-
67
- - name: Install dependencies
68
- id: install_code
69
- run: bun i
70
- - name: Build
71
- id: build_code
72
- run: bun run verify:ios
73
- deploy:
74
- needs: [build_android, build_ios]
75
- runs-on: ubuntu-latest
76
- name: "Build code and npm release"
77
- permissions:
78
- contents: write
79
- id-token: write
80
- steps:
81
- - name: Check out
82
- uses: actions/checkout@v5
83
- - uses: oven-sh/setup-bun@v2
84
- - name: Install dependencies
85
- id: install_code
86
- run: bun i
87
- - name: Build
88
- id: build_code
89
- run: bun run build
90
- - uses: JS-DevTools/npm-publish@v3
91
- if: ${{ !contains(github.ref, '-alpha.') }}
92
- with:
93
- token: ${{ secrets.NPM_TOKEN }}
94
- provenance: true
95
- - uses: JS-DevTools/npm-publish@v3
96
- if: ${{ contains(github.ref, '-alpha.') }}
97
- with:
98
- token: ${{ secrets.NPM_TOKEN }}
99
- tag: next
100
- provenance: true
101
- - name: Create GitHub release
102
- id: create_release
103
- uses: softprops/action-gh-release@v2
104
- with:
105
- generate_release_notes: true
106
- prerelease: ${{ contains(github.ref, '-alpha.') }}
@@ -1,57 +0,0 @@
1
- name: Bump version
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- - development
8
-
9
- jobs:
10
- bump-version:
11
- if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
12
- runs-on: ubuntu-latest
13
- name: "Bump version and create changelog with standard version"
14
- steps:
15
- - name: Check out
16
- uses: actions/checkout@v5
17
- with:
18
- fetch-depth: 0
19
- token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
20
- - uses: oven-sh/setup-bun@v2
21
- - name: Install dependencies
22
- id: install_code
23
- run: bun i
24
- - name: Git config
25
- run: |
26
- git config --local user.name "github-actions[bot]"
27
- git config --local user.email "github-actions[bot]@users.noreply.github.com"
28
- - name: Update Doc
29
- run: bun run docgen
30
- - name: Add doc to github
31
- run: |
32
- git add README.md
33
- git commit --m "docs: update doc" || true
34
- - name: Create bump and changelog main
35
- if: github.ref == 'refs/heads/main'
36
- run: bunx capacitor-plugin-standard-version@latest
37
- - name: Create bump and changelog development
38
- if: github.ref != 'refs/heads/main'
39
- run: bunx capacitor-plugin-standard-version@latest --prerelease alpha
40
- - name: Push to origin
41
- run: |
42
- CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
43
- remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
44
- git pull $remote_repo $CURRENT_BRANCH
45
- git push $remote_repo HEAD:$CURRENT_BRANCH --follow-tags --tags
46
- create-cache:
47
- if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
48
- runs-on: ubuntu-latest
49
- name: "Create global cache on main branch"
50
- steps:
51
- - uses: actions/checkout@v5
52
- - uses: oven-sh/setup-bun@v2
53
- - name: Install dependencies
54
- id: install_code
55
- run: bun i
56
- - name: CLI capacitor-standard-version install
57
- run: bunx capacitor-standard-version@latest --version
@@ -1,58 +0,0 @@
1
- name: Build source code and test it
2
-
3
- on:
4
- push:
5
- branches:
6
- - renovate/**
7
- pull_request:
8
- branches: [ main ]
9
-
10
- jobs:
11
- build_android:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - name: Check out
15
- uses: actions/checkout@v5
16
- - uses: oven-sh/setup-bun@v2
17
- - name: Install dependencies
18
- id: install_code
19
- run: bun i
20
- - name: Setup java
21
- uses: actions/setup-java@v5
22
- with:
23
- distribution: 'zulu'
24
- java-version: '21'
25
- - name: Build
26
- id: build_code
27
- run: npm run verify:android
28
- build_ios:
29
- runs-on: macOS-latest
30
- steps:
31
- - name: Check out
32
- uses: actions/checkout@v5
33
- - uses: oven-sh/setup-bun@v2
34
- - name: Install dependencies
35
- id: install_code
36
- run: bun i
37
- - name: Build
38
- id: build_code
39
- run: bun run verify:ios
40
- web:
41
- runs-on: ubuntu-latest
42
- name: 'Build code and test'
43
- steps:
44
- - name: Check out
45
- uses: actions/checkout@v5
46
- - uses: oven-sh/setup-bun@v2
47
- - name: Install dependencies
48
- id: install_code
49
- run: bun i
50
- - name: Lint
51
- id: lint_code
52
- run: bun run lint
53
- - name: Build
54
- id: build_code
55
- run: bun run build
56
- - name: Verify
57
- id: verify_code
58
- run: bun run verify:web
package/.prettierrc.js DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- plugins: [require.resolve("prettier-plugin-java")],
3
- };