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

Digio Esign flutter plugin

esign_plugin #

Digio Esign flutter plugin

Getting Started #

Example flutter esign application

Android #

How to Integrate?

  1. Add it to your root build.gradle at the end of repositories:
allprojects {
  repositories {
     ...
     maven { url 'https://jitpack.io' }
  }
}
  1. Add the dependency:
implementation 'com.github.digio-tech:gateway:v4.0.8'
implementation 'com.github.digio-tech:gateway_esign:v4.0.8'
  1. 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 'com.github.digio-tech:gateway:v4.0.8' 
         implementation 'com.github.digio-tech:gateway_esign:v4.0.8'
         implementation 'com.github.digio-tech:protean-esign:v3.2'
         
         implementation 'androidx.appcompat:appcompat:1.6.1'
         implementation 'com.google.android.material:material:1.9.0'
         implementation "androidx.navigation:navigation-fragment-ktx:2.5.3"
         implementation "androidx.navigation:navigation-ui-ktx:2.5.3"
          // Added in version 4.0.6
         implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
          
          Following dependency is also not required if org.jetbrains.kotlin.android plugin version is 1.8.*
          implementation 'androidx.core:core-ktx:1.10.0'
          
          implementation 'com.android.volley:volley:1.2.1'
          implementation 'com.scottyab:rootbeer-lib:0.1.0'
    }
}
  1. Proguard : It is required to test the release build for possible proguard exceptions before prod releases.
-dontwarn org.json.**
-keep class org.json** { *; }
  • Digio SDK supports android version 5.0 and above (SDK level 21 above)

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