> For the complete documentation index, see [llms.txt](https://docs.ionicfirebaseapp.com/flutter-grocery-app-pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionicfirebaseapp.com/flutter-grocery-app-pro/grocery-app/release-build.md).

# Release build

Goto for android: <https://flutter.io/android-release/>

Goto for ios: [https://flutter.io/ios-release/](https://flutter.io/android-release/)

#### Create a Keystore&#x20;

If you have an existing Keystore, skip to the next step. If not, create one by running the following at the command line:&#x20;

`keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key`

Set up for Preparing an Android App for Release [click here​](https://flutter.io/android-release/)\
Set up for Preparing an IOS App for Release [click here](https://flutter.io/ios-release/)

Generating the android release (APK or app bundle)&#x20;

```
$ flutter build apk --release
$ flutter build appbundle --target-platform android-arm,android-arm64,android-x64
```

### Generating the IOS release  <a href="#testing-the-release-build-of-your-app" id="testing-the-release-build-of-your-app"></a>

```
$ flutter build ios --release
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.ionicfirebaseapp.com/flutter-grocery-app-pro/grocery-app/release-build.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
