| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #import "AppDelegate.h"
- // @generated begin react-native-maps-import - expo prebuild (DO NOT MODIFY) sync-f2f83125c99c0d74b42a2612947510c4e08c423a
- #if __has_include(<GoogleMaps/GoogleMaps.h>)
- #import <GoogleMaps/GoogleMaps.h>
- #endif
- // @generated end react-native-maps-import
- #import <React/RCTBundleURLProvider.h>
- #import <React/RCTLinkingManager.h>
- @implementation AppDelegate
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
- {
- // @generated begin react-native-maps-init - expo prebuild (DO NOT MODIFY) sync-cc34ca18e2849703700b355a9bd0adf4247f82af
- #if __has_include(<GoogleMaps/GoogleMaps.h>)
- [GMSServices provideAPIKey:@"AIzaSyAkfen-gfGOQyA9ui0_OjOS6TrA5-viBMI"];
- #endif
- // @generated end react-native-maps-init
- self.moduleName = @"main";
- // You can add your custom initial props in the dictionary below.
- // They will be passed down to the ViewController used by React Native.
- self.initialProps = @{};
- return [super application:application didFinishLaunchingWithOptions:launchOptions];
- }
- - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
- {
- return [self bundleURL];
- }
- - (NSURL *)bundleURL
- {
- #if DEBUG
- return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@".expo/.virtual-metro-entry"];
- #else
- return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
- #endif
- }
- // Linking API
- - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
- return [super application:application openURL:url options:options] || [RCTLinkingManager application:application openURL:url options:options];
- }
- // Universal Links
- - (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler {
- BOOL result = [RCTLinkingManager application:application continueUserActivity:userActivity restorationHandler:restorationHandler];
- return [super application:application continueUserActivity:userActivity restorationHandler:restorationHandler] || result;
- }
- // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
- - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
- {
- return [super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
- }
- // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
- - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error
- {
- return [super application:application didFailToRegisterForRemoteNotificationsWithError:error];
- }
- // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
- - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
- {
- return [super application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
- }
- @end
|