SumSubstance / react-native-mobilesdk-module

3 stars 5 forks source link

issue while installing Sumsub in android & IOS #10

Closed selfishprogrammer closed 9 months ago

selfishprogrammer commented 11 months ago

When i am Trying to Link Sumsub in my react native project i am getting following issue

Screenshot 2023-12-25 at 3 19 39 AM

and following in Android

Screenshot 2023-12-25 at 3 21 43 AM

I followed Docs instructions but getting same issue , need your inputs in this thanks

RN version : -> 0.72.4 Deployment target IOS : 14.1 sumsub version: 1.28.0

dzengi commented 9 months ago

@selfishprogrammer Did you manage to solve the problem on Android? I have the same

selfishprogrammer commented 9 months ago

@dzengi yeah i solved it by adding

allprojects {
  repositories {
      maven { url "https://maven.sumsub.com/repository/maven-public/" }
      mavenCentral()
  }
}

outside buildscript;

buildscript {
    ext {
        buildToolsVersion = "33.0.0"
        minSdkVersion = 24
        compileSdkVersion = 34
        targetSdkVersion = 34
        // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
        ndkVersion = "23.1.7779620"
    }

    repositories {
        // maven { url "https://maven.sumsub.com/repository/maven-public/" }  
    google() 
     mavenCentral()

    }

    dependencies {
        classpath("com.android.tools.build:gradle")
        classpath("com.facebook.react:react-native-gradle-plugin")
        classpath 'com.google.gms:google-services:4.3.15'
    }

}

allprojects {
  repositories {
      maven { url "https://maven.sumsub.com/repository/maven-public/" }
      mavenCentral()
  }
}

Hope it will fix your issue thanks 😊