Skip to content

Commit 0ed7bdf

Browse files
petrkonecny2Petr Konecny
andauthored
chore: removed old not used config (#45)
* chore: removed old not used config * chore: added placeholder values * chore: debug * chore: debug * Revert "chore: debug" This reverts commit d2a0299. * Revert "chore: debug" This reverts commit f1a89de. --------- Co-authored-by: Petr Konecny <[email protected]>
1 parent 58c0d1f commit 0ed7bdf

File tree

6 files changed

+25
-17
lines changed

6 files changed

+25
-17
lines changed

app.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,17 @@ const config = {
3232
otaUpdateUrl: '',
3333
}
3434

35-
const environment = process.env.EXPO_PUBLIC_APP_ENV || 'dev'
35+
const detectedEnvironment = process.env.EXPO_PUBLIC_APP_ENV || 'dev'
3636

3737
// your custom fonts
3838
const fonts = ['./assets/fonts/Domine-Bold.ttf']
3939

4040
// prefetched/embedded assets, can be referenced as source='strv_logo' https://docs.expo.dev/versions/latest/sdk/asset/#configurable-properties
4141
const assets = ['./assets/images/strv_logo.png']
4242

43-
const getEnvironmentInfo = (): {
43+
export const getEnvironmentInfo = (
44+
environment: Environment,
45+
): {
4446
name: ExpoConfig['name']
4547
appIdentifier: IOS['bundleIdentifier']
4648
icon: ExpoConfig['icon']
@@ -62,7 +64,7 @@ const getEnvironmentInfo = (): {
6264
}
6365
}
6466

65-
const { name, appIdentifier, icon } = getEnvironmentInfo()
67+
const { name, appIdentifier, icon } = getEnvironmentInfo(detectedEnvironment)
6668

6769
const plugins: ExpoConfig['plugins'] = [
6870
['expo-build-properties'],

eas.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,12 @@
4141
"environment": "production"
4242
}
4343
},
44-
"submit": {}
44+
"submit": {
45+
"production": {
46+
"ios": {
47+
"ascAppId": "1234567890",
48+
"appleTeamId": "1234567890"
49+
}
50+
}
51+
}
4552
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
"@dev-plugins/react-native-mmkv": "^0.2.0",
2828
"@react-native-community/netinfo": "11.4.1",
2929
"expo": "^52.0.44",
30+
"expo-asset": "~11.0.5",
3031
"expo-build-properties": "~0.13.2",
3132
"expo-constants": "~17.0.8",
3233
"expo-dev-client": "~5.0.20",
34+
"expo-font": "~13.0.4",
3335
"expo-image": "~2.0.7",
3436
"expo-linking": "~7.0.5",
3537
"expo-router": "~4.0.20",

pnpm-lock.yaml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/utils/getStoreLink.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { getEnvironmentInfo } from 'app.config'
2+
import easJson from 'eas.json'
13
import { Platform } from 'react-native'
24

3-
import { config } from '~/config'
4-
5-
const applicationIdProd = config.applicationIdProd
6-
const appleIdProd = config.appleIdProd
5+
const applicationIdProd = getEnvironmentInfo('production').appIdentifier
6+
const appleIdProd = easJson.submit.production.ios.ascAppId
77

88
type StoreLink = {
99
storeURI: string

0 commit comments

Comments
 (0)