
buildscript {
    repositories {
        mavenLocal()
        // This was missing an needs to be added to your list
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven { url 'https://www.jitpack.io' }
        jcenter()
        google()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.2'
    }
}

apply plugin: 'com.android.library'

android {
    compileSdkVersion 31

    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 31
        versionCode 1
        versionName "1.0.0"
    }
    lintOptions {
        abortOnError false
    }
}

repositories {
    mavenCentral()
}

dependencies {
    implementation 'com.facebook.react:react-native:+'

    //GSON for object serializing
    implementation 'com.google.code.gson:gson:2.9.0'

    //Benshi Android SDK
    implementation 'ai.benshi.android.sdk:e_commerce:1.1.1'
}
  