diff --git a/app.config.js b/app.config.js index c3f485c..d1348d6 100644 --- a/app.config.js +++ b/app.config.js @@ -1,61 +1,76 @@ // app.config.js -require('dotenv').config(); +require("dotenv").config(); export default { - name: 'HIPMI Badung Connect', - slug: 'hipmi-mobile', - version: '1.0.0', - orientation: 'portrait', - icon: './assets/images/icon.png', - scheme: 'hipmimobile', - userInterfaceStyle: 'automatic', + name: "HIPMI Badung Connect", + slug: "hipmi-mobile", + version: "1.0.0", + orientation: "portrait", + icon: "./assets/images/icon.png", + scheme: "hipmimobile", + userInterfaceStyle: "automatic", newArchEnabled: true, ios: { supportsTablet: true, - bundleIdentifier: 'com.anonymous.hipmi-mobile', + bundleIdentifier: "com.anonymous.hipmi-mobile", infoPlist: { ITSAppUsesNonExemptEncryption: false, }, + associatedDomains: ["applinks:cld-dkr-staging-hipmi.wibudev.com"], }, android: { adaptiveIcon: { - foregroundImage: './assets/images/splash-icon.png', - backgroundColor: '#ffffff', + foregroundImage: "./assets/images/splash-icon.png", + backgroundColor: "#ffffff", }, edgeToEdgeEnabled: true, - package: 'com.bip.hipmimobileapp', + package: "com.bip.hipmimobileapp", // softwareKeyboardLayoutMode: 'resize', // option: untuk mengatur keyboard pada room chst collaboration + intentFilters: [ + { + action: "VIEW", + autoVerify: true, // wajib untuk App Links + data: [ + { + scheme: "https", + host: "cld-dkr-staging-hipmi.wibudev.com", + pathPrefix: "/app", + }, + ], + category: ["BROWSABLE", "DEFAULT"], + }, + ], }, web: { - bundler: 'metro', - output: 'static', - favicon: './assets/images/favicon.png', + bundler: "metro", + output: "static", + favicon: "./assets/images/favicon.png", }, plugins: [ - 'expo-router', - 'expo-web-browser', + "expo-router", + "expo-web-browser", [ - 'expo-splash-screen', + "expo-splash-screen", { - image: './assets/images/splash-icon.png', + image: "./assets/images/splash-icon.png", imageWidth: 200, - resizeMode: 'contain', - backgroundColor: '#ffffff', + resizeMode: "contain", + backgroundColor: "#ffffff", }, ], [ - 'expo-camera', + "expo-camera", { - cameraPermission: 'Allow $(PRODUCT_NAME) to access your camera', - microphonePermission: 'Allow $(PRODUCT_NAME) to access your microphone', + cameraPermission: "Allow $(PRODUCT_NAME) to access your camera", + microphonePermission: "Allow $(PRODUCT_NAME) to access your microphone", recordAudioAndroid: true, }, ], - 'expo-font', + "expo-font", ], experiments: { @@ -65,11 +80,11 @@ export default { extra: { router: {}, eas: { - projectId: '5cf15964-4889-4755-b8ed-b99c61d614d1', + projectId: "5cf15964-4889-4755-b8ed-b99c61d614d1", }, // Tambahkan environment variables ke sini API_BASE_URL: process.env.API_BASE_URL, BASE_URL: process.env.BASE_URL, DEEP_LINK_URL: process.env.DEEP_LINK_URL, }, -}; \ No newline at end of file +}; diff --git a/service/api-config.ts b/service/api-config.ts index 87f0989..d185862 100644 --- a/service/api-config.ts +++ b/service/api-config.ts @@ -3,7 +3,7 @@ import axios, { AxiosInstance } from "axios"; import Constants from "expo-constants"; export const BASE_URL = Constants.expoConfig?.extra?.BASE_URL; export const API_BASE_URL = Constants.expoConfig?.extra?.API_BASE_URL; -export const DEEP_LINK_URL = Constants.expoConfig?.extra?.DEEP_LINK_URL; +export const DEEP_LINK_URL = Constants.expoConfig?.extra?.DEEP_LINK_URL || 'hipmimobile://'; export const apiConfig: AxiosInstance = axios.create({ baseURL: API_BASE_URL,