Files
smart-city-digital-twin-mar…/smart-app-city/frontend/node_modules/@expo/config-plugins/build/plugins/ios-plugins.js
Eric FELIXINE e30ae8ed09 feat(smart-app): implement complete mobile app MVP
- 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
2026-06-01 18:00:35 -04:00

205 lines
5.2 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createEntitlementsPlugin = createEntitlementsPlugin;
exports.createInfoPlistPlugin = createInfoPlistPlugin;
exports.createInfoPlistPluginWithPropertyGuard = createInfoPlistPluginWithPropertyGuard;
exports.withXcodeProject = exports.withPodfileProperties = exports.withPodfile = exports.withInfoPlist = exports.withExpoPlist = exports.withEntitlementsPlist = exports.withAppDelegate = void 0;
function _withMod() {
const data = require("./withMod");
_withMod = function () {
return data;
};
return data;
}
function _obj() {
const data = require("../utils/obj");
_obj = function () {
return data;
};
return data;
}
function _warnings() {
const data = require("../utils/warnings");
_warnings = function () {
return data;
};
return data;
}
/**
* Helper method for creating mods from existing config functions.
*
* @param action
*/
function createInfoPlistPlugin(action, name) {
const withUnknown = config => withInfoPlist(config, async config => {
config.modResults = await action(config, config.modResults);
return config;
});
if (name) {
Object.defineProperty(withUnknown, 'name', {
value: name
});
}
return withUnknown;
}
function createInfoPlistPluginWithPropertyGuard(action, settings, name) {
const withUnknown = config => withInfoPlist(config, async config => {
const existingProperty = settings.expoPropertyGetter ? settings.expoPropertyGetter(config) : (0, _obj().get)(config, settings.expoConfigProperty);
// If the user explicitly sets a value in the infoPlist, we should respect that.
if (config.modRawConfig.ios?.infoPlist?.[settings.infoPlistProperty] === undefined) {
config.modResults = await action(config, config.modResults);
} else if (existingProperty !== undefined) {
// Only warn if there is a conflict.
(0, _warnings().addWarningIOS)(settings.expoConfigProperty, `"ios.infoPlist.${settings.infoPlistProperty}" is set in the config. Ignoring abstract property "${settings.expoConfigProperty}": ${existingProperty}`);
}
return config;
});
if (name) {
Object.defineProperty(withUnknown, 'name', {
value: name
});
}
return withUnknown;
}
/**
* Helper method for creating mods from existing config functions.
*
* @param action
*/
function createEntitlementsPlugin(action, name) {
const withUnknown = config => withEntitlementsPlist(config, async config => {
config.modResults = await action(config, config.modResults);
return config;
});
if (name) {
Object.defineProperty(withUnknown, 'name', {
value: name
});
}
return withUnknown;
}
/**
* Provides the AppDelegate file for modification.
*
* @param config
* @param action
*/
const withAppDelegate = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'ios',
mod: 'appDelegate',
action
});
};
/**
* Provides the Info.plist file for modification.
* Keeps the config's expo.ios.infoPlist object in sync with the data.
*
* @param config
* @param action
*/
exports.withAppDelegate = withAppDelegate;
const withInfoPlist = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'ios',
mod: 'infoPlist',
async action(config) {
config = await action(config);
if (!config.ios) {
config.ios = {};
}
config.ios.infoPlist = config.modResults;
return config;
}
});
};
/**
* Provides the main .entitlements file for modification.
* Keeps the config's expo.ios.entitlements object in sync with the data.
*
* @param config
* @param action
*/
exports.withInfoPlist = withInfoPlist;
const withEntitlementsPlist = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'ios',
mod: 'entitlements',
async action(config) {
config = await action(config);
if (!config.ios) {
config.ios = {};
}
config.ios.entitlements = config.modResults;
return config;
}
});
};
/**
* Provides the Expo.plist for modification.
*
* @param config
* @param action
*/
exports.withEntitlementsPlist = withEntitlementsPlist;
const withExpoPlist = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'ios',
mod: 'expoPlist',
action
});
};
/**
* Provides the main .xcodeproj for modification.
*
* @param config
* @param action
*/
exports.withExpoPlist = withExpoPlist;
const withXcodeProject = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'ios',
mod: 'xcodeproj',
action
});
};
/**
* Provides the Podfile for modification.
*
* @param config
* @param action
*/
exports.withXcodeProject = withXcodeProject;
const withPodfile = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'ios',
mod: 'podfile',
action
});
};
/**
* Provides the Podfile.properties.json for modification.
*
* @param config
* @param action
*/
exports.withPodfile = withPodfile;
const withPodfileProperties = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'ios',
mod: 'podfileProperties',
action
});
};
exports.withPodfileProperties = withPodfileProperties;
//# sourceMappingURL=ios-plugins.js.map