@capgo/native-market 7.0.0 → 7.1.6
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 +502 -0
- package/CapgoNativeMarket.podspec +1 -1
- package/PLUGIN_AUTHOR_README.md +51 -0
- package/README.md +8 -24
- package/android/build.gradle +7 -7
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +2 -1
- package/android/gradlew +21 -13
- package/android/gradlew.bat +12 -10
- package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +1 -2
- 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/esm/web.d.ts +5 -5
- package/dist/esm/web.js +10 -10
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +10 -10
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +10 -10
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/Plugin.swift +31 -12
- package/ios/Plugin.xcodeproj/project.pbxproj +4 -12
- package/ios/Plugin.xcworkspace/contents.xcworkspacedata +10 -0
- package/ios/PluginTests/PluginTests.swift +0 -10
- package/ios/Podfile +1 -1
- package/java_code_style.xml +24 -0
- package/package.json +46 -51
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
github: riderx
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
name: 🚨 Bug report
|
|
2
|
+
title: "bug: "
|
|
3
|
+
description: Create a bug report to help us improve
|
|
4
|
+
labels: ["bug/fix", "needs: triage"]
|
|
5
|
+
|
|
6
|
+
body:
|
|
7
|
+
- type: input
|
|
8
|
+
attributes:
|
|
9
|
+
label: Version
|
|
10
|
+
description: |
|
|
11
|
+
Let us know the version number of each affected plugin. Please make sure you are using the latest version before reporting an issue. Chances are that the bug you discovered has already been fixed in a subsequent version.
|
|
12
|
+
placeholder: 6.0.0
|
|
13
|
+
validations:
|
|
14
|
+
required: true
|
|
15
|
+
- type: checkboxes
|
|
16
|
+
attributes:
|
|
17
|
+
label: Platform(s)
|
|
18
|
+
description: Select the platforms that this bug affects.
|
|
19
|
+
options:
|
|
20
|
+
- label: Android
|
|
21
|
+
- label: iOS
|
|
22
|
+
- label: Web
|
|
23
|
+
- type: textarea
|
|
24
|
+
attributes:
|
|
25
|
+
label: Current behavior
|
|
26
|
+
description: A concise description of what you're experiencing.
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
|
29
|
+
- type: textarea
|
|
30
|
+
attributes:
|
|
31
|
+
label: Expected behavior
|
|
32
|
+
description: A concise description of what you expected to happen.
|
|
33
|
+
validations:
|
|
34
|
+
required: true
|
|
35
|
+
- type: input
|
|
36
|
+
attributes:
|
|
37
|
+
label: Reproduction
|
|
38
|
+
description: |
|
|
39
|
+
Please provide a [Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) in a public GitHub repository so that we can debug the issue.
|
|
40
|
+
We have prepared a template repository that you can use: [Cap-go/.capacitor-app](https://github.com/Cap-go/.capacitor-app).
|
|
41
|
+
placeholder: https://github.com/...
|
|
42
|
+
validations:
|
|
43
|
+
required: false
|
|
44
|
+
- type: textarea
|
|
45
|
+
attributes:
|
|
46
|
+
label: Steps to reproduce
|
|
47
|
+
description: Steps to reproduce the behaviour using the provided example.
|
|
48
|
+
placeholder: |
|
|
49
|
+
1. In this environment...
|
|
50
|
+
2. With this config...
|
|
51
|
+
3. Run '...'
|
|
52
|
+
4. See error...
|
|
53
|
+
validations:
|
|
54
|
+
required: true
|
|
55
|
+
- type: textarea
|
|
56
|
+
attributes:
|
|
57
|
+
label: Other information
|
|
58
|
+
description: List any other information that is relevant to your issue. Device information, stack traces, screenshots, related issues, etc.
|
|
59
|
+
- type: textarea
|
|
60
|
+
attributes:
|
|
61
|
+
label: Capacitor doctor
|
|
62
|
+
description: Run `npx cap doctor` in a terminal and paste the output below.
|
|
63
|
+
validations:
|
|
64
|
+
required: true
|
|
65
|
+
- type: checkboxes
|
|
66
|
+
attributes:
|
|
67
|
+
label: Before submitting
|
|
68
|
+
description: |
|
|
69
|
+
A well-written bug report allows the maintainers to quickly recreate the necessary conditions to inspect the bug and quickly find its root cause.
|
|
70
|
+
Please ensure your bug report fulfills all of the following requirements.
|
|
71
|
+
options:
|
|
72
|
+
- label: I have read and followed the [bug report guidelines](https://capawesome.io/contributing/bug-reports/).
|
|
73
|
+
required: true
|
|
74
|
+
- label: I have attached links to possibly related issues and discussions.
|
|
75
|
+
required: true
|
|
76
|
+
- label: I understand that incomplete issues (e.g. without reproduction) are closed.
|
|
77
|
+
required: true
|
|
78
|
+
- type: checkboxes
|
|
79
|
+
attributes:
|
|
80
|
+
label: Fastest way to fix this issue
|
|
81
|
+
description: |
|
|
82
|
+
Founding is a great way to get your issue fixed fast. This make community contributions more likely to happen and discharge the maintainers from the burden of being the only one fixing all issues.
|
|
83
|
+
options:
|
|
84
|
+
- label: I want to get this fix ASAP and [found the issue with Algora](https://console.algora.io/org/gl/bounties/community?fund=Cap-go%2Fcapacitor-inappbrowser) we recommend ($50 to $500)
|
|
85
|
+
required: false
|
|
86
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: ⚡️ Feature request
|
|
2
|
+
title: "feat: "
|
|
3
|
+
description: Suggest an idea for this project
|
|
4
|
+
labels: ["feature", "needs: triage"]
|
|
5
|
+
|
|
6
|
+
body:
|
|
7
|
+
- type: textarea
|
|
8
|
+
attributes:
|
|
9
|
+
label: Current problem
|
|
10
|
+
description: A clear and concise description of what the problem is.
|
|
11
|
+
placeholder: I'm always frustrated when [...]
|
|
12
|
+
validations:
|
|
13
|
+
required: true
|
|
14
|
+
- type: textarea
|
|
15
|
+
attributes:
|
|
16
|
+
label: Preferred solution
|
|
17
|
+
description: A clear and concise description of what you want to happen.
|
|
18
|
+
validations:
|
|
19
|
+
required: true
|
|
20
|
+
- type: textarea
|
|
21
|
+
attributes:
|
|
22
|
+
label: Alternative options
|
|
23
|
+
description: A clear and concise description of any alternative solutions or features you've considered.
|
|
24
|
+
- type: textarea
|
|
25
|
+
attributes:
|
|
26
|
+
label: Additional context
|
|
27
|
+
description: Add any other context or screenshots about the feature request here.
|
|
28
|
+
- type: checkboxes
|
|
29
|
+
attributes:
|
|
30
|
+
label: Before submitting
|
|
31
|
+
description: |
|
|
32
|
+
Please ensure your idea fulfills all of the following requirements.
|
|
33
|
+
options:
|
|
34
|
+
- label: I have read and followed the [feature request guidelines](https://capawesome.io/contributing/feature-requests/).
|
|
35
|
+
required: true
|
|
36
|
+
- label: I have attached links to possibly related issues and discussions.
|
|
37
|
+
required: true
|
|
38
|
+
- type: checkboxes
|
|
39
|
+
attributes:
|
|
40
|
+
label: Fastest way to get this feature added
|
|
41
|
+
description: |
|
|
42
|
+
Founding is a great way to get your feature added fast. This make community contributions more likely to happen and discharge the maintainers from the burden of being the only one adding features.
|
|
43
|
+
options:
|
|
44
|
+
- label: I want to get this feature ASAP and [found the issue with Algora](https://console.algora.io/org/gl/bounties/community?fund=Cap-go%2Fcapacitor-inappbrowser) we recommend ($100 to $1000)
|
|
45
|
+
required: false
|
|
@@ -0,0 +1,23 @@
|
|
|
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@v4
|
|
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@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
name: Build source code and check lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build_android:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- name: Check out
|
|
13
|
+
uses: actions/checkout@v4
|
|
14
|
+
- uses: oven-sh/setup-bun@v2
|
|
15
|
+
- name: Install dependencies
|
|
16
|
+
id: install_code
|
|
17
|
+
run: bun i
|
|
18
|
+
- name: Setup java
|
|
19
|
+
uses: actions/setup-java@v4
|
|
20
|
+
with:
|
|
21
|
+
distribution: 'zulu'
|
|
22
|
+
java-version: '21'
|
|
23
|
+
cache: 'gradle'
|
|
24
|
+
cache-dependency-path: | # optional
|
|
25
|
+
android/.gradle/*.gradle*
|
|
26
|
+
android/**/gradle-wrapper.properties
|
|
27
|
+
- name: Build
|
|
28
|
+
id: build_code
|
|
29
|
+
run: npm run verify:android
|
|
30
|
+
build_ios:
|
|
31
|
+
runs-on: macOS-latest
|
|
32
|
+
steps:
|
|
33
|
+
- name: Check out
|
|
34
|
+
uses: actions/checkout@v4
|
|
35
|
+
- uses: oven-sh/setup-bun@v2
|
|
36
|
+
- uses: actions/cache@v4
|
|
37
|
+
id: cocoapods-cache
|
|
38
|
+
with:
|
|
39
|
+
path: ios/Pods
|
|
40
|
+
key: ${{ runner.os }}-pods-${{ hashFiles('ios/Podfile.lock') }}
|
|
41
|
+
restore-keys: |
|
|
42
|
+
${{ runner.os }}-pods-
|
|
43
|
+
- name: Install dependencies
|
|
44
|
+
id: install_code
|
|
45
|
+
run: bun i
|
|
46
|
+
- name: Build
|
|
47
|
+
id: build_code
|
|
48
|
+
run: bun run verify:ios
|
|
49
|
+
deploy:
|
|
50
|
+
needs: [build_android, build_ios]
|
|
51
|
+
runs-on: ubuntu-latest
|
|
52
|
+
name: "Build code and npm release"
|
|
53
|
+
permissions:
|
|
54
|
+
contents: read
|
|
55
|
+
id-token: write
|
|
56
|
+
steps:
|
|
57
|
+
- name: Check out
|
|
58
|
+
uses: actions/checkout@v4
|
|
59
|
+
- uses: oven-sh/setup-bun@v2
|
|
60
|
+
- name: Install dependencies
|
|
61
|
+
id: install_code
|
|
62
|
+
run: bun i
|
|
63
|
+
- name: Lint
|
|
64
|
+
id: lint_code
|
|
65
|
+
run: bun run lint
|
|
66
|
+
- name: Build
|
|
67
|
+
id: build_code
|
|
68
|
+
run: bun run build
|
|
69
|
+
- name: Verify
|
|
70
|
+
id: verify_code
|
|
71
|
+
run: bun run verify:web
|
|
72
|
+
- uses: JS-DevTools/npm-publish@v3
|
|
73
|
+
if: ${{ !contains(github.ref, '-alpha.') }}
|
|
74
|
+
with:
|
|
75
|
+
token: ${{ secrets.NPM_TOKEN }}
|
|
76
|
+
provenance: true
|
|
77
|
+
- uses: JS-DevTools/npm-publish@v3
|
|
78
|
+
if: ${{ contains(github.ref, '-alpha.') }}
|
|
79
|
+
with:
|
|
80
|
+
token: ${{ secrets.NPM_TOKEN }}
|
|
81
|
+
tag: next
|
|
82
|
+
provenance: true
|
|
@@ -0,0 +1,57 @@
|
|
|
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@v4
|
|
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@v4
|
|
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
|
|
@@ -0,0 +1,58 @@
|
|
|
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@v4
|
|
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@v4
|
|
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@v4
|
|
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@v4
|
|
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
ADDED