Skip to content

Flutter based mobile application (iOS and Android) for Boldo (Patients).

License

Notifications You must be signed in to change notification settings

bagasstrongman/boldo-mobile

 
 

Repository files navigation

Boldo - Mobile

Boldo can be found in any Paraguayan household. It is a magic team that can calm all kind of stomache ache.

This is the flutter based native application (iOs and Android) for Boldo - a telemedicine solution for doctors and patients. The mobile app is specifically for patients.

Getting Started

  1. This project has the following dependencies:

    • flutter (latest version)
  2. Install dependencies: flutter pub get (normally happens automatically)

  3. Create a .env file in the project's root folder and add these contents:

    # ###################### Amientes locales ######################
    
    # ###################### Android ######################
    # SOCKETS_ADDRESS = http://10.0.2.2:8000
    # SERVER_ADDRESS = http://10.0.2.2:8008
    # KEYCLOAK_REALM_ADDRESS = http://10.0.2.2:8080/auth/realms/iHub
    
    # ######################## iOs ########################
    # SOCKETS_ADDRESS = http://localhost:8000
    # SERVER_ADDRESS = http://localhost:8008
    # KEYCLOAK_REALM_ADDRESS = http://localhost:8080/auth/realms/iHub
    
    # ###################### Ambientes online ######################
    
    # ###################### SENTRY global para todos los entornos online ##########
    # SENTRY_DSN=ASK DEVELOPERS FOR KEY
    
    # ######################## dev online 01/03/2022 ########################
    # SOCKETS_ADDRESS = https://boldo-dev.pti.org.py/
    # SERVER_ADDRESS = https://boldo-dev.pti.org.py/api 
    # HEALTH_PTI_API = https://sso-dev.pti.org.py/api 
    # KEYCLOAK_REALM_ADDRESS = https://sso-dev.pti.org.py/auth/realms/iHub
    
    # ######################## Test online 01/03/2022 ########################
    SOCKETS_ADDRESS = https://boldo-test.pti.org.py/
    SERVER_ADDRESS = https://boldo-test.pti.org.py/api
    HEALTH_PTI_API = https://sso-test2.pti.org.py/api/
    KEYCLOAK_REALM_ADDRESS = https://sso-test2.pti.org.py/auth/realms/iHub
    
    # ######################## Prod online 01/03/2022 ########################
    # SOCKETS_ADDRESS = https://bol.do 
    # SERVER_ADDRESS = https://bol.do/api 
    # HEALTH_PTI_API = https://sso.bol.do/api 
    # KEYCLOAK_REALM_ADDRESS = https://sso.bol.do/auth/realms/iHub
    

    Note: Uncomment the Android secion in case you want to run it on an Android and you have the servers running on localhost.

  4. flutter run - to start the app on an available device

Note: You can check the availability of connected devices by running flutter doctor.

Building the app

 flutter build apk --split-per-abi \
 --dart-define=SOCKETS_ADDRESS=https://sockets.boldo.penguin.software \
 --dart-define=SERVER_ADDRESS=https://api.boldo.penguin.software \
 --dart-define=KEYCLOAK_REALM_ADDRESS=https://sso-test.pti.org.py/auth/realms/iHub \
 --dart-define=SENTRY_DSN=ASK DEVELOPERS FOR KEY

Known issues

The webRTC and chatty libraries causes a lot of unnecessary comments. To disable them you can add !org.webrtc,!I/chatty as a filter in your VSCode debug console. To ignore even more, add those as well !E/CameraCaptureSession,!EGL_emulation,!FlutterWebRTCPlugin,!HostConnection.

Supported Platforms

To allow as many people as possible access to health services, this applications aims to run also on old devices. Currently we support the following minmal platform versions:

  • iOS: 10
  • Android: 5.0 (Lollipop)

Contributing

The project is currently under heavy development but contributors are welcome. For bugs or feature requests or eventual contributions, just open an issue. Contribution guidelines will be available shortly.

Authors and License

This project was created as part of the iHub COVID-19 project in collaboration between Penguin Academy and PTI (Parque Tecnológico Itaipu Paraguay).

This project is licensed under GPL v3

About

Flutter based mobile application (iOS and Android) for Boldo (Patients).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 99.8%
  • Other 0.2%