Skip to content

Commit

Permalink
fix ci build by setting iphone deployment target to 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
smallTrogdor committed Dec 18, 2024
1 parent 2401ed4 commit 2fa2b89
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 98 deletions.
7 changes: 2 additions & 5 deletions example/.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ migration:
- platform: root
create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
- platform: android
create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
- platform: ios
create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
Expand All @@ -29,5 +26,5 @@ migration:
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- "lib/main.dart"
- "ios/Runner.xcodeproj/project.pbxproj"
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
18 changes: 17 additions & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '12.0'
platform :ios, '12.0'

$iOSVersion = '12.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down Expand Up @@ -37,8 +39,22 @@ target 'Runner' do
end
end


post_install do |installer|

installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=*]"] = "armv7"
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion
end

installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)

# add these lines:
target.build_configurations.each do |config|
if Gem::Version.new($iOSVersion) > Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'])
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion
end
end
end
end
14 changes: 7 additions & 7 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ PODS:
- camera_avfoundation (0.0.1):
- Flutter
- Flutter (1.0.0)
- google_mlkit_barcode_scanning (0.12.1):
- google_mlkit_barcode_scanning (0.12.0):
- Flutter
- google_mlkit_commons
- GoogleMLKit/BarcodeScanning (~> 6.0.0)
- google_mlkit_commons (0.8.1):
- google_mlkit_commons (0.7.1):
- Flutter
- MLKitVision
- google_mlkit_text_recognition (0.13.1):
- google_mlkit_text_recognition (0.13.0):
- Flutter
- google_mlkit_commons
- GoogleMLKit/TextRecognition (~> 6.0.0)
Expand Down Expand Up @@ -118,9 +118,9 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
camera_avfoundation: dd002b0330f4981e1bbcb46ae9b62829237459a4
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
google_mlkit_barcode_scanning: 7a4977a630fa019624ffee251d94624dab26d527
google_mlkit_commons: 242b715c38863e1ca5e732c909a1545ba52f1375
google_mlkit_text_recognition: e36a265afba48580518dfc4532ce9fefaae7d20e
google_mlkit_barcode_scanning: 383d0c2dd62d92b36c0b10c7e69cf98d3650dc40
google_mlkit_commons: 96aaca445520311b84a2da013dedf3427fe4cc69
google_mlkit_text_recognition: 393c2526da49aa6c9c883e6d69100f54af011e24
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
GoogleMLKit: 97ac7af399057e99182ee8edfa8249e3226a4065
GoogleToolboxForMac: d1a2cbf009c453f4d6ded37c105e2f67a32206d8
Expand All @@ -137,6 +137,6 @@ SPEC CHECKSUMS:
native_device_orientation: 348b10c346a60ebbc62fb235a4fdb5d1b61a8f55
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47

PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796
PODFILE CHECKSUM: cec2932f7d845e86e3a93c34caddfcae6adcbca8

COCOAPODS: 1.16.2
Loading

0 comments on commit 2fa2b89

Please sign in to comment.