buildscript {
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath("com.android.tools.build:gradle")
        classpath("com.facebook.react:react-native-gradle-plugin")
    }
}

apply plugin: 'com.android.library'

android {
    compileSdkVersion = 33
    buildToolsVersion = "30.0.3"

    namespace "com.launchdarkly.reactnative"
    defaultConfig {
        minSdkVersion(21)
        targetSdkVersion(33)
        versionCode = 1
        versionName = "1.0"
        consumerProguardFiles("consumer-proguard-rules.pro")
    }

    lintOptions {
        abortOnError false
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}


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

dependencies {
    // The version of react-native is set by the React Native Gradle Plugin
    implementation("com.facebook.react:react-android:0.72.7")
    implementation("com.launchdarkly:launchdarkly-android-client-sdk:5.4.0")
    implementation("com.jakewharton.timber:timber:5.0.1")
    implementation("com.google.code.gson:gson:2.10.1")

    testImplementation "junit:junit:4.13.2"
    testImplementation 'com.google.code.gson:gson:2.10.1'

}
