apply plugin: 'com.android.library'
def safeExtGet(prop, fallback) {
    rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
android {
    compileSdkVersion safeExtGet('compileSdkVersion', 26)
    buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')

    defaultConfig {
        minSdkVersion safeExtGet('minSdkVersion', 26)
        targetSdkVersion safeExtGet('targetSdkVersion', 26)
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }

    lintOptions {
        abortOnError false
        warning 'InvalidPackage'
    }

    sourceSets {

        main {
            jniLibs.srcDirs = ['libs']
        }

    }

    buildTypes {
        release {
            consumerProguardFiles 'proguard-rules.pro'
        }
    }
}

repositories {
    maven {
        // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
        url "$rootDir/../node_modules/react-native/android"
    }
}

dependencies {
    api fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.facebook.react:react-native:+'
    implementation 'com.umeng.umsdk:common:9.5.6'// (必选)版本号
    implementation 'com.umeng.umsdk:asms:1.6.3'// asms包依赖(必选)
    implementation 'com.umeng.umsdk:apm:1.9.5'// U-APM产品包依赖，必选
    implementation  'com.umeng.umsdk:share-core:7.3.2'//分享核心库，必选

    implementation 'com.umeng.umsdk:share-wx:7.3.2' //微信完整版
    implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0' //微信官方依赖库

    implementation 'com.umeng.umsdk:share-sina:7.3.2' //新浪微博完整版
    implementation 'io.github.sinaweibosdk:core:12.5.0@aar' //新浪微博官方SDK
}
