
buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
}

apply plugin: 'com.android.library'
apply plugin: 'org.jetbrains.kotlin.android'

def safeExtGet(prop, fallback) {
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

def GOOGLE_PLAY_SERVICES_LOCATION_VERSION = safeExtGet('playServicesLocationVersion', "+")

android {
    namespace = 'ru.vvdev.yamap'

    defaultConfig {
        compileSdkVersion 34
        minSdkVersion 26
        targetSdkVersion 34
        versionCode 1
        versionName "1.1"
    }
    lintOptions {
        abortOnError false
    }
    kotlinOptions {
        jvmTarget = '17'
    }
}

repositories {
    mavenCentral()
}

dependencies {
    implementation "com.google.android.gms:play-services-location:$GOOGLE_PLAY_SERVICES_LOCATION_VERSION"
    implementation 'com.facebook.react:react-native:+'
    implementation 'com.yandex.android:maps.mobile:4.19.0-lite'
    implementation 'androidx.core:core-ktx:1.13.1'
}
