# APK Generation

## Overview

This document says how to generate an APK and its configuration.

## Generate APK - Steps

1. Add the .env file at the root of the project with the required config based on the env in the file.

Sample env config:&#x20;

```
BASE_URL='https://works-dev.digit.org/'
MDMS_API_PATH='egov-mds-service/v1/_search'
GLOBAL_ASSETS='https://s3.ap-south-1.amazonaws.com/works-dev-asset/worksGlobalConfig.json'
ENV_NAME="DEV"

```

2. Run the below commands  in your terminal from the root of the project&#x20;

```
flutter clean
flutter pub get
```

3. Run the below command in your terminal from the root of the project to generate the APK&#x20;

```
flutter build apk --release
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digit.org/works/reference-implementations/muktasoft-v2.2/deployment/configuration/ui-configuration/common-configurations/apk-generation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
