瀏覽代碼

fix: google maps API key

Oleksandr Honcharov 1 年之前
父節點
當前提交
956c4d1a28
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      app.config.ts

+ 8 - 0
app.config.ts

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