Files
performics_main/android/build.gradle
T
anitak 6fd0bee8a3
RN APK Build / build (push) Failing after 23m47s
add yml file
2026-04-22 16:07:47 +05:30

65 lines
1.7 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
buildscript {
ext {
buildToolsVersion = "36.0.0"
minSdkVersion = 24
compileSdkVersion = 36
targetSdkVersion = 34
ndkVersion = "27.1.12297006"
kotlinVersion = "2.1.20"
googlePlayServicesVersion = "21.0.1"
googlePlayServicesMapsVersion = "18.2.0"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath('com.android.tools.build:gradle:8.13.2')
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("com.google.gms:google-services:4.4.2")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.9")
}
}
allprojects {
repositories {
mavenCentral()
google()
maven { url("$rootDir/../node_modules/react-native/android") }
}
}
/**
* ✅ Block 1 tumhara existing Google Play Services resolution
*/
subprojects {
configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.google.android.gms') {
if (details.requested.name == 'play-services-location') {
details.useVersion "21.0.1"
}
}
}
}
}
/**
* ✅ Block 2 saare Kotlin Android modules ke liye JVM target 17
*/
subprojects { subproject ->
subproject.plugins.withId("org.jetbrains.kotlin.android") {
subproject.tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "17"
}
}
}
}
apply plugin: "com.facebook.react.rootproject"