Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arreglado build con Expo SDK 45 #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ web-report/
cypress/screenshots
cypress/videos

app.config.js

# @generated expo-cli sync-2138f1e3e130677ea10ea873f6d498e3890e677b
# The following patterns were generated by expo-cli

Expand Down
41 changes: 41 additions & 0 deletions app.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
export default ({ config }) => {
const publishEnabled = process.env.BUILD_PUBLISH_ENABLED;

if (publishEnabled) {
const versionCode = process.env.VERSION_CODE;

if (!versionCode) {
throw new Error('No VERSION_CODE defined');
}

const mapsApiKey = process.env.MAPS_API_KEY;

if (!mapsApiKey) {
throw new Error('No MAPS_API_KEY defined');
}

const easProjectId = process.env.EAS_PROJECT_ID

if (!easProjectId) {
throw new Error('No EAS_PROJECT_ID defined');
}

config.extra = config.extra || {};
config.extra.eas = config.extra.eas || {};
config.extra.eas.projectId = easProjectId;

config.android = config.android || {};
config.android.versionCode = parseFloat(versionCode);
config.android.config = config.android.config || {};
config.android.config.googleMaps = config.android.config.googleMaps || {};
config.android.config.googleMaps.apiKey = mapsApiKey;

config.ios = config.ios || {};
config.ios.config = config.ios.config || {};
config.ios.config.googleMapsApiKey = mapsApiKey;
}

return {
...config,
};
};
27 changes: 0 additions & 27 deletions app.config.source.js

This file was deleted.

2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
},
"android": {
"package": "es.beniconfusionfest.confusion",
"package": "es.beniconfusionfest.confusion",
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive_icon_foreground.png",
"backgroundColor": "#FFF4E2"
Expand Down
18 changes: 18 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"cli": {
"version": ">= 2.1.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {}
}
}
Loading