From a6c2391f769a0571dca33870e6648cabb59ef77a Mon Sep 17 00:00:00 2001 From: Florent Vilmart Date: Sat, 23 Sep 2017 11:14:44 -0400 Subject: [PATCH] :zap: Release 1.15.3 --- Parse.podspec | 2 +- Parse/PFConstants.h | 2 +- Parse/Resources/Parse-OSX.Info.plist | 4 ++-- Parse/Resources/Parse-iOS.Info.plist | 4 ++-- Parse/Resources/Parse-tvOS.Info.plist | 4 ++-- Parse/Resources/Parse-watchOS.Info.plist | 4 ++-- .../Resources/Info.plist | 4 ++-- .../OSX/ParseOSXStarterProject/Resources/Info.plist | 4 ++-- .../ParseStarterProject-Swift/Resources/Info.plist | 4 ++-- .../iOS/ParseStarterProject/Resources/Info.plist | 4 ++-- .../ParseStarter/Info.plist | 4 ++-- .../ParseStarter Extension/Info.plist | 4 ++-- .../ParseStarter/Info.plist | 4 ++-- .../ParseStarterProject-Swift/Resources/Info.plist | 4 ++-- Rakefile | 13 +++++++++++++ 15 files changed, 39 insertions(+), 26 deletions(-) diff --git a/Parse.podspec b/Parse.podspec index a38a9ed6a..ef80f8ca3 100644 --- a/Parse.podspec +++ b/Parse.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Parse' - s.version = '1.15.2' + s.version = '1.15.3' s.license = { :type => 'BSD', :file => 'LICENSE' } s.homepage = 'http://parseplatform.org/' s.summary = 'A library that gives you access to the powerful Parse cloud platform from your iOS/OS X/watchOS/tvOS app.' diff --git a/Parse/PFConstants.h b/Parse/PFConstants.h index 8d2956467..39467b994 100644 --- a/Parse/PFConstants.h +++ b/Parse/PFConstants.h @@ -13,7 +13,7 @@ #pragma mark - SDK Version ///-------------------------------------- -#define PARSE_VERSION @"1.15.2" +#define PARSE_VERSION @"1.15.3" ///-------------------------------------- #pragma mark - Platform diff --git a/Parse/Resources/Parse-OSX.Info.plist b/Parse/Resources/Parse-OSX.Info.plist index 263123138..7fd0ce69c 100644 --- a/Parse/Resources/Parse-OSX.Info.plist +++ b/Parse/Resources/Parse-OSX.Info.plist @@ -13,10 +13,10 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.15.2 + 1.15.3 CFBundleSignature ???? CFBundleVersion - 1.15.2 + 1.15.3 diff --git a/Parse/Resources/Parse-iOS.Info.plist b/Parse/Resources/Parse-iOS.Info.plist index a953672e2..fbd41fe03 100644 --- a/Parse/Resources/Parse-iOS.Info.plist +++ b/Parse/Resources/Parse-iOS.Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.15.2 + 1.15.3 CFBundleSignature ???? CFBundleSupportedPlatforms @@ -22,7 +22,7 @@ iPhoneOS CFBundleVersion - 1.15.2 + 1.15.3 MinimumOSVersion 6.0 diff --git a/Parse/Resources/Parse-tvOS.Info.plist b/Parse/Resources/Parse-tvOS.Info.plist index 37a0ea901..96520c55f 100644 --- a/Parse/Resources/Parse-tvOS.Info.plist +++ b/Parse/Resources/Parse-tvOS.Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.15.2 + 1.15.3 CFBundleSignature ???? CFBundleVersion - 1.15.2 + 1.15.3 NSPrincipalClass diff --git a/Parse/Resources/Parse-watchOS.Info.plist b/Parse/Resources/Parse-watchOS.Info.plist index 37a0ea901..96520c55f 100644 --- a/Parse/Resources/Parse-watchOS.Info.plist +++ b/Parse/Resources/Parse-watchOS.Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.15.2 + 1.15.3 CFBundleSignature ???? CFBundleVersion - 1.15.2 + 1.15.3 NSPrincipalClass diff --git a/ParseStarterProject/OSX/ParseOSXStarterProject-Swift/Resources/Info.plist b/ParseStarterProject/OSX/ParseOSXStarterProject-Swift/Resources/Info.plist index 96f78b10a..e3990583a 100644 --- a/ParseStarterProject/OSX/ParseOSXStarterProject-Swift/Resources/Info.plist +++ b/ParseStarterProject/OSX/ParseOSXStarterProject-Swift/Resources/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.15.1 + 1.15.3 CFBundleSignature ???? CFBundleVersion - 1.15.1 + 1.15.3 LSMinimumSystemVersion $(MACOSX_DEPLOYMENT_TARGET) NSMainNibFile diff --git a/ParseStarterProject/OSX/ParseOSXStarterProject/Resources/Info.plist b/ParseStarterProject/OSX/ParseOSXStarterProject/Resources/Info.plist index 4b3065899..5a721820e 100644 --- a/ParseStarterProject/OSX/ParseOSXStarterProject/Resources/Info.plist +++ b/ParseStarterProject/OSX/ParseOSXStarterProject/Resources/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.15.1 + 1.15.3 CFBundleSignature ???? CFBundleVersion - 1.15.1 + 1.15.3 LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSMainNibFile diff --git a/ParseStarterProject/iOS/ParseStarterProject-Swift/Resources/Info.plist b/ParseStarterProject/iOS/ParseStarterProject-Swift/Resources/Info.plist index 98a8a9e27..344e2135a 100644 --- a/ParseStarterProject/iOS/ParseStarterProject-Swift/Resources/Info.plist +++ b/ParseStarterProject/iOS/ParseStarterProject-Swift/Resources/Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.15.1 + 1.15.3 CFBundleSignature ???? CFBundleVersion - 1.15.1 + 1.15.3 LSRequiresIPhoneOS UILaunchStoryboardName diff --git a/ParseStarterProject/iOS/ParseStarterProject/Resources/Info.plist b/ParseStarterProject/iOS/ParseStarterProject/Resources/Info.plist index 5dd1f3d33..d26587ac5 100644 --- a/ParseStarterProject/iOS/ParseStarterProject/Resources/Info.plist +++ b/ParseStarterProject/iOS/ParseStarterProject/Resources/Info.plist @@ -19,11 +19,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.15.1 + 1.15.3 CFBundleSignature ???? CFBundleVersion - 1.15.1 + 1.15.3 LSRequiresIPhoneOS NSMainNibFile diff --git a/ParseStarterProject/tvOS/ParseStarterProject-Swift/ParseStarter/Info.plist b/ParseStarterProject/tvOS/ParseStarterProject-Swift/ParseStarter/Info.plist index 8b58c8ff9..190ad5b5b 100644 --- a/ParseStarterProject/tvOS/ParseStarterProject-Swift/ParseStarter/Info.plist +++ b/ParseStarterProject/tvOS/ParseStarterProject-Swift/ParseStarter/Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.15.1 + 1.15.3 CFBundleSignature ???? CFBundleVersion - 1.15.1 + 1.15.3 LSRequiresIPhoneOS UIMainStoryboardFile diff --git a/ParseStarterProject/watchOS/ParseStarterProject-Swift/ParseStarter Extension/Info.plist b/ParseStarterProject/watchOS/ParseStarterProject-Swift/ParseStarter Extension/Info.plist index 86d3ee395..e337107e7 100644 --- a/ParseStarterProject/watchOS/ParseStarterProject-Swift/ParseStarter Extension/Info.plist +++ b/ParseStarterProject/watchOS/ParseStarterProject-Swift/ParseStarter Extension/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 1.15.1 + 1.15.3 CFBundleSignature ???? CFBundleVersion - 1.15.1 + 1.15.3 NSExtension NSExtensionAttributes diff --git a/ParseStarterProject/watchOS/ParseStarterProject-Swift/ParseStarter/Info.plist b/ParseStarterProject/watchOS/ParseStarterProject-Swift/ParseStarter/Info.plist index dd69e9758..f92a162be 100644 --- a/ParseStarterProject/watchOS/ParseStarterProject-Swift/ParseStarter/Info.plist +++ b/ParseStarterProject/watchOS/ParseStarterProject-Swift/ParseStarter/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.15.1 + 1.15.3 CFBundleSignature ???? CFBundleVersion - 1.15.1 + 1.15.3 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait diff --git a/ParseStarterProject/watchOS/ParseStarterProject-Swift/Resources/Info.plist b/ParseStarterProject/watchOS/ParseStarterProject-Swift/Resources/Info.plist index 3f2176a14..58684dbd3 100644 --- a/ParseStarterProject/watchOS/ParseStarterProject-Swift/Resources/Info.plist +++ b/ParseStarterProject/watchOS/ParseStarterProject-Swift/Resources/Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.15.1 + 1.15.3 CFBundleSignature ???? CFBundleVersion - 1.15.1 + 1.15.3 LSRequiresIPhoneOS UIMainStoryboardFile diff --git a/Rakefile b/Rakefile index e23a6431e..7ac95d3db 100644 --- a/Rakefile +++ b/Rakefile @@ -22,6 +22,8 @@ module Constants script_folder = File.expand_path(File.dirname(__FILE__)) PARSE_CONSTANTS_HEADER = File.join(script_folder, 'Parse', 'PFConstants.h') + PARSE_PODSPEC = File.join(script_folder, 'Parse.podspec') + PLISTS = [ File.join(script_folder, 'Parse', 'Resources', 'Parse-iOS.Info.plist'), File.join(script_folder, 'Parse', 'Resources', 'Parse-OSX.Info.plist'), @@ -54,6 +56,12 @@ module Constants PLISTS.each do |plist| update_info_plist_version(plist, version) end + + podspec_file = File.open(PARSE_PODSPEC, 'r+') + podspec = podspec_file.read + podspec.gsub!(/(.*s.version\s*=\s*')(.*)(')/, "\\1#{version}\\3") + podspec_file.seek(0) + podspec_file.write(podspec) end def self.update_info_plist_version(plist_path, version) @@ -158,6 +166,11 @@ namespace :package do `#{bolts_folder}/scripts/build_framework.sh -n -c Release --with-watchos --with-tvos` end + task :set_version, [:version] do |_, args| + version = args[:version] || Constants.current_version + Constants.update_version(version) + end + desc 'Build and package all frameworks for the release' task :frameworks, [:version] => :prepare do |_, args| version = args[:version] || Constants.current_version