Files
smart-city-digital-twin-mar…/smart-app-city/frontend/node_modules/@expo/config-plugins/build/ios/Bitcode.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

110 lines
3.1 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getBitcode = getBitcode;
exports.setBitcode = setBitcode;
exports.setBitcodeWithConfig = setBitcodeWithConfig;
exports.withCustomBitcode = exports.withBitcode = void 0;
function _Xcodeproj() {
const data = require("./utils/Xcodeproj");
_Xcodeproj = function () {
return data;
};
return data;
}
function _iosPlugins() {
const data = require("../plugins/ios-plugins");
_iosPlugins = function () {
return data;
};
return data;
}
function _warnings() {
const data = require("../utils/warnings");
_warnings = function () {
return data;
};
return data;
}
/**
* Plugin to set a bitcode preference for the Xcode project
* based on the project's Expo config `ios.bitcode` value.
*/
const withBitcode = config => {
return (0, _iosPlugins().withXcodeProject)(config, async config => {
config.modResults = await setBitcodeWithConfig(config, {
project: config.modResults
});
return config;
});
};
/**
* Plugin to set a custom bitcode preference for the Xcode project.
* Does not read from the Expo config `ios.bitcode`.
*
* @param bitcode custom bitcode setting.
*/
exports.withBitcode = withBitcode;
const withCustomBitcode = (config, bitcode) => {
return (0, _iosPlugins().withXcodeProject)(config, async config => {
config.modResults = await setBitcode(bitcode, {
project: config.modResults
});
return config;
});
};
/**
* Get the bitcode preference from the Expo config.
*/
exports.withCustomBitcode = withCustomBitcode;
function getBitcode(config) {
return config.ios?.bitcode;
}
/**
* Enable or disable the `ENABLE_BITCODE` property of the project configurations.
*/
function setBitcodeWithConfig(config, {
project
}) {
const bitcode = getBitcode(config);
return setBitcode(bitcode, {
project
});
}
/**
* Enable or disable the `ENABLE_BITCODE` property.
*/
function setBitcode(bitcode, {
project
}) {
const isDefaultBehavior = bitcode == null;
// If the value is undefined, then do nothing.
if (isDefaultBehavior) {
return project;
}
const targetName = typeof bitcode === 'string' ? bitcode : undefined;
const isBitcodeEnabled = !!bitcode;
if (targetName) {
// Assert if missing
const configs = Object.entries(project.pbxXCBuildConfigurationSection()).filter(_Xcodeproj().isNotComment);
const hasConfiguration = configs.find(([, configuration]) => configuration.name === targetName);
if (hasConfiguration) {
// If targetName is defined then disable bitcode everywhere.
project.addBuildProperty('ENABLE_BITCODE', 'NO');
} else {
const names = [
// Remove duplicates, wrap in double quotes, and sort alphabetically.
...new Set(configs.map(([, configuration]) => `"${configuration.name}"`))].sort();
(0, _warnings().addWarningIOS)('ios.bitcode', `No configuration named "${targetName}". Expected one of: ${names.join(', ')}.`);
}
}
project.addBuildProperty('ENABLE_BITCODE', isBitcodeEnabled ? 'YES' : 'NO', targetName);
return project;
}
//# sourceMappingURL=Bitcode.js.map