Tones/android/build.gradle

46 lines
1.6 KiB
Groovy
Raw Normal View History

2024-08-01 01:57:25 +00:00
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2025-04-21 23:49:32 +00:00
plugins {
id("com.google.gms.google-services") version "4.4.2" apply false
}
2024-08-01 01:57:25 +00:00
buildscript {
ext {
2025-04-21 22:34:36 +00:00
buildToolsVersion = findProperty('android.buildToolsVersion') ?: '35.0.0'
minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '24')
compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '35')
2024-08-01 01:57:25 +00:00
targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '34')
2025-04-21 22:34:36 +00:00
kotlinVersion = findProperty('android.kotlinVersion') ?: '1.9.25'
2024-08-01 01:57:25 +00:00
ndkVersion = "26.1.10909125"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath('com.android.tools.build:gradle')
classpath('com.facebook.react:react-native-gradle-plugin')
classpath('org.jetbrains.kotlin:kotlin-gradle-plugin')
}
}
apply plugin: "com.facebook.react.rootproject"
allprojects {
repositories {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))
}
maven {
// Android JSC is installed from npm
url(new File(['node', '--print', "require.resolve('jsc-android/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim(), '../dist'))
}
google()
mavenCentral()
maven { url 'https://www.jitpack.io' }
}
}