Migrating to v5.1
v5.1 brings an updated process for requesting permissions on Android. AIR has introduced a new process for us to better handle permission requests so we have updated the extension to support this.
The authorisation process remains the same however there is a small change to the manifest.
This update requires the latest version of the Core ANE (v7+).
- APM
- Manual
If you are using apm
all you need to do is update to the latest build and regenerate your application descriptor. apm
will handle the rest.
apm update
apm generate app-descriptor src/Main-app.xml
If you are manually managing your application descriptor (and manifest additions) then you will be required to make some changes to your manifest. Find the activity:
<activity android:name="com.distriqt.extension.contacts.permissions.AuthorisationActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:exported="false" />
And replace it with:
<activity android:name="com.distriqt.core.auth.AuthorisationActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:exported="false" />
Make sure you download and update the Core ANE. You must be using version 7 or higher.