This topic was originally posted by shazadshiraz97 on 6/7/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.
Also please share your implementation code alongside the platform and sdk version so that we’re able to debug and reproduce the error. Most probably, this error is happening due to non configuration of the gradle files.
dependencies {
classpath('com.android.tools.build:gradle:4.2.2')
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
maven { // Replace AAR from original RN with AAR from react-native-v8
url(“$rootDir/../node_modules/react-native-v8/dist”)
}
maven {
// prebuilt libv8android.so
url(“$rootDir/../node_modules/v8-android/dist”)
}
maven {
// All of Detox’ artifacts are provided via the npm module
url “$rootDir/../node_modules/detox/Detox-android”
}
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url(“$rootDir/../node_modules/react-native/android”)
}
maven {
// Android JSC is installed from npm
url(“$rootDir/../node_modules/jsc-android/dist”)
}
google()
mavenCentral()
maven { url ‘https://jitpack.io’ }
gradlePluginPortal()
}
Hey @gaurav ,
Ugrading the gradle for whole project is very difficult for us. It would be great if you can help us wo run sdk on lower graddle version as mentioned above.
We tried internally, but supporting a lower gradle version is not possible from our end. The workaround can be to use the SFA NodeJS SDK and use it in place of CustomAuth React Native SDK.
To securely support the process, you can create a public/ private key pair in the frontend. Send the pub key to the backend and encrypt the real key using that and send it back. Now, in the frontend, decrypt the encrypted blob in frontend using the temp private key.