thegrizzlylabs / geniusscan-sdk-demo

Demo apps for Genius Scan SDK
30 stars 38 forks source link

Expo Development Builds #78

Open iorran opened 9 months ago

iorran commented 9 months ago

Guys,

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

guillaume-tgl commented 8 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.

rveltonCL commented 6 months ago

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:

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 commented 6 months ago

@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')
            }
        }
thozh commented 5 months ago

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')
            }
        }
    }
}