From 1892b727c5a28e18db85cb82047745338cea54c5 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Fri, 14 Jun 2019 18:17:11 +0200 Subject: [PATCH] ios: Lots of mini changes to get the build validated * Set target to be 9.0 - libgit2 has been compiled with the target of 9.0, so for now lets support that. Later we can figure out how to target 8.0, if required. * Set the BUILD_NUMBER and BUILD_VERSION correctly. In new flutter projects these values are automatically set, but since I created this project before those patches went it, we need to set it up. * Do not target only arm64. * Set the correct CFBundleName. It was set to 'journal' instead of 'GitJournal'. --- ios/Flutter/AppFrameworkInfo.plist | 8 ++----- ios/Podfile | 2 +- ios/Runner.xcodeproj/project.pbxproj | 6 ++++-- ios/Runner/Info.plist | 32 ++++++++++++---------------- 4 files changed, 21 insertions(+), 27 deletions(-) diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist index 64bb506e..9367d483 100644 --- a/ios/Flutter/AppFrameworkInfo.plist +++ b/ios/Flutter/AppFrameworkInfo.plist @@ -15,15 +15,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - $(FLUTTER_BUILD_NAME) + 1.0 CFBundleSignature ???? CFBundleVersion - $(FLUTTER_BUILD_NUMBER) - UIRequiredDeviceCapabilities - - arm64 - + 1.0 MinimumOSVersion 8.0 diff --git a/ios/Podfile b/ios/Podfile index 76566c5d..453deae3 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -# platform :ios, '9.0' +platform :ios, '9.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index f0068563..eb95dfc1 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -493,7 +493,7 @@ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = 4NYTN6RU3N; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( @@ -501,6 +501,7 @@ "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", @@ -521,7 +522,7 @@ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = 4NYTN6RU3N; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( @@ -529,6 +530,7 @@ "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 30a138d4..734fe707 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -2,17 +2,6 @@ - CFBundleURLTypes - - - CFBundleURLName - io.gitjournal.gitjournal - CFBundleURLSchemes - - gitjournal - - - CFBundleDevelopmentRegion en CFBundleDisplayName @@ -24,25 +13,32 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - journal + GitJournal CFBundlePackageType APPL CFBundleShortVersionString - 1.0 + $(FLUTTER_BUILD_NAME) CFBundleSignature ???? + CFBundleURLTypes + + + CFBundleURLName + io.gitjournal.gitjournal + CFBundleURLSchemes + + gitjournal + + + CFBundleVersion - 1 + $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main - UIRequiredDeviceCapabilities - - arm64 - UISupportedInterfaceOrientations UIInterfaceOrientationPortrait