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

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

android {
    compileSdkVersion 28
    buildToolsVersion '28.0.3'
    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 28
        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 {
    //noinspection GradleDynamicVersion
    implementation 'com.facebook.react:react-native:+'  // From node_modules
    implementation 'com.huawei.agconnect:agconnect-remoteconfig:1.7.2.300'
}


