diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3745445..46994ba 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,12 +12,7 @@ pool: steps: - script: | cd example - $(flutterPath)/flutter build ios - displayName: 'Test iOS -- Build' - env: - flutterPath: $(flutterPath) -- script: | - cd example + $(flutterPath)/flutter packages get $(flutterPath)/flutter build apk --target-platform android-arm,android-arm64 --split-per-abi displayName: 'Test Android -- Build' env: diff --git a/example/ios/Podfile b/example/ios/Podfile index 799e2b4..390fb13 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -66,6 +66,7 @@ end post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| + config.build_settings['SWIFT_VERSION'] = '5.0' config.build_settings['ENABLE_BITCODE'] = 'NO' end end diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 7e82a4c..53d5fb7 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -368,6 +368,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; }; @@ -451,6 +452,7 @@ MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -502,6 +504,7 @@ MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; };