-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.ts
More file actions
89 lines (84 loc) · 2.43 KB
/
Copy pathapp.config.ts
File metadata and controls
89 lines (84 loc) · 2.43 KB
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
import { ExpoConfig } from "expo/config";
import { version as packageVersion } from "./package.json";
const userInterfaceStyle = "automatic";
const splash = {
image: "./assets/splash.png",
resizeMode: "contain",
backgroundColor: "#ffffff",
dark: {
image: "./assets/splash.png",
resizeMode: "contain",
backgroundColor: "#000000",
},
} as const;
/**
* Android version code will be generated from current timestamp
* to ensure that each build has unique version code.
*/
const versionCode = Math.floor(Date.now() / 1000 / 60 / 1);
/**
* Version will be generated from package.json version and
* current timestamp to ensure that each build has unique version.
*/
const version = `${
/**
* Removes last version number, e.g. 1.2.3 -> 1.2
*/
packageVersion.split(".").slice(0, -1).join(".")
}.${versionCode}`;
const expo: ExpoConfig = {
name: "Swimming Water Quality Denmark",
slug: "denmark-swimming",
scheme: "denmark-swimming",
version,
orientation: "portrait",
icon: "./assets/icon.png",
userInterfaceStyle,
assetBundlePatterns: ["**/*"],
splash,
ios: {
icon: "./assets/icon.icon",
bundleIdentifier: "com.ondrejbarta.denmarkswimming",
buildNumber: version,
supportsTablet: true,
splash,
userInterfaceStyle,
infoPlist: {
NSLocationWhenInUseUsageDescription:
"Your location makes it easier to find the water quality & tempearture of beaches near you.",
NSLocationAlwaysAndWhenInUseUsageDescription:
"Your location makes it easier to find the water quality & tempearture of beaches near you.",
ITSAppUsesNonExemptEncryption: false,
},
},
android: {
package: "com.ondrejbarta.denmarkswimming",
versionCode,
adaptiveIcon: {
foregroundImage: "./assets/icon.png",
backgroundColor: "#ffffff",
},
splash,
userInterfaceStyle,
},
web: { favicon: "./assets/favicon.png" },
extra: { eas: { projectId: "a4e906d9-0345-4542-bf99-d44e10d445cf" } },
plugins: [
"expo-router",
[
"expo-location",
{
locationAlwaysAndWhenInUsePermission:
"Your location makes it easier to find the water quality & tempearture of beaches near you.",
},
],
[
"react-native-maps",
{
iosGoogleMapsApiKey: process.env.EXPO_PUBLIC_GOOGLE_MAPS_API_KEY_IOS,
androidGoogleMapsApiKey: process.env.EXPO_PUBLIC_GOOGLE_MAPS_API_KEY_ANDROID,
},
],
],
};
export default { expo };