Skip to content

Commit

Permalink
Merge branch 'ios-location-aware-camera' of https://github.com/werkto…
Browse files Browse the repository at this point in the history
…ols/capacitor-plugins into ios-location-aware-camera

* 'ios-location-aware-camera' of https://github.com/werktools/capacitor-plugins: (24 commits)
  fix(keyboard): distribute the new SPM files (ionic-team#1895)
  chore: only lint plugins that changed (ionic-team#1880)
  feat(google-maps)!: Update iOS dependencies (ionic-team#1890)
  chore: update Podfile paths (ionic-team#1891)
  chore(ios): fix verify script (ionic-team#1892)
  chore(release): publish [skip ci]
  docs(README): Update note for Capacitor 6 (ionic-team#1883)
  chore: update dependencies to use next tag (ionic-team#1889)
  chore: bump version to 6.0.0-alpha.0 (ionic-team#1888)
  feat(app,haptics,status-bar,keyboard): Supporting Swift Package Manager (ionic-team#1886)
  chore(android): upgrade gradle wrapper and plugin to 8.2.x (ionic-team#1885)
  refactor(ios): remove removeAllListeners methods (ionic-team#1867)
  feat(camera)!: Use Android Photo Picker instead of ACTION_PICK intent (ionic-team#1833)
  fix(share): Address Android 14 changes (ionic-team#1849)
  chore: Remove lerna bootstrap form scripts (ionic-team#1875)
  chore: fix toggle-local npm script (ionic-team#1847)
  feat(filesystem): add removeAllListeners method (ionic-team#1862)
  docs(google-maps/geolocation)!: Removing deprecated usage descriptions for iOS (ionic-team#1855)
  chore: use the new addListener return type (ionic-team#1846)
  chore: ci release dev for non-draft PR's (ionic-team#1854)
  ...
  • Loading branch information
NetEvolutions committed Jan 30, 2024
2 parents 6788a68 + e9119b1 commit b2de2c4
Show file tree
Hide file tree
Showing 294 changed files with 1,879 additions and 8,305 deletions.
33 changes: 32 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,39 @@ jobs:
with:
files: ${{ steps.catjson.outputs.FILES_JSON }}

lint-scripts:
runs-on: macos-13
timeout-minutes: 30
needs:
- setup
steps:
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: NPM ^9.5.0
run: npm i -g npm@^9.5.0 --registry=https://registry.npmjs.org
- uses: actions/checkout@v3
- name: Restore Dependency Cache
id: cache-modules
uses: actions/cache@v3
with:
path: |
node_modules
*/node_modules
key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }}
- run: npm install
- run: npm run lint

lint:
runs-on: macos-13
timeout-minutes: 30
needs:
- setup
- lint-scripts
if: needs.setup.outputs.plugins != '[]'
strategy:
matrix:
plugin: ${{ fromJson(needs.setup.outputs.plugins) }}
steps:
- uses: actions/setup-node@v3
with:
Expand All @@ -72,6 +100,7 @@ jobs:
key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }}
- run: npm install
- run: npm run lint
working-directory: ${{ matrix.plugin }}

verify-ios:
runs-on: macos-13
Expand All @@ -80,6 +109,7 @@ jobs:
needs:
- setup
- lint
- lint-scripts
strategy:
matrix:
xcode:
Expand All @@ -102,7 +132,6 @@ jobs:
*/node_modules
key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }}
- run: npm install
- run: npm run set-podfiles-for-monorepo
- run: npm run verify:ios
working-directory: ${{ matrix.plugin }}

Expand All @@ -113,6 +142,7 @@ jobs:
needs:
- setup
- lint
- lint-scripts
strategy:
matrix:
plugin: ${{ fromJson(needs.setup.outputs.plugins) }}
Expand Down Expand Up @@ -148,6 +178,7 @@ jobs:
needs:
- setup
- lint
- lint-scripts
strategy:
matrix:
plugin: ${{ fromJson(needs.setup.outputs.plugins) }}
Expand Down
86 changes: 86 additions & 0 deletions .github/workflows/dev-releases-for-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Release Dev Build for PR

on:
pull_request:
types:
- opened
- synchronize

jobs:
setup:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 30
outputs:
plugins: ${{ steps.packages.outputs.paths }}
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@ce177499ccf9fd2aded3b0426c97e5434c2e8a73
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Get Latest
uses: actions/setup-node@v3
with:
node-version: 18.18.0
- uses: actions/checkout@v3
- name: Restore Dependency Cache
id: cache-modules
uses: actions/cache@v3
with:
path: |
node_modules
*/node_modules
key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }}
- run: npm install
- id: files
uses: tj-actions/changed-files@v37
with:
json: true
write_output_files: true
- id: catjson
run: |
echo "FILES_JSON=$(cat .github/outputs/all_changed_files.json)" >> $GITHUB_OUTPUT
- id: packages
uses: ./.github/actions/changed-packages
with:
files: ${{ steps.catjson.outputs.FILES_JSON }}

release-dev-of-plugins:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
pull-requests: write
needs:
- setup
strategy:
matrix:
plugin: ${{ fromJson(needs.setup.outputs.plugins) }}
steps:
- uses: actions/setup-node@v3
with:
node-version: 18.18.0
- uses: actions/checkout@v3
- name: Restore Dependency Cache
id: cache-modules
uses: actions/cache@v3
with:
path: |
node_modules
*/node_modules
key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }}
- run: npm install
- env:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
npm version prerelease --no-git-tag-version -f --preid dev-$PR_NUMBER-$(date +%Y%m%dT%H%M%S)
npm publish --tag dev --dry-run
working-directory: ${{ matrix.plugin }}
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
with:
path: ${{ matrix.plugin }}
- uses: mshick/add-pr-comment@v2
with:
message: |
Released dev build of ${{ matrix.plugin }} with dev version: ${{ steps.package-version.outputs.current-version }}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

This repository contains the official Capacitor plugins maintained by the Capacitor team. You can find more plugins in the [Capacitor Community](https://github.com/capacitor-community/).

> ### :rotating_light: These plugins are for Capacitor 5 :rotating_light:
> ### :rotating_light: These plugins are for Capacitor 6 :rotating_light:
>
> Capacitor 2 core plugins are bundled with Capacitor itself.
>
> For Capacitor 3, use the 1.x version of the plugins.
> For Capacitor 4, use the 4.x version of the plugins.
> For Capacitor 5, use the 5.x version of the plugins.
## Plugins

Expand Down
Loading

0 comments on commit b2de2c4

Please sign in to comment.