crispa-android/app/build.gradle

80 lines
2.6 KiB
Groovy
Raw Normal View History

2019-08-20 12:36:59 +00:00
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
2020-09-29 16:13:44 +00:00
compileSdkVersion 30
2019-08-20 12:36:59 +00:00
defaultConfig {
applicationId "io.github.chronosx88.yggdrasil"
minSdkVersion 15
2020-09-29 16:13:44 +00:00
targetSdkVersion 30
2020-12-09 09:41:18 +00:00
versionCode 14
2020-12-06 14:51:20 +00:00
versionName "1.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2020-10-14 13:05:06 +00:00
setProperty("archivesBaseName", project.getParent().name+"-"+versionName)
2019-08-20 12:36:59 +00:00
}
2020-06-09 11:05:12 +00:00
signingConfigs {
2020-06-09 11:19:30 +00:00
release {
storeFile file(KEYSTORE_FILE_PATH)
2020-06-09 11:05:12 +00:00
storePassword System.getenv("KEYSTORE_PASSWORD")
keyAlias System.getenv("KEY_ALIAS")
keyPassword System.getenv("KEY_PASSWORD")
}
}
2019-08-20 12:36:59 +00:00
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2020-06-09 11:21:53 +00:00
signingConfig signingConfigs.release
2019-08-20 12:36:59 +00:00
}
}
ndkVersion "21.2.6472646"
2020-06-20 20:40:56 +00:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
2020-08-07 06:52:59 +00:00
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
2020-12-06 14:51:20 +00:00
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
2019-08-20 12:36:59 +00:00
}
2020-08-03 13:10:29 +00:00
task ndkBuild(type: Exec) {
def rootDir = project.rootDir
workingDir = new File(rootDir,"yggdrasil")
commandLine 'make'
}
gradle.projectsEvaluated {
tasks.compileDebugKotlin.dependsOn(ndkBuild)
}
2019-08-20 12:36:59 +00:00
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(path: ':yggdrasil')
2020-09-29 16:13:44 +00:00
implementation 'androidx.appcompat:appcompat:1.2.0'
2020-12-06 14:51:20 +00:00
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation "androidx.preference:preference-ktx:1.1.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7'
2020-12-06 14:51:20 +00:00
implementation 'com.google.android.material:material:1.3.0-alpha04'
2020-06-09 07:22:27 +00:00
implementation 'com.google.code.gson:gson:2.8.6'
2020-06-20 20:40:56 +00:00
implementation 'com.hbb20:ccp:2.4.0'
2020-12-06 14:51:20 +00:00
implementation 'com.vincentbrison.openlibraries.android:dualcache:3.1.1'
implementation 'com.vincentbrison.openlibraries.android:dualcache-jsonserializer:3.1.1'
2020-12-06 14:51:20 +00:00
testImplementation 'junit:junit:4.13.1'
2020-09-29 17:02:08 +00:00
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}