Skip to content

Commit 03ad68b

Browse files
authored
Merge pull request #34 from jenperson/master
Updating to latest version of Swift
2 parents 2079352 + 6cbac14 commit 03ad68b

File tree

2 files changed

+14
-21
lines changed

2 files changed

+14
-21
lines changed

tutorials/map-with-marker/map-with-marker.xcodeproj/project.pbxproj

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
E5AA15641E006EC3005DF256 /* Sources */,
103103
E5AA15651E006EC3005DF256 /* Frameworks */,
104104
E5AA15661E006EC3005DF256 /* Resources */,
105-
BBADB1D31865F5312130B2BD /* [CP] Embed Pods Frameworks */,
106105
C99C53F5CBCA7B728CC9419E /* [CP] Copy Pods Resources */,
107106
);
108107
buildRules = (
@@ -127,6 +126,7 @@
127126
E5AA15671E006EC3005DF256 = {
128127
CreatedOnToolsVersion = 8.2;
129128
DevelopmentTeam = EQHXZ8M8AV;
129+
LastSwiftMigration = 1020;
130130
ProvisioningStyle = Automatic;
131131
};
132132
};
@@ -136,6 +136,7 @@
136136
developmentRegion = English;
137137
hasScannedForEncodings = 0;
138138
knownRegions = (
139+
English,
139140
en,
140141
Base,
141142
);
@@ -170,28 +171,16 @@
170171
files = (
171172
);
172173
inputPaths = (
174+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
175+
"${PODS_ROOT}/Manifest.lock",
173176
);
174177
name = "[CP] Check Pods Manifest.lock";
175178
outputPaths = (
179+
"$(DERIVED_FILE_DIR)/Pods-map-with-marker-checkManifestLockResult.txt",
176180
);
177181
runOnlyForDeploymentPostprocessing = 0;
178182
shellPath = /bin/sh;
179-
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
180-
showEnvVarsInLog = 0;
181-
};
182-
BBADB1D31865F5312130B2BD /* [CP] Embed Pods Frameworks */ = {
183-
isa = PBXShellScriptBuildPhase;
184-
buildActionMask = 2147483647;
185-
files = (
186-
);
187-
inputPaths = (
188-
);
189-
name = "[CP] Embed Pods Frameworks";
190-
outputPaths = (
191-
);
192-
runOnlyForDeploymentPostprocessing = 0;
193-
shellPath = /bin/sh;
194-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-map-with-marker/Pods-map-with-marker-frameworks.sh\"\n";
183+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
195184
showEnvVarsInLog = 0;
196185
};
197186
C99C53F5CBCA7B728CC9419E /* [CP] Copy Pods Resources */ = {
@@ -200,13 +189,16 @@
200189
files = (
201190
);
202191
inputPaths = (
192+
"${PODS_ROOT}/Target Support Files/Pods-map-with-marker/Pods-map-with-marker-resources.sh",
193+
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Resources/GoogleMaps.bundle",
203194
);
204195
name = "[CP] Copy Pods Resources";
205196
outputPaths = (
197+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleMaps.bundle",
206198
);
207199
runOnlyForDeploymentPostprocessing = 0;
208200
shellPath = /bin/sh;
209-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-map-with-marker/Pods-map-with-marker-resources.sh\"\n";
201+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-map-with-marker/Pods-map-with-marker-resources.sh\"\n";
210202
showEnvVarsInLog = 0;
211203
};
212204
/* End PBXShellScriptBuildPhase section */
@@ -346,7 +338,7 @@
346338
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
347339
PRODUCT_BUNDLE_IDENTIFIER = "com.google.examples.map-with-marker";
348340
PRODUCT_NAME = "$(TARGET_NAME)";
349-
SWIFT_VERSION = 3.0;
341+
SWIFT_VERSION = 5.0;
350342
};
351343
name = Debug;
352344
};
@@ -360,7 +352,7 @@
360352
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
361353
PRODUCT_BUNDLE_IDENTIFIER = "com.google.examples.map-with-marker";
362354
PRODUCT_NAME = "$(TARGET_NAME)";
363-
SWIFT_VERSION = 3.0;
355+
SWIFT_VERSION = 5.0;
364356
};
365357
name = Release;
366358
};
@@ -383,6 +375,7 @@
383375
E5AA157C1E006EC3005DF256 /* Release */,
384376
);
385377
defaultConfigurationIsVisible = 0;
378+
defaultConfigurationName = Release;
386379
};
387380
/* End XCConfigurationList section */
388381
};

tutorials/map-with-marker/map-with-marker/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2222
var window: UIWindow?
2323

2424

25-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
25+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
2626
GMSServices.provideAPIKey("YOUR_API_KEY")
2727
return true
2828
}

0 commit comments

Comments
 (0)