2024-02-20 16:58:05 +03:00
|
|
|
|
2019-09-13 09:58:29 +03:00
|
|
|
import groovy.json.JsonSlurper
|
|
|
|
|
|
|
|
def getNpmVersion() {
|
|
|
|
def inputFile = new File(projectDir.getPath() + "/../package.json")
|
|
|
|
def packageJson = new JsonSlurper().parseText(inputFile.text)
|
|
|
|
return packageJson["version"]
|
|
|
|
}
|
|
|
|
|
|
|
|
def getNpmVersionArray() { // major [0], minor [1], patch [2]
|
|
|
|
def (major, minor, patch) = getNpmVersion().tokenize('.')
|
|
|
|
return [Integer.parseInt(major), Integer.parseInt(minor), Integer.parseInt(patch)] as int[]
|
|
|
|
}
|
2018-07-20 15:57:12 +03:00
|
|
|
|
|
|
|
buildscript {
|
2018-10-04 05:18:36 +03:00
|
|
|
ext {
|
2024-02-20 16:58:05 +03:00
|
|
|
buildToolsVersion = "34.0.0"
|
2024-02-26 16:17:24 +03:00
|
|
|
minSdkVersion = 26
|
2024-02-20 16:58:05 +03:00
|
|
|
compileSdkVersion = 34
|
|
|
|
targetSdkVersion = 34
|
2024-02-22 21:55:16 +03:00
|
|
|
ndkVersion = "26.2.11394342"
|
2024-02-20 16:58:05 +03:00
|
|
|
kotlinVersion = "1.8.0"
|
2019-10-04 18:56:22 +03:00
|
|
|
googlePlayServicesVisionVersion = "17.0.2"
|
|
|
|
googlePlayServicesVersion = "16.+"
|
|
|
|
firebaseVersion = "17.3.4"
|
2024-03-05 12:37:00 +03:00
|
|
|
FLIPPER_VERSION="0.164.0"
|
2018-10-04 05:18:36 +03:00
|
|
|
}
|
2018-07-20 15:57:12 +03:00
|
|
|
repositories {
|
2018-10-04 05:18:36 +03:00
|
|
|
google()
|
2021-09-16 16:13:25 +03:00
|
|
|
mavenCentral()
|
2018-07-20 15:57:12 +03:00
|
|
|
}
|
|
|
|
dependencies {
|
2023-12-05 19:40:18 +03:00
|
|
|
classpath("com.android.tools.build:gradle")
|
|
|
|
classpath 'com.google.gms:google-services:4.4.0'
|
2022-10-20 15:46:58 +03:00
|
|
|
classpath("com.facebook.react:react-native-gradle-plugin")
|
2024-02-20 16:58:05 +03:00
|
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
|
2022-10-21 16:09:38 +03:00
|
|
|
classpath 'com.bugsnag:bugsnag-android-gradle-plugin:7.+'
|
2018-12-17 15:34:00 +03:00
|
|
|
}
|
2018-12-10 12:12:04 +03:00
|
|
|
}
|
2019-09-13 09:58:29 +03:00
|
|
|
|
|
|
|
subprojects {project ->
|
|
|
|
ext {
|
|
|
|
def npmVersion = getNpmVersionArray()
|
|
|
|
versionMajor = npmVersion[0]
|
|
|
|
versionMinor = npmVersion[1]
|
|
|
|
versionPatch = npmVersion[2]
|
|
|
|
}
|
|
|
|
}
|
2024-02-20 16:58:05 +03:00
|
|
|
|
|
|
|
|
|
|
|
apply plugin: "com.facebook.react.rootproject"
|