buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.1'
    }
}

apply plugin: 'com.android.library'

def ADYEN_PUBLIC_KEY = '"' + AdyenPublicKey + '"' ?: '"Adyen Public Key not set"';

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        // Do not set ADYEN_PUBLIC_KEY here, it will be set in the app project.
        each { type ->
            type.buildConfigField 'String', 'ADYEN_PUBLIC_KEY', ADYEN_PUBLIC_KEY
        }
    }
    lintOptions {
        abortOnError false
    }
}

repositories {
    mavenCentral()
    maven {
        url  "https://dl.bintray.com/adyen/adyen"
    }
}

dependencies {
    compile 'com.facebook.react:react-native:+'
    compile 'com.adyen.cse:adyen-cse:1.0.5'
}
  