Initial commit (unpacked platform)
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
// Expo-konfiguration – varumärket läses från brand.config.json (i18n-spec §28).
|
||||
import type { ConfigContext, ExpoConfig } from "expo/config";
|
||||
import brand from "../../brand.config.json";
|
||||
|
||||
export default ({ config }: ConfigContext): ExpoConfig => ({
|
||||
...config,
|
||||
name: brand.name,
|
||||
slug: brand.slug,
|
||||
version: "0.1.0",
|
||||
orientation: "portrait",
|
||||
icon: "./assets/images/icon.png",
|
||||
scheme: brand.urlScheme,
|
||||
userInterfaceStyle: "automatic",
|
||||
ios: {
|
||||
bundleIdentifier: brand.iosBundleId,
|
||||
supportsTablet: false,
|
||||
infoPlist: {
|
||||
NSCameraUsageDescription: `${brand.name} använder kameran för att skanna kyl, skafferi, kvitton, streckkoder och tallrikar så att ditt matlager hålls uppdaterat.`,
|
||||
NSPhotoLibraryUsageDescription: `${brand.name} kan läsa bilder du väljer för att analysera mat och kvitton.`,
|
||||
},
|
||||
},
|
||||
android: {
|
||||
package: brand.androidPackage,
|
||||
permissions: ["CAMERA"],
|
||||
adaptiveIcon: {
|
||||
backgroundColor: "#0F2417",
|
||||
foregroundImage: "./assets/images/android-icon-foreground.png",
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
"expo-router",
|
||||
"expo-secure-store",
|
||||
[
|
||||
"expo-splash-screen",
|
||||
{ backgroundColor: "#0F2417", image: "./assets/images/splash-icon.png", imageWidth: 96 },
|
||||
],
|
||||
[
|
||||
"expo-camera",
|
||||
{
|
||||
cameraPermission: `${brand.name} använder kameran för att skanna mat, kvitton och streckkoder.`,
|
||||
},
|
||||
],
|
||||
],
|
||||
experiments: { typedRoutes: false },
|
||||
extra: { apiBaseUrl: process.env.API_BASE_URL ?? "http://localhost:4000" },
|
||||
});
|
||||
Reference in New Issue
Block a user