91 lines
3.0 KiB
Groovy
91 lines
3.0 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
id 'androidx.navigation.safeargs.kotlin'
|
|
id "com.google.devtools.ksp"
|
|
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion = 34
|
|
|
|
defaultConfig {
|
|
applicationId "moe.uni.moe"
|
|
minSdkVersion 29
|
|
targetSdkVersion 34
|
|
versionCode 240629
|
|
versionName "2.0.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
debuggable true
|
|
minifyEnabled false
|
|
shrinkResources false
|
|
}
|
|
|
|
release {
|
|
minifyEnabled false
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
namespace 'moe.uni.view'
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion '1.5.1'
|
|
}
|
|
packaging {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.navigation:navigation-compose:2.7.7")
|
|
implementation("com.squareup.okhttp3:logging-interceptor:4.9.1")
|
|
implementation 'androidx.preference:preference-ktx:1.2.1'
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.2'
|
|
implementation 'androidx.activity:activity-compose:1.9.0'
|
|
implementation platform('androidx.compose:compose-bom:2024.06.00')
|
|
implementation 'androidx.compose.ui:ui'
|
|
implementation 'androidx.compose.ui:ui-graphics'
|
|
implementation 'androidx.compose.ui:ui-tooling-preview'
|
|
implementation 'androidx.compose.material3:material3'
|
|
implementation 'androidx.compose.material:material'
|
|
androidTestImplementation platform('androidx.compose:compose-bom:2024.06.00')
|
|
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
|
|
debugImplementation 'androidx.compose.ui:ui-tooling'
|
|
debugImplementation 'androidx.compose.ui:ui-test-manifest'
|
|
implementation("io.coil-kt:coil-compose:2.6.0")
|
|
|
|
def room_version = "2.6.1"
|
|
implementation "androidx.room:room-runtime:$room_version"
|
|
implementation "androidx.room:room-ktx:$room_version"
|
|
annotationProcessor "androidx.room:room-compiler:$room_version"
|
|
ksp "androidx.room:room-compiler:$room_version"
|
|
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.2")
|
|
implementation ('com.squareup.retrofit2:retrofit:2.9.0')
|
|
implementation ('com.squareup.retrofit2:converter-gson:2.9.0')
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.9.0"
|
|
implementation 'androidx.core:core-ktx:1.13.1'
|
|
implementation 'androidx.appcompat:appcompat:1.7.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
} |