Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ function YourComponent() {
```

## Android
- Digio SDK supports android version 7 (SDK level 24) and above
- Digio SDK supports android version 8 (SDK level 26) and above
- Add below in your project under build.gradle (module:app)file inside dependencies

```tsx
// Required for esign/mandate sign
implementation 'com.github.digio-tech:protean-esign:v3.2'
implementation 'com.github.digio-tech:protean-esign:v3.12'
// under android {} of build.gradle(module:app)
buildFeatures {
viewBinding true
Expand Down Expand Up @@ -185,7 +185,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
```

### IOS Permission
- Digio SDK supports iOS 11 and above
- Digio SDK supports iOS 15.6 and above
Permissions need to add in your info.plist
```
/** Camera permission incase of selfie/video KYC/ capture document **/
Expand Down
31 changes: 26 additions & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ buildscript {
}

dependencies {
classpath "com.android.tools.build:gradle:7.2.1"
// classpath "com.android.tools.build:gradle:7.2.1"
// classpath "com.android.tools.build:gradle:8.5.1"
classpath "com.android.tools.build:gradle:8.6.0"

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.25"

}
}

Expand Down Expand Up @@ -63,20 +68,30 @@ android {
}

lintOptions {
disable "GradleCompatible"
// disable "GradleCompatible"
disable += ["GradleCompatible"]
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

buildFeatures {
viewBinding true
dataBinding true
}
// buildToolsVersion '33.0.0'

}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
compilerOptions {
jvmTarget = "1.8"
}
}



repositories {
mavenCentral()
google()
Expand All @@ -89,7 +104,7 @@ dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
// core dependencies
implementation(platform("com.github.digio-tech:digio-bom:v1.0.15"))
implementation(platform("com.github.digio-tech:digio-bom:v1.0.28"))
implementation("androidx.appcompat:appcompat")
implementation("com.google.android.material:material")
implementation("androidx.navigation:navigation-fragment-ktx")
Expand Down Expand Up @@ -123,7 +138,9 @@ dependencies {
implementation("androidx.exifinterface:exifinterface")

implementation("com.github.digio-tech:sdk_ml_camera")
implementation("com.google.mlkit:face-detection")
// implementation("com.google.mlkit:face-detection")
implementation("com.google.android.gms:play-services-mlkit-face-detection")

implementation("androidx.camera:camera-core")
implementation("androidx.camera:camera-camera2")
implementation("androidx.camera:camera-lifecycle")
Expand All @@ -141,5 +158,9 @@ dependencies {
implementation("androidx.lifecycle:lifecycle-livedata-ktx")
implementation("com.squareup.retrofit2:converter-gson")

implementation("org.simpleframework:simple-xml")
implementation("com.github.bumptech.glide:glide")


}

23 changes: 20 additions & 3 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
DigioReactNative_kotlinVersion=1.7.0
DigioReactNative_minSdkVersion=21
#DigioReactNative_kotlinVersion=1.7.0
#DigioReactNative_minSdkVersion=21
#DigioReactNative_targetSdkVersion=35
#DigioReactNative_compileSdkVersion=35
#DigioReactNative_ndkversion=21.4.7075529



# Kotlin version for AGP 8.5+
DigioReactNative_kotlinVersion=1.9.25

# Update minSdk to match AGP 8.x requirements (21 is fine)
DigioReactNative_minSdkVersion=26
DigioReactNative_targetSdkVersion=35
DigioReactNative_compileSdkVersion=35
DigioReactNative_ndkversion=21.4.7075529

# NDK optional
DigioReactNative_ndkversion=26.2.11394342

# Java 17 required
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
#android.suppressUnsupportedCompileSdk=35
3 changes: 2 additions & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
#distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Binary file removed android/libs/digio_kyc_workflow-4.0.9.aar
Binary file not shown.
2 changes: 1 addition & 1 deletion digio-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Pod::Spec.new do |s|
s.license = package["license"]
s.authors = package["author"]

s.platforms = { :ios => "11.0" }
s.platforms = { :ios => "15.6" }
s.source = { :git => "https://github.com/digio-tech/reactnative-sdk.git", :tag => "#{s.version}" }

s.source_files = "ios/**/*.{h,m,mm,swift}"
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ dependencies {
implementation("com.facebook.react:react-android")
// implementation fileTree(dir: 'libs', include: ['*.aar'])
// implementation 'com.github.digio-tech:gateway_kyc:v4.0.20'
implementation 'com.github.digio-tech:protean-esign:v3.2'
implementation 'com.github.digio-tech:protean-esign:v3.12'
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
exclude group:'com.squareup.okhttp3', module:'okhttp'
Expand Down
117 changes: 117 additions & 0 deletions example/android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,120 @@
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

-keepattributes SourceFile,LineNumberTable
-keep public class * extends java.lang.Exception

-keepclassmembers class * {
@android.webkit.JavascriptInterface <methods>;
}
-keepattributes JavascriptInterface
-keepattributes *Annotation*
-keepattributes Signature
-optimizations !method/inlining/*
-keeppackagenames

-keepnames class androidx.navigation.fragment.NavHostFragment
-keep class * extends androidx.fragment.app.Fragment{}
-keepnames class * extends android.os.Parcelable
-keepnames class * extends java.io.Serializable

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-dontwarn androidx.databinding.**
-keep class androidx.databinding.** { *; }
-keepclassmembers class * extends androidx.databinding.** { *; }

-dontwarn org.json.**
-keep class org.json** { *; }

-keep public class org.simpleframework.**{ *; }
-keep class org.simpleframework.xml.**{ *; }
-keep class org.simpleframework.xml.core.**{ *; }
-keep class org.simpleframework.xml.util.**{ *; }
-dontwarn com.google.android.gms.**
-keep class com.google.android.gms.** { *; }
-keep class com.google.android.material.** { *; }

-dontwarn org.simpleframework.**

-keepattributes ElementList, Root
-keepclassmembers class * {
@org.simpleframework.xml.* *;
}

-keep class org.spongycastle.** { *; }
-keep class com.ecs.rdlibrary.request.** { *; }
-keep class com.ecs.rdlibrary.response.** { *; }
-keep class com.ecs.rdlibrary.utils.** { *; }
-keep class com.ecs.rdlibrary.ECSBioCaptureActivity { *; }
-keep class org.simpleframework.xml.** { *; }
-keepattributes Exceptions, InnerClasses

-keep class com.google.android.gms.location.LocationSettingsRequest$Builder { *; }

-keepnames class ** { *; }
-keepclassmembers class * {
@android.webkit.JavascriptInterface <methods>;
}



-keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations

# Keep annotation default values (e.g., retrofit2.http.Field.encoded).
-keepattributes AnnotationDefault

# Retain service method parameters when optimizing.
-keepclassmembers,allowshrinking,allowobfuscation interface * {
@retrofit2.http.* <methods>;
}

# Ignore JSR 305 annotations for embedding nullability information.
-dontwarn javax.annotation.**

# Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
-dontwarn kotlin.Unit

# Top-level functions that can only be used by Kotlin.
-dontwarn retrofit2.KotlinExtensions
-dontwarn retrofit2.KotlinExtensions$*

# With R8 full mode, it sees no subtypes of Retrofit interfaces since they are created with a Proxy
# and replaces all potential values with null. Explicitly keeping the interfaces prevents this.
-if interface * { @retrofit2.http.* <methods>; }
-keep,allowobfuscation interface <1>

# Keep inherited services.
-if interface * { @retrofit2.http.* <methods>; }
-keep,allowobfuscation interface * extends <1>

# With R8 full mode generic signatures are stripped for classes that are not
# kept. Suspend functions are wrapped in continuations where the type argument
# is used.
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation

# R8 full mode strips generic signatures from return types if not kept.
-if interface * { @retrofit2.http.* public *** *(...); }
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>

# R8 full mode strips generic signatures from return types if not kept.
-keep,allowobfuscation,allowshrinking class retrofit2.Response

# A resource is loaded with a relative path so the package of this class must be preserved.
-adaptresourcefilenames okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz

# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
-dontwarn org.codehaus.mojo.animal_sniffer.*

# OkHttp platform used only on JVM and when Conscrypt and other security providers are available.
-dontwarn okhttp3.internal.platform.**
-dontwarn org.conscrypt.**
-dontwarn org.bouncycastle.**
-dontwarn org.openjsse.**


-keep class * extends androidx.databinding.DataBinderMapper
3 changes: 2 additions & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip

networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading