2019-08-20 12:36:59 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
|
2022-01-15 16:33:30 +00:00
|
|
|
def acraSecretsPropertiesFile = rootProject.file("acra.properties")
|
|
|
|
def acraSecretsProperties = new Properties()
|
|
|
|
acraSecretsProperties.load(new FileInputStream(acraSecretsPropertiesFile))
|
|
|
|
|
2019-08-20 12:36:59 +00:00
|
|
|
android {
|
2022-11-25 13:57:52 +00:00
|
|
|
compileSdkVersion 33
|
2019-08-20 12:36:59 +00:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "io.github.chronosx88.yggdrasil"
|
2020-08-03 13:06:06 +00:00
|
|
|
minSdkVersion 15
|
2022-11-25 13:57:52 +00:00
|
|
|
targetSdkVersion 33
|
2022-12-21 14:41:21 +00:00
|
|
|
versionCode 43
|
|
|
|
versionName "2.1.7"
|
2019-08-21 09:11:57 +00:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2020-10-14 13:05:06 +00:00
|
|
|
setProperty("archivesBaseName", project.getParent().name+"-"+versionName)
|
2022-01-15 16:33:30 +00:00
|
|
|
|
|
|
|
buildConfigField("String", "ACRA_BACKEND_URL", acraSecretsProperties['ACRA_BACKEND_URL'])
|
|
|
|
buildConfigField("String", "ACRA_LOGIN", acraSecretsProperties['ACRA_LOGIN'])
|
|
|
|
buildConfigField("String", "ACRA_PASSWORD", acraSecretsProperties['ACRA_PASSWORD'])
|
2022-12-23 15:01:04 +00:00
|
|
|
|
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 {
|
2020-06-09 15:38:39 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|
2022-12-21 08:36:30 +00:00
|
|
|
ndkVersion "23.2.8568313"
|
2020-06-20 20:40:56 +00:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = '1.8'
|
|
|
|
}
|
2020-12-06 14:51:20 +00:00
|
|
|
packagingOptions {
|
2022-12-21 08:36:30 +00:00
|
|
|
resources {
|
|
|
|
excludes += ['META-INF/LICENSE', 'META-INF/NOTICE']
|
|
|
|
}
|
2020-12-06 14:51:20 +00:00
|
|
|
}
|
2021-05-11 09:16:36 +00:00
|
|
|
buildFeatures {
|
|
|
|
viewBinding true
|
|
|
|
}
|
2022-12-21 08:36:30 +00:00
|
|
|
lint {
|
|
|
|
abortOnError false
|
|
|
|
checkReleaseBuilds false
|
|
|
|
}
|
|
|
|
namespace 'org.yggdrasil.app.crispa'
|
2021-05-11 09:16:36 +00:00
|
|
|
|
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 {
|
2021-06-14 21:13:05 +00:00
|
|
|
|
2022-11-25 13:28:31 +00:00
|
|
|
implementation 'ch.acra:acra-http:5.9.6'
|
|
|
|
implementation 'ch.acra:acra-dialog:5.9.6'
|
2019-08-20 12:36:59 +00:00
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
2019-08-23 07:54:00 +00:00
|
|
|
implementation project(path: ':yggdrasil')
|
2020-06-21 13:54:16 +00:00
|
|
|
|
2022-11-25 14:02:24 +00:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.7.0-alpha01'
|
2022-11-25 13:28:31 +00:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
2022-05-16 09:55:35 +00:00
|
|
|
implementation 'androidx.preference:preference-ktx:1.2.0'
|
2020-06-21 13:54:16 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
|
2022-12-21 08:36:30 +00:00
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1'
|
|
|
|
implementation 'com.google.android.material:material:1.8.0-beta01'
|
2022-11-25 13:28:31 +00:00
|
|
|
implementation 'com.google.code.gson:gson:2.9.0'
|
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'
|
2022-05-16 11:42:18 +00:00
|
|
|
implementation 'androidx.work:work-runtime-ktx:2.7.1'
|
2020-06-21 13:54:16 +00:00
|
|
|
|
2022-05-16 11:24:29 +00:00
|
|
|
testImplementation 'junit:junit:4.13.2'
|
2022-12-21 08:36:30 +00:00
|
|
|
androidTestImplementation 'androidx.test:runner:1.5.1'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
|
2022-12-23 15:01:04 +00:00
|
|
|
}
|