-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.ts
75 lines (74 loc) · 1.83 KB
/
app.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import { ExpoConfig, ConfigContext } from 'expo/config';
const IS_DEV = process.env.APP_VARIANT === 'development';
const IS_STORE = process.env.APP_VARIANT === 'store';
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
owner: 'kuzulabz',
name: IS_DEV ? 'WaifuTagger Dev' : 'WaifuTagger',
slug: 'WaifuDetector',
version: '1.0.0',
orientation: 'portrait',
icon: './assets/icon.png',
userInterfaceStyle: 'automatic',
backgroundColor: '#000',
splash: {
image: './assets/splash.png',
resizeMode: 'contain',
backgroundColor: '#000',
},
assetBundlePatterns: ['assets/models/*', 'assets/*'],
plugins: [
'onnxruntime-react-native',
[
'expo-share-intent',
{
// iosActivationRules: {
// NSExtensionActivationSupportsWebURLWithMaxCount: 1,
// NSExtensionActivationSupportsWebPageWithMaxCount: 1,
// NSExtensionActivationSupportsImageWithMaxCount: 1,
// NSExtensionActivationSupportsMovieWithMaxCount: 1,
// },
androidIntentFilters: ['image/png', 'image/jpg', 'image/jpeg'],
},
],
[
'expo-build-properties',
{
ios: {
useFrameworks: 'static',
deploymentTarget: '17.0',
},
android: {
useLegacyPackaging: true,
// enableProguardInReleaseBuilds: true, // this will crash the app on inference :(
},
},
],
[
'expo-updates',
{
username: 'kuzulabz',
},
],
],
ios: {
supportsTablet: true,
},
android: {
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#000',
},
versionCode: 4,
package: IS_DEV ? 'com.kuzulabz.WaifuTaggerDev' : 'com.kuzulabz.WaifuTagger',
},
web: {
favicon: './assets/favicon.png',
},
extra: {
eas: {
projectId: '3cb39eec-898a-4a8e-a82d-fe95c9d7dfc2',
},
isStore: IS_STORE,
},
});