11import type { ConfigContext , ExpoConfig } from '@expo/config' ;
22import type { AppIconBadgeConfig } from 'app-icon-badge/types' ;
3+ import Env from './env' ;
34
4- import { ClientEnv , Env } from './env' ;
5+ import 'tsx/cjs' ;
6+
7+ const EXPO_ACCOUNT_OWNER = 'obytes' ;
8+ const EAS_PROJECT_ID = 'c3e1075b-6fe7-4686-aa49-35b46a229044' ;
59
610const appIconBadgeConfig : AppIconBadgeConfig = {
7- enabled : Env . APP_ENV !== 'production' ,
11+ enabled : Env . EXPO_PUBLIC_APP_ENV !== 'production' ,
812 badges : [
913 {
10- text : Env . APP_ENV ,
14+ text : Env . EXPO_PUBLIC_APP_ENV ,
1115 type : 'banner' ,
1216 color : 'white' ,
1317 } ,
1418 {
15- text : Env . VERSION . toString ( ) ,
19+ text : Env . EXPO_PUBLIC_VERSION . toString ( ) ,
1620 type : 'ribbon' ,
1721 color : 'white' ,
1822 } ,
1923 ] ,
2024} ;
2125
22- // eslint-disable-next-line max-lines-per-function
2326export default ( { config } : ConfigContext ) : ExpoConfig => ( {
2427 ...config ,
25- name : Env . NAME ,
26- description : `${ Env . NAME } Mobile App` ,
27- owner : Env . EXPO_ACCOUNT_OWNER ,
28- scheme : Env . SCHEME ,
28+ name : Env . EXPO_PUBLIC_NAME ,
29+ description : `${ Env . EXPO_PUBLIC_NAME } Mobile App` ,
30+ owner : EXPO_ACCOUNT_OWNER ,
31+ scheme : Env . EXPO_PUBLIC_SCHEME ,
2932 slug : 'obytesapp' ,
30- version : Env . VERSION . toString ( ) ,
33+ version : Env . EXPO_PUBLIC_VERSION . toString ( ) ,
3134 orientation : 'portrait' ,
3235 icon : './assets/icon.png' ,
3336 userInterfaceStyle : 'automatic' ,
@@ -38,7 +41,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
3841 assetBundlePatterns : [ '**/*' ] ,
3942 ios : {
4043 supportsTablet : true ,
41- bundleIdentifier : Env . BUNDLE_ID ,
44+ bundleIdentifier : Env . EXPO_PUBLIC_BUNDLE_ID ,
4245 infoPlist : {
4346 ITSAppUsesNonExemptEncryption : false ,
4447 } ,
@@ -51,7 +54,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
5154 foregroundImage : './assets/adaptive-icon.png' ,
5255 backgroundColor : '#2E3C4B' ,
5356 } ,
54- package : Env . PACKAGE ,
57+ package : Env . EXPO_PUBLIC_PACKAGE ,
5558 } ,
5659 web : {
5760 favicon : './assets/favicon.png' ,
@@ -110,9 +113,8 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
110113 [ 'react-native-edge-to-edge' ] ,
111114 ] ,
112115 extra : {
113- ...ClientEnv ,
114116 eas : {
115- projectId : Env . EAS_PROJECT_ID ,
117+ projectId : EAS_PROJECT_ID ,
116118 } ,
117119 } ,
118120} ) ;
0 commit comments