From a1ddc159a57fc09b1e335ac29fc0bf9bfb79e0fa Mon Sep 17 00:00:00 2001 From: Owen LaRosa Date: Mon, 20 Nov 2023 16:50:55 -0800 Subject: [PATCH] chore: remove beta examples and related readme instructions (#184) --- .github/workflows/build.yml | 72 --- .../project.pbxproj | 435 ----------------- .../GoogleMapsBeta-Swift/AppDelegate.swift | 42 -- .../AccentColor.colorset/Contents.json | 11 - .../AppIcon.appiconset/Contents.json | 98 ---- .../Assets.xcassets/Contents.json | 6 - .../GoogleMapsBeta-Swift/Info.plist | 60 --- .../Resources/aeroplane.png | Bin 1302 -> 0 bytes .../Resources/voyager.png | Bin 416 -> 0 bytes .../Resources/voyager@2x.png | Bin 799 -> 0 bytes .../SampleListViewController.swift | 80 ---- .../Samples/CloudBasedMapStyling.swift | 88 ---- .../CollidingMarkersViewController.swift | 122 ----- .../Samples/Samples.swift | 37 -- .../StampedPolylinesViewController.swift | 76 --- .../GoogleMapsBeta-Swift/SceneDelegate.swift | 34 -- GoogleMapsBeta-Swift/Podfile | 6 - .../GoogleMapsBeta.xcodeproj/project.pbxproj | 444 ------------------ GoogleMapsBeta/GoogleMapsBeta/AppDelegate.h | 22 - GoogleMapsBeta/GoogleMapsBeta/AppDelegate.m | 48 -- .../AccentColor.colorset/Contents.json | 11 - .../AppIcon.appiconset/Contents.json | 98 ---- .../Assets.xcassets/Contents.json | 6 - GoogleMapsBeta/GoogleMapsBeta/Info.plist | 62 --- .../GoogleMapsBeta/MainViewController.h | 21 - .../GoogleMapsBeta/MainViewController.m | 129 ----- .../GoogleMapsBeta/Resources/aeroplane.png | Bin 1302 -> 0 bytes .../GoogleMapsBeta/Resources/voyager.png | Bin 416 -> 0 bytes .../GoogleMapsBeta/Resources/voyager@2x.png | Bin 799 -> 0 bytes .../CloudBasedMapStylingViewController.h | 19 - .../CloudBasedMapStylingViewController.m | 138 ------ .../Samples/CollidingMarkersViewController.h | 19 - .../Samples/CollidingMarkersViewController.m | 133 ------ .../GoogleMapsBeta/Samples/Samples.h | 24 - .../GoogleMapsBeta/Samples/Samples.m | 48 -- .../Samples/StampedPolylinesViewController.h | 19 - .../Samples/StampedPolylinesViewController.m | 87 ---- GoogleMapsBeta/GoogleMapsBeta/SceneDelegate.h | 25 - GoogleMapsBeta/GoogleMapsBeta/SceneDelegate.m | 49 -- GoogleMapsBeta/GoogleMapsBeta/main.m | 25 - GoogleMapsBeta/Podfile | 6 - README.md | 21 - 42 files changed, 2621 deletions(-) delete mode 100644 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift.xcodeproj/project.pbxproj delete mode 100644 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/AppDelegate.swift delete mode 100644 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Assets.xcassets/Contents.json delete mode 100644 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Info.plist delete mode 100755 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Resources/aeroplane.png delete mode 100755 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Resources/voyager.png delete mode 100755 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Resources/voyager@2x.png delete mode 100755 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/SampleListViewController.swift delete mode 100644 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/CloudBasedMapStyling.swift delete mode 100644 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/CollidingMarkersViewController.swift delete mode 100755 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/Samples.swift delete mode 100644 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/StampedPolylinesViewController.swift delete mode 100644 GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/SceneDelegate.swift delete mode 100755 GoogleMapsBeta-Swift/Podfile delete mode 100644 GoogleMapsBeta/GoogleMapsBeta.xcodeproj/project.pbxproj delete mode 100644 GoogleMapsBeta/GoogleMapsBeta/AppDelegate.h delete mode 100644 GoogleMapsBeta/GoogleMapsBeta/AppDelegate.m delete mode 100644 GoogleMapsBeta/GoogleMapsBeta/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 GoogleMapsBeta/GoogleMapsBeta/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 GoogleMapsBeta/GoogleMapsBeta/Assets.xcassets/Contents.json delete mode 100644 GoogleMapsBeta/GoogleMapsBeta/Info.plist delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/MainViewController.h delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/MainViewController.m delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/Resources/aeroplane.png delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/Resources/voyager.png delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/Resources/voyager@2x.png delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/Samples/CloudBasedMapStylingViewController.h delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/Samples/CloudBasedMapStylingViewController.m delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/Samples/CollidingMarkersViewController.h delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/Samples/CollidingMarkersViewController.m delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/Samples/Samples.h delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/Samples/Samples.m delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/Samples/StampedPolylinesViewController.h delete mode 100755 GoogleMapsBeta/GoogleMapsBeta/Samples/StampedPolylinesViewController.m delete mode 100644 GoogleMapsBeta/GoogleMapsBeta/SceneDelegate.h delete mode 100644 GoogleMapsBeta/GoogleMapsBeta/SceneDelegate.m delete mode 100644 GoogleMapsBeta/GoogleMapsBeta/main.m delete mode 100755 GoogleMapsBeta/Podfile diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52364061..06422264 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,28 +26,6 @@ on: workflow_dispatch: jobs: - build-MapsBetaSnippets: - runs-on: macos-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Install CocoaPods - run: | - sudo gem install cocoapods - - - name: Run pod install - run: | - pod install --project-directory=snippets/MapsBetaSnippets - - - name: Build project - run: | - echo "Building" - xcodebuild -workspace snippets/MapsBetaSnippets.xcworkspace \ - -scheme MapsBetaSnippets \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty - build-MapsSnippets: runs-on: macos-latest @@ -114,56 +92,6 @@ jobs: -scheme PlacesSnippets \ -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty - build-GoogleMapsBeta: - runs-on: macos-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Install CocoaPods - run: | - sudo gem install cocoapods - - - name: Run pod install - run: | - pod install --project-directory=GoogleMapsBeta/ - - - name: Build project - run: | - echo "Replacing #error for API key" - sed -i .prev '/#error/'d GoogleMaps/GoogleMapsDemos/SDKDemoAPIKey.h - - echo "Building" - xcodebuild -workspace GoogleMapsBeta/GoogleMapsBeta.xcworkspace \ - -scheme GoogleMapsBeta \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty - - build-GoogleMapsBeta-Swift: - runs-on: macos-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Install CocoaPods - run: | - sudo gem install cocoapods - - - name: Run pod install - run: | - pod install --project-directory=GoogleMapsBeta-Swift/ - - - name: Build project - run: | - echo "Replacing #error for API key" - sed -i .prev '/#error/'d GoogleMaps-Swift/GoogleMapsSwiftDemos/Swift/SDKConstants.swift - - echo "Building" - xcodebuild -workspace GoogleMapsBeta-Swift/GoogleMapsBeta-Swift.xcworkspace \ - -scheme GoogleMapsBeta-Swift \ - -destination platform\=iOS\ Simulator,OS\=13.3,name\=iPhone\ 8 build | xcpretty - build-GoogleMaps: runs-on: macos-latest diff --git a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift.xcodeproj/project.pbxproj b/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift.xcodeproj/project.pbxproj deleted file mode 100644 index da9b75c6..00000000 --- a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift.xcodeproj/project.pbxproj +++ /dev/null @@ -1,435 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 51; - objects = { - -/* Begin PBXBuildFile section */ - 0E37748791710174781F22C6 /* libPods-GoogleMapsBeta-Swift.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 69FAB009F701D8DEF618CBC7 /* libPods-GoogleMapsBeta-Swift.a */; }; - AA33870425537CB400CD9AC4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA33870325537CB400CD9AC4 /* AppDelegate.swift */; }; - AA33870625537CB400CD9AC4 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA33870525537CB400CD9AC4 /* SceneDelegate.swift */; }; - AA33870D25537CB600CD9AC4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AA33870C25537CB600CD9AC4 /* Assets.xcassets */; }; - AA33871D25537D1100CD9AC4 /* SDKConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA33871C25537D1100CD9AC4 /* SDKConstants.swift */; }; - AA33872025537D5700CD9AC4 /* SampleListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA33871F25537D5700CD9AC4 /* SampleListViewController.swift */; }; - AA33872725537DDC00CD9AC4 /* Samples.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA33872625537DDC00CD9AC4 /* Samples.swift */; }; - AA33872A25537E1500CD9AC4 /* CloudBasedMapStyling.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA33872925537E1500CD9AC4 /* CloudBasedMapStyling.swift */; }; - AA33872D255389B700CD9AC4 /* CollidingMarkersViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA33872C255389B700CD9AC4 /* CollidingMarkersViewController.swift */; }; - AA33873025538F7700CD9AC4 /* StampedPolylinesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA33872F25538F7700CD9AC4 /* StampedPolylinesViewController.swift */; }; - AA33876525547DB500CD9AC4 /* voyager@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = AA33876225547DB500CD9AC4 /* voyager@2x.png */; }; - AA33876625547DB500CD9AC4 /* voyager.png in Resources */ = {isa = PBXBuildFile; fileRef = AA33876325547DB500CD9AC4 /* voyager.png */; }; - AA33876725547DB500CD9AC4 /* aeroplane.png in Resources */ = {isa = PBXBuildFile; fileRef = AA33876425547DB500CD9AC4 /* aeroplane.png */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 1CEBC29BC03710523BFE7CE4 /* Pods-GoogleMapsBeta-Swift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GoogleMapsBeta-Swift.debug.xcconfig"; path = "Target Support Files/Pods-GoogleMapsBeta-Swift/Pods-GoogleMapsBeta-Swift.debug.xcconfig"; sourceTree = ""; }; - 69FAB009F701D8DEF618CBC7 /* libPods-GoogleMapsBeta-Swift.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-GoogleMapsBeta-Swift.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - AA33870025537CB400CD9AC4 /* GoogleMapsBeta-Swift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "GoogleMapsBeta-Swift.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - AA33870325537CB400CD9AC4 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - AA33870525537CB400CD9AC4 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; - AA33870C25537CB600CD9AC4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - AA33871125537CB600CD9AC4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - AA33871C25537D1100CD9AC4 /* SDKConstants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SDKConstants.swift; path = "../../GoogleMaps-Swift/GoogleMapsSwiftDemos/Swift/SDKConstants.swift"; sourceTree = ""; }; - AA33871F25537D5700CD9AC4 /* SampleListViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SampleListViewController.swift; sourceTree = ""; }; - AA33872625537DDC00CD9AC4 /* Samples.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Samples.swift; sourceTree = ""; }; - AA33872925537E1500CD9AC4 /* CloudBasedMapStyling.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CloudBasedMapStyling.swift; sourceTree = ""; }; - AA33872C255389B700CD9AC4 /* CollidingMarkersViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CollidingMarkersViewController.swift; sourceTree = ""; }; - AA33872F25538F7700CD9AC4 /* StampedPolylinesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StampedPolylinesViewController.swift; sourceTree = ""; }; - AA33876225547DB500CD9AC4 /* voyager@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "voyager@2x.png"; sourceTree = ""; }; - AA33876325547DB500CD9AC4 /* voyager.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = voyager.png; sourceTree = ""; }; - AA33876425547DB500CD9AC4 /* aeroplane.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = aeroplane.png; sourceTree = ""; }; - EE0F0406CEBEC6A31938985E /* Pods-GoogleMapsBeta-Swift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GoogleMapsBeta-Swift.release.xcconfig"; path = "Target Support Files/Pods-GoogleMapsBeta-Swift/Pods-GoogleMapsBeta-Swift.release.xcconfig"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - AA3386FD25537CB400CD9AC4 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 0E37748791710174781F22C6 /* libPods-GoogleMapsBeta-Swift.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 612383AA937F8EEC4B05F8F4 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 69FAB009F701D8DEF618CBC7 /* libPods-GoogleMapsBeta-Swift.a */, - ); - name = Frameworks; - sourceTree = ""; - }; - 6B7171847C2322EA9EDB9438 /* Pods */ = { - isa = PBXGroup; - children = ( - 1CEBC29BC03710523BFE7CE4 /* Pods-GoogleMapsBeta-Swift.debug.xcconfig */, - EE0F0406CEBEC6A31938985E /* Pods-GoogleMapsBeta-Swift.release.xcconfig */, - ); - path = Pods; - sourceTree = ""; - }; - AA3386F725537CB400CD9AC4 = { - isa = PBXGroup; - children = ( - AA33870225537CB400CD9AC4 /* GoogleMapsBeta-Swift */, - AA33870125537CB400CD9AC4 /* Products */, - 6B7171847C2322EA9EDB9438 /* Pods */, - 612383AA937F8EEC4B05F8F4 /* Frameworks */, - ); - sourceTree = ""; - }; - AA33870125537CB400CD9AC4 /* Products */ = { - isa = PBXGroup; - children = ( - AA33870025537CB400CD9AC4 /* GoogleMapsBeta-Swift.app */, - ); - name = Products; - sourceTree = ""; - }; - AA33870225537CB400CD9AC4 /* GoogleMapsBeta-Swift */ = { - isa = PBXGroup; - children = ( - AA33874925547B2A00CD9AC4 /* Resources */, - AA33872525537DA400CD9AC4 /* Samples */, - AA33871F25537D5700CD9AC4 /* SampleListViewController.swift */, - AA33871C25537D1100CD9AC4 /* SDKConstants.swift */, - AA33870325537CB400CD9AC4 /* AppDelegate.swift */, - AA33870525537CB400CD9AC4 /* SceneDelegate.swift */, - AA33870C25537CB600CD9AC4 /* Assets.xcassets */, - AA33871125537CB600CD9AC4 /* Info.plist */, - ); - path = "GoogleMapsBeta-Swift"; - sourceTree = ""; - }; - AA33872525537DA400CD9AC4 /* Samples */ = { - isa = PBXGroup; - children = ( - AA33872625537DDC00CD9AC4 /* Samples.swift */, - AA33872925537E1500CD9AC4 /* CloudBasedMapStyling.swift */, - AA33872C255389B700CD9AC4 /* CollidingMarkersViewController.swift */, - AA33872F25538F7700CD9AC4 /* StampedPolylinesViewController.swift */, - ); - path = Samples; - sourceTree = ""; - }; - AA33874925547B2A00CD9AC4 /* Resources */ = { - isa = PBXGroup; - children = ( - AA33876425547DB500CD9AC4 /* aeroplane.png */, - AA33876325547DB500CD9AC4 /* voyager.png */, - AA33876225547DB500CD9AC4 /* voyager@2x.png */, - ); - path = Resources; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - AA3386FF25537CB400CD9AC4 /* GoogleMapsBeta-Swift */ = { - isa = PBXNativeTarget; - buildConfigurationList = AA33871425537CB600CD9AC4 /* Build configuration list for PBXNativeTarget "GoogleMapsBeta-Swift" */; - buildPhases = ( - 65C5DB4D36AEAD6D2A509E5D /* [CP] Check Pods Manifest.lock */, - AA3386FC25537CB400CD9AC4 /* Sources */, - AA3386FD25537CB400CD9AC4 /* Frameworks */, - AA3386FE25537CB400CD9AC4 /* Resources */, - 8AE3EBFCE62FB01D7CAADC9F /* [CP] Copy Pods Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "GoogleMapsBeta-Swift"; - productName = "GoogleMapsBeta-Swift"; - productReference = AA33870025537CB400CD9AC4 /* GoogleMapsBeta-Swift.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - AA3386F825537CB400CD9AC4 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 1200; - LastUpgradeCheck = 1200; - TargetAttributes = { - AA3386FF25537CB400CD9AC4 = { - CreatedOnToolsVersion = 12.0; - }; - }; - }; - buildConfigurationList = AA3386FB25537CB400CD9AC4 /* Build configuration list for PBXProject "GoogleMapsBeta-Swift" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = AA3386F725537CB400CD9AC4; - productRefGroup = AA33870125537CB400CD9AC4 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - AA3386FF25537CB400CD9AC4 /* GoogleMapsBeta-Swift */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - AA3386FE25537CB400CD9AC4 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - AA33876625547DB500CD9AC4 /* voyager.png in Resources */, - AA33876525547DB500CD9AC4 /* voyager@2x.png in Resources */, - AA33870D25537CB600CD9AC4 /* Assets.xcassets in Resources */, - AA33876725547DB500CD9AC4 /* aeroplane.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 65C5DB4D36AEAD6D2A509E5D /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-GoogleMapsBeta-Swift-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - 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"; - showEnvVarsInLog = 0; - }; - 8AE3EBFCE62FB01D7CAADC9F /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-GoogleMapsBeta-Swift/Pods-GoogleMapsBeta-Swift-resources-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Copy Pods Resources"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-GoogleMapsBeta-Swift/Pods-GoogleMapsBeta-Swift-resources-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-GoogleMapsBeta-Swift/Pods-GoogleMapsBeta-Swift-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - AA3386FC25537CB400CD9AC4 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - AA33870425537CB400CD9AC4 /* AppDelegate.swift in Sources */, - AA33870625537CB400CD9AC4 /* SceneDelegate.swift in Sources */, - AA33872D255389B700CD9AC4 /* CollidingMarkersViewController.swift in Sources */, - AA33873025538F7700CD9AC4 /* StampedPolylinesViewController.swift in Sources */, - AA33872025537D5700CD9AC4 /* SampleListViewController.swift in Sources */, - AA33872A25537E1500CD9AC4 /* CloudBasedMapStyling.swift in Sources */, - AA33872725537DDC00CD9AC4 /* Samples.swift in Sources */, - AA33871D25537D1100CD9AC4 /* SDKConstants.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - AA33871225537CB600CD9AC4 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - AA33871325537CB600CD9AC4 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = iphoneos; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - AA33871525537CB600CD9AC4 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1CEBC29BC03710523BFE7CE4 /* Pods-GoogleMapsBeta-Swift.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_STYLE = Automatic; - INFOPLIST_FILE = "GoogleMapsBeta-Swift/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = "com.google.examples.GoogleMapsBeta-Swift"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - AA33871625537CB600CD9AC4 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = EE0F0406CEBEC6A31938985E /* Pods-GoogleMapsBeta-Swift.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_STYLE = Automatic; - INFOPLIST_FILE = "GoogleMapsBeta-Swift/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = "com.google.examples.GoogleMapsBeta-Swift"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - AA3386FB25537CB400CD9AC4 /* Build configuration list for PBXProject "GoogleMapsBeta-Swift" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - AA33871225537CB600CD9AC4 /* Debug */, - AA33871325537CB600CD9AC4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - AA33871425537CB600CD9AC4 /* Build configuration list for PBXNativeTarget "GoogleMapsBeta-Swift" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - AA33871525537CB600CD9AC4 /* Debug */, - AA33871625537CB600CD9AC4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = AA3386F825537CB400CD9AC4 /* Project object */; -} diff --git a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/AppDelegate.swift b/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/AppDelegate.swift deleted file mode 100644 index 02546f0f..00000000 --- a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/AppDelegate.swift +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - - -import GoogleMaps -import UIKit - -@main -class AppDelegate: UIResponder, UIApplicationDelegate { - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - GMSServices.provideAPIKey(SDKConstants.apiKey) - return true - } - - // MARK: UISceneSession Lifecycle - - func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { - // Called when a new scene session is being created. - // Use this method to select a configuration to create the new scene with. - return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) - } - - func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { - // Called when the user discards a scene session. - // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. - // Use this method to release any resources that were specific to the discarded scenes, as they will not return. - } - -} - diff --git a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Assets.xcassets/AccentColor.colorset/Contents.json b/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb878970..00000000 --- a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Assets.xcassets/AppIcon.appiconset/Contents.json b/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 9221b9bb..00000000 --- a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "60x60" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "60x60" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "83.5x83.5" - }, - { - "idiom" : "ios-marketing", - "scale" : "1x", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Assets.xcassets/Contents.json b/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596..00000000 --- a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Info.plist b/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Info.plist deleted file mode 100644 index e8155e13..00000000 --- a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Info.plist +++ /dev/null @@ -1,60 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - - - - - UIApplicationSupportsIndirectInputEvents - - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Resources/aeroplane.png b/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Resources/aeroplane.png deleted file mode 100755 index 5114ee49cb8efb6cdd25459d2df47ee6d01c43a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1302 zcmV+x1?l>UP)|do@<_-rZ3i%ebY!`oJBdMICm&_aWG)kPocEv8ldJ4h22p z>sFvj*t~k$aqo18=AI+ELIz$1?M|puh3&BQ`);U_jmwqCQ!}hZxl-V4>2QBJ+rw&Sl2KcZ_32V=EJI6RJ6~VpGV$xZ9 z&|AiDHZd44KVtq>WoP$Om_t*93@)repgmUxfy&iGwOBjT+ASNeZ)i{ygDC{ELLZk!y_?zAb*=HS4E} zX|#Br$}&?a*3GnvZ(AQF9z=FFklw5Z0qfNQumrHj%4y{UIKGd=`oLVz7Ci!5RPBSiJQr8Ldt>HvQ~Z zf;q#$UF&$G8cZf*OKw`)YIlDhyfn&zWVYJ&Ac!WMYqdPgSQgrb$~D4>*<6)CBKf-$ z9H7?RZF=VdYNHG`g#FkDKXe+PrbiD4tCiqO=>S3&7upnNTiJKCa5o=$v08sWzZ2+Q z9Nuop2V!^s#9-9-YIJ&ILPEkGcb!DAw=g&+Cgx*bU*AOZ8=LqQq*X}IA#Fy&`txu^ zL_~6EXy|M1JOW`YwgxwmK$nS$c&n^m6nEQc(+jWL<7!95rI4LSf%Qk%JBg#;mUn*;vIR^|ArO1mP z?P)+ca)+$s;t?=Wlp`~4^kxRTxXpJAc!wTf!V0F+hZYnRB`6|csDKTyk!dVv3kP|C zGxJF+%25hKV1b07F%PIFs%T3#m9@UiXDyr22d+^nI5Ok8MqW{e1vFP#>%?~=a_1vY z`AA_=kNJ#OS|=9dr@;w5mL8LZ;~r?|jb){#q;qZ&WZ zr>(>s18`zJ*(9dO!ahDwUt*4mykrLHCFbbC1SjP3={WvM6y6QDzF^vh)40f|+jG>isLvxhCM zX>qff$Z&rx=w|a7V7(|6!+?w3;#Hjh5+8fc?ap_oJ$(l_+^}k*G}Pny--6Q^=CZbZ zo#z1`=-t;|c9#nsW)t%pIf}*1CW>BZbOnINz2$4YdCv*zqm&!~V6*s{D(yx$sTs{{ z2^Zlp>uQNovNwS3d(E*2;v98RT6P1lSM*>6cj~rns_=}0sWP-tjcr`J0@yctFsJu? zmMXt0$0RWT6)yIYuk|#<#uhW#9}l3+PP#m2+(-wj$AB#11N}+7?m7or*)_OYbEGA4 zWE4P~UA(Fg9geZ6ibzM7yQ3f)oCn|=19>WC(CYA&@`8HuX8@mDGD4FvOl2O+SIg|ItsuUJrk4$cj7>0F&MtW>%P}h;tNAO=@md?cdcrAY~v2yHjTmZg;$j;H?mo+ zW_M@0%Mgjaedm48yWM&Aw~||ZXPFp0n^`h?P-8sH`55rAH+AUUr)G;%GP##Q;zX^# zW|DDCXFf|=)mqlEnx#yyDN4yYz6CFsEwZA)*`UMTY9cEp^eni~#E~7V_!?i>M0sRI zt&_l2Mv3eg$K!a Int { - return sampleSections[section].samples.count - } - - func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - let cell = tableView.dequeueReusableCell( - withIdentifier: SampleListViewController.sampleCellIdentifier, for: indexPath) - if let sample = sample(at: indexPath) { - cell.textLabel?.text = sample.title - } - return cell - } - - func numberOfSections(in tableView: UITableView) -> Int { - return sampleSections.count - } - - func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { - return sampleSections[section].name - } - - func sample(at indexPath: IndexPath) -> Sample? { - guard indexPath.section >= 0 && indexPath.section < sampleSections.count else { return nil } - let section = sampleSections[indexPath.section] - guard indexPath.row >= 0 && indexPath.row < section.samples.count else { return nil } - return section.samples[indexPath.row] - } -} - -extension SampleListViewController: UITableViewDelegate { - func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { - tableView.deselectRow(at: indexPath, animated: true) - if let sample = sample(at: indexPath) { - let viewController = sample.viewControllerClass.init() - viewController.title = sample.title - navigationController?.pushViewController(viewController, animated: true) - } - } -} diff --git a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/CloudBasedMapStyling.swift b/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/CloudBasedMapStyling.swift deleted file mode 100644 index 6063251b..00000000 --- a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/CloudBasedMapStyling.swift +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -import GoogleMaps - -/// Demonstrate basic usage of the Cloud Styling feature. -class CloudBasedMapStylingViewController: UIViewController { - - private static let mapIdRetro = "13564581852493597319" - private static let mapIdDemo = "11153850776783499500" - private var mapIds = [ - mapIdRetro, mapIdDemo - ] - - private var mapView: GMSMapView! - - override func viewDidLoad() { - super.viewDidLoad() - mapView = GMSMapView(frame: .zero, camera: GMSCameraPosition(target: CLLocationCoordinate2D.newYork, zoom: 12)) - mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight] - self.view = mapView - - let styleButton = UIBarButtonItem(title: "Style Map", style: .plain, target: self, action: #selector(self.changeMapId)) - self.navigationItem.rightBarButtonItem = styleButton - } - - /// Bring up a selection list of existing Map IDs, and the option to add a new one. - @objc func changeMapId(sender: UIBarButtonItem) { - let alert = UIAlertController(title: "Select Map ID", message: "Change the look of the map with a map ID", preferredStyle: .actionSheet) - - let alertAction = UIAlertAction(title: "Add a new Map ID", style: .destructive) { [weak self] action in - guard let self = self else { return } - self.showAddMapIdAlert() - } - alert.addAction(alertAction) - - // Lists the existing Map IDs for selection. - mapIds.forEach { mapId in - let mapIdAction = UIAlertAction(title: mapId, style: .default) { [weak self] _ in - guard let self = self else { return } - self.updateMap(withId: mapId) - } - alert.addAction(mapIdAction) - } - - let cancelAction = UIAlertAction(title: "Cancel", style: .cancel) - alert.addAction(cancelAction) - - alert.popoverPresentationController?.barButtonItem = sender - present(alert, animated: true) - } - - /// Re-create the map view with the specified mapID. - private func updateMap(withId id: String) { - let mapId = GMSMapID(identifier: id) - mapView = GMSMapView(frame: .zero, mapID: mapId, camera: mapView.camera) - self.view = mapView - } - - /// Bring up a selection list of existing Map IDs, and the option to add a new one. - private func showAddMapIdAlert() { - let alert = UIAlertController(title: "Add a new map ID", message: nil, preferredStyle: .alert) - alert.addTextField { textField in - textField.placeholder = "Map ID" - textField.clearButtonMode = .whileEditing - } - - alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { [weak self] _ in - guard let self = self else { return } - guard let textField = alert.textFields?.first else { return } - guard let mapId = textField.text else { return } - self.mapIds.append(mapId) - self.updateMap(withId: mapId) - })) - present(alert, animated: true) - } -} diff --git a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/CollidingMarkersViewController.swift b/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/CollidingMarkersViewController.swift deleted file mode 100644 index de12a831..00000000 --- a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/CollidingMarkersViewController.swift +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - - -import GoogleMaps - -class CollidingMarkersViewController: UIViewController { - - private var mapView: GMSMapView! - - override func viewDidLoad() { - super.viewDidLoad() - - let camera = GMSCameraPosition(target: CLLocationCoordinate2D.newYork, zoom: 14) - - mapView = GMSMapView(frame: self.view.bounds, camera: camera) - mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight] - self.view.addSubview(mapView) - - let requiredCollidingFirstPosition = CLLocationCoordinate2D( - latitude: CLLocationCoordinate2D.newYork.latitude - 0.002, - longitude: CLLocationCoordinate2D.newYork.longitude - 0.003 - ) - let requiredNonCollidingFirstPosition = CLLocationCoordinate2D( - latitude: CLLocationCoordinate2D.newYork.latitude, - longitude: CLLocationCoordinate2D.newYork.longitude - 0.003 - ) - let optionalFirstPosition = CLLocationCoordinate2D( - latitude: CLLocationCoordinate2D.newYork.latitude - 0.001, - longitude: CLLocationCoordinate2D.newYork.longitude - ) - let markerSpacing: CLLocationDegrees = 0.004 - - var markerCount = 0 - - for i in 0...2 { - for j in 0...2 { - let _ = createNonCollidingMarker( - latitude: requiredNonCollidingFirstPosition.latitude + (Double(i) * markerSpacing), - longitude: requiredNonCollidingFirstPosition.longitude + (Double(j) * markerSpacing), - zIndex: Int32(markerCount) - ) - markerCount += 1 - - let _ = createOptionalMarker( - latitude: optionalFirstPosition.latitude + (Double(i) * markerSpacing), - longitude: optionalFirstPosition.longitude + (Double(j) * markerSpacing), - zIndex: Int32(markerCount) - ) - markerCount += 1 - - let _ = createRequiredMarker( - latitude: requiredCollidingFirstPosition.latitude + (Double(i) * markerSpacing), - longitude: requiredCollidingFirstPosition.longitude + (Double(j) * markerSpacing), - zIndex: Int32(markerCount) - ) - markerCount += 1 - } - } - } - - /// These are the "standard" markers - they will show up no matter what, and they don't have - /// intersection or collision checking with map labels or other markers. - private func createNonCollidingMarker(latitude: CLLocationDegrees, longitude: CLLocationDegrees, zIndex: Int32) -> GMSMarker { - let marker = GMSMarker() - marker.title = "Non-Colliding" - marker.snippet = "zIndex: \(zIndex)" - marker.zIndex = zIndex - marker.isDraggable = true - marker.position = CLLocationCoordinate2D(latitude: latitude, longitude: longitude) - marker.icon = GMSMarker.markerImage(with: .blue) - marker.map = mapView - // No need for setting collision behavior since it's the default behavior, but setting to - // GMSCollisionBehavior.required also works. - return marker - } - - /// These markers will show up if they aren't intersecting anything higher priority (required or - /// higher zIndex optional markers), and they will hide intersecting normal map labels or lower - /// zIndex optional markers. - /// - /// Note: While an optional marker is in the middle of being dragged, it is considered higher - /// priority than other optional markers, regardless of zIndex. But once it has been dropped, - /// priority goes back to zIndices. - private func createOptionalMarker(latitude: CLLocationDegrees, longitude: CLLocationDegrees, zIndex: Int32) -> GMSMarker { - let marker = GMSMarker() - marker.title = "Optional" - marker.snippet = "zIndex: \(zIndex)" - marker.zIndex = zIndex - marker.isDraggable = true - marker.position = CLLocationCoordinate2D(latitude: latitude, longitude: longitude) - marker.icon = GMSMarker.markerImage(with: .green) - marker.collisionBehavior = .optionalAndHidesLowerPriority - marker.map = mapView - return marker; - } - - /// These markers will always show up, and they will hide intersecting normal map labels or optional markers. - private func createRequiredMarker(latitude: CLLocationDegrees, longitude: CLLocationDegrees, zIndex: Int32) -> GMSMarker { - let marker = GMSMarker() - marker.title = "Required" - marker.snippet = "zIndex: \(zIndex)" - marker.zIndex = zIndex - marker.isDraggable = true - marker.position = CLLocationCoordinate2D(latitude: latitude, longitude: longitude) - marker.icon = GMSMarker.markerImage(with: .green) - marker.collisionBehavior = .requiredAndHidesOptional - marker.map = mapView - return marker - } -} diff --git a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/Samples.swift b/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/Samples.swift deleted file mode 100755 index c781f25b..00000000 --- a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/Samples.swift +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2020 Google LLC. All rights reserved. -// -// -// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this -// file except in compliance with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software distributed under -// the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF -// ANY KIND, either express or implied. See the License for the specific language governing -// permissions and limitations under the License. - -import UIKit - -struct Sample { - let viewControllerClass: UIViewController.Type - let title: String -} - -struct Section { - let name: String - let samples: [Sample] -} - -enum Samples { - static func allSamples() -> [Section] { - let samples = [ - Sample(viewControllerClass: CloudBasedMapStylingViewController.self, title:"Cloud-based Map Styling"), - Sample(viewControllerClass: StampedPolylinesViewController.self, title: "Stamped Polyline"), - Sample(viewControllerClass: CollidingMarkersViewController.self, title: "Colliding Markers") - ] - return [ - Section(name: "Map", samples: samples), - ] - } -} diff --git a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/StampedPolylinesViewController.swift b/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/StampedPolylinesViewController.swift deleted file mode 100644 index bd63d2bd..00000000 --- a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/Samples/StampedPolylinesViewController.swift +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - - -import GoogleMaps - -class StampedPolylinesViewController : UIViewController { - private let strokeWidth: CGFloat = 20.0 - - override func viewDidLoad() { - super.viewDidLoad() - - let camera = GMSCameraPosition(target: CLLocationCoordinate2D.seattle, zoom: 14) - let map = GMSMapView(frame: self.view.bounds, camera: camera) - map.autoresizingMask = [.flexibleWidth, .flexibleHeight] - view.addSubview(map) - - // Make a texture stamped polyline. - let path = GMSMutablePath() - path.addCoordinate(CLLocationCoordinate2D.seattle, latOffset: 0.003, longOffset: -0.003) - path.addCoordinate(CLLocationCoordinate2D.seattle, latOffset: -0.005, longOffset: -0.005) - path.addCoordinate(CLLocationCoordinate2D.seattle, latOffset: -0.007, longOffset: 0.001) - - let stamp = UIImage(named: "voyager")! - let solidStroke = GMSStrokeStyle.solidColor(.red) - solidStroke.stampStyle = GMSTextureStyle(image: stamp) - - let texturePolyline = GMSPolyline(path: path) - texturePolyline.strokeWidth = strokeWidth - texturePolyline.spans = [GMSStyleSpan(style: solidStroke)] - texturePolyline.map = map - - // Make a textured polyline using a clear stroke, with a gradient line behind it since - // gradients aren't enabled yet for the same line. - let texturePath = GMSMutablePath() - texturePath.addCoordinate(CLLocationCoordinate2D.seattle, latOffset: -0.012, longOffset: 0) - texturePath.addCoordinate(CLLocationCoordinate2D.seattle, latOffset: -0.012, longOffset: -0.008) - - let textureStamp = UIImage(named: "aeroplane")! - let clearTextureStroke = GMSStrokeStyle.solidColor(.clear) - clearTextureStroke.stampStyle = GMSTextureStyle(image: textureStamp) - - let clearTexturePolyline = GMSPolyline(path: texturePath) - clearTexturePolyline.strokeWidth = strokeWidth * 1.5 - clearTexturePolyline.spans = [GMSStyleSpan(style: clearTextureStroke)] - clearTexturePolyline.zIndex = 1 - clearTexturePolyline.map = map - - // Use the same path. - let gradientStroke = GMSStrokeStyle.gradient(from: .magenta, to: .green) - let gradientPolyline = GMSPolyline(path: texturePath) - gradientPolyline.strokeWidth = strokeWidth * 1.5 - gradientPolyline.spans = [GMSStyleSpan(style: gradientStroke)] - - // Use a lower zIndex to put it behind the other line. - gradientPolyline.zIndex = clearTexturePolyline.zIndex - 1 - gradientPolyline.map = map - } -} - -extension GMSMutablePath { - func addCoordinate(_ coordinate: CLLocationCoordinate2D, latOffset: CLLocationDegrees, longOffset: CLLocationDegrees) { - addLatitude(coordinate.latitude + latOffset, longitude: coordinate.longitude + longOffset) - } -} diff --git a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/SceneDelegate.swift b/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/SceneDelegate.swift deleted file mode 100644 index f71b205c..00000000 --- a/GoogleMapsBeta-Swift/GoogleMapsBeta-Swift/SceneDelegate.swift +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - - -import UIKit - -class SceneDelegate: UIResponder, UIWindowSceneDelegate { - - var window: UIWindow? - - func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { - // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. - // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. - // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). - guard let windowScene = (scene as? UIWindowScene) else { return } - self.window = UIWindow(windowScene: windowScene) - let samplesViewController = SampleListViewController() - let navigationController = UINavigationController(rootViewController: samplesViewController) - window?.rootViewController = navigationController - window?.makeKeyAndVisible() - } -} - diff --git a/GoogleMapsBeta-Swift/Podfile b/GoogleMapsBeta-Swift/Podfile deleted file mode 100755 index 6d5303c4..00000000 --- a/GoogleMapsBeta-Swift/Podfile +++ /dev/null @@ -1,6 +0,0 @@ -source 'https://github.com/CocoaPods/Specs.git' - -target 'GoogleMapsBeta-Swift' do - platform :ios, '10.0' - pod 'GoogleMaps', '= 3.10.0-beta1' -end diff --git a/GoogleMapsBeta/GoogleMapsBeta.xcodeproj/project.pbxproj b/GoogleMapsBeta/GoogleMapsBeta.xcodeproj/project.pbxproj deleted file mode 100644 index 56f51277..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta.xcodeproj/project.pbxproj +++ /dev/null @@ -1,444 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 51; - objects = { - -/* Begin PBXBuildFile section */ - AA33867825536A3100CD9AC4 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = AA33867725536A3100CD9AC4 /* AppDelegate.m */; }; - AA33868325536A3200CD9AC4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AA33868225536A3200CD9AC4 /* Assets.xcassets */; }; - AA33868925536A3200CD9AC4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = AA33868825536A3200CD9AC4 /* main.m */; }; - AA3386A425536F2000CD9AC4 /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AA3386A225536F2000CD9AC4 /* MainViewController.m */; }; - AA3386BB2553713800CD9AC4 /* CollidingMarkersViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AA3386B42553713800CD9AC4 /* CollidingMarkersViewController.m */; }; - AA3386BC2553713800CD9AC4 /* Samples.m in Sources */ = {isa = PBXBuildFile; fileRef = AA3386B52553713800CD9AC4 /* Samples.m */; }; - AA3386BD2553713800CD9AC4 /* CloudBasedMapStylingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AA3386B62553713800CD9AC4 /* CloudBasedMapStylingViewController.m */; }; - AA3386BE2553713800CD9AC4 /* StampedPolylinesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AA3386B82553713800CD9AC4 /* StampedPolylinesViewController.m */; }; - AA3386F5255375FF00CD9AC4 /* SceneDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = AA3386F3255375FF00CD9AC4 /* SceneDelegate.m */; }; - AA33875E25547DA700CD9AC4 /* voyager@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = AA33875B25547DA700CD9AC4 /* voyager@2x.png */; }; - AA33875F25547DA700CD9AC4 /* aeroplane.png in Resources */ = {isa = PBXBuildFile; fileRef = AA33875C25547DA700CD9AC4 /* aeroplane.png */; }; - AA33876025547DA700CD9AC4 /* voyager.png in Resources */ = {isa = PBXBuildFile; fileRef = AA33875D25547DA700CD9AC4 /* voyager.png */; }; - ED2BD870A75C643F2A64396F /* libPods-GoogleMapsBeta.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B402B1C1C4458FB7A985FD5 /* libPods-GoogleMapsBeta.a */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 0B402B1C1C4458FB7A985FD5 /* libPods-GoogleMapsBeta.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-GoogleMapsBeta.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - AA33867325536A3100CD9AC4 /* GoogleMapsBeta.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GoogleMapsBeta.app; sourceTree = BUILT_PRODUCTS_DIR; }; - AA33867625536A3100CD9AC4 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - AA33867725536A3100CD9AC4 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - AA33868225536A3200CD9AC4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - AA33868725536A3200CD9AC4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - AA33868825536A3200CD9AC4 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - AA33869B25536E6200CD9AC4 /* SDKDemoAPIKey.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDKDemoAPIKey.h; path = ../../GoogleMaps/GoogleMapsDemos/SDKDemoAPIKey.h; sourceTree = ""; }; - AA3386A225536F2000CD9AC4 /* MainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MainViewController.m; sourceTree = ""; }; - AA3386A325536F2000CD9AC4 /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = ""; }; - AA3386B32553713800CD9AC4 /* CollidingMarkersViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CollidingMarkersViewController.h; sourceTree = ""; }; - AA3386B42553713800CD9AC4 /* CollidingMarkersViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CollidingMarkersViewController.m; sourceTree = ""; }; - AA3386B52553713800CD9AC4 /* Samples.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Samples.m; sourceTree = ""; }; - AA3386B62553713800CD9AC4 /* CloudBasedMapStylingViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CloudBasedMapStylingViewController.m; sourceTree = ""; }; - AA3386B72553713800CD9AC4 /* Samples.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Samples.h; sourceTree = ""; }; - AA3386B82553713800CD9AC4 /* StampedPolylinesViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = StampedPolylinesViewController.m; sourceTree = ""; }; - AA3386B92553713800CD9AC4 /* StampedPolylinesViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StampedPolylinesViewController.h; sourceTree = ""; }; - AA3386BA2553713800CD9AC4 /* CloudBasedMapStylingViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CloudBasedMapStylingViewController.h; sourceTree = ""; }; - AA3386F3255375FF00CD9AC4 /* SceneDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SceneDelegate.m; sourceTree = ""; }; - AA3386F4255375FF00CD9AC4 /* SceneDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SceneDelegate.h; sourceTree = ""; }; - AA33875B25547DA700CD9AC4 /* voyager@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "voyager@2x.png"; sourceTree = ""; }; - AA33875C25547DA700CD9AC4 /* aeroplane.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = aeroplane.png; sourceTree = ""; }; - AA33875D25547DA700CD9AC4 /* voyager.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = voyager.png; sourceTree = ""; }; - DF449EA92CFD849E0E745047 /* Pods-GoogleMapsBeta.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GoogleMapsBeta.release.xcconfig"; path = "Target Support Files/Pods-GoogleMapsBeta/Pods-GoogleMapsBeta.release.xcconfig"; sourceTree = ""; }; - F4B8CFCBBB84A95FCE3660CB /* Pods-GoogleMapsBeta.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GoogleMapsBeta.debug.xcconfig"; path = "Target Support Files/Pods-GoogleMapsBeta/Pods-GoogleMapsBeta.debug.xcconfig"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - AA33867025536A3100CD9AC4 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ED2BD870A75C643F2A64396F /* libPods-GoogleMapsBeta.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 6FD5110629B032D7DC0AFC77 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 0B402B1C1C4458FB7A985FD5 /* libPods-GoogleMapsBeta.a */, - ); - name = Frameworks; - sourceTree = ""; - }; - 78C7C268FEB76CBBBA01CEA0 /* Pods */ = { - isa = PBXGroup; - children = ( - F4B8CFCBBB84A95FCE3660CB /* Pods-GoogleMapsBeta.debug.xcconfig */, - DF449EA92CFD849E0E745047 /* Pods-GoogleMapsBeta.release.xcconfig */, - ); - path = Pods; - sourceTree = ""; - }; - AA33866A25536A3100CD9AC4 = { - isa = PBXGroup; - children = ( - AA33867525536A3100CD9AC4 /* GoogleMapsBeta */, - AA33867425536A3100CD9AC4 /* Products */, - 78C7C268FEB76CBBBA01CEA0 /* Pods */, - 6FD5110629B032D7DC0AFC77 /* Frameworks */, - ); - sourceTree = ""; - }; - AA33867425536A3100CD9AC4 /* Products */ = { - isa = PBXGroup; - children = ( - AA33867325536A3100CD9AC4 /* GoogleMapsBeta.app */, - ); - name = Products; - sourceTree = ""; - }; - AA33867525536A3100CD9AC4 /* GoogleMapsBeta */ = { - isa = PBXGroup; - children = ( - AA33873225547AAA00CD9AC4 /* Resources */, - AA3386F4255375FF00CD9AC4 /* SceneDelegate.h */, - AA3386F3255375FF00CD9AC4 /* SceneDelegate.m */, - AA3386B22553712600CD9AC4 /* Samples */, - AA3386A325536F2000CD9AC4 /* MainViewController.h */, - AA3386A225536F2000CD9AC4 /* MainViewController.m */, - AA33867625536A3100CD9AC4 /* AppDelegate.h */, - AA33867725536A3100CD9AC4 /* AppDelegate.m */, - AA33869B25536E6200CD9AC4 /* SDKDemoAPIKey.h */, - AA33868225536A3200CD9AC4 /* Assets.xcassets */, - AA33868725536A3200CD9AC4 /* Info.plist */, - AA33868825536A3200CD9AC4 /* main.m */, - ); - path = GoogleMapsBeta; - sourceTree = ""; - }; - AA3386B22553712600CD9AC4 /* Samples */ = { - isa = PBXGroup; - children = ( - AA3386BA2553713800CD9AC4 /* CloudBasedMapStylingViewController.h */, - AA3386B62553713800CD9AC4 /* CloudBasedMapStylingViewController.m */, - AA3386B32553713800CD9AC4 /* CollidingMarkersViewController.h */, - AA3386B42553713800CD9AC4 /* CollidingMarkersViewController.m */, - AA3386B72553713800CD9AC4 /* Samples.h */, - AA3386B52553713800CD9AC4 /* Samples.m */, - AA3386B92553713800CD9AC4 /* StampedPolylinesViewController.h */, - AA3386B82553713800CD9AC4 /* StampedPolylinesViewController.m */, - ); - path = Samples; - sourceTree = ""; - }; - AA33873225547AAA00CD9AC4 /* Resources */ = { - isa = PBXGroup; - children = ( - AA33875C25547DA700CD9AC4 /* aeroplane.png */, - AA33875D25547DA700CD9AC4 /* voyager.png */, - AA33875B25547DA700CD9AC4 /* voyager@2x.png */, - ); - path = Resources; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - AA33867225536A3100CD9AC4 /* GoogleMapsBeta */ = { - isa = PBXNativeTarget; - buildConfigurationList = AA33868C25536A3200CD9AC4 /* Build configuration list for PBXNativeTarget "GoogleMapsBeta" */; - buildPhases = ( - F2280CDB2994830D2E1238A8 /* [CP] Check Pods Manifest.lock */, - AA33866F25536A3100CD9AC4 /* Sources */, - AA33867025536A3100CD9AC4 /* Frameworks */, - AA33867125536A3100CD9AC4 /* Resources */, - C90D70883B068E6CBAE79879 /* [CP] Copy Pods Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = GoogleMapsBeta; - productName = GoogleMapsBeta; - productReference = AA33867325536A3100CD9AC4 /* GoogleMapsBeta.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - AA33866B25536A3100CD9AC4 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 1200; - TargetAttributes = { - AA33867225536A3100CD9AC4 = { - CreatedOnToolsVersion = 12.0; - }; - }; - }; - buildConfigurationList = AA33866E25536A3100CD9AC4 /* Build configuration list for PBXProject "GoogleMapsBeta" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = AA33866A25536A3100CD9AC4; - productRefGroup = AA33867425536A3100CD9AC4 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - AA33867225536A3100CD9AC4 /* GoogleMapsBeta */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - AA33867125536A3100CD9AC4 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - AA33875E25547DA700CD9AC4 /* voyager@2x.png in Resources */, - AA33875F25547DA700CD9AC4 /* aeroplane.png in Resources */, - AA33868325536A3200CD9AC4 /* Assets.xcassets in Resources */, - AA33876025547DA700CD9AC4 /* voyager.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - C90D70883B068E6CBAE79879 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-GoogleMapsBeta/Pods-GoogleMapsBeta-resources-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Copy Pods Resources"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-GoogleMapsBeta/Pods-GoogleMapsBeta-resources-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-GoogleMapsBeta/Pods-GoogleMapsBeta-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; - F2280CDB2994830D2E1238A8 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-GoogleMapsBeta-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - 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"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - AA33866F25536A3100CD9AC4 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - AA3386BB2553713800CD9AC4 /* CollidingMarkersViewController.m in Sources */, - AA3386BC2553713800CD9AC4 /* Samples.m in Sources */, - AA3386BD2553713800CD9AC4 /* CloudBasedMapStylingViewController.m in Sources */, - AA3386F5255375FF00CD9AC4 /* SceneDelegate.m in Sources */, - AA33867825536A3100CD9AC4 /* AppDelegate.m in Sources */, - AA3386BE2553713800CD9AC4 /* StampedPolylinesViewController.m in Sources */, - AA3386A425536F2000CD9AC4 /* MainViewController.m in Sources */, - AA33868925536A3200CD9AC4 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - AA33868A25536A3200CD9AC4 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - }; - name = Debug; - }; - AA33868B25536A3200CD9AC4 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - AA33868D25536A3200CD9AC4 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = F4B8CFCBBB84A95FCE3660CB /* Pods-GoogleMapsBeta.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_STYLE = Automatic; - INFOPLIST_FILE = GoogleMapsBeta/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.google.examples.GoogleMapsBeta; - PRODUCT_NAME = "$(TARGET_NAME)"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - AA33868E25536A3200CD9AC4 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = DF449EA92CFD849E0E745047 /* Pods-GoogleMapsBeta.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_STYLE = Automatic; - INFOPLIST_FILE = GoogleMapsBeta/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.google.examples.GoogleMapsBeta; - PRODUCT_NAME = "$(TARGET_NAME)"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - AA33866E25536A3100CD9AC4 /* Build configuration list for PBXProject "GoogleMapsBeta" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - AA33868A25536A3200CD9AC4 /* Debug */, - AA33868B25536A3200CD9AC4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - AA33868C25536A3200CD9AC4 /* Build configuration list for PBXNativeTarget "GoogleMapsBeta" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - AA33868D25536A3200CD9AC4 /* Debug */, - AA33868E25536A3200CD9AC4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = AA33866B25536A3100CD9AC4 /* Project object */; -} diff --git a/GoogleMapsBeta/GoogleMapsBeta/AppDelegate.h b/GoogleMapsBeta/GoogleMapsBeta/AppDelegate.h deleted file mode 100644 index 994a7d61..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/AppDelegate.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@interface AppDelegate : UIResponder - -@end - diff --git a/GoogleMapsBeta/GoogleMapsBeta/AppDelegate.m b/GoogleMapsBeta/GoogleMapsBeta/AppDelegate.m deleted file mode 100644 index 3ccfaa89..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/AppDelegate.m +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#import "AppDelegate.h" -#import "SDKDemoAPIKey.h" - -@import GoogleMaps; - -@implementation AppDelegate { - id _services; -} - -- (BOOL)application:(UIApplication *)application - didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - NSLog(@"Build version: %s", __VERSION__); - - if (kAPIKey.length == 0) { - // Blow up if APIKey has not yet been set. - NSString *bundleId = [[NSBundle mainBundle] bundleIdentifier]; - NSString *format = @"Configure APIKey inside SDKDemoAPIKey.h for your " - @"bundle `%@`, see README.GoogleMapsDemos for more information"; - @throw [NSException exceptionWithName:@"DemoAppDelegate" - reason:[NSString stringWithFormat:format, bundleId] - userInfo:nil]; - } - [GMSServices provideAPIKey:kAPIKey]; - _services = [GMSServices sharedServices]; - - // Log the required open source licenses! Yes, just NSLog-ing them is not enough but is good for - // a demo. - NSLog(@"Open source licenses:\n%@", [GMSServices openSourceLicenseInfo]); - - - return YES; -} - -@end diff --git a/GoogleMapsBeta/GoogleMapsBeta/Assets.xcassets/AccentColor.colorset/Contents.json b/GoogleMapsBeta/GoogleMapsBeta/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb878970..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/GoogleMapsBeta/GoogleMapsBeta/Assets.xcassets/AppIcon.appiconset/Contents.json b/GoogleMapsBeta/GoogleMapsBeta/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 9221b9bb..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "60x60" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "60x60" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "83.5x83.5" - }, - { - "idiom" : "ios-marketing", - "scale" : "1x", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/GoogleMapsBeta/GoogleMapsBeta/Assets.xcassets/Contents.json b/GoogleMapsBeta/GoogleMapsBeta/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/GoogleMapsBeta/GoogleMapsBeta/Info.plist b/GoogleMapsBeta/GoogleMapsBeta/Info.plist deleted file mode 100644 index e0a4cd0d..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/Info.plist +++ /dev/null @@ -1,62 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneDelegateClassName - SceneDelegate - UISceneConfigurationName - Default Configuration - - - - - UIApplicationSupportsIndirectInputEvents - - UILaunchStoryboardName - LaunchScreen - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/GoogleMapsBeta/GoogleMapsBeta/MainViewController.h b/GoogleMapsBeta/GoogleMapsBeta/MainViewController.h deleted file mode 100755 index bce070d0..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/MainViewController.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@interface MainViewController : UITableViewController - -@end diff --git a/GoogleMapsBeta/GoogleMapsBeta/MainViewController.m b/GoogleMapsBeta/GoogleMapsBeta/MainViewController.m deleted file mode 100755 index a46ac2c6..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/MainViewController.m +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2016 Google LLC. All rights reserved. - * - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ - -#import "MainViewController.h" -#import "Samples.h" -@import GoogleMaps; - - -typedef NSMutableArray *> *> DemoSamplesArray; - -@implementation MainViewController { - NSArray *_demos; - NSArray *_demoSections; - CLLocationManager *_locationManager; - BOOL _shouldCollapseDetailViewController; -} - -- (void)viewDidLoad { - [super viewDidLoad]; - - _shouldCollapseDetailViewController = YES; - self.title = NSLocalizedString(@"Maps SDK Demos", @"Maps SDK Demos"); - self.title = [NSString stringWithFormat:@"%@: %@", self.title, [GMSServices SDKLongVersion]]; - - self.tableView.autoresizingMask = - UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; - - _demoSections = [Samples loadSections]; - _demos = [Samples loadDemos]; - -} - - -#pragma mark - UITableViewController - -- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { - return _demoSections.count; -} - -- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { - return 35.0; -} - -- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { - return [_demoSections objectAtIndex:section]; -} - -- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { - NSArray *demosInSection = [_demos objectAtIndex:section]; - return demosInSection.count; -} - -- (UITableViewCell *)tableView:(UITableView *)tableView - cellForRowAtIndexPath:(NSIndexPath *)indexPath { - static NSString *cellIdentifier = @"Cell"; - UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier]; - if (cell == nil) { - cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle - reuseIdentifier:cellIdentifier]; - } - - cell.accessoryType = self.splitViewController.collapsed - ? UITableViewCellAccessoryDisclosureIndicator - : UITableViewCellAccessoryNone; - - NSDictionary *demo = [[_demos objectAtIndex:indexPath.section] objectAtIndex:indexPath.row]; - cell.textLabel.text = [demo objectForKey:@"title"]; - cell.detailTextLabel.text = [demo objectForKey:@"description"]; - - return cell; -} - -- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { - _shouldCollapseDetailViewController = NO; - [self loadDemo:indexPath.section atIndex:indexPath.row]; -} - -#pragma mark - Private methods - -- (void)loadDemo:(NSUInteger)section atIndex:(NSUInteger)index { - NSDictionary *demo = [[_demos objectAtIndex:section] objectAtIndex:index]; - UIViewController *controller = [[[demo objectForKey:@"controller"] alloc] init]; - - if (controller != nil) { - controller.title = [demo objectForKey:@"title"]; - - UINavigationController *navController = - [[UINavigationController alloc] initWithRootViewController:controller]; - navController.navigationBar.translucent = NO; - [self showDetailViewController:navController sender:nil]; - - controller.navigationItem.leftBarButtonItem = self.splitViewController.displayModeButtonItem; - controller.navigationItem.leftItemsSupplementBackButton = YES; - } -} - -#pragma mark - UISplitViewControllerDelegate methods - -- (UIViewController *)primaryViewControllerForCollapsingSplitViewController: - (UISplitViewController *)splitViewController { - [self.tableView reloadData]; - return nil; -} - -- (UIViewController *)primaryViewControllerForExpandingSplitViewController: - (UISplitViewController *)splitViewController { - [self.tableView reloadData]; - return nil; -} - -- (BOOL)splitViewController:(UISplitViewController *)splitViewController - collapseSecondaryViewController:(UIViewController *)secondaryViewController - ontoPrimaryViewController:(UIViewController *)primaryViewController { - return _shouldCollapseDetailViewController; -} - -@end diff --git a/GoogleMapsBeta/GoogleMapsBeta/Resources/aeroplane.png b/GoogleMapsBeta/GoogleMapsBeta/Resources/aeroplane.png deleted file mode 100755 index 5114ee49cb8efb6cdd25459d2df47ee6d01c43a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1302 zcmV+x1?l>UP)|do@<_-rZ3i%ebY!`oJBdMICm&_aWG)kPocEv8ldJ4h22p z>sFvj*t~k$aqo18=AI+ELIz$1?M|puh3&BQ`);U_jmwqCQ!}hZxl-V4>2QBJ+rw&Sl2KcZ_32V=EJI6RJ6~VpGV$xZ9 z&|AiDHZd44KVtq>WoP$Om_t*93@)repgmUxfy&iGwOBjT+ASNeZ)i{ygDC{ELLZk!y_?zAb*=HS4E} zX|#Br$}&?a*3GnvZ(AQF9z=FFklw5Z0qfNQumrHj%4y{UIKGd=`oLVz7Ci!5RPBSiJQr8Ldt>HvQ~Z zf;q#$UF&$G8cZf*OKw`)YIlDhyfn&zWVYJ&Ac!WMYqdPgSQgrb$~D4>*<6)CBKf-$ z9H7?RZF=VdYNHG`g#FkDKXe+PrbiD4tCiqO=>S3&7upnNTiJKCa5o=$v08sWzZ2+Q z9Nuop2V!^s#9-9-YIJ&ILPEkGcb!DAw=g&+Cgx*bU*AOZ8=LqQq*X}IA#Fy&`txu^ zL_~6EXy|M1JOW`YwgxwmK$nS$c&n^m6nEQc(+jWL<7!95rI4LSf%Qk%JBg#;mUn*;vIR^|ArO1mP z?P)+ca)+$s;t?=Wlp`~4^kxRTxXpJAc!wTf!V0F+hZYnRB`6|csDKTyk!dVv3kP|C zGxJF+%25hKV1b07F%PIFs%T3#m9@UiXDyr22d+^nI5Ok8MqW{e1vFP#>%?~=a_1vY z`AA_=kNJ#OS|=9dr@;w5mL8LZ;~r?|jb){#q;qZ&WZ zr>(>s18`zJ*(9dO!ahDwUt*4mykrLHCFbbC1SjP3={WvM6y6QDzF^vh)40f|+jG>isLvxhCM zX>qff$Z&rx=w|a7V7(|6!+?w3;#Hjh5+8fc?ap_oJ$(l_+^}k*G}Pny--6Q^=CZbZ zo#z1`=-t;|c9#nsW)t%pIf}*1CW>BZbOnINz2$4YdCv*zqm&!~V6*s{D(yx$sTs{{ z2^Zlp>uQNovNwS3d(E*2;v98RT6P1lSM*>6cj~rns_=}0sWP-tjcr`J0@yctFsJu? zmMXt0$0RWT6)yIYuk|#<#uhW#9}l3+PP#m2+(-wj$AB#11N}+7?m7or*)_OYbEGA4 zWE4P~UA(Fg9geZ6ibzM7yQ3f)oCn|=19>WC(CYA&@`8HuX8@mDGD4FvOl2O+SIg|ItsuUJrk4$cj7>0F&MtW>%P}h;tNAO=@md?cdcrAY~v2yHjTmZg;$j;H?mo+ zW_M@0%Mgjaedm48yWM&Aw~||ZXPFp0n^`h?P-8sH`55rAH+AUUr)G;%GP##Q;zX^# zW|DDCXFf|=)mqlEnx#yyDN4yYz6CFsEwZA)*`UMTY9cEp^eni~#E~7V_!?i>M0sRI zt&_l2Mv3eg$K!a - -@interface CloudBasedMapStylingViewController : UIViewController -@end diff --git a/GoogleMapsBeta/GoogleMapsBeta/Samples/CloudBasedMapStylingViewController.m b/GoogleMapsBeta/GoogleMapsBeta/Samples/CloudBasedMapStylingViewController.m deleted file mode 100755 index e532cd9b..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/Samples/CloudBasedMapStylingViewController.m +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2020 Google LLC. All rights reserved. - * - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ - -#import "CloudBasedMapStylingViewController.h" -#import - - -static NSString *const kMapIDRetro = @"13564581852493597319"; -static NSString *const kMapIDDemo = @"11153850776783499500"; - -/** Demonstrate basic usage of the Cloud Styling feature. */ -@implementation CloudBasedMapStylingViewController { - GMSMapView *_mapView; - NSMutableArray *_mapIDStrings; -} - -- (void)viewDidLoad { - [super viewDidLoad]; - - _mapIDStrings = [[NSMutableArray alloc] init]; - [_mapIDStrings addObject:kMapIDRetro]; - [_mapIDStrings addObject:kMapIDDemo]; - - GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.868 - longitude:151.2086 - zoom:12]; - - _mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera]; - self.view = _mapView; - - UIBarButtonItem *styleButton = [[UIBarButtonItem alloc] initWithTitle:@"Style Map" - style:UIBarButtonItemStylePlain - target:self - action:@selector(changeMapID:)]; - self.navigationItem.rightBarButtonItem = styleButton; -} - - -/** Re-create the map view with the specified mapID. */ -- (void)updateMapWithExistingMapIDString:(nonnull NSString *)mapIDString { - GMSMapID *mapID = [GMSMapID mapIDWithIdentifier:mapIDString]; - _mapView = [GMSMapView mapWithFrame:CGRectZero mapID:mapID camera:_mapView.camera]; - self.view = _mapView; -} - -/** Add the new map ID to the list of selectable IDs and update the map to use it. */ -- (void)updateMapWithNewMapIDString:(NSString *)mapIDString { - if (mapIDString.length > 0) { - [_mapIDStrings addObject:mapIDString]; - [self updateMapWithExistingMapIDString:mapIDString]; - } -} - -/** Ask the user for a new map ID to add to the list. */ -- (void)showAddMapIDAlert { - UIAlertController *alertController = - [UIAlertController alertControllerWithTitle:@"Add a new map ID" - message:nil - preferredStyle:UIAlertControllerStyleAlert]; - [alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) { - textField.placeholder = @"Map ID"; - textField.clearButtonMode = UITextFieldViewModeWhileEditing; - }]; - __weak __typeof__(self) weakSelf = self; - [alertController - addAction:[UIAlertAction actionWithTitle:@"OK" - style:UIAlertActionStyleDefault - handler:^(UIAlertAction *action) { - __typeof__(self) strongSelf = weakSelf; - if (strongSelf) { - NSString *mapIDString = - alertController.textFields[0].text; - [strongSelf updateMapWithNewMapIDString:mapIDString]; - } - }]]; - [self presentViewController:alertController animated:YES completion:nil]; -} - -/** Return an action that sets the appearance of the map to the mapID. */ -- (UIAlertAction *_Nonnull)alertActionForMapIDString:(nonnull NSString *)mapID { - __weak __typeof__(self) weakSelf = self; - return [UIAlertAction actionWithTitle:mapID - style:UIAlertActionStyleDefault - handler:^(UIAlertAction *_Nonnull action) { - __typeof__(self) strongSelf = weakSelf; - if (strongSelf) { - [strongSelf updateMapWithExistingMapIDString:mapID]; - } - }]; -} - -/** Return an action which prompts an alert to type in a new map ID. */ -- (UIAlertAction *_Nonnull)alertActionToAddMapID { - __weak __typeof__(self) weakSelf = self; - return [UIAlertAction actionWithTitle:@"Add a new Map ID" - style:UIAlertActionStyleDestructive - handler:^(UIAlertAction *_Nonnull action) { - __typeof__(self) strongSelf = weakSelf; - if (strongSelf) { - [strongSelf showAddMapIDAlert]; - } - }]; -} - - -/** Bring up a selection list of existing Map IDs, and the option to add a new one. */ -- (void)changeMapID:(UIBarButtonItem *)sender { - UIAlertController *alert = - [UIAlertController alertControllerWithTitle:@"Select Map ID" - message:@"Change the look of the map with a map ID" - preferredStyle:UIAlertControllerStyleActionSheet]; - [alert addAction:[self alertActionToAddMapID]]; - - // Lists the existing Map IDs for selection. - for (NSString *mapIDString in _mapIDStrings) { - [alert addAction:[self alertActionForMapIDString:mapIDString]]; - } - - [alert addAction:[UIAlertAction actionWithTitle:@"Cancel" - style:UIAlertActionStyleCancel - handler:nil]]; - alert.popoverPresentationController.barButtonItem = sender; - [self presentViewController:alert animated:YES completion:nil]; -} - -@end diff --git a/GoogleMapsBeta/GoogleMapsBeta/Samples/CollidingMarkersViewController.h b/GoogleMapsBeta/GoogleMapsBeta/Samples/CollidingMarkersViewController.h deleted file mode 100755 index 54f649ce..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/Samples/CollidingMarkersViewController.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright 2020 Google LLC. All rights reserved. - * - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ - -#import - -@interface CollidingMarkersViewController : UIViewController -@end diff --git a/GoogleMapsBeta/GoogleMapsBeta/Samples/CollidingMarkersViewController.m b/GoogleMapsBeta/GoogleMapsBeta/Samples/CollidingMarkersViewController.m deleted file mode 100755 index 481ffe3e..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/Samples/CollidingMarkersViewController.m +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright 2020 Google LLC. All rights reserved. - * - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ - -#import "CollidingMarkersViewController.h" - -#import - -const CLLocationCoordinate2D kSeattleCoordinates = {.latitude = 47.6098, .longitude = -122.34}; - -/** - * Demonstrates basic usage of the marker collision feature. - * Try zooming in/out, and dragging around different colored markers. - */ -@implementation CollidingMarkersViewController { - GMSMapView *_mapView; -} - -/** - * These are the "standard" markers - they will show up no matter what, and they don't have - * intersection or collision checking with map labels or other markers. - */ -- (GMSMarker *)createNonCollidingMarkerWithLatitude:(CLLocationDegrees)latitude - longitude:(CLLocationDegrees)longitude - zIndex:(int)zIndex { - GMSMarker *marker = [[GMSMarker alloc] init]; - marker.title = @"Non-Colliding"; - marker.snippet = [NSString stringWithFormat:@"zIndex: %d", zIndex]; - marker.zIndex = zIndex; - marker.draggable = YES; - marker.position = CLLocationCoordinate2DMake(latitude, longitude); - marker.icon = [GMSMarker markerImageWithColor:UIColor.blueColor]; - // No need for setting collision behavior since it's the default behavior, but setting to - // GMSCollisionBehaviorRequired also works. - return marker; -} - -/** - * These markers will show up if they aren't intersecting anything higher priority (required or - * higher zIndex optional markers), and they will hide intersecting normal map labels or lower - * zIndex optional markers. - * - * Note: While an optional marker is in the middle of being dragged, it is considered higher - * priority than other optional markers, regardless of zIndex. But once it has been dropped, - * priority goes back to zIndices. - */ -- (GMSMarker *)createOptionalMarkerWithLatitude:(CLLocationDegrees)latitude - longitude:(CLLocationDegrees)longitude - zIndex:(int)zIndex { - GMSMarker *marker = [[GMSMarker alloc] init]; - marker.title = @"Optional"; - marker.snippet = [NSString stringWithFormat:@"zIndex: %d", zIndex]; - marker.zIndex = zIndex; - marker.draggable = YES; - marker.position = CLLocationCoordinate2DMake(latitude, longitude); - marker.icon = [GMSMarker markerImageWithColor:UIColor.greenColor]; - marker.collisionBehavior = GMSCollisionBehaviorOptionalAndHidesLowerPriority; - return marker; -} - -/** - * These markers will always show up, and they will hide intersecting normal map labels or - * optional markers. - */ -- (GMSMarker *)createRequiredMarkerWithLatitude:(CLLocationDegrees)latitude - longitude:(CLLocationDegrees)longitude - zIndex:(int)zIndex { - GMSMarker *marker = [[GMSMarker alloc] init]; - marker.title = @"Required"; - marker.snippet = [NSString stringWithFormat:@"zIndex: %d", zIndex]; - marker.zIndex = zIndex; - marker.draggable = YES; - marker.position = CLLocationCoordinate2DMake(latitude, longitude); - marker.collisionBehavior = GMSCollisionBehaviorRequiredAndHidesOptional; - return marker; -} - -- (void)viewDidLoad { - [super viewDidLoad]; - - GMSCameraPosition *camera = [GMSCameraPosition cameraWithTarget:kSeattleCoordinates zoom:16]; - - _mapView = [GMSMapView mapWithFrame:self.view.bounds camera:camera]; - _mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; - [self.view addSubview:_mapView]; - - CLLocationCoordinate2D requiredCollidingFirstPosition = { - .latitude = kSeattleCoordinates.latitude - 0.002, - .longitude = kSeattleCoordinates.longitude - 0.003}; - CLLocationCoordinate2D requiredNonCollidingFirstPosition = { - .latitude = kSeattleCoordinates.latitude, .longitude = kSeattleCoordinates.longitude - 0.003}; - CLLocationCoordinate2D optionalFirstPosition = {.latitude = kSeattleCoordinates.latitude - 0.001, - .longitude = kSeattleCoordinates.longitude}; - - CLLocationDegrees markerSpacing = 0.004; - int markerCount = 0; - - for (int i = 0; i < 2; i++) { - for (int j = 0; j < 2; j++) { - GMSMarker *nonColliding = - [self createNonCollidingMarkerWithLatitude:requiredNonCollidingFirstPosition.latitude + - (i * markerSpacing) - longitude:requiredNonCollidingFirstPosition.longitude + - (j * markerSpacing) - zIndex:markerCount++]; - nonColliding.map = _mapView; - GMSMarker *optional = [self - createOptionalMarkerWithLatitude:optionalFirstPosition.latitude + (i * markerSpacing) - longitude:optionalFirstPosition.longitude + (j * markerSpacing) - zIndex:markerCount++]; - optional.map = _mapView; - GMSMarker *required = - [self createRequiredMarkerWithLatitude:requiredCollidingFirstPosition.latitude + - (i * markerSpacing) - longitude:requiredCollidingFirstPosition.longitude + - (j * markerSpacing) - zIndex:markerCount++]; - required.map = _mapView; - } - } -} -@end diff --git a/GoogleMapsBeta/GoogleMapsBeta/Samples/Samples.h b/GoogleMapsBeta/GoogleMapsBeta/Samples/Samples.h deleted file mode 100755 index dcde4cd5..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/Samples/Samples.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC. All rights reserved. - * - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ - -#import - -@interface Samples : NSObject - -+ (NSArray *)loadSections; - -+ (NSArray *)loadDemos; - -@end diff --git a/GoogleMapsBeta/GoogleMapsBeta/Samples/Samples.m b/GoogleMapsBeta/GoogleMapsBeta/Samples/Samples.m deleted file mode 100755 index e14b0f40..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/Samples/Samples.m +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2020 Google LLC. All rights reserved. - * - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ - -#import "Samples.h" -#import "CloudBasedMapStylingViewController.h" -#import "CollidingMarkersViewController.h" -#import "StampedPolylinesViewController.h" - -@implementation Samples - -+ (NSArray *)loadSections { - return @[@"Map"]; -} - -/** Returns the array of Maps Beta samples. */ -+ (NSArray *)loadDemos { - return @[@[ - [self newDemo:[CloudBasedMapStylingViewController class] - withTitle:@"Cloud-based Map Styling" - andDescription:nil], - [self newDemo:[StampedPolylinesViewController class] - withTitle:@"Stamped Polylines" - andDescription:nil], - [self newDemo:[CollidingMarkersViewController class] - withTitle:@"Colliding Markers" - andDescription:nil]] - ]; -} - -+ (NSDictionary *)newDemo:(Class) class - withTitle:(NSString *)title - andDescription:(NSString *)description { - return [[NSDictionary alloc] initWithObjectsAndKeys:class, @"controller", - title, @"title", description, @"description", nil]; -} -@end diff --git a/GoogleMapsBeta/GoogleMapsBeta/Samples/StampedPolylinesViewController.h b/GoogleMapsBeta/GoogleMapsBeta/Samples/StampedPolylinesViewController.h deleted file mode 100755 index a3c69377..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/Samples/StampedPolylinesViewController.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright 2020 Google LLC. All rights reserved. - * - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ - -#import - -@interface StampedPolylinesViewController : UIViewController -@end diff --git a/GoogleMapsBeta/GoogleMapsBeta/Samples/StampedPolylinesViewController.m b/GoogleMapsBeta/GoogleMapsBeta/Samples/StampedPolylinesViewController.m deleted file mode 100755 index a993edcd..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/Samples/StampedPolylinesViewController.m +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google LLC. All rights reserved. - * - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ - -#import "StampedPolylinesViewController.h" - -#import - -NS_ASSUME_NONNULL_BEGIN - -static const double kSeattleLatitudeDegrees = 47.6089945; -static const double kSeattleLongitudeDegrees = -122.3410462; -static const double kZoom = 14; -static const double kStrokeWidth = 20; - -@implementation StampedPolylinesViewController { -} - -- (void)viewDidLoad { - [super viewDidLoad]; - - GMSCameraPosition *defaultCamera = [GMSCameraPosition cameraWithLatitude:kSeattleLatitudeDegrees - longitude:kSeattleLongitudeDegrees - zoom:kZoom]; - GMSMapView *map = [GMSMapView mapWithFrame:self.view.bounds camera:defaultCamera]; - map.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; - [self.view addSubview:map]; - - // Make a texture stamped polyline. - GMSMutablePath *path = [GMSMutablePath path]; - [path addLatitude:kSeattleLatitudeDegrees + 0.003 longitude:kSeattleLongitudeDegrees - 0.003]; - [path addLatitude:kSeattleLatitudeDegrees - 0.005 longitude:kSeattleLongitudeDegrees - 0.005]; - [path addLatitude:kSeattleLatitudeDegrees - 0.007 longitude:kSeattleLongitudeDegrees + 0.001]; - - UIImage *_Nonnull stamp = (UIImage * _Nonnull)[UIImage imageNamed:@"voyager"]; - GMSStrokeStyle *solidStroke = [GMSStrokeStyle solidColor:[UIColor redColor]]; - solidStroke.stampStyle = [GMSTextureStyle textureStyleWithImage:stamp]; - - GMSPolyline *texturePolyline = [GMSPolyline polylineWithPath:path]; - texturePolyline.strokeWidth = kStrokeWidth; - texturePolyline.spans = @[ [GMSStyleSpan spanWithStyle:solidStroke] ]; - texturePolyline.map = map; - - // Make a textured polyline using a clear stroke, with a gradient line behind it since - // gradients aren't enabled yet for the same line. - GMSMutablePath *texturePath = [GMSMutablePath path]; - [texturePath addLatitude:kSeattleLatitudeDegrees - 0.012 longitude:kSeattleLongitudeDegrees]; - [texturePath addLatitude:kSeattleLatitudeDegrees - 0.012 - longitude:kSeattleLongitudeDegrees - 0.008]; - - UIImage *_Nonnull textureStamp = (UIImage * _Nonnull)[UIImage imageNamed:@"aeroplane"]; - - GMSStrokeStyle *clearTextureStroke = [GMSStrokeStyle solidColor:[UIColor clearColor]]; - clearTextureStroke.stampStyle = [GMSTextureStyle textureStyleWithImage:textureStamp]; - GMSStrokeStyle *gradientStroke = [GMSStrokeStyle gradientFromColor:[UIColor magentaColor] - toColor:[UIColor greenColor]]; - - GMSPolyline *clearTexturePolyline = [GMSPolyline polylineWithPath:texturePath]; - clearTexturePolyline.strokeWidth = kStrokeWidth * 1.5; - clearTexturePolyline.spans = @[ [GMSStyleSpan spanWithStyle:clearTextureStroke] ]; - clearTexturePolyline.zIndex = 1; - clearTexturePolyline.map = map; - - // Use the same path. - GMSPolyline *gradientPolyline = [GMSPolyline polylineWithPath:texturePath]; - gradientPolyline.strokeWidth = kStrokeWidth * 1.5; - gradientPolyline.spans = @[ [GMSStyleSpan spanWithStyle:gradientStroke] ]; - - // Use a lower zIndex to put it behind the other line. - gradientPolyline.zIndex = clearTexturePolyline.zIndex - 1; - gradientPolyline.map = map; -} - -@end - -NS_ASSUME_NONNULL_END diff --git a/GoogleMapsBeta/GoogleMapsBeta/SceneDelegate.h b/GoogleMapsBeta/GoogleMapsBeta/SceneDelegate.h deleted file mode 100644 index 2ee57fc4..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/SceneDelegate.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@interface SceneDelegate : UIResponder - -@property (strong, nonatomic) UIWindow * window; -@property(nonatomic) UISplitViewController *splitViewController; - -@end - diff --git a/GoogleMapsBeta/GoogleMapsBeta/SceneDelegate.m b/GoogleMapsBeta/GoogleMapsBeta/SceneDelegate.m deleted file mode 100644 index 3e736dd7..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/SceneDelegate.m +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#import "SceneDelegate.h" -#import "MainViewController.h" -@interface SceneDelegate () - -@end - -@implementation SceneDelegate - -- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions { - UIWindowScene *windowScene = (UIWindowScene *)scene; - self.window = [[UIWindow alloc] initWithWindowScene:windowScene]; - MainViewController *main = [[MainViewController alloc] init]; - - UINavigationController *mainNavigationController = - [[UINavigationController alloc] initWithRootViewController:main]; - - UIViewController *empty = [[UIViewController alloc] init]; - UINavigationController *detailNavigationController = - [[UINavigationController alloc] initWithRootViewController:empty]; - - self.splitViewController = [[UISplitViewController alloc] init]; - self.splitViewController.delegate = main; - self.splitViewController.preferredDisplayMode = UISplitViewControllerDisplayModeAllVisible; - self.splitViewController.viewControllers = - @[ mainNavigationController, detailNavigationController ]; - - empty.navigationItem.leftItemsSupplementBackButton = YES; - empty.navigationItem.leftBarButtonItem = self.splitViewController.displayModeButtonItem; - - self.window.rootViewController = self.splitViewController; - - [self.window makeKeyAndVisible]; -} - -@end diff --git a/GoogleMapsBeta/GoogleMapsBeta/main.m b/GoogleMapsBeta/GoogleMapsBeta/main.m deleted file mode 100644 index 5afbcb9d..00000000 --- a/GoogleMapsBeta/GoogleMapsBeta/main.m +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - NSString * appDelegateClassName; - @autoreleasepool { - // Setup code that might create autoreleased objects goes here. - appDelegateClassName = NSStringFromClass([AppDelegate class]); - } - return UIApplicationMain(argc, argv, nil, appDelegateClassName); -} diff --git a/GoogleMapsBeta/Podfile b/GoogleMapsBeta/Podfile deleted file mode 100755 index 9cbf11eb..00000000 --- a/GoogleMapsBeta/Podfile +++ /dev/null @@ -1,6 +0,0 @@ -source 'https://github.com/CocoaPods/Specs.git' - -target 'GoogleMapsBeta' do - platform :ios, '10.0' - pod 'GoogleMaps', '= 3.10.0-beta1' -end diff --git a/README.md b/README.md index 11ad2acb..4c68ec85 100644 --- a/README.md +++ b/README.md @@ -29,27 +29,6 @@ You will need to add an API Key to `GoogleMapsDemos/SDKDemoAPIKey.h`. Please see [documentation](https://developers.google.com/maps/documentation/ios-sdk/start#get-key) for details on how to get an API Key. -## GoogleMapsBeta - -The `GoogleMapsBeta` and `GoogleMapsBeta-Swift` sub-directories contain sample code for the -[Maps SDK for iOS v3.10.0 BETA](https://developers.google.com/maps/documentation/ios-sdk/v310-beta) version of the library. - -To use the Objective-C project: - -``` -$ cd GoogleMapsBeta -$ pod install -$ open GoogleMapsBeta.xcworkspace -``` - -For the Swift project: - -``` -$ cd GoogleMapsBeta-Swift -$ pod install -$ open GoogleMapsBeta-Swift.xcworkspace -``` - ## GooglePlaces The `GooglePlaces` and `GooglePlaces-Swift` sub-directory contains the sample code that is downloaded