diff --git a/app.config.js b/app.config.js index 30ae0d5b..b67ee80f 100644 --- a/app.config.js +++ b/app.config.js @@ -1,11 +1,14 @@ module.exports = ({ config }) => { - if (process.env.EXPO_TV != "1") { + if (process.env.EXPO_TV !== "1") { config.plugins.push([ "react-native-google-cast", { useDefaultExpandedMediaControls: true }, ]); } return { + android: { + googleServicesFile: process.env.GOOGLE_SERVICES_JSON, + }, ...config, }; }; diff --git a/eas.json b/eas.json index 0df93411..18d8aa68 100644 --- a/eas.json +++ b/eas.json @@ -34,7 +34,11 @@ "production": { "channel": "0.27.0", "android": { - "image": "latest" + "image": "latest", + "buildType": "app-bundle" + }, + "env": { + "GOOGLE_SERVICES_JSON": "GOOGLE_SERVICES_JSON" } }, "production-apk": { @@ -42,6 +46,9 @@ "android": { "buildType": "apk", "image": "latest" + }, + "env": { + "GOOGLE_SERVICES_JSON": "GOOGLE_SERVICES_JSON" } }, "production-apk-tv": {