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

210 lines
5.0 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createAndroidManifestPlugin = createAndroidManifestPlugin;
exports.createStringsXmlPlugin = createStringsXmlPlugin;
exports.withStringsXml = exports.withSettingsGradle = exports.withProjectBuildGradle = exports.withMainApplication = exports.withMainActivity = exports.withGradleProperties = exports.withAppBuildGradle = exports.withAndroidStyles = exports.withAndroidManifest = exports.withAndroidColorsNight = exports.withAndroidColors = void 0;
function _withMod() {
const data = require("./withMod");
_withMod = function () {
return data;
};
return data;
}
/**
* Helper method for creating mods from existing config functions.
*
* @param action
*/
function createAndroidManifestPlugin(action, name) {
const withUnknown = config => withAndroidManifest(config, async config => {
config.modResults = await action(config, config.modResults);
return config;
});
if (name) {
Object.defineProperty(withUnknown, 'name', {
value: name
});
}
return withUnknown;
}
function createStringsXmlPlugin(action, name) {
const withUnknown = config => withStringsXml(config, async config => {
config.modResults = await action(config, config.modResults);
return config;
});
if (name) {
Object.defineProperty(withUnknown, 'name', {
value: name
});
}
return withUnknown;
}
/**
* Provides the AndroidManifest.xml for modification.
*
* @param config
* @param action
*/
const withAndroidManifest = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'android',
mod: 'manifest',
action
});
};
/**
* Provides the strings.xml for modification.
*
* @param config
* @param action
*/
exports.withAndroidManifest = withAndroidManifest;
const withStringsXml = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'android',
mod: 'strings',
action
});
};
/**
* Provides the `android/app/src/main/res/values/colors.xml` as JSON (parsed with [`xml2js`](https://www.npmjs.com/package/xml2js)).
*
* @param config
* @param action
*/
exports.withStringsXml = withStringsXml;
const withAndroidColors = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'android',
mod: 'colors',
action
});
};
/**
* Provides the `android/app/src/main/res/values-night/colors.xml` as JSON (parsed with [`xml2js`](https://www.npmjs.com/package/xml2js)).
*
* @param config
* @param action
*/
exports.withAndroidColors = withAndroidColors;
const withAndroidColorsNight = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'android',
mod: 'colorsNight',
action
});
};
/**
* Provides the `android/app/src/main/res/values/styles.xml` as JSON (parsed with [`xml2js`](https://www.npmjs.com/package/xml2js)).
*
* @param config
* @param action
*/
exports.withAndroidColorsNight = withAndroidColorsNight;
const withAndroidStyles = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'android',
mod: 'styles',
action
});
};
/**
* Provides the project MainActivity for modification.
*
* @param config
* @param action
*/
exports.withAndroidStyles = withAndroidStyles;
const withMainActivity = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'android',
mod: 'mainActivity',
action
});
};
/**
* Provides the project MainApplication for modification.
*
* @param config
* @param action
*/
exports.withMainActivity = withMainActivity;
const withMainApplication = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'android',
mod: 'mainApplication',
action
});
};
/**
* Provides the project /build.gradle for modification.
*
* @param config
* @param action
*/
exports.withMainApplication = withMainApplication;
const withProjectBuildGradle = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'android',
mod: 'projectBuildGradle',
action
});
};
/**
* Provides the app/build.gradle for modification.
*
* @param config
* @param action
*/
exports.withProjectBuildGradle = withProjectBuildGradle;
const withAppBuildGradle = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'android',
mod: 'appBuildGradle',
action
});
};
/**
* Provides the /settings.gradle for modification.
*
* @param config
* @param action
*/
exports.withAppBuildGradle = withAppBuildGradle;
const withSettingsGradle = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'android',
mod: 'settingsGradle',
action
});
};
/**
* Provides the /gradle.properties for modification.
*
* @param config
* @param action
*/
exports.withSettingsGradle = withSettingsGradle;
const withGradleProperties = (config, action) => {
return (0, _withMod().withMod)(config, {
platform: 'android',
mod: 'gradleProperties',
action
});
};
exports.withGradleProperties = withGradleProperties;
//# sourceMappingURL=android-plugins.js.map