- App.tsx: full navigation (Auth stack + Main tabs with 5 screens) - Auth: LoginScreen, RegisterScreen, ForgotPasswordScreen - HomeScreen: dashboard with IoT metrics, weather widget, alerts, quick actions, sensors - MapScreen: interactive map with layer toggles (6 layers) - MarketplaceScreen: categories (6), products (5), search - ChatScreen: AI chat with quick prompts (4), bot responses - ProfileScreen: user info, stats, menu (9 items), logout - AlertsScreen: alert list with severity, acknowledge - SensorsScreen: sensor list with type filters (6 types), search - ZonesScreen: zone cards with stats - SettingsScreen: language picker (FR/EN/ES/DE), privacy, about - Stores: iotStore (sensors, zones, alerts), notificationStore, uiStore + i18n - Hooks: useSensors, useAlerts, useNotifications, useLocation - Components: Card, Button, LoadingSpinner, ErrorBoundary, Header - Services: iotService, notificationService (with axios API client) - Utils: formatters (temp, AQI, noise, dates), validators (email, password, IBAN) - Theme: colors.ts with full design system (Blue Ocean palette) - Ditto: fixed MongoDB connection, new JWT secrets, official gateway image
61 lines
2.2 KiB
JavaScript
61 lines
2.2 KiB
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.getAutolinkedPackagesAsync = getAutolinkedPackagesAsync;
|
|
exports.resolvePackagesList = resolvePackagesList;
|
|
exports.shouldSkipAutoPlugin = shouldSkipAutoPlugin;
|
|
function _importExpoModulesAutolinking() {
|
|
const data = require("./importExpoModulesAutolinking");
|
|
_importExpoModulesAutolinking = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
/**
|
|
* Returns a list of packages that are autolinked to a project.
|
|
*
|
|
* @param projectRoot
|
|
* @param platforms platforms to check for
|
|
* @returns list of packages ex: `['expo-camera', 'react-native-screens']`
|
|
*/
|
|
async function getAutolinkedPackagesAsync(projectRoot, platforms = ['ios', 'android']) {
|
|
const autolinking = (0, _importExpoModulesAutolinking().importExpoModulesAutolinking)(projectRoot);
|
|
const searchPaths = await autolinking.resolveSearchPathsAsync(null, projectRoot);
|
|
const platformPaths = await Promise.all(platforms.map(platform => autolinking.findModulesAsync({
|
|
projectRoot,
|
|
platform,
|
|
searchPaths,
|
|
silent: true
|
|
})));
|
|
return resolvePackagesList(platformPaths);
|
|
}
|
|
function resolvePackagesList(platformPaths) {
|
|
const allPlatformPaths = platformPaths.map(paths => Object.keys(paths)).flat();
|
|
const uniquePaths = [...new Set(allPlatformPaths)];
|
|
return uniquePaths.sort();
|
|
}
|
|
function shouldSkipAutoPlugin(config, plugin) {
|
|
// Hack workaround because expo-dev-client doesn't use expo modules.
|
|
if (plugin === 'expo-dev-client') {
|
|
return false;
|
|
}
|
|
|
|
// Only perform the check if `autolinkedModules` is defined, otherwise we assume
|
|
// this is a legacy runner which doesn't support autolinking.
|
|
if (Array.isArray(config._internal?.autolinkedModules)) {
|
|
// Resolve the pluginId as a string.
|
|
const pluginId = Array.isArray(plugin) ? plugin[0] : plugin;
|
|
if (typeof pluginId === 'string') {
|
|
// Determine if the autolinked modules list includes our moduleId
|
|
const isIncluded = config._internal.autolinkedModules.includes(pluginId);
|
|
if (!isIncluded) {
|
|
// If it doesn't then we know that any potential plugin shouldn't be applied automatically.
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
//# sourceMappingURL=getAutolinkedPackages.js.map
|