This repository contains the source code and documentation for the BĮIP mobile application Medžiotojo žurnalas, developed by the Ministry of Environment of the Republic of Lithuania.
The mobile application is intended for hunters of the Republic of Lithuania. It allows you to plan hunts and keep records of hunted animals in real time using a mobile phone.
-
Clone the repository:
git clone https://github.com/AplinkosMinisterija/biip-medziokles-zurnalas.git
-
Install the required dependencies:
cd biip-medziokles-zurnalas yarn install
-
Set up the development environment:
Follow the instructions at React Native Environment Setup.
-
Set up environment variables:
Copy the
.env.example
file to.env
and provide the necessary values for the variables. -
Start emulator or connect your mobile device.
-
Start the application on Android:
yarn android
(For iOS options, refer to package.json.)
To deploy the application to the production environment (both Google Play and App Store), run the publish
action
workflow and select type production
. This is only allowed for the main branch.
The main branch of the repository is automatically deployed to the Google Play beta. Any changes pushed to the main branch will trigger a new deployment.
For iOS internal testing, we utilize TestFlight for distribution. To deploy any branch to TestFlight, simply initiate the Publish
GitHub workflow with type testflight
. Furthermore, any changes merged into the main branch automatically
trigger a new deployment to TestFlight.
For Android internal testing, we leverage Firebase App Distribution. To deploy any branch to the Firebase App Distribution, use the Publish
GitHub workflow with a type starting
with firebase
(e.g., firebase-staging
). Select the suffix based on the API for which you want to publish the app
version, e.g., firebase-development
uses the development API.
Contributions are welcome! If you encounter issues or have suggestions for improvements, please open an issue or submit a pull request. For more information, refer to the contribution guidelines.