mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-08 11:31:02 +00:00
83 lines
2.6 KiB
Groovy
83 lines
2.6 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
defaultConfig {
|
|
applicationId "io.github.chronosx88.yggdrasil"
|
|
minSdkVersion 15
|
|
targetSdkVersion 29
|
|
versionCode 19
|
|
versionName "1.8"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
setProperty("archivesBaseName", project.getParent().name+"-"+versionName)
|
|
}
|
|
signingConfigs {
|
|
release {
|
|
storeFile file(KEYSTORE_FILE_PATH)
|
|
storePassword System.getenv("KEYSTORE_PASSWORD")
|
|
keyAlias System.getenv("KEY_ALIAS")
|
|
keyPassword System.getenv("KEY_PASSWORD")
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
ndkVersion "21.2.6472646"
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
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
|
|
}
|
|
packagingOptions {
|
|
exclude 'META-INF/LICENSE'
|
|
exclude 'META-INF/NOTICE'
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
|
|
}
|
|
|
|
task ndkBuild(type: Exec) {
|
|
def rootDir = project.rootDir
|
|
workingDir = new File(rootDir,"yggdrasil")
|
|
commandLine 'make'
|
|
}
|
|
|
|
gradle.projectsEvaluated {
|
|
tasks.compileDebugKotlin.dependsOn(ndkBuild)
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation project(path: ':yggdrasil')
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
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.8'
|
|
implementation 'com.google.android.material:material:1.4.0-beta01'
|
|
implementation 'com.google.code.gson:gson:2.8.6'
|
|
implementation 'com.hbb20:ccp:2.4.0'
|
|
implementation 'com.vincentbrison.openlibraries.android:dualcache:3.1.1'
|
|
implementation 'com.vincentbrison.openlibraries.android:dualcache-jsonserializer:3.1.1'
|
|
|
|
testImplementation 'junit:junit:4.13.1'
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
} |