Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 73 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
15 changes: 13 additions & 2 deletions MapsAndPlacesDemo/Podfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
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'
pod 'MaterialComponents/ActionSheet'
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
Loading