Skip to content

Commit bb02a2d

Browse files
authored
chore(plugin): move to project root (#75)
1 parent ae1d472 commit bb02a2d

132 files changed

Lines changed: 2557 additions & 602 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/prepare-example-app/action.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,17 @@ runs:
55
using: 'composite'
66
steps:
77
- name: 'Build plugin'
8-
working-directory: ./packages/capacitor-plugin
98
shell: bash
109
run: npm run build
1110
- name: 'Install example app dependencies'
12-
working-directory: ./packages/example-app-capacitor
11+
working-directory: ./example-app
1312
shell: bash
1413
run: npm i
1514
- name: 'Build Web example app'
16-
working-directory: ./packages/example-app-capacitor
15+
working-directory: ./example-app
1716
shell: bash
1817
run: npm run build
1918
- name: 'Sync example app native platforms'
20-
working-directory: ./packages/example-app-capacitor
19+
working-directory: ./example-app
2120
shell: bash
22-
run: npx cap sync
21+
run: npx cap sync

.github/actions/setup-tools/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ runs:
1313
shell: bash
1414
run: npm install -g npm@latest
1515
- name: Install dependencies
16-
working-directory: ./packages/capacitor-plugin
1716
shell: bash
18-
run: npm i
17+
run: npm i

.github/workflows/continuous_integration.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
- name: 'Setup Tools'
2626
uses: ./.github/actions/setup-tools
2727
- name: 'Verify Android'
28-
working-directory: ./packages/capacitor-plugin
2928
run: npm run verify:android
3029

3130
verify-plugin-ios:
@@ -37,7 +36,6 @@ jobs:
3736
- name: 'Setup Tools'
3837
uses: ./.github/actions/setup-tools
3938
- name: 'Verify iOS'
40-
working-directory: ./packages/capacitor-plugin
4139
run: npm run verify:ios
4240

4341
build-example-app-android:
@@ -51,7 +49,7 @@ jobs:
5149
- name: 'Prepare example app'
5250
uses: ./.github/actions/prepare-example-app
5351
- name: 'Build Android example app'
54-
working-directory: ./packages/example-app-capacitor/android
52+
working-directory: ./example-app/android
5553
run: ./gradlew clean assembleDebug
5654

5755
build-example-app-ios:
@@ -65,5 +63,5 @@ jobs:
6563
- name: 'Prepare example app'
6664
uses: ./.github/actions/prepare-example-app
6765
- name: 'Build iOS example app'
68-
working-directory: ./packages/example-app-capacitor/ios/App
69-
run: xcodebuild clean build -workspace App.xcworkspace -scheme App CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
66+
working-directory: ./example-app/ios/App
67+
run: xcodebuild clean build -workspace App.xcworkspace -scheme App CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

.github/workflows/publish_pod.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,3 @@ jobs:
3535
npm run publish:cocoapod
3636
env:
3737
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
38-
working-directory: ./packages/capacitor-plugin

.github/workflows/release_plugin.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
4343
- name: 'Setup Tools'
4444
uses: ./.github/actions/setup-tools
4545
- name: Release
46-
working-directory: ./packages/capacitor-plugin
4746
env:
4847
GITHUB_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
4948
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}

.github/workflows/reusable_build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@ jobs:
2323
run: cp README.md README.md.original
2424

2525
- name: 'Build Packages'
26-
working-directory: ./packages/capacitor-plugin
2726
run: npm run build
2827

2928
- name: 'Check README.md changes'
30-
working-directory: ./packages/capacitor-plugin
3129
run: |
32-
if ! cmp --silent README.md ../../README.md.original; then
30+
if ! cmp --silent README.md README.md.original; then
3331
echo "Detected README.md changes; Do 'npm run build' to update the docs."
3432
exit 1
35-
fi
33+
fi

.github/workflows/reusable_lint.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ jobs:
1919
uses: ./.github/actions/setup-tools
2020

2121
- name: 'Lint Packages'
22-
working-directory: ./packages/capacitor-plugin
23-
run: npm run lint
22+
run: npm run lint

.gitignore

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,70 @@
11
# node files
2+
dist
23
node_modules
34

45
# iOS files
6+
Pods
7+
Podfile.lock
58
Package.resolved
6-
.build
9+
Build
10+
xcuserdata
11+
/.build
12+
/Packages
13+
xcuserdata/
14+
DerivedData/
15+
.swiftpm/configuration/registries.json
16+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
17+
.netrc
18+
19+
20+
# macOS files
21+
.DS_Store
22+
23+
24+
25+
# Based on Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
26+
27+
# Built application files
28+
*.apk
29+
*.ap_
30+
31+
# Files for the ART/Dalvik VM
32+
*.dex
33+
34+
# Java class files
35+
*.class
36+
37+
# Generated files
38+
bin
39+
gen
40+
out
41+
42+
# Gradle files
43+
.gradle
44+
build
45+
46+
# Local configuration file (sdk path, etc)
47+
local.properties
48+
49+
# Proguard folder generated by Eclipse
50+
proguard
51+
52+
# Log Files
53+
*.log
54+
55+
# Android Studio Navigation editor temp files
56+
.navigation
57+
58+
# Android Studio captures folder
59+
captures
60+
61+
# IntelliJ
62+
*.iml
63+
.idea
64+
65+
# Keystore files
66+
# Uncomment the following line if you do not want to check your keystore files in.
67+
#*.jks
68+
69+
# External native build folder generated in Android Studio 2.2 and later
70+
.externalNativeBuild

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package-lock=false
2+
provenance=true

0 commit comments

Comments
 (0)