This is the repository for the app component of the Pronto-MIA application. The application is used by the Pronto AG to deliver information to it's employees and handle business processes within the company.
All available settings for the application can be defined within four JSON files in the folder pronto_mia/assets/cfg
.
app_settings.json
app_settings_dev.json
app_settings_prod.json
Name | Type | Description |
---|---|---|
pushMessageServerVapidPublicKey |
String | Public vapid key used to check if the sending server signed with the corresponding private key. How to generate |
apiPath |
String | Path to the GraphQL endpoint of the server component |
enforceValidCertificate |
bool | If false, enables communication with the server component without a valid TLS certificate. This option might compromise security, so please use with caution. |
logLevel |
string | String representation of the log level which should be used. For example the value info would result in would result in Level.INFO and above messages being printed to console. All possible log levels are described here. |
flutter pub get
pronto_mia/web/firebase-config.js
, which exposes the object fireBaseConfig
with the following properties:
flutter run -d chrome
pronto_mia/android/app/google-services.json
with the following properties:
project_info
client
configuration_version
flutter build apk --debug
or flutter build appbundle --debug
pronto_mia/android/app/google-services.json
with the following properties:
project_info
client
configuration_version
pronto_mia/android/key.properties
with the following contents (see also this tutorial):
storePassword=<password of your upload keystore>
keyPassword=<password of your upload key>
keyAlias=<alias of your upload key (normally upload)>
storeFile=<path to your keystore file>
flutter build apk
or flutter build appbundle
pronto_mia/ios/Runner/GoogleService-Info.plist
with the following properties:
CLIENT_ID
REVERSED_CLIENT_ID
API_KEY
GCM_SENDER_ID
PLIST_VERSION
BUNDLE_ID
PROJECT_ID
STORAGE_BUCKET
IS_ADS_ENABLED
IS_ANALYTICS_ENABLED
IS_APPINVITE_ENABLED
IS_GCM_ENABLED
IS_SIGNIN_ENABLED
GOOGLE_APP_ID
open pronto_mia/ios/Runner.xcworkspace
Runner.xcodeproj
under the Targets/Runner tab, navigate to Signing & Capabilities
and choose the Pronto AG Development TeamSettings/General/Device Management
choose to trust the development certificate.flutter run
.When updating one of the following dependencies, additional steps are required:
firebase_messaging
Firebase Cloud Messaging
in pronto_mia/web/index.html
as described here