-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sc-9148-idiomatic-plugin-dot-swift' into sc-9155-autoge…
…nerate-plugin.m * sc-9148-idiomatic-plugin-dot-swift: (46 commits) [sc-9148] [project] Reverted the changed in the top-level package.json; the fix was needed only in the Example's package.json. [sc-9148] [project] Tried a workaround for the lib/mappings.wasm error (gatsbyjs/gatsby#35607 (comment)), but no dice. [sc-9148] [project] Tried a workaround for the lib/mappings.wasm error (gatsbyjs/gatsby#35607 (comment)), but no dice. [sc-9148] [project] Re-synced modules. bump package version to 3.4.2 bump iOS version bump versions update package-lock.json var name fix function name fix options class bump versions expose setForegroundServiceOptions add --commit-hooks false and --git-tag-version false to the npm version command move npm version bump up earlier Update circleci to convenience images. swap out strings with single quotes for consistency Github actions conditionals fail with double quotes add template files and workflow to automate native SDK version bumps fix permission prompts ...
- Loading branch information
Showing
41 changed files
with
12,413 additions
and
11,115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# Bump Native SDK version numbers whenever a repository dispatch of a release | ||
# is received | ||
name: Bump Native SDKs | ||
on: | ||
repository_dispatch: | ||
types: ['ios-sdk-release', 'android-sdk-release'] | ||
jobs: | ||
update_android_sdk_version: | ||
runs-on: ubuntu-latest | ||
if: github.event.client_payload.platform == 'android' | ||
steps: | ||
- name: Event Information | ||
run: echo ${{ github.event.client_payload.release }} | ||
|
||
# checkout the repo | ||
- uses: actions/checkout@v2 | ||
|
||
# copy the build.gradle template file to its final destination | ||
- name: Copy android/build.gradle template file | ||
uses: canastro/copy-action@master | ||
with: | ||
source: 'android/build.gradle.template' | ||
target: 'android/build.gradle' | ||
|
||
# render the build.gradle template using the input sdk version | ||
- name: Render radar-sdk-android release version onto android/build.gradle | ||
uses: jayamanikharyono/[email protected] | ||
with: | ||
data: version=${{ github.event.client_payload.release }} | ||
path: 'android/build.gradle' | ||
|
||
# copy the template file to its final destination | ||
- name: Copy example/android/app/build.gradle template file | ||
uses: canastro/copy-action@master | ||
with: | ||
source: 'example/android/app/build.gradle.template' | ||
target: 'example/android/app/build.gradle' | ||
|
||
# render the template using the input sdk version | ||
- name: Render radar-sdk-android release version onto example/android/app/build.gradle | ||
uses: jayamanikharyono/[email protected] | ||
with: | ||
data: version=${{ github.event.client_payload.release }} | ||
path: 'example/android/app/build.gradle' | ||
|
||
# Update package.json to latest version | ||
- name: Update package.json to latest | ||
run: npm version ${{ github.event.client_payload.release }} --commit-hooks false --git-tag-version false | ||
|
||
# open a pull request with the new sdk version | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
title: Automated radar-sdk-android version bump to ${{ github.event.client_payload.release }} | ||
reviewers: radarlabs/eng | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
update_ios_sdk_version: | ||
runs-on: ubuntu-latest | ||
if: github.event.client_payload.platform == 'ios' | ||
steps: | ||
- name: Event Information | ||
run: echo ${{ github.event.client_payload.release }} | ||
|
||
# checkout the repo | ||
- uses: actions/checkout@v2 | ||
|
||
# copy the podfile template to its final destination | ||
- name: Copy ios/Cartfile.resolved template | ||
uses: canastro/copy-action@master | ||
with: | ||
source: 'ios/Podfile.template' | ||
target: 'ios/Podfile' | ||
|
||
# render the podfile template with the sdk version | ||
- name: Render radar-sdk-ios release version onto Cartfile template | ||
uses: jayamanikharyono/[email protected] | ||
with: | ||
data: version=${{ github.event.client_payload.release }} | ||
path: 'ios/Podfile' | ||
|
||
# copy the podspec template to its final destination | ||
- name: Copy the podspec template | ||
uses: canastro/copy-action@master | ||
with: | ||
source: 'CapacitorRadar.podspec.template' | ||
target: 'CapacitorRadar.podspec' | ||
|
||
# render the podspec template with the sdk version | ||
- name: Render radar-sdk-ios release version onto podspec template | ||
uses: jayamanikharyono/[email protected] | ||
with: | ||
data: version=${{ github.event.client_payload.release }} | ||
path: 'CapacitorRadar.podspec' | ||
|
||
# Update package.json to latest version | ||
- name: Update package.json to latest | ||
run: npm version ${{ github.event.client_payload.release }} --commit-hooks false --git-tag-version false | ||
|
||
# open a pull request with the new sdk version | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
title: Automated radar-sdk-ios version bump to ${{ github.event.client_payload.release }} | ||
reviewers: radarlabs/eng | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
Pod::Spec.new do |s| | ||
package = JSON.parse(File.read(File.join(File.dirname(__FILE__), 'package.json'))) | ||
s.name = 'CapacitorRadar' | ||
s.version = package['version'] | ||
s.summary = package['description'] | ||
s.license = package['license'] | ||
s.homepage = 'radarlabs/capacitor-radar' | ||
s.author = 'Radar Labs, Inc.' | ||
s.source = { :git => 'radarlabs/capacitor-radar', :tag => s.version.to_s } | ||
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}' | ||
s.ios.deployment_target = '12.0' | ||
s.dependency 'Capacitor' | ||
s.dependency 'RadarSDK', '~> {{ version }}' | ||
s.static_framework = true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
buildscript { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:7.0.3' | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.library' | ||
|
||
android { | ||
compileSdkVersion 31 | ||
defaultConfig { | ||
minSdkVersion 21 | ||
targetSdkVersion 31 | ||
versionCode 1 | ||
versionName '1.0' | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
lintOptions { | ||
abortOnError false | ||
} | ||
} | ||
|
||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation project(':capacitor-android') | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'com.android.support.test:runner:1.0.2' | ||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | ||
implementation 'io.radar:sdk:{{ version }}' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<manifest package="io.radar.capacitor"/> | ||
<manifest package="io.radar.capacitor" /> |
Oops, something went wrong.