From 7d01bf0965725d627cb5467b680f14687002a3e3 Mon Sep 17 00:00:00 2001 From: prachinayak1509 Date: Mon, 6 Jul 2026 20:47:52 +0530 Subject: [PATCH 1/2] schema fixed --- EAS_BUILD.md | 18 ++++++++---------- app.config.js | 4 ++-- eas.json | 6 +----- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/EAS_BUILD.md b/EAS_BUILD.md index 5a419df..92ac9aa 100644 --- a/EAS_BUILD.md +++ b/EAS_BUILD.md @@ -80,8 +80,8 @@ npx eas-cli env:delete SECRET_NAME - `EXPO_PUBLIC_GOOGLE_AUTH_REDIRECT_URI` - `EXPO_PUBLIC_GOOGLE_CLIENT_ID` - `GOOGLE_MAPS_API_KEY` (secret) -- `GOOGLE_SERVICES_JSON` (file secret — Android Firebase config) -- `GOOGLE_SERVICE_INFO_PLIST` (file secret — iOS Firebase config) +- `ANDROID_GOOGLE_SERVICES` (file secret — Android Firebase config, production only) +- `IOS_GOOGLE_SERVICES` (file secret — iOS Firebase config, production only) > **Note:** Local `.env` file is NOT used in EAS builds - only for `expo start` @@ -91,25 +91,23 @@ npx eas-cli env:delete SECRET_NAME ```bash # Android -npx eas-cli env:create --scope project --name GOOGLE_SERVICES_JSON --type file --value ./google-services.json --environment development -npx eas-cli env:create --scope project --name GOOGLE_SERVICES_JSON --type file --value ./google-services.json --environment preview -npx eas-cli env:create --scope project --name GOOGLE_SERVICES_JSON --type file --value ./google-services.json --environment production +npx eas-cli env:create --scope project --name ANDROID_GOOGLE_SERVICES --type file --value ./google-services.json --environment production # iOS -npx eas-cli env:create --scope project --name GOOGLE_SERVICE_INFO_PLIST --type file --value ./GoogleService-Info.plist --environment development -npx eas-cli env:create --scope project --name GOOGLE_SERVICE_INFO_PLIST --type file --value ./GoogleService-Info.plist --environment preview -npx eas-cli env:create --scope project --name GOOGLE_SERVICE_INFO_PLIST --type file --value ./GoogleService-Info.plist --environment production +npx eas-cli env:create --scope project --name IOS_GOOGLE_SERVICES --type file --value ./GoogleService-Info.plist --environment production ``` **`app.config.js` must reference the secrets** (already updated): ```js // Android -googleServicesFile: process.env.GOOGLE_SERVICES_JSON ?? "./google-services.json", +googleServicesFile: process.env.ANDROID_GOOGLE_SERVICES ?? "./google-services.json", // iOS -googleServicesFile: process.env.GOOGLE_SERVICE_INFO_PLIST ?? "./GoogleService-Info.plist", +googleServicesFile: process.env.IOS_GOOGLE_SERVICES ?? "./GoogleService-Info.plist", ``` +These secrets only exist for the `production` environment — `development` and `preview` builds fall back to the local gitignored files. + Locally (during `expo start`) the files are read directly from disk. On EAS the env var path is used. ## Installation diff --git a/app.config.js b/app.config.js index 492b304..9ffc6d1 100644 --- a/app.config.js +++ b/app.config.js @@ -49,7 +49,7 @@ export default { ios: { supportsTablet: true, googleServicesFile: - process.env.GOOGLE_SERVICE_INFO_PLIST ?? "./GoogleService-Info.plist", + process.env.IOS_GOOGLE_SERVICES ?? "./GoogleService-Info.plist", bundleIdentifier: "com.smalltech.hashtaglocal", buildNumber: "2", usesAppleSignIn: true, @@ -78,7 +78,7 @@ export default { edgeToEdgeEnabled: true, predictiveBackGestureEnabled: false, googleServicesFile: - process.env.GOOGLE_SERVICES_JSON ?? "./google-services.json", + process.env.ANDROID_GOOGLE_SERVICES ?? "./google-services.json", package: "com.smalltech.hashtaglocal", permissions: [ "android.permission.POST_NOTIFICATIONS", diff --git a/eas.json b/eas.json index baf907e..44c1190 100644 --- a/eas.json +++ b/eas.json @@ -18,12 +18,8 @@ "environment": "production", "autoIncrement": true, "channel": "production", - "android": { - "googleServicesFile": "env:ANDROID_GOOGLE_SERVICES" - }, "ios": { - "buildConfiguration": "Release", - "googleServicesFile": "env:IOS_GOOGLE_SERVICES" + "buildConfiguration": "Release" } } }, From 5d9de51d50a4bab1a45951b632d6070f518b514a Mon Sep 17 00:00:00 2001 From: prachinayak1509 Date: Mon, 6 Jul 2026 20:49:54 +0530 Subject: [PATCH 2/2] build update --- app.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.config.js b/app.config.js index 9ffc6d1..04cc517 100644 --- a/app.config.js +++ b/app.config.js @@ -34,7 +34,7 @@ export default { name: "#local", slug: "hashtaglocal", owner: "smalltech", - version: "1.0.8", + version: "1.0.9", orientation: "portrait", icon: "./assets/app-icon.png", scheme: "hashtaglocal",