esign_plugin 1.0.0 copy "esign_plugin: ^1.0.0" to clipboard
esign_plugin: ^1.0.0 copied to clipboard

Digio Esign flutter plugin

esign_plugin #

Digio Esign flutter plugin

Getting Started #

Example flutter esign application

Android #

How to Integrate?

  1. Download Android Esign SDK and DIGIO Gateway (supports androidx)
  1. Add Digio Android Esign SDK and Gateway .aar file to android/apps/libs folder

  2. Check your app’s build.gradle file (android/apps/build.gradle) to confirm a declaration similar to the following (depending on the build configuration you’ve selected):


android {
    compileSdkVersion 32

    defaultConfig {
        minSdkVersion 21
    }

    buildFeatures {
        viewBinding true
        dataBinding true
    }
    
    dependencies {
        implementation 'androidx.core:core:1.9.0'
        implementation 'androidx.appcompat:appcompat:1.5.1'
        implementation 'com.google.android.material:material:1.7.0'
        implementation "androidx.navigation:navigation-fragment-ktx:2.5.3"
        implementation "androidx.navigation:navigation-ui-ktx:2.5.3"
        implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
    
        implementation 'com.google.firebase:firebase-common-ktx:20.2.0'
        implementation 'com.google.firebase:firebase-crashlytics-ktx:18.3.2'
        
        implementation fileTree(dir: "libs", include: ["*.aar"])
    }
}
  • Please note that {current version} will be reflected in the .aar file which is downloaded. For eg. digio-kyc_workflow-4.0.1 digio-gateway-4.0.1
  • Digio SDK supports android version 5.0 and above (SDK level 21 above)
  1. Module Build Gradle (android/build.gradle) has following
buildscript {
    ext.kotlin_version = '1.8.0'
    dependencies {
       
        classpath 'com.google.gms:google-services:4.3.14'
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
    }
}

Note: Kotlin plugin should be added at your project level inside build gradle

Also refer android guide for android folder setup : Android Guide

IOS #

How to Integrate?

  1. Download ios Esign SDK
  1. Add Digio ios Esign SDK to framework folder.

  2. Ensure that in the project settings framework is selected as Embed and Sign.

  3. Check all the permission required in info.plist

    <key>NSCameraUsageDescription</key>
    <string>$(PRODUCT_NAME) would like to access your camera.</string>
    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>$(PRODUCT_NAME) would like to access your location.</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>$(PRODUCT_NAME) would like to access your location.</string>
    <key>NSMicrophoneUsageDescription</key>
    <string>$(PRODUCT_NAME) would like to access your microphone to capture video.</string>
    <key>NSPhotoLibraryUsageDescription</key>
    <string>$(PRODUCT_NAME) would like to access your photo.</string>
    
  • Please note that {current version} will be reflected in the .zip file which is downloaded. For eg. DigioEsignSDK_v_0.1.0
  • Digio SDK support for xcode 14.0 and above, Swift version 5.7

Note: Kotlin plugin should be added at your project level inside build gradle

Also refer ios guide for ios folder setup : ios Guide

Starting the digio esign #

var digioConfig = DigioConfig();
digioConfig.theme.primaryColor = "#32a83a";
digioConfig.logo = "https://your_logo_url";
digioConfig.environment = Environment.SANDBOX;

final _esignPlugin = EsignPlugin(digioConfig);
_esignPlugin.setGatewayEventListener((GatewayEvent? gatewayEvent) {
    print("gateway : " + gatewayEvent.toString());
});
esignResult = await _esignPlugin.start("DID221221113330206ZX9AF6RYMF6OLE", "naman.jain@digio.in", "GWT***", null);
print('esignResult : ' + esignResult.toString());
0
likes
0
pub points
88%
popularity

Publisher

unverified uploader

Digio Esign flutter plugin

Homepage

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on esign_plugin