mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-04-11 00:30:19 +02:00
Modify folder structure
This commit is contained in:
3
mobile/traque-app/src/constants/colors.js
Normal file
3
mobile/traque-app/src/constants/colors.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export const COLORS = {
|
||||
background: '#f5f5f5'
|
||||
};
|
||||
2
mobile/traque-app/src/constants/config.js
Normal file
2
mobile/traque-app/src/constants/config.js
Normal file
@@ -0,0 +1,2 @@
|
||||
export const SERVER_URL = process.env.EXPO_PUBLIC_SERVER_URL;
|
||||
export const SOCKET_URL = process.env.EXPO_PUBLIC_SOCKET_URL;
|
||||
11
mobile/traque-app/src/constants/game.js
Normal file
11
mobile/traque-app/src/constants/game.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export const GAME_STATE = {
|
||||
SETUP: "setup",
|
||||
PLACEMENT: "placement",
|
||||
PLAYING: "playing",
|
||||
FINISHED: "finished"
|
||||
};
|
||||
|
||||
export const ZONE_TYPES = {
|
||||
CIRCLE: "circle",
|
||||
POLYGON: "polygon"
|
||||
};
|
||||
4
mobile/traque-app/src/constants/index.js
Normal file
4
mobile/traque-app/src/constants/index.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export * from './config';
|
||||
export * from './game';
|
||||
export * from './map';
|
||||
export * from './colors';
|
||||
32
mobile/traque-app/src/constants/map.js
Normal file
32
mobile/traque-app/src/constants/map.js
Normal file
@@ -0,0 +1,32 @@
|
||||
export const INITIAL_REGIONS = {
|
||||
PARIS : {
|
||||
latitude: 48.864,
|
||||
longitude: 2.342,
|
||||
latitudeDelta: 0,
|
||||
longitudeDelta: 50
|
||||
}
|
||||
};
|
||||
|
||||
export const LOCATION_PARAMETERS = {
|
||||
LOCAL: {
|
||||
accuracy: 4, // High
|
||||
distanceInterval: 3, // meters
|
||||
timeInterval: 1000, // ms
|
||||
},
|
||||
SERVER: {
|
||||
accuracy: 4, // High
|
||||
distanceInterval: 5, // meters
|
||||
timeInterval: 5000, // ms
|
||||
showsBackgroundLocationIndicator: true, // iOS only
|
||||
pausesUpdatesAutomatically: false, // (iOS) Prevents auto-pausing of location updates
|
||||
foregroundService: {
|
||||
notificationTitle: "Enregistrement de votre position.",
|
||||
notificationBody: "L'application utilise votre position en arrière plan.",
|
||||
notificationColor: "#FF0000", // (Android) Notification icon color
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
export const TASKS = {
|
||||
BACKGROUND_LOCATION: "background-location-task"
|
||||
};
|
||||
Reference in New Issue
Block a user