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
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ function YourComponent() {
}
```

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

```tsx
Expand All @@ -96,6 +97,9 @@ implementation 'com.github.digio-tech:protean-esign:v3.2'
dataBinding true
}

// Make sure your project using
compileSdkVersion = 35
targetSdkVersion = 35
```

## SDK Reference
Expand Down Expand Up @@ -181,7 +185,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
```

### IOS Permission

- Digio SDK supports iOS 11 and above
Permissions need to add in your info.plist
```
/** Camera permission incase of selfie/video KYC/ capture document **/
Expand Down
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ android {
viewBinding true
dataBinding true
}
buildToolsVersion '33.0.0'
// buildToolsVersion '33.0.0'
}

repositories {
Expand All @@ -89,7 +89,7 @@ dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
// core dependencies
implementation(platform("com.github.digio-tech:digio-bom:v1.0.10"))
implementation(platform("com.github.digio-tech:digio-bom:v1.0.15"))
implementation("androidx.appcompat:appcompat")
implementation("com.google.android.material:material")
implementation("androidx.navigation:navigation-fragment-ktx")
Expand All @@ -107,7 +107,7 @@ dependencies {

implementation("com.github.digio-tech:sdk_offlinekyc")

implementation("com.github.digio-tech:esign_otp")
// implementation("com.github.digio-tech:esign_otp")
compileOnly("com.github.digio-tech:protean-esign")
implementation("com.github.digio-tech:cvl_esign")
implementation("com.scottyab:rootbeer-lib")
Expand Down
4 changes: 2 additions & 2 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DigioReactNative_kotlinVersion=1.7.0
DigioReactNative_minSdkVersion=21
DigioReactNative_targetSdkVersion=34
DigioReactNative_compileSdkVersion=34
DigioReactNative_targetSdkVersion=35
DigioReactNative_compileSdkVersion=35
DigioReactNative_ndkversion=21.4.7075529
6 changes: 3 additions & 3 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

buildscript {
ext {
buildToolsVersion = "33.0.0"
// buildToolsVersion = "33.0.0"
minSdkVersion = 24
compileSdkVersion = 34
targetSdkVersion = 34
compileSdkVersion = 35
targetSdkVersion = 35

// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
Expand Down
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- boost (1.83.0)
- CocoaAsyncSocket (7.6.5)
- digio-react-native (1.0.18):
- digio-react-native (2.0.1):
- DigioEsignSDK
- DigiokycSDK
- glog
Expand Down Expand Up @@ -1320,7 +1320,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
boost: d3f49c53809116a5d38da093a8aa78bf551aed09
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
digio-react-native: f712bacb613a622eefdd711dd4772bc50f00c26a
digio-react-native: 9f416e2150942258e0bbbc7f6d0a60981da1c633
DigioEsignSDK: a83db91acf10a043ba06da5d56aa976b64eb0c48
DigiokycSDK: 198d94e5856735c791ee6ca475cb5f78fc333210
DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953
Expand Down
4 changes: 2 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
const [digioEvent, setDigioEvent] = useState<string | null>(null);

useEffect(() => {
const digio = new Digio({ environment: Environment.PRODUCTION, serviceMode: ServiceMode.OTP });

Check failure on line 11 in example/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·environment:·Environment.PRODUCTION,·serviceMode:·ServiceMode.OTP` with `⏎······environment:·Environment.PRODUCTION,⏎······serviceMode:·ServiceMode.OTP,⏎···`

const digioGatewayEventSubscription = digio.addGatewayEventListener(
(event: GatewayEvent) => {
Expand All @@ -21,9 +21,9 @@

digio
.start(
'KID250220172348723LZOELQQ99NSVSP',
'DID25042217573519794QGI9P27RLKLF',
'akash.kumar@digio.in',
'GWT250220172348753FOJYJA8DXAU2OS'
'GWT250422175735425I7RZLI1K4OTV9S'
)
.then((res) => {
console.log(res);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@digiotech/react-native",
"version": "2.0.1",
"version": "2.0.3",
"description": "SDK for invoking client side journey for any of Digio request",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
Loading