chore: setup eas ci (#2911)

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Yash SinghandJulius Marminge authored and GitHub committed 2026-06-03 22:08:34 -07:00
1 parent 1288909b66
commit dca93d0ee8
10 files changed
+255 -6

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
# Expo artifacts
.expo/
.eas/
# Build outputs
android/
ios/
dist/
web-build/
# Test files
**/*.test.ts
**/*.test.tsx
# Docs
*.md
# Local env
.env
.env.local
.env*.local
# TypeScript
*.tsbuildinfo
+9
View File
@@ -61,6 +61,14 @@ The native lint task runs SwiftLint for Swift plus ktlint and detekt for Kotlin.
## EAS Builds
CI uses Expo fingerprinting with the `preview:dev` profile to reuse an existing compatible build when possible, or start a new internal EAS build when native runtime inputs change. Production and default local builds continue to use the `appVersion` runtime policy.
Create a PR preview dev-client build manually:
```bash
vp run eas:ios:preview:dev
```
Create a cloud dev-client build:
```bash
@@ -77,5 +85,6 @@ Android equivalents:
```bash
vp run eas:android:dev
vp run eas:android:preview:dev
vp run eas:android:preview
```
+2 -1
View File
@@ -53,10 +53,11 @@ const variant = VARIANT_CONFIG[APP_VARIANT];
const config: ExpoConfig = {
name: variant.appName,
slug: "t3-code",
platforms: ["ios", "android"],
scheme: variant.scheme,
version: "0.1.0",
runtimeVersion: {
policy: "appVersion",
policy: process.env.MOBILE_VERSION_POLICY ?? "appVersion",
},
orientation: "portrait",
icon: "./assets/icon.png",
+15
View File
@@ -17,13 +17,28 @@
"APP_VARIANT": "preview"
},
"channel": "preview",
"environment": "preview",
"distribution": "internal"
},
"preview:dev": {
"env": {
"APP_VARIANT": "preview",
"MOBILE_VERSION_POLICY": "fingerprint"
},
"channel": "preview",
"environment": "preview",
"developmentClient": true,
"distribution": "internal",
"android": {
"buildType": "apk"
}
},
"production": {
"env": {
"APP_VARIANT": "production"
},
"channel": "production",
"environment": "production",
"autoIncrement": true
}
},
+3
View File
@@ -16,6 +16,7 @@
"android:prod": "APP_VARIANT=production EXPO_NO_GIT_STATUS=1 expo prebuild --clean --platform android && expo run:android",
"eas:android:dev": "eas build --profile development -p android",
"eas:android:preview": "eas build --profile preview -p android",
"eas:android:preview:dev": "eas build --profile preview:dev -p android",
"eas:android:prod": "eas build --profile production -p android",
"ios": "EXPO_NO_GIT_STATUS=1 expo prebuild --clean --platform ios && expo run:ios",
"ios:dev": "APP_VARIANT=development EXPO_NO_GIT_STATUS=1 expo prebuild --clean --platform ios && expo run:ios",
@@ -23,9 +24,11 @@
"ios:prod": "APP_VARIANT=production EXPO_NO_GIT_STATUS=1 expo prebuild --clean --platform ios && expo run:ios",
"eas:ios:dev": "eas build --profile development -p ios",
"eas:ios:preview": "eas build --profile preview -p ios",
"eas:ios:preview:dev": "eas build --profile preview:dev -p ios",
"eas:ios:prod": "eas build --profile production -p ios",
"eas:dev": "eas build --profile development",
"eas:preview": "eas build --profile preview",
"eas:preview:dev": "eas build --profile preview:dev",
"eas:prod": "eas build --profile production",
"config:dev": "APP_VARIANT=development expo config",
"config:preview": "APP_VARIANT=preview expo config",