apply plugin: 'com.android.library'
apply plugin: 'com.huawei.agconnect'
apply plugin: 'maven-publish'

buildscript {
    repositories {
        jcenter()
        google()

        maven { url 'https://developer.huawei.com/repo/' }

    }

    dependencies {
        classpath ("com.android.tools.build:gradle:3.6.0")
        classpath ("com.huawei.agconnect:agcp:1.6.0.300")
    }
}

android {
    compileSdkVersion 31
    buildToolsVersion = "30.0.3"
    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 31
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

repositories {
    mavenLocal()
    maven { url "$rootDir/../node_modules/react-native/android" }
    maven { url "$rootDir/../node_modules/jsc-android/dist"}
    maven { url 'https://developer.huawei.com/repo/' }
    jcenter()
    google()

}

dependencies {
    implementation "com.facebook.react:react-native:+"
    implementation 'com.huawei.hms:safetydetect:6.7.0.300'
}