apply plugin: 'com.android.library'



buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
    }
}

sourceCompatibility = "1.7"
targetCompatibility = "1.7"
android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        minSdkVersion 20
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled  true
    }
    buildTypes {
        release {
            minifyEnabled false
        }
    }

    lintOptions {
        abortOnError false
    }
    packagingOptions {
        pickFirst  'META-INF/LICENSE'
        pickFirst  'META-INF/io.netty.versions.properties'
        pickFirst  'META-INF/INDEX.LIST'
    }
}

repositories {
    mavenCentral()
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')

    compile 'com.facebook.react:react-native:+'


    // https://mvnrepository.com/artifact/com.google.api.grpc/grpc-google-cloud-speech-v1beta1
    compile (group: 'com.google.api.grpc', name: 'grpc-google-cloud-speech-v1beta1', version: '0.1.5'){
        exclude group: 'com.google.protobuf', module: 'protobuf-java'
        exclude group: 'io.grpc', module: 'grpc-all'
    }


    // https://mvnrepository.com/artifact/com.google.auth/google-auth-library-oauth2-http
    compile group: 'com.google.auth', name: 'google-auth-library-oauth2-http', version: '0.6.0'


    // https://mvnrepository.com/artifact/com.google.auth/google-auth-library-credentials
    compile group: 'com.google.auth', name: 'google-auth-library-credentials', version: '0.6.0'


    compile (group: 'io.grpc', name: 'grpc-auth', version: '1.0.3'){
    }

    // https://mvnrepository.com/artifact/io.grpc/grpc-netty
    compile group: 'io.grpc', name: 'grpc-netty', version: '1.0.3'


    // https://mvnrepository.com/artifact/io.grpc/grpc-protobuf
    compile group: 'io.grpc', name: 'grpc-protobuf', version: '1.0.3'

    // https://mvnrepository.com/artifact/io.grpc/grpc-stub
    compile group: 'io.grpc', name: 'grpc-stub', version: '1.0.3'

    compile 'com.android.support:multidex:1.0.1'

    // https://mvnrepository.com/artifact/log4j/log4j
    compile group: 'log4j', name: 'log4j', version: '1.2.17'

    compile 'io.grpc:grpc-okhttp:1.0.3'

    // https://mvnrepository.com/artifact/io.netty/netty-tcnative-boringssl-static
    compile group: 'io.netty', name: 'netty-tcnative-boringssl-static', version: '1.1.33.Fork23'

    // https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
    compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.5'




}