Browse Source

fix: google maps API key

Oleksandr Honcharov 1 year ago
parent
commit
956c4d1a28
1 changed files with 8 additions and 0 deletions
  1. 8 0
      app.config.ts

+ 8 - 0
app.config.ts

@@ -46,6 +46,9 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
   ios: {
     supportsTablet: true,
     bundleIdentifier: env.PACKAGE_NAME,
+    config: {
+      googleMapsApiKey: env.IOS_GOOGLE_MAP_APIKEY
+    },
     infoPlist: {
       UIBackgroundModes: ['fetch'],
       NSLocationAlwaysUsageDescription:
@@ -60,6 +63,11 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
   },
   android: {
     package: env.PACKAGE_NAME,
+    config: {
+      googleMaps: {
+        apiKey: env.ANDROID_GOOGLE_MAP_APIKEY
+      }
+    },
     permissions: [
       'ACCESS_BACKGROUND_LOCATION',
       'ACCESS_FINE_LOCATION',