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

buildscript {
    repositories {
        //  为了跑流水线注释，运行时需要打开
       google()
       jcenter()
        maven { url 'https://developer.huawei.com/repo/' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.1'
        classpath ("com.huawei.agconnect:agcp:1.7.2.300")
    }
    
}

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.3"
    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 29
        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/' }
    //  为了跑流水线注释，运行时需要打开
   google()
   jcenter()
}

dependencies {
    implementation 'com.facebook.react:react-native:+'  // From node_modules
    implementation 'com.huawei.agconnect:agconnect-auth:1.7.2.300'
    implementation 'com.huawei.hms:hwid:5.0.5.300'
}
