Last updated:
0 purchases
enroll plugin
eNROLL #
Our in-house developed eNROLL platform serves as a technological compliance solution. A solution that is now familiarized across the globe in countries with big populations where falsification of identity, signatures and phishing is very common.
The software utilizes a set of AI powered technologies, like the OCR (Optical Character Recognition), to cut back on the risks of human-based errors and time needed for identification
REQUIREMENTS #
Minimum Flutter version 3.3.4
Android minSdkVersion 24
Kotlin Version 1.9.0
2. INSTALLATION #
1- Run this command with Flutter:
$ flutter pub add enroll_plugin
copied to clipboard
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
enroll_plugin: ^latest_version
copied to clipboard
You can find the latest version here https://pub.dev/packages/enroll_plugin/versions
2.1. Android #
Add these lines in Build.gradle file:
maven { url 'https://jitpack.io' }
maven { url = uri("https://maven.innovatrics.com/releases") }
copied to clipboard
Upgrade minSdkVersion to 24 in app/build.gradle.
Add the following lines to settings.gradle file:
buildscript {
repositories {
mavenCentral()
maven {
url = uri("https://storage.googleapis.com/r8-releases/raw")
}
}
dependencies {
classpath("com.android.tools:r8:8.2.24")
}
}
copied to clipboard
2.2. iOS #
add the following to your project info.plist file
<key>NSCameraUsageDescription</key>
<string>"Your Message to the users"</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>"Your Message to the users"</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
copied to clipboard
Add these two sources to the iOS project Podfile
source 'https://github.com/innovatrics/innovatrics-podspecs'
source 'https://github.com/CocoaPods/Specs.git'
copied to clipboard
2.3. Add a license file to your project: #
For Android
For iOS
ℹ️ Make sure your iOS project has a reference for the license file or instead:
open ios project
drag and drop the license file to the root folder of the project as described above
make sure copy items if needed check box is checked
then done
2.4. Run Command line: #
flutter pub get
copied to clipboard
3. IMPORT #
import 'package:enroll_plugin/enroll_plugin.dart';
copied to clipboard
4. USAGE #
Create a widget and just return EnrollPlugin widget in the build function as:
return EnrollPlugin(
mainScreenContext: context,
tenantId: 'TENANT_ID',
tenantSecret: 'TENANT_SECRET',
enrollMode: EnrollMode.auth,
enrollEnvironment: EnrollEnvironment.staging,
localizationCode: EnrollLocalizations.en,
onSuccess: () {
// Delay the state change until after the build completes
WidgetsBinding.instance.addPostFrameCallback((_) {
debugPrint("Success");
});
},
onError: (error) {
// Delay the state change until after the build completes
WidgetsBinding.instance.addPostFrameCallback((_) {
debugPrint("Error: ${error.toString()}");
});
},
onGettingRequestId: (requestId) {
// Delay the state change until after the build completes
WidgetsBinding.instance.addPostFrameCallback((_) {
debugPrint("requestId:: $requestId");
});
},
applicationId: 'APPLICATION_ID',
skipTutorial: false,
levelOfTrust: 'LEVEL_OF_TRUST_TOKEN',
googleApiKey: 'GOOGLE_API_KEY',
correlationId: 'correlationId',
);
copied to clipboard
5. VALUES DESCRIPTION #
Keys.
Values
tenantId
Required. Write your organization tenant id
tenantSecret
Required. Write your organization tenant secret.
enrollMode
Required. Mode of the SDK.
environment
Required. Select the EnrollEnvironment: EnrollEnvironment.STAGING for staging and EnrollEnvironment.PRODUCTION for production.
enrollCallback
Required. Callback function to receive success and error response.
localizationCode
Required. Select your language code LocalizationCode.EN for English, and LocalizationCode.AR for Arabic. The default value is English.
googleApiKey
Optional. Google Api Key to view the user current location on the map.
applicantId
Optional. Write your Application id.
levelOfTrustToken
Optional. Write your Organization level of trust.
skipTutorial
Optional. Choose to ignore the tutorial or not.
appColors
Optional. Collection of the app colors that you could override like (primary - secondary - backGround - successColor - warningColor - errorColor - textColor).
correlationId
Optional. Correlation ID to connect your User ID with our Request ID.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.