a
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("kotlin-android")
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = 30
|
||||
buildToolsVersion = "30.0.3"
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "me.wcy.wanandroid.compose"
|
||||
minSdk = 21
|
||||
targetSdk = 30
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
}
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
getByName("debug") {
|
||||
storeFile = file("debug.keystore")
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
}
|
||||
debug {
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
}
|
||||
buildFeatures {
|
||||
compose = true
|
||||
}
|
||||
composeOptions {
|
||||
kotlinCompilerExtensionVersion = rootProject.extra["compose_version"] as String
|
||||
kotlinCompilerVersion = rootProject.extra["kotlin_version"] as String
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("androidx.core:core-ktx:1.6.0")
|
||||
implementation("androidx.appcompat:appcompat:1.3.1")
|
||||
implementation("com.google.android.material:material:1.4.0")
|
||||
implementation("androidx.compose.ui:ui:${rootProject.extra["compose_version"]}")
|
||||
implementation("androidx.compose.material:material:${rootProject.extra["compose_version"]}")
|
||||
implementation("androidx.compose.ui:ui-tooling:${rootProject.extra["compose_version"]}")
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.3.1")
|
||||
implementation("androidx.activity:activity-compose:1.3.1")
|
||||
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:1.0.0-alpha07")
|
||||
implementation("androidx.datastore:datastore-preferences:1.0.0")
|
||||
implementation("androidx.navigation:navigation-compose:2.4.0-alpha06")
|
||||
implementation("com.google.accompanist:accompanist-pager:0.10.0")
|
||||
implementation("com.google.accompanist:accompanist-coil:0.10.0")
|
||||
implementation("com.google.accompanist:accompanist-swiperefresh:0.10.0")
|
||||
implementation("com.google.accompanist:accompanist-flowlayout:0.10.0")
|
||||
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
||||
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
|
||||
implementation("com.github.wangchenyan.mock-http:mock-http:1.7")
|
||||
implementation("com.github.franmontiel:PersistentCookieJar:v1.0.1")
|
||||
}
|
||||
Reference in New Issue
Block a user