-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: simplify ios publishing (#3028)
- Loading branch information
1 parent
4aa5709
commit 38791a8
Showing
11 changed files
with
19 additions
and
74 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 |
---|---|---|
@@ -1,14 +1,16 @@ | ||
require "json" | ||
package = JSON.parse(File.read(File.join(__dir__, "package.json"))) | ||
Pod::Spec.new do |s| | ||
s.name = 'Capacitor' | ||
s.version = '2.1.2' | ||
s.version = package['version'] | ||
s.summary = 'Capacitor for iOS' | ||
s.social_media_url = 'http://twitter.com/getcapacitor' | ||
s.license = 'MIT' | ||
s.homepage = 'https://capacitor.ionicframework.com/' | ||
s.ios.deployment_target = '11.0' | ||
s.authors = { 'Ionic Team' => '[email protected]' } | ||
s.source = { :git => 'https://github.com/ionic-team/capacitor.git', :tag => s.version.to_s } | ||
s.source_files = 'ios/Capacitor/Capacitor/*.{swift,h,m}', 'ios/Capacitor/Capacitor/Plugins/*.{swift,h,m}', 'ios/Capacitor/Capacitor/Plugins/**/*.{swift,h,m}' | ||
s.source_files = 'Capacitor/Capacitor/*.{swift,h,m}', 'Capacitor/Capacitor/Plugins/*.{swift,h,m}', 'Capacitor/Capacitor/Plugins/**/*.{swift,h,m}' | ||
s.dependency 'CapacitorCordova' | ||
s.swift_version = '5.0' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
require "json" | ||
package = JSON.parse(File.read(File.join(__dir__, "package.json"))) | ||
Pod::Spec.new do |s| | ||
s.name = "CapacitorCordova" | ||
s.module_name = 'Cordova' | ||
s.version = '2.1.2' | ||
s.module_name = 'Cordova' | ||
s.version = package['version'] | ||
s.summary = "Capacitor Cordova Compatibility Layer" | ||
s.homepage = "https://ionic-team.github.io/capacitor" | ||
s.license = 'MIT' | ||
s.authors = { 'Ionic Team' => '[email protected]' } | ||
s.source = { :git => 'https://github.com/ionic-team/capacitor', :tag => s.version.to_s } | ||
s.platform = :ios, 11.0 | ||
s.source_files = 'ios/CapacitorCordova/**/*.{h,m}' | ||
s.public_header_files = 'ios/CapacitorCordova/CapacitorCordova/Classes/Public/*.h' | ||
s.source_files = 'CapacitorCordova/**/*.{h,m}' | ||
s.public_header_files = 'CapacitorCordova/CapacitorCordova/Classes/Public/*.h' | ||
s.requires_arc = true | ||
s.framework = "WebKit" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@capacitor/ios", | ||
"version": "LERNA_VERSION", | ||
"version": "2.1.2", | ||
"description": "Capacitor: cross-platform mobile apps with the web", | ||
"homepage": "https://capacitor.ionicframework.com/", | ||
"author": "Ionic Team <[email protected]> (https://ionicframework.com) ", | ||
|
@@ -17,8 +17,5 @@ | |
}, | ||
"peerDependencies": { | ||
"@capacitor/core": "~2.1.0" | ||
}, | ||
"scripts": { | ||
"prepublishOnly": "bash ../scripts/setversion.sh" | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,9 +1,11 @@ | ||
set -e | ||
|
||
# Verify pods are good | ||
cd ios | ||
pod lib lint --allow-warnings Capacitor.podspec | ||
pod lib lint --allow-warnings CapacitorCordova.podspec | ||
|
||
|
||
# Do the gradle | ||
cd android | ||
cd ../android | ||
./gradlew clean build -b capacitor/build.gradle -Pandroid.useAndroidX=true -Pandroid.enableJetifier=true |
This file was deleted.
Oops, something went wrong.