From 96567c19f5f750fe2d26f8d43b1bc04d0898d74d Mon Sep 17 00:00:00 2001 From: Andrea Busi Date: Sat, 14 Nov 2020 17:25:43 +0100 Subject: [PATCH] refactor: Remove unused GoogleMaps and GooglePlaces dependencies --- .../project.pbxproj | 21 ------------------- Sources/Earthquake Network/AppDelegate.m | 2 -- Sources/Earthquake Network/Costanti.h | 4 ---- Sources/Podfile | 2 -- Sources/Podfile.lock | 17 ++------------- 5 files changed, 2 insertions(+), 44 deletions(-) diff --git a/Sources/Earthquake Network.xcodeproj/project.pbxproj b/Sources/Earthquake Network.xcodeproj/project.pbxproj index 15abe52..4e9ec09 100644 --- a/Sources/Earthquake Network.xcodeproj/project.pbxproj +++ b/Sources/Earthquake Network.xcodeproj/project.pbxproj @@ -1150,7 +1150,6 @@ 8CBD3DBE2149B9AD0070C963 /* Sources */, 8CBD3DBF2149B9AD0070C963 /* Frameworks */, 8CBD3DC02149B9AD0070C963 /* Resources */, - 7E813A93FDCDA54E246F0BC7 /* [CP] Copy Pods Resources */, 8CADAAA521B98C550044E256 /* Embed App Extensions */, 213FE27D012BFA5BA1F850E2 /* [CP] Embed Pods Frameworks */, DCF07F9824D40DB600DCCA63 /* ShellScript */, @@ -1434,26 +1433,6 @@ 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; }; - 7E813A93FDCDA54E246F0BC7 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Earthquake Network/Pods-Earthquake Network-resources.sh", - "${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Resources/GoogleMaps.bundle", - "${PODS_ROOT}/GooglePlaces/Frameworks/GooglePlaces.framework/Resources/GooglePlaces.bundle", - ); - name = "[CP] Copy Pods Resources"; - outputPaths = ( - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleMaps.bundle", - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GooglePlaces.bundle", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Earthquake Network/Pods-Earthquake Network-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; DCF07F9824D40DB600DCCA63 /* ShellScript */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; diff --git a/Sources/Earthquake Network/AppDelegate.m b/Sources/Earthquake Network/AppDelegate.m index e59e685..0e609c2 100644 --- a/Sources/Earthquake Network/AppDelegate.m +++ b/Sources/Earthquake Network/AppDelegate.m @@ -19,7 +19,6 @@ #import "EQNNotificheReteSismiche.h" #import "EQNMainTabBarController.h" -@import GoogleMaps; @import Firebase; @import UserNotifications; @import GoogleMobileAds; @@ -33,7 +32,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // start 3rd party SDKs and custom managers - [GMSServices provideAPIKey:GOOGLE_MAP_KEY]; [GADMobileAds.sharedInstance startWithCompletionHandler:^(GADInitializationStatus *status) { NSLog(@"[AppDelegate] GADMobileAds started with status: %@", status); }]; diff --git a/Sources/Earthquake Network/Costanti.h b/Sources/Earthquake Network/Costanti.h index c1a0fe2..f47bc8a 100644 --- a/Sources/Earthquake Network/Costanti.h +++ b/Sources/Earthquake Network/Costanti.h @@ -123,10 +123,6 @@ typedef enum : NSInteger { } EQNTipoDettagliMappa; -// Chiave googleMaps - -#define GOOGLE_MAP_KEY @"AIzaSyDc2V2vpBmbSnAisiN18rY17Dm7lzVWNAg" - #define MESSAGGIO @"MESSAGGIO_ERRORE" typedef enum : NSInteger { diff --git a/Sources/Podfile b/Sources/Podfile index 1b7351e..853d5f8 100644 --- a/Sources/Podfile +++ b/Sources/Podfile @@ -7,8 +7,6 @@ target 'Earthquake Network' do pod 'Firebase/Core' pod 'Firebase/Messaging' pod 'Firebase/Crashlytics' - pod 'GoogleMaps' - pod 'GooglePlaces' pod 'Google-Mobile-Ads-SDK' pod 'DZNEmptyDataSet' pod 'Solar' diff --git a/Sources/Podfile.lock b/Sources/Podfile.lock index 9d4950b..ca2da24 100644 --- a/Sources/Podfile.lock +++ b/Sources/Podfile.lock @@ -64,13 +64,6 @@ PODS: - nanopb (~> 1.30906.0) - GoogleDataTransport (7.5.1): - nanopb (~> 1.30906.0) - - GoogleMaps (4.0.0): - - GoogleMaps/Maps (= 4.0.0) - - GoogleMaps/Base (4.0.0) - - GoogleMaps/Maps (4.0.0): - - GoogleMaps/Base - - GooglePlaces (4.0.0): - - GoogleMaps/Base (= 4.0.0) - GoogleUserMessagingPlatform (1.2.0) - GoogleUtilities/AppDelegateSwizzler (6.7.2): - GoogleUtilities/Environment @@ -106,8 +99,6 @@ DEPENDENCIES: - Firebase/Crashlytics - Firebase/Messaging - Google-Mobile-Ads-SDK - - GoogleMaps - - GooglePlaces - Solar SPEC REPOS: @@ -124,8 +115,6 @@ SPEC REPOS: - Google-Mobile-Ads-SDK - GoogleAppMeasurement - GoogleDataTransport - - GoogleMaps - - GooglePlaces - GoogleUserMessagingPlatform - GoogleUtilities - nanopb @@ -146,8 +135,6 @@ SPEC CHECKSUMS: Google-Mobile-Ads-SDK: 7d7074359c040f5add4e0963bf860e14690060d0 GoogleAppMeasurement: a6a3a066369828db64eda428cb2856dc1cdc7c4e GoogleDataTransport: f56af7caa4ed338dc8e138a5d7c5973e66440833 - GoogleMaps: b7f7fc569a9b354a3af0d9729dbec40957b7d41e - GooglePlaces: ca8d4aba09ba79e0a829cf1dca03a41de6a09016 GoogleUserMessagingPlatform: c85530d930ba509583aa5a6d50a10aca22cf8502 GoogleUtilities: 7f2f5a07f888cdb145101d6042bc4422f57e70b3 nanopb: 59317e09cf1f1a0af72f12af412d54edf52603fc @@ -155,6 +142,6 @@ SPEC CHECKSUMS: Protobuf: 3dac39b34a08151c6d949560efe3f86134a3f748 Solar: 2dc6e7cc39186cb0c8228fa08df76fb50c7d8f24 -PODFILE CHECKSUM: e0786ee9478a544f2210d53b698dd2757fa7dbe8 +PODFILE CHECKSUM: dd5131b6d7a83fb7c22ecc161ed4fc143eda0ac1 -COCOAPODS: 1.9.3 +COCOAPODS: 1.10.0