Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/enforce-core-branches-sequence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main
- preview
- qa

jobs:
enforce-core-branches-sequence:
Expand All @@ -17,7 +16,6 @@ jobs:
HEAD="${{ github.head_ref }}"

case "$BASE" in
qa) [ "$HEAD" = "dev" ] || { echo "❌ Only dev → qa allowed"; exit 1; } ;;
preview) [ "$HEAD" = "qa" ] || { echo "❌ Only qa → preview allowed"; exit 1; } ;;
preview) [ "$HEAD" = "dev" ] || { echo "❌ Only dev → preview allowed"; exit 1; } ;;
main) [ "$HEAD" = "preview" ] || { echo "❌ Only preview → main allowed"; exit 1; } ;;
esac
19 changes: 0 additions & 19 deletions app.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import { ConfigContext, ExpoConfig } from "expo/config";

const IS_DEV = process.env.APP_VARIANT === "development";
const IS_QA = process.env.APP_VARIANT === "qa";
const IS_PREVIEW = process.env.APP_VARIANT === "preview";

const getUniqueIdentifier = () => {
if (IS_DEV) {
return "com.example.mobile.dev";
}

if (IS_QA) {
return "com.example.mobile.qa";
}

if (IS_PREVIEW) {
return "com.example.mobile.preview";
}
Expand All @@ -25,10 +20,6 @@ const getAppName = () => {
return "Example (Dev)";
}

if (IS_QA) {
return "Example (QA)";
}

if (IS_PREVIEW) {
return "Example (Preview)";
}
Expand All @@ -41,10 +32,6 @@ export const getGoogleServicesJson = () => {
return "./google-services-dev.json";
}

if (IS_QA) {
return "./google-services-qa.json";
}

if (IS_PREVIEW) {
return "./google-services-preview.json";
}
Expand Down Expand Up @@ -106,14 +93,8 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
owner: "nativesquare-expo",
extra: {
router: {},
eas: {
projectId: "be4ff23d-07e9-4524-bb48-d7056e34337f",
},
},
runtimeVersion: {
policy: "appVersion",
},
updates: {
url: "https://u.expo.dev/be4ff23d-07e9-4524-bb48-d7056e34337f",
},
});
22 changes: 3 additions & 19 deletions eas.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"cli": {
"version": ">= 16.12.0",
"appVersionSource": "remote",
"requireCommit": true
"appVersionSource": "remote"
},
"build": {
"development": {
Expand All @@ -13,17 +12,8 @@
"APP_VARIANT": "development"
}
},
"qa": {
"distribution": "internal",
"channel": "qa",
"autoIncrement": true,
"env": {
"APP_VARIANT": "qa",
"EXPO_PUBLIC_CONVEX_URL": "https://bright-sandpiper-121.convex.cloud"
}
},
"preview": {
"distribution": "store",
"distribution": "internal",
"channel": "preview",
"autoIncrement": true,
"env": {
Expand All @@ -36,15 +26,9 @@
}
},
"submit": {
"preview": {
"android": {
"track": "internal",
"releaseStatus": "completed"
}
},
"production": {
"android": {
"track": "alpha",
"track": "internal",
"releaseStatus": "completed"
}
}
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@
"migrate": "npx convex run migrations:runAll",
"migrate:dryrun": "npx convex run migrations:runAll \"{dryRun: true}\"",
"migrate:status": "npx convex run --component migrations lib:getStatus",
"deploy:qa": "dotenv -e .env -- npx convex deploy --preview-create qa",
"deploy:preview": "dotenv -e .env -- npx convex deploy --preview-create preview",
"deploy:prod": "npx convex deploy --prod",
"update:qa": "dotenv -e .env.qa -- eas update --branch qa",
"new-update:qa": "cross-env EXPO_PUBLIC_CONVEX_URL=https://bright-sandpiper-121.convex.cloud eas update --branch qa"
"deploy:prod": "npx convex deploy --prod"
},
"dependencies": {
"@auth/core": "0.37.0",
Expand Down Expand Up @@ -60,7 +57,7 @@
"react-dom": "19.1.0",
"react-native": "0.81.5",
"react-native-gesture-handler": "~2.28.0",
"react-native-reanimated": "~3.17.5",
"react-native-reanimated": "~4.1.6",
"react-native-safe-area-context": "~5.4.0",
"react-native-screens": "~4.16.0",
"react-native-web": "~0.21.0",
Expand Down
Loading
Loading