feat: 引入greendao

This commit is contained in:
niushuai233 2022-10-24 14:08:07 +08:00
parent b58b5aa668
commit 02d532fc31
2 changed files with 26 additions and 1 deletions

View File

@ -1,5 +1,6 @@
plugins { plugins {
id 'com.android.application' id 'com.android.application'
id 'org.greenrobot.greendao'
} }
android { android {
@ -46,5 +47,17 @@ dependencies {
implementation 'androidx.gridlayout:gridlayout:1.0.0' implementation 'androidx.gridlayout:gridlayout:1.0.0'
// hutool // hutool
implementation 'cn.hutool:hutool-all:5.8.8' 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'
} }

View File

@ -1,4 +1,16 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
mavenCentral()
}
dependencies {
classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0'
}
}
plugins { plugins {
id 'com.android.application' version '7.1.3' apply false id 'com.android.application' version '7.1.3' apply false
id 'com.android.library' version '7.1.3' apply false id 'com.android.library' version '7.1.3' apply false