Skip to content

Commit

Permalink
chore: 0.11.0 release + add sleep between pod pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemiev authored Apr 8, 2020
1 parent ef0e139 commit aafbfc2
Show file tree
Hide file tree
Showing 23 changed files with 45 additions and 45 deletions.
7 changes: 2 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2.1

defaults: &defaults
macos:
xcode: "11.2.1"
xcode: "11.4.0"
working_directory: ~/amplify-ios
environment:
BUNDLE_PATH: vendor/bundle
Expand Down Expand Up @@ -157,13 +157,10 @@ jobs:
- *restore_repo
- restore_gems
- check_bundle
# - run:
# name: Bump pod versions
# command: bundle exec fastlane bump_podspecs_patch
- run:
name: Release pods
command: bundle exec fastlane release_pods

no_output_timeout: 20m

workflows:
build_test_deploy:
Expand Down
2 changes: 1 addition & 1 deletion .jazzy.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module: Amplify
module_version: 0.9.0
module_version: 0.11.0
author: Amazon Web Services
github_url: https://github.com/aws-amplify/amplify-ios

Expand Down
4 changes: 2 additions & 2 deletions AWSPluginsCore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|

s.name = 'AWSPluginsCore'
s.version = '0.10.0'
s.version = '0.11.0'
s.summary = 'Amazon Web Services Amplify for iOS.'

s.description = 'AWS Amplify for iOS provides a declarative library for application development using cloud services'
Expand All @@ -25,7 +25,7 @@ Pod::Spec.new do |s|
AWS_SDK_VERSION = "~> 2.13.0"

s.source_files = 'AmplifyPlugins/Core/AWSPluginsCore/**/*.swift'
s.dependency 'Amplify', '0.10.0'
s.dependency 'Amplify', '0.11.0'
s.dependency 'AWSMobileClient', AWS_SDK_VERSION

end
4 changes: 2 additions & 2 deletions AWSPredictionsPlugin.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'AWSPredictionsPlugin'
s.version = '0.10.0'
s.version = '0.11.0'
s.summary = 'Amazon Web Services Amplify for iOS.'

s.description = 'AWS Amplify for iOS provides a declarative library for application development using cloud services'
Expand All @@ -15,7 +15,7 @@ Pod::Spec.new do |s|
s.requires_arc = true

AWS_SDK_VERSION = '~> 2.13.0'
AMPLIFY_VERSION = '0.10.0'
AMPLIFY_VERSION = '0.11.0'

s.source_files = 'AmplifyPlugins/Predictions/AWSPredictionsPlugin/**/*.swift'
s.dependency 'AWSComprehend', AWS_SDK_VERSION
Expand Down
2 changes: 1 addition & 1 deletion Amplify.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|

s.name = 'Amplify'
s.version = '0.10.0'
s.version = '0.11.0'
s.summary = 'Amazon Web Services Amplify for iOS.'

s.description = 'AWS Amplify for iOS provides a declarative library for application development using cloud services'
Expand Down
2 changes: 1 addition & 1 deletion Amplify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion AmplifyFunctionalTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions AmplifyPlugins.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|

s.name = 'AmplifyPlugins'
s.version = '0.10.0'
s.version = '0.11.0'
s.summary = 'Amazon Web Services Amplify for iOS.'

s.description = 'AWS Amplify for iOS provides a declarative library for application development using cloud services'
Expand All @@ -23,7 +23,7 @@ Pod::Spec.new do |s|
s.requires_arc = true

AWS_SDK_VERSION = '~> 2.13.0'
AMPLIFY_VERSION = '0.10.0'
AMPLIFY_VERSION = '0.11.0'

s.subspec 'AWSAPIPlugin' do |ss|
ss.source_files = 'AmplifyPlugins/API/AWSAPICategoryPlugin/**/*.swift'
Expand Down
2 changes: 1 addition & 1 deletion AmplifyPlugins/API/AWSAPICategoryPlugin/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion AmplifyPlugins/Core/AWSPluginsCore/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class AmplifyAWSServiceConfiguration: AWSServiceConfiguration {
override public class func baseUserAgent() -> String! {
//TODO: Retrieve this version from a centralized location:
//https://github.com/aws-amplify/amplify-ios/issues/276
let version = "0.10.0"
let version = "0.11.0"
let sdkName = "amplify-iOS"
let systemName = UIDevice.current.systemName.replacingOccurrences(of: " ", with: "-")
let systemVersion = UIDevice.current.systemVersion
Expand Down
2 changes: 1 addition & 1 deletion AmplifyPlugins/Core/AWSPluginsCoreTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion AmplifyPlugins/Core/AWSPluginsTestCommon/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion AmplifyTestApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
6 changes: 3 additions & 3 deletions AmplifyTestCommon.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |spec|

spec.name = "AmplifyTestCommon"
spec.version = "0.10.0"
spec.version = "0.11.0"
spec.summary = "Test resources used by different targets"
spec.description = "Provides different test resources and mock methods"

Expand All @@ -22,10 +22,10 @@ Pod::Spec.new do |spec|
spec.requires_arc = true

spec.source_files = 'AmplifyTestCommon/**/*.swift'
spec.dependency 'Amplify', '0.10.0'
spec.dependency 'Amplify', '0.11.0'

spec.subspec 'AWSPluginsTestCommon' do |subspec|
subspec.source_files = 'AmplifyPlugins/Core/AWSPluginsTestCommon/**/*.swift'
spec.dependency 'AWSPluginsCore', '0.10.0'
spec.dependency 'AWSPluginsCore', '0.11.0'
end
end
2 changes: 1 addition & 1 deletion AmplifyTestCommon/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion AmplifyTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>0.10.0</string>
<string>0.11.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions CoreMLPredictionsPlugin.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'CoreMLPredictionsPlugin'
s.version = '0.10.0'
s.version = '0.11.0'
s.summary = 'Amazon Web Services Amplify for iOS.'

s.description = 'AWS Amplify for iOS provides a declarative library for application development using cloud services'
Expand All @@ -14,7 +14,7 @@ Pod::Spec.new do |s|

s.requires_arc = true
s.source_files = 'AmplifyPlugins/Predictions/CoreMLPredictionsPlugin/**/*.swift'
s.dependency 'Amplify', '0.10.0'
s.dependency 'Amplify', '0.11.0'

end

29 changes: 16 additions & 13 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,30 @@ opt_out_usage

default_platform(:ios)

COCOAPODS_PUSH_WAIT_TIME = 600

pods = [
"Amplify.podspec",
"AWSPluginsCore.podspec",
"CoreMLPredictionsPlugin.podspec",
"AWSPredictionsPlugin.podspec",
"AmplifyPlugins.podspec"
{spec: "Amplify.podspec", sleep: true},
# AmplifyPlugins depends on AWSPluginsCore, but skipping the sleep here
# since there's one after CoreMLPredictionsPlugin
{spec: "AWSPluginsCore.podspec", sleep: false},
{spec: "CoreMLPredictionsPlugin.podspec", sleep: true},
{spec: "AWSPredictionsPlugin.podspec", sleep: false},
{spec: "AmplifyPlugins.podspec", sleep: false}
]

platform :ios do
desc "Bump pod versions"
lane :bump_podspecs_patch do

pods.each { |pod| version_bump_podspec(path: pod, bump_type: "patch") }

end

desc "Release pods"
lane :release_pods do

pods.each { |pod|
pod_push(path: pod, allow_warnings: true, swift_version: "5.1")
UI.message("Pushing pod #{pod[:spec]}")
pod_push(path: pod[:spec], allow_warnings: true, swift_version: "5.1")
if pod[:sleep]
UI.message("Sleeping for #{COCOAPODS_PUSH_WAIT_TIME}s")
sleep COCOAPODS_PUSH_WAIT_TIME
end

Actions.sh('pod repo update')
}

Expand Down

0 comments on commit aafbfc2

Please sign in to comment.