Skip to content

Commit a1e7900

Browse files
chore: Update Maps and Places samples from CocoaPods (#194)
* chore: Update Maps and Places samples from CocoaPods * chore: update build file with new project folder names * chore: update snippets Podfiles * chore: update tutorials Podfiles * chore: add project folder location to demos Podfiles * chore: update scheme name in xcodebuild commands --------- Co-authored-by: Angela Yu <[email protected]>
1 parent a1ddc15 commit a1e7900

File tree

488 files changed

+25453
-31
lines changed

Some content is hidden

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

488 files changed

+25453
-31
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ jobs:
110110
- name: Build project
111111
run: |
112112
echo "Replacing #error for API key"
113-
sed -i .prev '/#error/'d GoogleMaps/GoogleMapsDemos/SDKDemoAPIKey.h
113+
sed -i .prev '/#error/'d GoogleMaps/GoogleMapsXCFrameworkDemos/SDKDemoAPIKey.h
114114
115115
echo "Building"
116-
xcodebuild -workspace GoogleMaps/GoogleMapsDemos.xcworkspace \
117-
-scheme GoogleMapsDemos \
116+
xcodebuild -workspace GoogleMaps/GoogleMapsXCFrameworkDemos.xcworkspace \
117+
-scheme GoogleMapsXCFrameworkDemos \
118118
-destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty
119119
120120
build-GoogleMaps-Swift:
@@ -135,11 +135,11 @@ jobs:
135135
- name: Build project
136136
run: |
137137
echo "Replacing #error for API key"
138-
sed -i .prev '/#error/'d GoogleMaps-Swift/GoogleMapsSwiftDemos/Swift/SDKConstants.swift
138+
sed -i .prev '/#error/'d GoogleMaps-Swift/GoogleMapsSwiftXCFrameworkDemos/Swift/SDKConstants.swift
139139
140140
echo "Building"
141-
xcodebuild -workspace GoogleMaps-Swift/GoogleMapsSwiftDemos.xcworkspace \
142-
-scheme GoogleMapsSwiftDemos \
141+
xcodebuild -workspace GoogleMaps-Swift/GoogleMapsSwiftXCFrameworkDemos.xcworkspace \
142+
-scheme GoogleMapsSwiftXCFrameworkDemos \
143143
-destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty
144144
145145
build-GooglePlaces:
@@ -160,11 +160,11 @@ jobs:
160160
- name: Build project
161161
run: |
162162
echo "Replacing #error for API key"
163-
sed -i .prev '/#error/'d GooglePlaces/GooglePlacesDemos/SDKDemoAPIKey.h
163+
sed -i .prev '/#error/'d GooglePlaces/GooglePlacesXCFrameworkDemos/SDKDemoAPIKey.h
164164
165165
echo "Building"
166-
xcodebuild -workspace GooglePlaces/GooglePlacesDemos.xcworkspace \
167-
-scheme GooglePlacesDemos \
166+
xcodebuild -workspace GooglePlaces/GooglePlacesXCFrameworkDemos.xcworkspace \
167+
-scheme GooglePlacesXCFrameworkDemos \
168168
-destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty
169169
170170
build-GooglePlaces-Swift:
@@ -185,11 +185,11 @@ jobs:
185185
- name: Build project
186186
run: |
187187
echo "Replacing #error for API key"
188-
sed -i .prev '/#error/'d GooglePlaces-Swift/GooglePlacesSwiftDemos/Swift/SDKDemoAPIKey.swift
188+
sed -i .prev '/#error/'d GooglePlaces-Swift/GooglePlacesSwiftXCFrameworkDemos/Swift/SDKDemoAPIKey.swift
189189
190190
echo "Building"
191-
xcodebuild -workspace GooglePlaces-Swift/GooglePlacesSwiftDemos.xcworkspace \
192-
-scheme GooglePlacesSwiftDemos \
191+
xcodebuild -workspace GooglePlaces-Swift/GooglePlacesSwiftXCFrameworkDemos.xcworkspace \
192+
-scheme GooglePlacesSwiftXCFrameworkDemos \
193193
-destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty
194194
195195
build-current-place-on-map:

GoogleMaps-Swift/GoogleMapsSwiftXCFrameworkDemos.xcodeproj/project.pbxproj

Lines changed: 680 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>${PRODUCT_NAME}</string>
9+
<key>CFBundleExecutable</key>
10+
<string>${EXECUTABLE_NAME}</string>
11+
<key>CFBundleIdentifier</key>
12+
<string>com.example.GoogleMapsDemos</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>${PRODUCT_NAME}</string>
17+
<key>CFBundlePackageType</key>
18+
<string>APPL</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>1.0</string>
21+
<key>CFBundleVersion</key>
22+
<string>1.0</string>
23+
<key>LSRequiresIPhoneOS</key>
24+
<true/>
25+
<key>NSLocationWhenInUseUsageDescription</key>
26+
<string>Show your location on the map</string>
27+
<key>UILaunchStoryboardName</key>
28+
<string>LaunchScreen</string>
29+
<key>UIRequiredDeviceCapabilities</key>
30+
<array>
31+
<string>armv7</string>
32+
</array>
33+
<key>UIStatusBarHidden</key>
34+
<false/>
35+
<key>UISupportedInterfaceOrientations</key>
36+
<array>
37+
<string>UIInterfaceOrientationPortrait</string>
38+
<string>UIInterfaceOrientationLandscapeLeft</string>
39+
<string>UIInterfaceOrientationLandscapeRight</string>
40+
</array>
41+
<key>UISupportedInterfaceOrientations~ipad</key>
42+
<array>
43+
<string>UIInterfaceOrientationPortrait</string>
44+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
45+
<string>UIInterfaceOrientationLandscapeLeft</string>
46+
<string>UIInterfaceOrientationLandscapeRight</string>
47+
</array>
48+
</dict>
49+
</plist>
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"scale" : "2x",
6+
"size" : "20x20"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"scale" : "3x",
11+
"size" : "20x20"
12+
},
13+
{
14+
"idiom" : "iphone",
15+
"scale" : "2x",
16+
"size" : "29x29"
17+
},
18+
{
19+
"idiom" : "iphone",
20+
"scale" : "3x",
21+
"size" : "29x29"
22+
},
23+
{
24+
"idiom" : "iphone",
25+
"scale" : "2x",
26+
"size" : "40x40"
27+
},
28+
{
29+
"idiom" : "iphone",
30+
"scale" : "3x",
31+
"size" : "40x40"
32+
},
33+
{
34+
"filename" : "Maps-SDK-Demo-App_120.png",
35+
"idiom" : "iphone",
36+
"scale" : "2x",
37+
"size" : "60x60"
38+
},
39+
{
40+
"filename" : "Maps-SDK-Demo-App_180.png",
41+
"idiom" : "iphone",
42+
"scale" : "3x",
43+
"size" : "60x60"
44+
},
45+
{
46+
"idiom" : "ipad",
47+
"scale" : "1x",
48+
"size" : "20x20"
49+
},
50+
{
51+
"idiom" : "ipad",
52+
"scale" : "2x",
53+
"size" : "20x20"
54+
},
55+
{
56+
"idiom" : "ipad",
57+
"scale" : "1x",
58+
"size" : "29x29"
59+
},
60+
{
61+
"idiom" : "ipad",
62+
"scale" : "2x",
63+
"size" : "29x29"
64+
},
65+
{
66+
"idiom" : "ipad",
67+
"scale" : "1x",
68+
"size" : "40x40"
69+
},
70+
{
71+
"idiom" : "ipad",
72+
"scale" : "2x",
73+
"size" : "40x40"
74+
},
75+
{
76+
"filename" : "Maps-SDK-Demo-App_76.png",
77+
"idiom" : "ipad",
78+
"scale" : "1x",
79+
"size" : "76x76"
80+
},
81+
{
82+
"filename" : "Maps-SDK-Demo-App_152.png",
83+
"idiom" : "ipad",
84+
"scale" : "2x",
85+
"size" : "76x76"
86+
},
87+
{
88+
"filename" : "Maps-SDK-Demo-App_167.png",
89+
"idiom" : "ipad",
90+
"scale" : "2x",
91+
"size" : "83.5x83.5"
92+
},
93+
{
94+
"idiom" : "ios-marketing",
95+
"scale" : "1x",
96+
"size" : "1024x1024"
97+
}
98+
],
99+
"info" : {
100+
"author" : "xcode",
101+
"version" : 1
102+
}
103+
}
4.51 KB
5.65 KB
6.31 KB
6.77 KB
2.59 KB
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}

0 commit comments

Comments
 (0)