95 lines
3.1 KiB
Groovy
95 lines
3.1 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain 11
|
|
sourceSets.configureEach {
|
|
languageSettings.optIn("kotlin.RequiresOptIn")
|
|
}
|
|
}
|
|
|
|
android {
|
|
|
|
compileSdk 34
|
|
buildToolsVersion = '34.0.0'
|
|
|
|
defaultConfig {
|
|
applicationId "org.mosad.seil0.projectlaogai"
|
|
minSdkVersion 23
|
|
targetSdkVersion 33
|
|
versionCode 6100 // 00.06.100
|
|
versionName "0.6.1"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
resValue "string", "build_time", buildTime()
|
|
setProperty("archivesBaseName", "projectlaogai-$versionName")
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
res.srcDirs =
|
|
[
|
|
'src/main/res/layouts/activities',
|
|
'src/main/res/layouts/dialogs',
|
|
'src/main/res/layouts/fragments',
|
|
'src/main/res/layouts',
|
|
'src/main/res'
|
|
]
|
|
}
|
|
}
|
|
|
|
testOptions.unitTests.all {
|
|
useJUnitPlatform()
|
|
|
|
testLogging {
|
|
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
|
|
}
|
|
}
|
|
namespace 'org.mosad.seil0.projectlaogai'
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
|
|
implementation 'androidx.core:core-ktx:1.12.0'
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.7.7'
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.7.7'
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
|
implementation 'androidx.security:security-crypto:1.1.0-alpha06'
|
|
implementation "androidx.work:work-runtime-ktx:2.9.0"
|
|
implementation 'com.google.android.material:material:1.11.0'
|
|
implementation 'com.google.code.gson:gson:2.10'
|
|
// implementation 'com.afollestad:aesthetic:1.0.0-beta05'
|
|
implementation 'com.afollestad.material-dialogs:core:3.3.0'
|
|
implementation 'com.afollestad.material-dialogs:color:3.3.0'
|
|
implementation 'com.afollestad.material-dialogs:bottomsheets:3.3.0'
|
|
implementation 'de.psdev.licensesdialog:licensesdialog:2.1.0'
|
|
|
|
implementation 'org.apache.commons:commons-lang3:3.11'
|
|
implementation 'org.jsoup:jsoup:1.15.3'
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
|
|
androidTestImplementation 'androidx.test:core:1.5.0'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
}
|
|
|
|
static def buildTime() {
|
|
return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
|
|
} |