-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2145 from ever-co/develop
Release
- Loading branch information
Showing
16 changed files
with
303 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import * as fs from 'fs'; | ||
import * as path from 'path'; | ||
import * as dotenv from 'dotenv'; | ||
|
||
dotenv.config(); // Load environment variables from .env file | ||
|
||
const templatePath = path.join(__dirname, '../apps/mobile/app.template.json'); | ||
const appJsonPath = path.join(__dirname, '../apps/mobile/app.json'); | ||
|
||
fs.copyFile(templatePath, appJsonPath, (err) => { | ||
if (err) { | ||
console.error('Error copying template file:', err); | ||
return; | ||
} | ||
|
||
fs.readFile(appJsonPath, 'utf8', (err, appData) => { | ||
if (err) { | ||
console.error('Error reading app.json file:', err); | ||
return; | ||
} | ||
|
||
const updatedData = appData | ||
.replace(/\$EXPO_PROJECT_SLUG/g, process.env.EXPO_PROJECT_SLUG) | ||
.replace(/\$EXPO_PROJECT_NAME/g, process.env.EXPO_PROJECT_NAME) | ||
.replace(/\$EXPO_PROJECT_OWNER/g, process.env.EXPO_PROJECT_OWNER) | ||
.replace(/\$EXPO_PROJECT_ID/g, process.env.EXPO_PROJECT_ID); | ||
|
||
fs.writeFile(appJsonPath, updatedData, (err) => { | ||
if (err) { | ||
console.error('Error writing app.json file:', err); | ||
return; | ||
} | ||
|
||
console.log('app.json generated successfully!'); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,5 +148,5 @@ yarn-error.log | |
.expo/ | ||
web-build/ | ||
dist/ | ||
|
||
# @end expo-cli | ||
/app.json | ||
# @end expo-cli |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{"name": "$EXPO_PROJECT_SLUG", | ||
"displayName": "$EXPO_PROJECT_NAME", | ||
"expo": { | ||
"name": "$EXPO_PROJECT_NAME", | ||
"slug": "$EXPO_PROJECT_SLUG", | ||
"version": "0.1.0", | ||
"orientation": "portrait", | ||
"icon": "./assets/images/ever-teams-logo.png", | ||
"splash": { | ||
"image": "./assets/images/splash-ever-teams.png", | ||
"resizeMode": "cover", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"owner": "$EXPO_PROJECT_OWNER", | ||
"updates": { | ||
"fallbackToCacheTimeout": 0, | ||
"url": "https://u.expo.dev/$EXPO_PROJECT_ID" | ||
}, | ||
"jsEngine": "hermes", | ||
"assetBundlePatterns": ["**/*"], | ||
"plugins": [ | ||
[ | ||
"expo-media-library", | ||
{ | ||
"photosPermission": "Allow $(PRODUCT_NAME) to access your photos.", | ||
"savePhotosPermission": "Allow $(PRODUCT_NAME) to save photos.", | ||
"isAccessMediaLocationEnabled": true | ||
} | ||
], | ||
"sentry-expo", | ||
[ | ||
"expo-build-properties", | ||
{ | ||
"android": { | ||
"enableProguardInReleaseBuilds": true, | ||
"extraProguardRules": "-keep public class com.horcrux.svg.** {*;}", | ||
"allowBackup": false | ||
} | ||
} | ||
] | ||
], | ||
"android": { | ||
"icon": "./assets/images/app-icon-android-legacy-ever-teams.png", | ||
"package": "ever.team", | ||
"adaptiveIcon": { | ||
"foregroundImage": "./assets/images/app-icon-android-adaptive-foreground-ever.png", | ||
"backgroundImage": "./assets/images/app-icon-android-adaptive-background.png" | ||
}, | ||
"splash": { | ||
"image": "./assets/images/splash-ever-teams.png", | ||
"resizeMode": "cover", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"permissions": [ | ||
"android.permission.READ_EXTERNAL_STORAGE", | ||
"android.permission.WRITE_EXTERNAL_STORAGE", | ||
"android.permission.ACCESS_MEDIA_LOCATION" | ||
] | ||
}, | ||
"ios": { | ||
"icon": "./assets/images/app-icon-ios-ever-teams.png", | ||
"supportsTablet": true, | ||
"bundleIdentifier": "co.ever.teams", | ||
"splash": { | ||
"image": "./assets/images/splash-ever-teams.png", | ||
"tabletImage": "./assets/images/splash-logo-ever-teams-ios-tablet.png", | ||
"resizeMode": "cover", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"infoPlist": { | ||
"NSCameraUsageDescription": "This app uses the camera to scan barcodes on event tickets.", | ||
"NSPhotoLibraryUsageDescription": "Allow $(PRODUCT_NAME) to access your photos.", | ||
"NSPhotoLibraryAddUsageDescription": "Allow $(PRODUCT_NAME) to save photos." | ||
} | ||
}, | ||
"web": { | ||
"favicon": "./assets/images/app-icon-web-favicon.png", | ||
"splash": { | ||
"image": "./assets/images/splash-logo-web-ever-teams.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
} | ||
}, | ||
"extra": { | ||
"eas": { | ||
"projectId": "$EXPO_PROJECT_ID" | ||
} | ||
}, | ||
"runtimeVersion": "exposdk:48.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.