Skip to content

Commit 56d8a14

Browse files
committed
build: Configuração do eas para gerar build do projeto
1 parent a991d3f commit 56d8a14

File tree

5 files changed

+621
-20
lines changed

5 files changed

+621
-20
lines changed

app.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default ({ config }) => ({
55
name: 'astro-app',
66
slug: 'astro-app',
77
version: '1.0.0',
8+
owner: 'danielbgc',
89
orientation: 'portrait',
910
icon: './assets/icon.png',
1011
userInterfaceStyle: 'light',
@@ -17,6 +18,7 @@ export default ({ config }) => ({
1718
supportsTablet: true,
1819
},
1920
android: {
21+
package: 'android.danielbgc.astroapp',
2022
adaptiveIcon: {
2123
foregroundImage: './assets/adaptive-icon.png',
2224
backgroundColor: '#ffffff',
@@ -36,6 +38,9 @@ export default ({ config }) => ({
3638
],
3739
],
3840
extra: {
41+
eas: {
42+
projectId: '59c62513-57e1-47c9-8ab6-1d9a38b0655f',
43+
},
3944
sentryOrg: process.env.SENTRY_ORG,
4045
sentryProject: process.env.SENTRY_PROJECT,
4146
sentryDsn: process.env.SENTRY_DSN,

eas.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"cli": {
3+
"version": ">= 12.3.0",
4+
"appVersionSource": "remote"
5+
},
6+
"build": {
7+
"development": {
8+
"developmentClient": true,
9+
"distribution": "internal"
10+
},
11+
"preview": {
12+
"distribution": "internal"
13+
},
14+
"production": {
15+
"autoIncrement": true
16+
}
17+
},
18+
"submit": {
19+
"production": {}
20+
}
21+
}

package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"start": "expo start",
77
"android": "expo start --android",
88
"ios": "expo start --ios",
9-
"web": "expo start --web"
9+
"web": "expo start --web",
10+
"eas:apk:dev": "eas build --platform android --profile development",
11+
"eas:apk:prod": "eas build --platform android --profile production"
1012
},
1113
"dependencies": {
1214
"@expo/vector-icons": "expo/vector-icons",
@@ -21,6 +23,7 @@
2123
"dotenv-cli": "^7.4.2",
2224
"expo": "~51.0.28",
2325
"expo-auth-session": "~5.5.2",
26+
"expo-dev-client": "~4.0.27",
2427
"expo-status-bar": "~1.12.1",
2528
"nativewind": "^2.0.11",
2629
"react": "18.2.0",
@@ -35,7 +38,8 @@
3538
},
3639
"devDependencies": {
3740
"@babel/core": "^7.20.0",
38-
"@types/react": "~18.2.45",
41+
"@types/react": "~18.2.79",
42+
"@types/react-native": "^0.73.0",
3943
"tailwindcss": "3.3.2",
4044
"typescript": "^5.1.3"
4145
},

tsconfig.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
"@components/*": ["src/components/*"],
1010
"@consts/*": ["src/consts/*"],
1111
"@assets/*": ["assets/*"]
12-
}
13-
}
12+
},
13+
"jsx": "react-native", // Adiciona suporte adequado para JSX no React Native
14+
"moduleResolution": "node", // Garante que os módulos sejam resolvidos corretamente
15+
"skipLibCheck": true, // Ignora verificações de tipos em bibliotecas para melhorar o tempo de compilação
16+
"esModuleInterop": true, // Habilita interoperabilidade com CommonJS
17+
"allowSyntheticDefaultImports": true, // Permite importações padrão mesmo que não haja um default export
18+
"forceConsistentCasingInFileNames": true, // Garante que nomes de arquivos sejam consistentes em termos de capitalização
19+
"isolatedModules": true // Requer que cada arquivo seja tratado como um módulo isolado
20+
},
21+
"exclude": ["node_modules"] // Exclui a pasta node_modules
1422
}

0 commit comments

Comments
 (0)