> For the complete documentation index, see [llms.txt](https://mobiledocs.themeparrot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mobiledocs.themeparrot.com/j2store-mobile-app/outfit/releases/publish-to-google-play.md).

# Publish to Google Play

#### 1. Change the app name

Replace the "outfit" string with your app name in the following file **j2StoreMobileapp/config.xml**

```
<name>Outfit</name>
```

#### 2. Change the app Bundle ID

* Go to the j2StoreMobileapp/config.xml file and change the 'com.outfit.themeparrot' to your bundle id.

#### 3. Change the App Icon

* Upload your logo and splash screen to the following [`URL`](https://apetools.webprofusion.com/#/)
* Icon size : 1024 \*1024
* Splash screen size : 4096 \* 4096

**Android Publishing :**

To generate a release build for Android, we can use the following cordova cli command:

```
$ ionic cordova build android --prod --release -- -- --packageType=bundle
```

* This will generate a release build based on the settings in your config.xml.
* After build creation,  our unsigned AAB bundle is available in

```
/Users/Desktop/appname/platforms/android/app/build/outputs/bundle/release/app.aab

```

#### Generate our private key using the key tool:

* To generate the private key run the following key in the terminal

```
$ keytool -genkey -v -keystore my-release-key.jks -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
```

* You’ll first be prompted to create a password for the key store.&#x20;
* Then, answer the rest of the questions and when it’s all done, you should have a file called my-release-key.jks created in the current directory.

{% hint style="info" %}
Note: Make sure to save this file somewhere safe, if you lose it you won’t be able to submit updates to your app.
{% endhint %}

#### Sign the unsigned APK :

* Run the jarsigner command in the terminal

```
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.jks /Users/Desktop/appname/platforms/android/app/build/outputs/bundle/release/app.aab alias_name
```

#### Optimize the APK

* To Optimize the AAB bundle, run the  following command in the terminal

```
/Users/Library/Android/sdk/build-tools/29.0.2/zipalign -v 4 /Users/Desktop/appname/platforms/android/app/build/outputs/bundle/release/app.aab signed.aab
```

or

```
./zipalign -v 4 /Users/Desktop/appname/platforms/android/app/build/outputs/bundle/release/app.aab signed.aab
```

* &#x20;Now we have our release APK ready for the Google Play Store.
* To release the app to the play store kindly follow this [`instructions`](https://support.google.com/googleplay/android-developer/answer/9859152?hl=en)
