Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(android): publish plugin updates #592

Merged
merged 21 commits into from
Sep 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f398162
docs(browser): Add clarifications to browser events (#560)
jcesarmobile Aug 23, 2021
4271b5d
feat(storage): make StorageConfiguration init public (#532)
fadoscha Aug 23, 2021
a70414e
fix(filesystem): allow copy if from is not parent of to (#546)
tachibana-shin Aug 23, 2021
a2e4f43
fix(camera): cleanup camera images if not needed (#563)
jcesarmobile Aug 24, 2021
4786841
fix(camera): return original image if editing is cancelled (#566)
mlynch Aug 26, 2021
ea2b801
fix(camera): Resize not respecting aspect ratio on iOS (#568)
jcesarmobile Aug 27, 2021
e9de4aa
chore: adding stuff to deploy plugins to cocoapods
elylucas Aug 27, 2021
25152a9
chore: adding npm install to script
elylucas Aug 27, 2021
52c97e7
chore: updating source to point to proper tag
elylucas Aug 27, 2021
b66669b
chore: turning lerna concurrency to 1 for cocoapod builds
elylucas Aug 27, 2021
6188e2b
chore(android): native library publishing task to test (#575)
carlpoole Aug 28, 2021
6bf3a4f
fix(local-notifications): Throw errors if missing mandatory channel f…
jcesarmobile Aug 30, 2021
50f4e70
fix(push-notifications): Throw errors if missing mandatory channel fi…
jcesarmobile Aug 30, 2021
5699a76
chore: adding manual task to deploy plugins to cocoapods
elylucas Aug 30, 2021
db6f947
docs(notifications): Add links to explain the Android importance and …
carlpoole Aug 31, 2021
092fe6a
chore: Correct sources path in podspec (#586)
jcesarmobile Aug 31, 2021
27b2381
chore: fixing action sheet podspec
elylucas Aug 31, 2021
14724c5
feat(geolocation): Throw error if location is disabled (#589)
jcesarmobile Sep 1, 2021
24e0fc2
fix: Correct missing source_files path (#590)
jcesarmobile Sep 1, 2021
60b9f50
chore: adding full path to podspecs for cocoapods deploy (#591)
elylucas Sep 1, 2021
f0dcbb1
chore(release): publish [skip ci]
elylucas Sep 1, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/cocoapods-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

# This workflow is a WIP to get the plugins to deploy to cocoapods
# Its put on hold as it's currently failing during the pod trunk push command
# See the docs on how to run during manual deployment

# name: Cocoapods Deploy

# on:
# workflow_dispatch:

# jobs:
# deploy-cocoapods:
# runs-on: macos-latest
# timeout-minutes: 30
# steps:
# - uses: actions/setup-node@v1
# with:
# node-version: 14.x
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Install Cocoapods
# run: |
# gem install cocoapods
# - name: Restore Dependency Cache
# id: cache-modules
# uses: actions/cache@v2
# with:
# path: |
# node_modules
# */node_modules
# key: dependency-cache-${{ hashFiles('package.json', '*/package.json') }}
# - run: npm install
# - name: Deploy to Cocoapods
# run: |
# set -eo pipefail
# npm run publish:cocoapod
# env:
# COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
37 changes: 37 additions & 0 deletions .github/workflows/publish-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish Native Android Libraries

on:
workflow_dispatch:
inputs:
plugins:
description: 'Specify an optional subset of plugins to publish (space delimited)'
required: false
default: ''
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
with:
ref: publish-android
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Grant execute permission for publishing script
run: chmod +x ./scripts/publish-android.sh
- name: Run publish script
working-directory: ./scripts
env:
GITHUB_PLUGINS: ${{ github.event.inputs.plugins }}
ANDROID_OSSRH_USERNAME: ${{ secrets.ANDROID_OSSRH_USERNAME }}
ANDROID_OSSRH_PASSWORD: ${{ secrets.ANDROID_OSSRH_PASSWORD }}
ANDROID_SIGNING_KEY_ID: ${{ secrets.ANDROID_SIGNING_KEY_ID }}
ANDROID_SIGNING_PASSWORD: ${{ secrets.ANDROID_SIGNING_PASSWORD }}
ANDROID_SIGNING_KEY: ${{ secrets.ANDROID_SIGNING_KEY }}
ANDROID_SONATYPE_STAGING_PROFILE_ID: ${{ secrets.ANDROID_SONATYPE_STAGING_PROFILE_ID }}
run: ./publish-android.sh
8 changes: 8 additions & 0 deletions action-sheet/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.3](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/[email protected]...@capacitor/[email protected]) (2021-09-01)

**Note:** Version bump only for package @capacitor/action-sheet





## [1.0.2](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/[email protected]...@capacitor/[email protected]) (2021-06-23)

**Note:** Version bump only for package @capacitor/action-sheet
Expand Down
6 changes: 3 additions & 3 deletions action-sheet/CapacitorActionSheet.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Pod::Spec.new do |s|
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.homepage = package['repository']['url']
s.homepage = 'https://capacitorjs.com'
s.author = package['author']
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.source = { :git => 'https://github.com/ionic-team/capacitor-plugins.git', :tag => package['name'] + '@' + package['version'] }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}', 'action-sheet/ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.ios.deployment_target = '12.0'
s.dependency 'Capacitor'
s.swift_version = '5.1'
Expand Down
6 changes: 4 additions & 2 deletions action-sheet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@capacitor/action-sheet",
"version": "1.0.2",
"version": "1.0.3",
"description": "The Action Sheet API provides access to native Action Sheets, which come up from the bottom of the screen and display actions a user can take.",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -41,7 +41,9 @@
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
"clean": "rimraf ./dist",
"watch": "tsc --watch",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"postpublish": "npm run publish:cocoapod",
"publish:cocoapod": "pod trunk push ./CapacitorActionSheet.podspec --allow-warnings"
},
"devDependencies": {
"@capacitor/android": "^3.0.0",
Expand Down
8 changes: 8 additions & 0 deletions app-launcher/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.4](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/[email protected]...@capacitor/[email protected]) (2021-09-01)

**Note:** Version bump only for package @capacitor/app-launcher





## [1.0.3](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/[email protected]...@capacitor/[email protected]) (2021-08-18)

**Note:** Version bump only for package @capacitor/app-launcher
Expand Down
6 changes: 3 additions & 3 deletions app-launcher/CapacitorAppLauncher.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Pod::Spec.new do |s|
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.homepage = package['repository']['url']
s.homepage = 'https://capacitorjs.com'
s.author = package['author']
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.source = { :git => 'https://github.com/ionic-team/capacitor-plugins.git', :tag => package['name'] + '@' + package['version'] }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}', 'app-launcher/ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.ios.deployment_target = '12.0'
s.dependency 'Capacitor'
s.swift_version = '5.1'
Expand Down
6 changes: 4 additions & 2 deletions app-launcher/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@capacitor/app-launcher",
"version": "1.0.3",
"version": "1.0.4",
"description": "The AppLauncher API allows to open other apps",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -41,7 +41,9 @@
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
"clean": "rimraf ./dist",
"watch": "tsc --watch",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"postpublish": "npm run publish:cocoapod",
"publish:cocoapod": "pod trunk push ./CapacitorAppLauncher.podspec --allow-warnings"
},
"devDependencies": {
"@capacitor/android": "^3.0.0",
Expand Down
8 changes: 8 additions & 0 deletions app/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.3](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/[email protected]...@capacitor/[email protected]) (2021-09-01)

**Note:** Version bump only for package @capacitor/app





## [1.0.2](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/[email protected]...@capacitor/[email protected]) (2021-06-23)


Expand Down
6 changes: 3 additions & 3 deletions app/CapacitorApp.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Pod::Spec.new do |s|
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.homepage = package['repository']['url']
s.homepage = 'https://capacitorjs.com'
s.author = package['author']
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.source = { :git => 'https://github.com/ionic-team/capacitor-plugins.git', :tag => package['name'] + '@' + package['version'] }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}', 'app/ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.ios.deployment_target = '12.0'
s.dependency 'Capacitor'
s.swift_version = '5.1'
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@capacitor/app",
"version": "1.0.2",
"version": "1.0.3",
"description": "The App API handles high level App state and events.For example, this API emits events when the app enters and leaves the foreground, handles deeplinks, opens other apps, and manages persisted plugin state.",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down
11 changes: 11 additions & 0 deletions browser/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.3](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/[email protected]...@capacitor/[email protected]) (2021-09-01)


### Bug Fixes

* Correct missing source_files path ([#590](https://github.com/ionic-team/capacitor-plugins/issues/590)) ([24e0fc2](https://github.com/ionic-team/capacitor-plugins/commit/24e0fc27cc314049012ab9915fa5e7bfb03313e1))





## [1.0.2](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/[email protected]...@capacitor/[email protected]) (2021-06-23)


Expand Down
6 changes: 3 additions & 3 deletions browser/CapacitorBrowser.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Pod::Spec.new do |s|
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.homepage = package['repository']['url']
s.homepage = 'https://capacitorjs.com'
s.author = package['author']
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.source = { :git => 'https://github.com/ionic-team/capacitor-plugins.git', :tag => package['name'] + '@' + package['version'] }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}', 'browser/ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.ios.deployment_target = '12.0'
s.dependency 'Capacitor'
s.swift_version = '5.1'
Expand Down
5 changes: 4 additions & 1 deletion browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ No-op on other platforms.
addListener(eventName: 'browserFinished', listenerFunc: () => void) => Promise<PluginListenerHandle> & PluginListenerHandle
```

Android & iOS only: Listen for the loading finished event.
Android & iOS only: Listen for the browser finished event.
It fires when the Browser is closed by the user.

| Param | Type |
| ------------------ | ------------------------------ |
Expand All @@ -104,6 +105,8 @@ addListener(eventName: 'browserPageLoaded', listenerFunc: () => void) => Promise
```

Android & iOS only: Listen for the page loaded event.
It's only fired when the URL passed to open method finish loading.
It is not invoked for any subsequent page loads.

| Param | Type |
| ------------------ | -------------------------------- |
Expand Down
6 changes: 4 additions & 2 deletions browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@capacitor/browser",
"version": "1.0.2",
"version": "1.0.3",
"description": "The Browser API provides the ability to open an in-app browser and subscribe to browser events.",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -41,7 +41,9 @@
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
"clean": "rimraf ./dist",
"watch": "tsc --watch",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"postpublish": "npm run publish:cocoapod",
"publish:cocoapod": "pod trunk push ./CapacitorBrowser.podspec --allow-warnings"
},
"devDependencies": {
"@capacitor/android": "^3.0.0",
Expand Down
5 changes: 4 additions & 1 deletion browser/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export interface BrowserPlugin {
close(): Promise<void>;

/**
* Android & iOS only: Listen for the loading finished event.
* Android & iOS only: Listen for the browser finished event.
* It fires when the Browser is closed by the user.
*
* @since 1.0.0
*/
Expand All @@ -29,6 +30,8 @@ export interface BrowserPlugin {

/**
* Android & iOS only: Listen for the page loaded event.
* It's only fired when the URL passed to open method finish loading.
* It is not invoked for any subsequent page loads.
*
* @since 1.0.0
*/
Expand Down
14 changes: 14 additions & 0 deletions camera/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.5](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/[email protected]...@capacitor/[email protected]) (2021-09-01)


### Bug Fixes

* Correct missing source_files path ([#590](https://github.com/ionic-team/capacitor-plugins/issues/590)) ([24e0fc2](https://github.com/ionic-team/capacitor-plugins/commit/24e0fc27cc314049012ab9915fa5e7bfb03313e1))
* **camera:** cleanup camera images if not needed ([#563](https://github.com/ionic-team/capacitor-plugins/issues/563)) ([a2e4f43](https://github.com/ionic-team/capacitor-plugins/commit/a2e4f4339119698e8dd066a5f2f8f065ab2e4727))
* **camera:** Resize not respecting aspect ratio on iOS ([#568](https://github.com/ionic-team/capacitor-plugins/issues/568)) ([ea2b801](https://github.com/ionic-team/capacitor-plugins/commit/ea2b8012aab7e5ea34cfa34735f7f55ba76a3882))
* **camera:** return original image if editing is cancelled ([#566](https://github.com/ionic-team/capacitor-plugins/issues/566)) ([4786841](https://github.com/ionic-team/capacitor-plugins/commit/4786841099403a4d3d59aaf9103e8fa02aa8e4e2))





## [1.0.4](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/[email protected]...@capacitor/[email protected]) (2021-08-18)


Expand Down
6 changes: 3 additions & 3 deletions camera/CapacitorCamera.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Pod::Spec.new do |s|
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.homepage = package['repository']['url']
s.homepage = 'https://capacitorjs.com'
s.author = package['author']
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.source = { :git => 'https://github.com/ionic-team/capacitor-plugins.git', :tag => package['name'] + '@' + package['version'] }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}', 'camera/ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.ios.deployment_target = '12.0'
s.dependency 'Capacitor'
s.swift_version = '5.1'
Expand Down
Loading