buildscript {
    repositories {
        jcenter { url "http://jcenter.bintray.com/"
        allowInsecureProtocol = true  
        }
        maven {url "http://repo.spring.io/plugins-release/"
         allowInsecureProtocol = true 
         }
        mavenCentral()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        maven {
            url 'https://maven.google.com'
            allowInsecureProtocol = true 
        }
    }

    dependencies { 
        classpath 'com.android.tools.build:gradle:3.1.4' //diferencia con el q funciona 3.1.4(3.5.3)
    }
}

apply plugin: 'com.android.library'

android {
    compileSdkVersion 27  //el q funciona 27(28)
    buildToolsVersion "27.0.3"  //27.0.3(28.0.3)

    defaultConfig {
        minSdkVersion 16//16(21)
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }
    sourceSets {
        main {
            aidl.srcDirs = ['src/main/java']
        }
    }
}

repositories {
    jcenter { url "http://jcenter.bintray.com/"
    allowInsecureProtocol = true 
     }
    maven {url "http://repo.spring.io/plugins-release/"
     allowInsecureProtocol = true 
     }
    mavenCentral()
    maven {
        // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
        url "$rootDir/../node_modules/react-native/android"
    }
    maven {
        url 'https://maven.google.com'
        allowInsecureProtocol=true
    }
}

// dependencies {
//     compile fileTree(dir: 'libs', include: ['*.jar'])
//     implementation 'com.facebook.react:react-native:+'  // From node_modules
//     implementation group: 'com.android.support', name: 'support-v4', version: '27.0.0'
//     implementation "com.google.zxing:core:3.3.0"
// }

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
    implementation 'com.facebook.react:react-native:+'  // From node_modules
    implementation "com.android.support:support-compat:28.0.0"
    implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
    implementation "com.android.support:appcompat-v7:28.0.0"
    implementation "com.google.zxing:core:3.3.0"
}