diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7fbd7aa2..b8e47910 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,10 +43,14 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Building" - xcodebuild -workspace snippets/MapsSnippets.xcworkspace \ + xcodebuild -workspace snippets/MapsSnippets/MapsSnippets.xcworkspace \ -scheme MapsSnippets \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty build-MapsUtilsSnippets: runs-on: macos-latest @@ -65,10 +69,14 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Building" - xcodebuild -workspace snippets/MapsUtilsSnippets.xcworkspace \ + xcodebuild -workspace snippets/MapsUtilsSnippets/MapsUtilsSnippets.xcworkspace \ -scheme MapsUtilsSnippets \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty build-PlacesSnippets: runs-on: macos-latest @@ -87,10 +95,14 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Building" - xcodebuild -workspace snippets/GoogleMapsDemos.xcworkspace \ + xcodebuild -workspace snippets/PlacesSnippets/PlacesSnippets.xcworkspace \ -scheme PlacesSnippets \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty build-GoogleMaps: runs-on: macos-latest @@ -109,13 +121,17 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Replacing #error for API key" sed -i .prev '/#error/'d GoogleMaps/GoogleMapsXCFrameworkDemos/SDKDemoAPIKey.h echo "Building" xcodebuild -workspace GoogleMaps/GoogleMapsXCFrameworkDemos.xcworkspace \ -scheme GoogleMapsXCFrameworkDemos \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty build-GoogleMaps-Swift: runs-on: macos-latest @@ -134,13 +150,17 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Replacing #error for API key" sed -i .prev '/#error/'d GoogleMaps-Swift/GoogleMapsSwiftXCFrameworkDemos/Swift/SDKConstants.swift echo "Building" xcodebuild -workspace GoogleMaps-Swift/GoogleMapsSwiftXCFrameworkDemos.xcworkspace \ -scheme GoogleMapsSwiftXCFrameworkDemos \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty build-GooglePlaces: runs-on: macos-latest @@ -159,13 +179,17 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Replacing #error for API key" sed -i .prev '/#error/'d GooglePlaces/GooglePlacesXCFrameworkDemos/SDKDemoAPIKey.h echo "Building" xcodebuild -workspace GooglePlaces/GooglePlacesXCFrameworkDemos.xcworkspace \ -scheme GooglePlacesXCFrameworkDemos \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty build-GooglePlaces-Swift: runs-on: macos-latest @@ -184,13 +208,17 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Replacing #error for API key" sed -i .prev '/#error/'d GooglePlaces-Swift/GooglePlacesSwiftXCFrameworkDemos/Swift/SDKDemoAPIKey.swift echo "Building" xcodebuild -workspace GooglePlaces-Swift/GooglePlacesSwiftXCFrameworkDemos.xcworkspace \ -scheme GooglePlacesSwiftXCFrameworkDemos \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty build-GoogleNavigation: runs-on: macos-latest @@ -209,13 +237,17 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Replacing #error for API key" sed -i .prev '/#error/'d GoogleNavigation/GoogleNavXCFrameworkDemos/SDKDemoAPIKey.h echo "Building" xcodebuild -workspace GoogleNavigation/GoogleNavXCFrameworkDemos.xcworkspace \ - -scheme GoogleNavigationXCFrameworkDemos \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty + -scheme GoogleNavXCFrameworkDemos \ + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty build-GoogleNavigation-Swift: runs-on: macos-latest @@ -234,13 +266,17 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Replacing #error for API key" sed -i .prev '/#error/'d GoogleNavigation-Swift/GoogleNavSwiftXCFrameworkDemos/Swift/SDKDemoAPIKey.swift echo "Building" xcodebuild -workspace GoogleNavigation-Swift/GoogleNavSwiftXCFrameworkDemos.xcworkspace \ - -scheme GoogleNavigationSwiftXCFrameworkDemos \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty + -scheme GoogleNavSwiftXCFrameworkDemos \ + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty build-current-place-on-map: runs-on: macos-latest @@ -259,10 +295,14 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Building" - xcodebuild -workspace tutorials/current-place-on-map.xcworkspace \ + xcodebuild -workspace tutorials/current-place-on-map/current-place-on-map.xcworkspace \ -scheme current-place-on-map \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty build-map-with-marker: runs-on: macos-latest @@ -281,10 +321,14 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Building" - xcodebuild -workspace tutorials/map-with-marker.xcworkspace \ + xcodebuild -workspace tutorials/map-with-marker/map-with-marker.xcworkspace \ -scheme map-with-marker \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty build-places-address-form: runs-on: macos-latest @@ -303,10 +347,14 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Building" - xcodebuild -workspace tutorials/places-address-form.xcworkspace \ + xcodebuild -workspace tutorials/places-address-form/places-address-form.xcworkspace \ -scheme places-address-form \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty build-MapsPlacesDemo-form: runs-on: macos-latest @@ -325,13 +373,17 @@ jobs: - name: Build project run: | + # Exit immediately if a command in the pipeline fails + set -o pipefail + echo "Replacing #error for API key" sed -i .prev '/#error/'d MapsAndPlacesDemo/MapsAndPlacesDemo/ApiKeys.swift echo "Building" xcodebuild -workspace MapsAndPlacesDemo/MapsAndPlacesDemo.xcworkspace \ -scheme MapsAndPlacesDemo \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 11 build | xcpretty + -destination 'generic/platform=iOS' build \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty test: # used as required status check runs-on: ubuntu-latest diff --git a/MapsAndPlacesDemo/Podfile b/MapsAndPlacesDemo/Podfile index 4bf1df0c..9281bca8 100644 --- a/MapsAndPlacesDemo/Podfile +++ b/MapsAndPlacesDemo/Podfile @@ -1,8 +1,11 @@ source 'https://cdn.cocoapods.org/' + +platform :ios, '16.0' + target 'MapsAndPlacesDemo' do use_frameworks! - pod 'GoogleMaps', '~>4.0.0' - pod 'GooglePlaces', '~>4.0.0' + pod 'GoogleMaps', '~>10.0.0' + pod 'GooglePlaces', '~>10.0.0' pod 'Google-Maps-iOS-Utils', '~> 3.1.4' pod 'MaterialComponents/Buttons' pod 'MaterialComponents/AppBar' @@ -10,4 +13,12 @@ target 'MapsAndPlacesDemo' do pod 'MaterialComponents/Banner' pod 'MaterialComponents/Cards' pod 'MaterialComponents/Snackbar' +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0' + end + end end \ No newline at end of file