DevControl/app/build.gradle
2022-10-24 14:08:07 +08:00

63 lines
1.7 KiB
Groovy

plugins {
id 'com.android.application'
id 'org.greenrobot.greendao'
}
android {
compileSdk 32
defaultConfig {
applicationId "cc.niushuai.project.devcontrol"
minSdk 24
targetSdk 32
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.lifecycle:lifecycle-livedata:2.5.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.5.1'
implementation 'androidx.navigation:navigation-fragment:2.5.2'
implementation 'androidx.navigation:navigation-ui:2.5.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
// hutool
implementation 'cn.hutool:hutool-core:5.8.8'
// greendao
implementation 'org.greenrobot:greendao:3.3.0'
}
greendao {
// 数据库版本号
schemaVersion 1
// 生成数据库文件的目录
targetGenDir 'src/main/java'
// 生成的数据库相关文件的包名
daoPackage 'cc.niushuai.project.devcontrol.db.greendao.gen'
}