This project has been created as a case study to test several development points. If you want to use this project to study and learn or for commercial purpose, feel free, as long as you follow the LICENSE rules. Most of the project description is in Portuguese, so as to help Brazilian starter developer understand without any language barrier, but the code is written in English and will not create any hindrance in understanding the code itself.
Read this in other languages: English, Português
This project uses Firebase
as a BAS (Backend as a Service), so in order to run the project, you need to configure these settings in code.
First, you need create a project in Firebase
(Two projects if you want to separate the development environment from production environment), to configure the project for Android, add the google-services.json in folders ./android/app/src/development and ./android/app/src/production.
After that, you need to create 2 files into your root folder (where package.json is present), each file with the following information:
- .env.dev
DEFAULT_ENVIRONMENT=development
- .env.prod
DEFAULT_ENVIRONMENT=production
To build the project, install all the dependencies using command yarn install
after that execute yarn android:dev
to start the app in debug mode using the development lane.
If you created the build following above instructions and when you launch the app in emulator/device it opens and closes immediately, go into the folder ./android in terminal and execute ./gradlew clean
and try to build the app again.
To create a build in development release, just run fastlane release_android_development
, if you wanna create a build in production release, see the documentation HOW_TO_DEPLOY