mirror of
https://github.com/SFOE/EnergyInfoSwiss-MobileApp.git
synced 2026-08-26 00:14:28 +00:00
Read-only mirror of https://github.com/SFOE/EnergyInfoSwiss-MobileApp — Bundesamt für Energie. Issues & pull requests at the source.
- Dart 99.4%
- Ruby 0.4%
- Swift 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| amplify | ||
| android | ||
| assets | ||
| ios | ||
| lib | ||
| test | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| CHANGELOG.md | ||
| LICENSE | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| README.md | ||
EnergyInfoSwiss
Project setup
- Clone repository:
git clone git@gitlab.ti8m.ch:bfe-energie-dashboard/energy-dashboard-flutter-app.git - Pull latest changes from repository (on develop branch):
git pull - Get flutter dependencies:
flutter pub get - Make sure you are registered in Amplify Studio and have access to the EnergyInfo-Swiss app. Amplify Studio: https://eu-central-1.admin.amplifyapp.com/admin/d275p8bhezlplb/staging/home
- Make sure Amplify CLI is installed and configured on your local machine: https://docs.amplify.aws/cli/start/install/
- Pull Amplify into your project (in root directory):
amplify pull --appId d275p8bhezlplb --envName staging - Follow the instructions of Amplify CLI
- After successfully pulling backend environment staging from the cloud, you can run the app
DEV development
- to ensure you develop agains DEV environment, you have to change the url's
- in api_base_helper.dart to
kApiBaseUrlDev - in web_base_helper.dart to
kWebBaseUrlDev
- in api_base_helper.dart to
Release
- increase the version in pubspec.yaml
- after the + set the versionName (just increment one)
- run
flutter build apkto ensure the versionName will be written into local.properties
To build iOS you need the following:
- Make sure you installed cocoapods
sudo gem install cocoapodsand pods are installed in the ios foldercd ios=>pod install - If you have some errors, make sure you update all possible dependencies with
flutter pub upgrade
Android
- run
flutter build appbundle - create a release in play console
- upload app bundle to new release in play console
iOS
- run
open ios/Runner.xcworkspaceto open the project in xcode - in the general tab, update the version and the build number
- in the signing & capabilities tab make sure auotmatically signing is checked and the correct team is selected (Bundesamt fuer Energie BFE)
- run
flutter build ipaor build directly in xcode (Product > Build) - you need to upload the builded ipa to appstoreconnect, for that you can use the transporter app from apple https://apps.apple.com/us/app/transporter/id1450874784?mt=12
Platform requirements (since Amplify integration)
- Android minimum API level: 24
- Gradle version: 7
- Kotlin: > 1.7
- iOS minimum deployment target: 13.0