Skip to content

AplinkosMinisterija/biip-medziokles-zurnalas

Repository files navigation

Medžioklės žurnalas

License GitHub issues GitHub stars

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.

Table of Contents

About the Project

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.

Getting Started

Installation

  1. Clone the repository:

    git clone https://github.com/AplinkosMinisterija/biip-medziokles-zurnalas.git
  2. Install the required dependencies:

    cd biip-medziokles-zurnalas
    yarn install
  3. Set up the development environment:

    Follow the instructions at React Native Environment Setup.

Usage

  1. Set up environment variables:

    Copy the .env.example file to .env and provide the necessary values for the variables.

  2. Start emulator or connect your mobile device.

  3. Start the application on Android:

    yarn android

    (For iOS options, refer to package.json.)

Deployment

Production

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.

Beta

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.

Internal testing

iOS - TestFlight

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.

Android - Firebase App Distribution

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.

Contributing

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.