Swiftpack.co - Package - tuarua/DeviceAuth-ANE

DeviceAuth-ANE

Perform local, on-device authentication of the user with this Adobe Air Native Extension for iOS 9.0+ and Android 21+.

Offers Fingerprint on iOS/Android and FaceID on iOS.


Android

The ANE + Dependencies

cd into /example and run:

  • OSX (Terminal)
bash get_android_dependencies.sh
  • Windows Powershell
PS get_android_dependencies.ps1
<extensions>
<extensionID>com.tuarua.frekotlin</extensionID>
<extensionID>com.google.code.gson.gson</extensionID>
<extensionID>com.android.support.support-v4</extensionID>
<extensionID>com.tuarua.DeviceAuthANE</extensionID>
...
</extensions>

You will also need to include the following in your app manifest. Update accordingly.

<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="27" />
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>

iOS

The ANE + Dependencies

N.B. You must use a Mac to build an iOS app using this ANE. Windows is NOT supported.

From the command line cd into /example and run:

bash get_ios_dependencies.sh

This folder, ios_dependencies/device/Frameworks, must be packaged as part of your app when creating the ipa. How this is done will depend on the IDE you are using. After the ipa is created unzip it and confirm there is a "Frameworks" folder in the root of the .app package.


If you wish to use FaceID you will also need to include the following in your app manifest. Update accordingly.

<InfoAdditions><![CDATA[            
<key>NSFaceIDUsageDescription</key>
<string>Reason for authenticating using face id?</string>
]]></InfoAdditions>

Prerequisites

You will need:

  • IntelliJ IDEA / Flash Builder
  • AIR 32.0.0.103 or greater
  • Xcode 10.1
  • wget on OSX
  • Powershell on Windows
  • Android Studio 3 if you wish to edit the Android source

Github

link
Stars: 2
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

1.1.0 - Apr 19, 2019

  • Upgraded to AIR 32.0.0.116
  • AND: Updated to FreKotlin 1.7.0
  • iOS: Updated to FreSwift 3.1.0

1.0.0 - Feb 13, 2019