forked from PapillonApp/Papillon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.ts
127 lines (126 loc) · 3.71 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
import { ExpoConfig } from "expo/config";
import PackageJSON from "./package.json";
export default (): ExpoConfig => ({
name: "Papillon",
slug: PackageJSON.name,
scheme: "papillon",
version: PackageJSON.version,
orientation: "portrait",
icon: "./assets/icon.png",
userInterfaceStyle: "automatic",
primaryColor: "#32AB8E",
splash: {
image: "./assets/launch/splash.png",
resizeMode: "cover",
backgroundColor: "#32AB8E",
},
assetBundlePatterns: ["**/*"],
ios: {
supportsTablet: true,
appStoreUrl:
"https://apps.apple.com/us/app/papillon-lappli-scolaire/id6477761165",
bundleIdentifier: "xyz.getpapillon.ios",
associatedDomains: ["applinks:getpapillon.xyz"],
infoPlist: {
CFBundleURLTypes: [
{
CFBundleURLSchemes: ["papillon", "izly"],
},
],
},
splash: {
backgroundColor: "#32AB8E",
image: "./assets/launch/splash.png",
resizeMode: "cover",
dark: {
backgroundColor: "#001C0F",
image: "./assets/launch/splash-dark.png",
resizeMode: "cover",
},
},
config: {
usesNonExemptEncryption: false,
},
},
android: {
versionCode: parseInt(PackageJSON.version.replaceAll(".", "") + "0"),
playStoreUrl:
"https://play.google.com/store/apps/details?id=xyz.getpapillon.app",
adaptiveIcon: {
foregroundImage: "./assets/launch/adaptive-icon-foreground.png",
backgroundImage: "./assets/launch/adaptive-icon-background.png",
monochromeImage: "./assets/launch/adaptive-icon-monochrome.png",
backgroundColor: "#32AB8E",
},
intentFilters: [
{
action: "VIEW",
data: [{ scheme: "papillon" }, { scheme: "izly" }],
category: ["BROWSABLE", "DEFAULT"],
},
],
splash: {
backgroundColor: "#32AB8E",
image: "./assets/launch/splash.png",
resizeMode: "cover",
dark: {
backgroundColor: "#001C0F",
image: "./assets/launch/splash-dark.png",
resizeMode: "cover",
},
},
package: "xyz.getpapillon.app",
permissions: [
"android.permission.ACCESS_COARSE_LOCATION",
"android.permission.ACCESS_FINE_LOCATION",
],
},
plugins: [
[
"expo-font",
{
fonts: [
"assets/fonts/FixelText-Bold.ttf",
"assets/fonts/FixelText-Light.ttf",
"assets/fonts/FixelText-Medium.ttf",
"assets/fonts/FixelText-Regular.ttf",
"assets/fonts/FixelText-SemiBold.ttf",
],
},
],
"expo-barcode-scanner",
[
"expo-location",
{
locationWhenInUsePermission:
"Papillon utilise ton emplacement pour trouver les établissements autour de toi.",
cameraPermission:
"Papillon utilise ta caméra pour scanner des QR-codes pour te connecter, pour capturer des documents, ou pour des fonctionnalités amusantes telles que les réactions.",
},
],
[
"expo-camera",
{
cameraPermission:
"Papillon utilise ta caméra pour scanner des QR-codes pour te connecter, pour capturer des documents, ou pour des fonctionnalités amusantes telles que les réactions.",
microphonePermission:
"Papillon utilise ton micro pour enregistrer des travaux audio ou des cours.",
recordAudioAndroid: true,
},
],
[
"expo-sensors",
{
motionPermission:
"Papillon utilise les capteurs de mouvement de ton appareil pour de nombreuses fonctionnalités interactives.",
},
],
[
"expo-image-picker",
{
photosPermission:
"Papillon utilise tes photos et vidéos pour personnaliser ton profil, ta gestion des cours et bien plus.",
},
],
],
});