unioil-loyalty-rn-app/android/build.gradle

50 lines
1.6 KiB
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "34.0.0" // Android 14 requires this
minSdkVersion = 21 // Android 14 minimum
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "25.1.8937393" // New NDK requirement
kotlinVersion = "1.7.22"
agpVersion = "7.4.2"
}
repositories {
google()
mavenCentral() // Replaced jcenter() with mavenCentral()
// gradlePluginPortal() // Added for better plugin resolution
}
dependencies {
classpath("com.android.tools.build:gradle:7.4.2")
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.google.gms:google-services:4.3.15' // Updated to latest patch version
classpath("com.facebook.react:react-native-gradle-plugin")
}
}
allprojects {
repositories {
maven {
url("$rootDir/../node_modules/react-native/android")
}
maven {
url("$rootDir/../node_modules/jsc-android/dist")
}
mavenLocal()
google()
mavenCentral() // Replaced jcenter()
maven { url 'https://www.jitpack.io' }
configurations.all {
resolutionStrategy {
force "com.google.android.gms:play-services-location:21.0.1"
force "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
force "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.22"
force 'androidx.core:core-ktx:1.6.0'
}
}
}
}