- eas 설치
eas build:configure
- eas 빌드
eas build:configure
- eas.json파일을 수정
//eas.json
{
"build": {
"preview": {
"android": {
"buildType": "apk"
}
},
"preview2": {
"android": {
"gradleCommand": ":app:assembleRelease"
}
},
"preview3": {
"developmentClient": true
},
"preview4": {
"distribution": "internal"
},
"production": {}
}
}
- 이름과 아이콘과 앱 정보를 수정한다
//app.json
{
"expo": {
"name": "프롬더셀",
"slug": "rn_build_test",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/logo/icon.png",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
"newArchEnabled": true,
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/logo/logo.png",
"backgroundColor": "#ffffff"
},
"package": "com.ljj3347.rn_build_test"
},
"web": {
"bundler": "metro",
"output": "static",
"favicon": "./assets/logo/logo.png"
},
"plugins": [
"expo-router",
[
"expo-splash-screen",
{
"image": "./assets/logo/logo.png",
"imageWidth": 200,
"resizeMode": "contain",
"backgroundColor": "#ffffff"
}
]
],
"experiments": {
"typedRoutes": true
},
"extra": {
"router": {
"origin": false
},
"eas": {
"projectId": "443c2cf2-8454-4544-8fa0-364fccaaae9c"
}
}
}
}
- terminal에 명령어 입력
eas build -p android --profile preview