Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expo Development Builds #78

Open
iorran opened this issue Nov 26, 2023 · 4 comments
Open

Expo Development Builds #78

iorran opened this issue Nov 26, 2023 · 4 comments

Comments

@iorran
Copy link

iorran commented Nov 26, 2023

Guys,

is it possible to have a demo code using : https://docs.expo.dev/develop/development-builds/create-a-build/

@guillaume-tgl
Copy link
Contributor

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.

@rveltonCL
Copy link

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.

@guillaume-tgl
Copy link
Contributor

@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 [email protected])?
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')
            }
        }

@thozh
Copy link

thozh commented Mar 21, 2024

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 [email protected])? 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')
            }
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants