# AndroidManifest.xml options

If you have an Android app (including Flutter or React Native), then the following `AndroidManifest.xml` options are available.

## **APLLogging**

To enable debug logging in the Appfigurate library early on, add the `APLLogging` meta-data to the `AndroidManifest.xml` file. The `APLLogging` key is optional.

> `AndroidManifest.xml` example

```xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools" package="nz.co.electricbolt.appfigurateexample">

    <application
        ...

        <meta-data
            android:name="APLLogging"
            android:value="true"/>
```

The default value of `APLLogging` is false. You should not need to enable this to true unless you are having trouble integrating the library. It is best practice not to ship an app with this key set to true.

You can also call [<mark style="color:blue;">`Appfigurate.setLogging()`</mark>](https://www.electricbolt.co.nz/api/android/nz/co/electricbolt/appfiguratelibrary/Appfigurate.html#setLogging\(boolean\)) function to achieve the same result in code.

## Standard AndroidManifest.xml behaviour

### App name

The  `<application android:label="..."/>` will be used to populate the name of the app in Appfigurate.

### App version

The  `<manifest android:versionName="..."/>` will be used to populate the version number of the app in Appfigurate. The `versionName` attribute is automatically populated by the Android Studio/IntelliJ build system.

### App icon

The  `<application android:icon="..."/>` will be used to populate the icon of the app in Appfigurate.
