mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-27 08:21:03 +02:00
61 lines
1.3 KiB
Groovy
61 lines
1.3 KiB
Groovy
buildscript {
|
|
if (project == rootProject) {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle:7.2.1")
|
|
classpath("com.facebook.react:react-native-gradle-plugin")
|
|
classpath("de.undercouch:gradle-download-task:5.0.1")
|
|
}
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
def safeExtGet(prop, fallback) {
|
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion safeExtGet('SafX_compileSdkVersion', 31)
|
|
defaultConfig {
|
|
minSdkVersion safeExtGet('SafX_minSdkVersion', 21)
|
|
targetSdkVersion safeExtGet('SafX_targetSdkVersion', 31)
|
|
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()
|
|
}
|
|
|
|
dependencies {
|
|
//noinspection GradleDynamicVersion
|
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
|
}
|