- 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
36 lines
1.3 KiB
Bash
Executable File
36 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eo pipefail
|
|
|
|
DEST="$CONFIGURATION_BUILD_DIR"
|
|
RESOURCE_BUNDLE_NAME="EXConstants.bundle"
|
|
EXPO_CONSTANTS_PACKAGE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
|
|
|
|
# For classic main project build phases integration, will be no-op to prevent duplicated app.config creation.
|
|
#
|
|
# `$PROJECT_DIR` is passed by Xcode as the directory to the xcodeproj file.
|
|
# in classic main project setup it is something like /path/to/app/ios
|
|
# in new style pod project setup it is something like /path/to/app/ios/Pods
|
|
PROJECT_DIR_BASENAME=$(basename $PROJECT_DIR)
|
|
if [ "x$PROJECT_DIR_BASENAME" != "xPods" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# If PROJECT_ROOT is not specified, fallback to use Xcode PROJECT_DIR
|
|
PROJECT_ROOT=${PROJECT_ROOT:-"$PROJECT_DIR/../.."}
|
|
PROJECT_ROOT=${PROJECT_ROOT:-"$EXPO_CONSTANTS_PACKAGE_DIR/../.."}
|
|
|
|
cd "$PROJECT_ROOT" || exit
|
|
|
|
if [ "$BUNDLE_FORMAT" == "shallow" ]; then
|
|
RESOURCE_DEST="$DEST/$RESOURCE_BUNDLE_NAME"
|
|
elif [ "$BUNDLE_FORMAT" == "deep" ]; then
|
|
RESOURCE_DEST="$DEST/$RESOURCE_BUNDLE_NAME/Contents/Resources"
|
|
mkdir -p "$RESOURCE_DEST"
|
|
else
|
|
echo "Unsupported bundle format: $BUNDLE_FORMAT"
|
|
exit 1
|
|
fi
|
|
|
|
"${EXPO_CONSTANTS_PACKAGE_DIR}/scripts/with-node.sh" "${EXPO_CONSTANTS_PACKAGE_DIR}/scripts/getAppConfig.js" "$PROJECT_ROOT" "$RESOURCE_DEST"
|