buildscript {
    repositories {
        google()
        mavenCentral()
        // jcenter()
        maven { url "https://www.jitpack.io" }
        maven {
            url "https://repo.maven.apache.org/maven2/"
        }
        
    }

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

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
    compileSdkVersion rootProject.ext.compileSdkVersion
    buildToolsVersion rootProject.ext.buildToolsVersion

    defaultConfig {
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }
    compileOptions {
        sourceCompatibility = '1.8'
        targetCompatibility = '1.8'
    }
    sourceSets { main { java.srcDirs = ['src/main/java', 'src/main/tests'] } }

    testOptions {
        unitTests.returnDefaultValues = true
    }
}

repositories {
    mavenCentral()
    // jcenter()
    google()
    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://www.jitpack.io" }
    maven {
        url "https://repo.maven.apache.org/maven2/"
    }
}

dependencies {
    implementation 'com.facebook.react:react-native:+'

    testImplementation 'junit:junit:4.13.2'
    testImplementation 'org.mockito:mockito-core:1.10.19'
    testImplementation group: 'org.powermock', name: 'powermock-core', version: '1.6.6'
    testImplementation group: 'org.powermock', name: 'powermock-module-junit4', version: '1.6.6'
    testImplementation group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.6'

}
