Compare commits
1 Commits
release/io
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b15473d24e |
@@ -24,7 +24,7 @@ targets:
|
|||||||
GENERATE_INFOPLIST_FILE: YES
|
GENERATE_INFOPLIST_FILE: YES
|
||||||
INFOPLIST_FILE: Apps/Sybil/Info.plist
|
INFOPLIST_FILE: Apps/Sybil/Info.plist
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
|
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
|
||||||
MARKETING_VERSION: "1.10"
|
MARKETING_VERSION: "1.13.2"
|
||||||
CURRENT_PROJECT_VERSION: 11
|
CURRENT_PROJECT_VERSION: 11
|
||||||
INFOPLIST_KEY_CFBundleDisplayName: Sybil
|
INFOPLIST_KEY_CFBundleDisplayName: Sybil
|
||||||
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption: NO
|
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption: NO
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ CI_KEYCHAIN_DB_PATH = File.expand_path("~/Library/Keychains/#{CI_KEYCHAIN_NAME}-
|
|||||||
IOS_ROOT = File.expand_path("..", __dir__)
|
IOS_ROOT = File.expand_path("..", __dir__)
|
||||||
PROJECT_FILE = File.join(IOS_ROOT, "Sybil.xcodeproj")
|
PROJECT_FILE = File.join(IOS_ROOT, "Sybil.xcodeproj")
|
||||||
PROJECT_SPEC = File.join(IOS_ROOT, "project.yml")
|
PROJECT_SPEC = File.join(IOS_ROOT, "project.yml")
|
||||||
|
APP_PROJECT_SPEC = File.join(IOS_ROOT, "Apps/Sybil/project.yml")
|
||||||
|
|
||||||
def present?(value)
|
def present?(value)
|
||||||
!value.to_s.strip.empty?
|
!value.to_s.strip.empty?
|
||||||
@@ -49,6 +50,17 @@ def build_number
|
|||||||
value.to_i
|
value.to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def stamp_marketing_version(version)
|
||||||
|
contents = File.read(APP_PROJECT_SPEC)
|
||||||
|
updated = contents.sub(/^(\s*MARKETING_VERSION:\s*).*/, "\\1\"#{version}\"")
|
||||||
|
|
||||||
|
if updated == contents
|
||||||
|
UI.user_error!("Could not find MARKETING_VERSION in #{APP_PROJECT_SPEC}")
|
||||||
|
end
|
||||||
|
|
||||||
|
File.write(APP_PROJECT_SPEC, updated)
|
||||||
|
end
|
||||||
|
|
||||||
platform :ios do
|
platform :ios do
|
||||||
private_lane :app_store_api_key do
|
private_lane :app_store_api_key do
|
||||||
app_store_connect_api_key(
|
app_store_connect_api_key(
|
||||||
@@ -104,9 +116,11 @@ platform :ios do
|
|||||||
|
|
||||||
api_key = app_store_api_key
|
api_key = app_store_api_key
|
||||||
|
|
||||||
|
version = release_version
|
||||||
|
stamp_marketing_version(version)
|
||||||
sh("xcodegen", "--spec", PROJECT_SPEC)
|
sh("xcodegen", "--spec", PROJECT_SPEC)
|
||||||
|
|
||||||
increment_version_number(version_number: release_version, xcodeproj: PROJECT_FILE)
|
increment_version_number(version_number: version, xcodeproj: PROJECT_FILE)
|
||||||
increment_build_number(build_number: build_number, xcodeproj: PROJECT_FILE)
|
increment_build_number(build_number: build_number, xcodeproj: PROJECT_FILE)
|
||||||
|
|
||||||
sync_signing(api_key: api_key, readonly: true)
|
sync_signing(api_key: api_key, readonly: true)
|
||||||
|
|||||||
Reference in New Issue
Block a user