eksplicit mapping af envs
This commit is contained in:
30
app/setup.sh
Normal file
30
app/setup.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
# One-time setup: generate native Android + iOS platform files for the SigHej Flutter app.
|
||||
# Run this once from the project root (SigHej/) or from app/:
|
||||
# cd app && bash setup.sh
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
echo "📱 Generating Flutter platform files..."
|
||||
flutter create \
|
||||
--platforms=android,ios \
|
||||
--project-name sighej \
|
||||
--org dk.sighej \
|
||||
.
|
||||
|
||||
echo "📦 Installing dependencies..."
|
||||
flutter pub get
|
||||
|
||||
echo "✅ Setup complete."
|
||||
echo ""
|
||||
echo "Next steps:"
|
||||
echo " Android: open app/android/ in Android Studio and run on device/emulator"
|
||||
echo " iOS: open app/ios/Runner.xcworkspace in Xcode and run on device/simulator"
|
||||
echo ""
|
||||
echo "⚠️ After running flutter create, copy the permission files:"
|
||||
echo " The AndroidManifest.xml and Info.plist in this repo contain the required BLE"
|
||||
echo " and notification permissions. If flutter create overwrote them, restore with:"
|
||||
echo " git checkout app/android/app/src/main/AndroidManifest.xml"
|
||||
echo " git checkout app/ios/Runner/Info.plist"
|
||||
Reference in New Issue
Block a user