Skip to content

Commit 4d3dcd5

Browse files
authored
feat: Create separate demo projects for Maps BETA (#91)
* feat: Maps Beta demos. Change-Id: Idba7aa4b453fa2b7595896b56a94207ae06756b5 * Add swift maps beta samples. Change-Id: If858d3071d2660baddd7d709dd3b54c89fa5f59b * Adding GitHub actions. Change-Id: I5f3e6e2a708e5461d0385c641818a1d09eeb49af * Add Colliding markers sample. Change-Id: Icd9264d41e41407b19cb536b0ed6bd4598067322 * Adding stamped polyline demo. Change-Id: I9f0bf30f68346b7c6dd34aa4ed8bf2461646966e * s/Master/Main. Change-Id: I179bd99448051f053df785b20bbc596d4f9eff69
1 parent f849264 commit 4d3dcd5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2659
-9
lines changed

.github/workflows/build.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,56 @@ jobs:
113113
-scheme PlacesSnippets \
114114
-destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty
115115
116+
build-GoogleMapsBeta:
117+
runs-on: macos-latest
118+
119+
steps:
120+
- name: Checkout repository
121+
uses: actions/checkout@v2
122+
123+
- name: Install CocoaPods
124+
run: |
125+
sudo gem install cocoapods
126+
127+
- name: Run pod install
128+
run: |
129+
pod install --project-directory=GoogleMapsBeta/
130+
131+
- name: Build project
132+
run: |
133+
echo "Replacing #error for API key"
134+
sed -i .prev '/#error/'d GoogleMaps/GoogleMapsDemos/SDKDemoAPIKey.h
135+
136+
echo "Building"
137+
xcodebuild -workspace GoogleMapsBeta/GoogleMapsBeta.xcworkspace \
138+
-scheme GoogleMapsBeta \
139+
-destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty
140+
141+
build-GoogleMapsBeta-Swift:
142+
runs-on: macos-latest
143+
144+
steps:
145+
- name: Checkout repository
146+
uses: actions/checkout@v2
147+
148+
- name: Install CocoaPods
149+
run: |
150+
sudo gem install cocoapods
151+
152+
- name: Run pod install
153+
run: |
154+
pod install --project-directory=GoogleMapsBeta-Swift/
155+
156+
- name: Build project
157+
run: |
158+
echo "Replacing #error for API key"
159+
sed -i .prev '/#error/'d GoogleMaps-Swift/GoogleMapsSwiftDemos/Swift/SDKConstants.swift
160+
161+
echo "Building"
162+
xcodebuild -workspace GoogleMapsBeta-Swift/GoogleMapsBeta-Swift.xcworkspace \
163+
-scheme GoogleMapsBeta-Swift \
164+
-destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty
165+
116166
build-GoogleMaps:
117167
runs-on: macos-latest
118168

@@ -138,6 +188,31 @@ jobs:
138188
-scheme GoogleMapsDemos \
139189
-destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty
140190

191+
build-GoogleMaps-Swift:
192+
runs-on: macos-latest
193+
194+
steps:
195+
- name: Checkout repository
196+
uses: actions/checkout@v2
197+
198+
- name: Install CocoaPods
199+
run: |
200+
sudo gem install cocoapods
201+
202+
- name: Run pod install
203+
run: |
204+
pod install --project-directory=GoogleMaps-Swift/
205+
206+
- name: Build project
207+
run: |
208+
echo "Replacing #error for API key"
209+
sed -i .prev '/#error/'d GoogleMaps-Swift/GoogleMapsSwiftDemos/Swift/SDKConstants.swift
210+
211+
echo "Building"
212+
xcodebuild -workspace GoogleMaps-Swift/GoogleMapsSwiftDemos.xcworkspace \
213+
-scheme GoogleMapsSwiftDemos \
214+
-destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty
215+
141216
build-GooglePlaces:
142217
runs-on: macos-latest
143218

@@ -163,6 +238,31 @@ jobs:
163238
-scheme GooglePlacesDemos \
164239
-destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty
165240

241+
build-GooglePlaces-Swift:
242+
runs-on: macos-latest
243+
244+
steps:
245+
- name: Checkout repository
246+
uses: actions/checkout@v2
247+
248+
- name: Install CocoaPods
249+
run: |
250+
sudo gem install cocoapods
251+
252+
- name: Run pod install
253+
run: |
254+
pod install --project-directory=GooglePlaces-Swift/
255+
256+
- name: Build project
257+
run: |
258+
echo "Replacing #error for API key"
259+
sed -i .prev '/#error/'d GooglePlaces-Swift/GooglePlacesSwiftDemos/Swift/SDKDemoAPIKey.swift
260+
261+
echo "Building"
262+
xcodebuild -workspace GooglePlaces-Swift/GooglePlacesSwiftDemos.xcworkspace \
263+
-scheme GooglePlacesSwiftDemos \
264+
-destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty
265+
166266
build-current-place-on-map:
167267
runs-on: macos-latest
168268

GoogleMaps/GoogleMapsDemos/MasterViewController.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
/*
2-
* Copyright 2016 Google LLC. All rights reserved.
2+
* Copyright 2020 Google LLC
33
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
47
*
5-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6-
* file except in compliance with the License. You may obtain a copy of the License at
8+
* http://www.apache.org/licenses/LICENSE-2.0
79
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software distributed under
11-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
12-
* ANY KIND, either express or implied. See the License for the specific language governing
13-
* permissions and limitations under the License.
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
1415
*/
1516

1617
#import <UIKit/UIKit.h>

0 commit comments

Comments
 (0)