> For the complete documentation index, see [llms.txt](https://docs.winzogames.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.winzogames.com/new-sdk/producing-apk.md).

# Producing APK

### How to Build release unsigned and debug APK

* Click on gradle on the top right side of android studio, select task, and run assemble, it will create both unsigned release APK and debug APK.
* you will find APK at `app/build/outputs/apk`

### Build APK for different android versions

Build two APKs one with keeping the launcher intent filter for ClientMainActivity and the other without keeping the launcher intent filter for MainActivity.

\
While building and providing WinZO APK do the following changes for the main activity in the manifest file.

**Keeping the launcher intent filter** \
This is for Android 10 and above devices

```xml
<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/Theme.Gameintegration">

    <activity
        android:exported="true"
        android:name=".ClientMainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
```

**Not keeping the launcher intent filter** \
This is for Android 9 and below devices.

```xml
<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/Theme.Gameintegration">

    <activity
        android:exported="true"
        android:name=".ClientMainActivity">
    </activity>
</application>
```

{% hint style="info" %}
APK version code and version name should be in string format '1' and should be incremental on every update.

version code : '1ac' <mark style="color:red;">**wrong**</mark>&#x20;

vesion code : '123' <mark style="color:green;">**Right**</mark>
{% endhint %}

#### APKs generated

* debug one for less than android 10 and second for more than 10.
* unsigned release for less than android 10 and second for more than 10.
