Skip to content

Commit 79c031f

Browse files
create & support eas apk with monorepo
1 parent 1d9999e commit 79c031f

File tree

6 files changed

+151
-96
lines changed

6 files changed

+151
-96
lines changed

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
node-linker=hoisted
2+
3+
4+
registry=https://registry.npmjs.org/
5+
@method-inc:registry=https://npm.pkg.github.com/

apps/expo-nativewind/app.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,37 @@
1212
"resizeMode": "contain",
1313
"backgroundColor": "#ffffff"
1414
},
15-
"assetBundlePatterns": ["**/*"],
15+
"assetBundlePatterns": [
16+
"**/*"
17+
],
1618
"ios": {
1719
"supportsTablet": true
1820
},
1921
"android": {
2022
"adaptiveIcon": {
2123
"foregroundImage": "./assets/images/adaptive-icon.png",
2224
"backgroundColor": "#ffffff"
23-
}
25+
},
26+
"package": "com.ahmed.rez.starterbase"
2427
},
2528
"web": {
2629
"bundler": "metro",
2730
"output": "static",
2831
"favicon": "./assets/images/favicon.png"
2932
},
30-
"plugins": ["expo-router"],
33+
"plugins": [
34+
"expo-router"
35+
],
3136
"experiments": {
3237
"typedRoutes": true
38+
},
39+
"extra": {
40+
"router": {
41+
"origin": false
42+
},
43+
"eas": {
44+
"projectId": "e40ed93b-d7fe-4913-ba46-7bd6c7c0d660"
45+
}
3346
}
3447
}
3548
}

apps/expo-nativewind/eas.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"cli": {
3+
"appVersionSource": "remote",
4+
"promptToConfigurePushNotifications": false
5+
},
6+
"build": {
7+
"monorepo": {
8+
"pnpm": "9.15.4",
9+
"cache": {
10+
"key": "turbo",
11+
"paths": [
12+
"../../node_modules/.cache/turbo"
13+
]
14+
},
15+
"env": {
16+
"EXPO_USE_FAST_RESOLVER": "true"
17+
}
18+
},
19+
"development": {
20+
"extends": "monorepo",
21+
"distribution": "internal",
22+
"android": {
23+
"buildType": "apk"
24+
}
25+
},
26+
"production": {
27+
"extends": "monorepo",
28+
"distribution": "store",
29+
"android": {
30+
"buildType": "app-bundle"
31+
}
32+
}
33+
}
34+
}

apps/expo-nativewind/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
"main": "index.js",
44
"version": "1.0.0",
55
"scripts": {
6+
"start": "expo start -c",
67
"dev": "expo start -c --ios",
78
"dev:web": "expo start -c --web",
89
"dev:android": "expo start -c --android",
910
"android": "expo start -c --android",
1011
"ios": "expo start -c --ios",
1112
"web": "expo start -c --web",
13+
"build": "expo export --output-dir ./build --platform all",
14+
"eas-build-post-install": "pnpm run -w build:expo-nativewind",
1215
"clean": "rm -rf .expo node_modules"
1316
},
1417
"dependencies": {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"test": "turbo test",
1212
"build": "turbo build --filter=./packages/*",
1313
"build:docs": "turbo build --filter=./apps/docs",
14+
"build:expo-nativewind": "turbo build --filter=\"...{./apps/expo-nativewind}\"",
1415
"publish-all:primitives:next": "turbo pub:next --filter=./packages/* --concurrency=34",
1516
"publish-all:primitives": "turbo pub:release --filter=./packages/* --concurrency=34",
1617
"clean": "turbo clean && rm -rf .turbo node_modules"

0 commit comments

Comments
 (0)