70 lines
2.1 KiB
Groovy
70 lines
2.1 KiB
Groovy
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.compose.compiler)
|
|
}
|
|
|
|
android {
|
|
namespace 'com.juhabi.birds'
|
|
compileSdk {
|
|
version = release(36) {
|
|
minorApiLevel = 1
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "com.juhabi.birds"
|
|
minSdk 24
|
|
targetSdk 36
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
compose true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation platform(libs.androidx.compose.bom)
|
|
androidTestImplementation platform(libs.androidx.compose.bom)
|
|
implementation libs.androidx.compose.ui
|
|
implementation libs.androidx.compose.ui.graphics
|
|
implementation libs.androidx.compose.ui.tooling.preview
|
|
implementation libs.androidx.compose.material3
|
|
implementation libs.androidx.activity.compose
|
|
debugImplementation libs.androidx.compose.ui.tooling
|
|
implementation libs.androidx.appcompat
|
|
implementation libs.androidx.core.ktx
|
|
implementation libs.material
|
|
implementation libs.androidx.constraintlayout
|
|
implementation libs.androidx.viewpager2
|
|
implementation libs.retrofit.core
|
|
implementation libs.retrofit.converter.gson
|
|
implementation libs.okhttp
|
|
implementation libs.okhttp.logging
|
|
implementation libs.gson
|
|
implementation libs.luban
|
|
implementation libs.android.picker.view
|
|
implementation libs.androidx.recyclerview
|
|
implementation libs.base.recyclerview.adapter.helper
|
|
implementation libs.immersion.bar
|
|
testImplementation libs.junit
|
|
androidTestImplementation libs.androidx.espresso.core
|
|
androidTestImplementation libs.androidx.junit
|
|
//屏幕适配
|
|
implementation 'me.jessyan:autosize:1.1.2'
|
|
}
|