Open iorran opened 9 months ago
Hi, you're right, we don't have any Expo app showing how to integrate our ReactNative plugin. However, there shouldn't be any difficulty, aside from prebuilding your project with npx expo prebuild
to generate native folders.
Let us know if you encounter any issue.
I wanted to piggy back on this comment, because I am running into issues with Android expo build. Here is some output:
`* What went wrong: Could not determine the dependencies of task ':app:processDebugResources'.
Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. Could not find com.geniusscansdk:gssdk-scanflow:4.21.0. Searched in the following locations:
- https://oss.sonatype.org/content/repositories/snapshots/com/geniusscansdk/gssdk-scanflow/4.21.0/gssdk-scanflow-4.21.0.pom
- https://repo.maven.apache.org/maven2/com/geniusscansdk/gssdk-scanflow/4.21.0/gssdk-scanflow-4.21.0.pom
- file:/Users/XXXXXX/Projects/PaperScorer/rn-main-app/node_modules/jsc-android/dist/com/geniusscansdk/gssdk-scanflow/4.21.0/gssdk-scanflow-4.21.0.pom
- https://dl.google.com/dl/android/maven2/com/geniusscansdk/gssdk-scanflow/4.21.0/gssdk-scanflow-4.21.0.pom
- https://www.jitpack.io/com/geniusscansdk/gssdk-scanflow/4.21.0/gssdk-scanflow-4.21.0.pom
- file:/Users/XXXXXX/Projects/PaperScorer/rn-main-app/node_modules/react-native/android/com/geniusscansdk/gssdk-scanflow/4.21.0/gssdk-scanflow-4.21.0.pom Required by: project :app > project :thegrizzlylabs_react-native-genius-scan Could not find com.geniusscansdk:gssdk-ocr:4.21.0. Searched in the following locations:
- https://oss.sonatype.org/content/repositories/snapshots/com/geniusscansdk/gssdk-ocr/4.21.0/gssdk-ocr-4.21.0.pom
- https://repo.maven.apache.org/maven2/com/geniusscansdk/gssdk-ocr/4.21.0/gssdk-ocr-4.21.0.pom
- file:/Users/XXXXXX/Projects/PaperScorer/rn-main-app/node_modules/jsc-android/dist/com/geniusscansdk/gssdk-ocr/4.21.0/gssdk-ocr-4.21.0.pom
- https://dl.google.com/dl/android/maven2/com/geniusscansdk/gssdk-ocr/4.21.0/gssdk-ocr-4.21.0.pom
- https://www.jitpack.io/com/geniusscansdk/gssdk-ocr/4.21.0/gssdk-ocr-4.21.0.pom
- file:/Users/XXXXXX/Projects/PaperScorer/rn-main-app/node_modules/react-native/android/com/geniusscansdk/gssdk-ocr/4.21.0/gssdk-ocr-4.21.0.pom Required by: project :app > project :thegrizzlylabs_react-native-genius-scan`
The iOS build is working fine, but the Android build is giving me some problems. @guillaume-tgl, if you have any advice or can point me to documentation, that would be appreciated.
Thanks.
@rveltonCL that's weird, it seems like Gradle is not searching for Genius Scan SDK artifact in our Maven repository, even though our ReactNative plugin declares the repository. Could you share your build.gradle files (here or at sdk@geniusscan.com)? Also, could you try to add the repository to see if it helps?
maven {
url 'https://s3.amazonaws.com/tgl.maven'
content {
includeGroup('com.geniusscansdk')
}
}
it work
@rveltonCL that's weird, it seems like Gradle is not searching for Genius Scan SDK artifact in our Maven repository, even though our ReactNative plugin declares the repository. Could you share your build.gradle files (here or at sdk@geniusscan.com)? Also, could you try to add the repository to see if it helps?
maven { url 'https://s3.amazonaws.com/tgl.maven' content { includeGroup('com.geniusscansdk') } }
Adding this worked, here is my updated build.gradle :
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = findProperty('android.buildToolsVersion') ?: '34.0.0'
minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '23')
compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '34')
targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '34')
kotlinVersion = findProperty('android.kotlinVersion') ?: '1.8.10'
ndkVersion = "25.1.8937393"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath('com.android.tools.build:gradle')
classpath('com.facebook.react:react-native-gradle-plugin')
}
}
apply plugin: "com.facebook.react.rootproject"
allprojects {
repositories {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))
}
maven {
// Android JSC is installed from npm
url(new File(['node', '--print', "require.resolve('jsc-android/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim(), '../dist'))
}
google()
mavenCentral()
maven { url 'https://www.jitpack.io' }
maven {
url 'https://s3.amazonaws.com/tgl.maven'
content {
includeGroup('com.geniusscansdk')
}
}
}
}
Guys,
is it possible to have a demo code using : https://docs.expo.dev/develop/development-builds/create-a-build/