2022-07-10 16:26:24 +02:00
|
|
|
buildscript {
|
|
|
|
if (project == rootProject) {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath 'com.android.tools.build:gradle:4.2.2'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
|
|
|
def safeExtGet(prop, fallback) {
|
|
|
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2023-01-14 19:24:50 +02:00
|
|
|
compileSdkVersion safeExtGet('SafX_compileSdkVersion', 31)
|
2022-07-10 16:26:24 +02:00
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion safeExtGet('SafX_minSdkVersion', 21)
|
2023-01-14 19:24:50 +02:00
|
|
|
targetSdkVersion safeExtGet('SafX_targetSdkVersion', 31)
|
2022-07-10 16:26:24 +02:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
lintOptions {
|
|
|
|
disable 'GradleCompatible'
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
maven {
|
|
|
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
|
|
url("$rootDir/../node_modules/react-native/android")
|
|
|
|
}
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
//noinspection GradleDynamicVersion
|
|
|
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
|
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
|
|
|
}
|