@@ -5,7 +5,7 @@ apply plugin: 'org.greenrobot.greendao' // apply plugin
55apply plugin : ' kotlinx-serialization'
66
77apply plugin : ' io.sentry.android.gradle'
8-
8+ apply plugin : ' org.greenrobot.greendao '
99
1010def defaultPropertiesFile = rootProject. file(" buildsystem/default.properties" )
1111def defaultProperties = new Properties ()
@@ -107,13 +107,21 @@ sentry {
107107 autoUpload true
108108}
109109
110+ greendao {
111+ schemaVersion 1 // 数据库版本号
112+ daoPackage ' com.carlos.grabredenvelope.db' // 设置DaoMaster、DaoSession、Dao包名
113+ targetGenDir ' src/main/java' // 设置DaoMaster、DaoSession、Dao目录
114+ // targetGenDirTest:设置生成单元测试目录
115+ // generateTests:设置自动生成单元测试用例
116+ }
117+
110118dependencies {
111119 implementation fileTree(include : [' *.jar' ], dir : ' libs' )
112120 implementation " org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.9.1"
113121 implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.1'
114122
115- // implementation 'com.carlos.cutils:cutils:0.0.26'
116- implementation ' com.github.xbdcc:cutils:0.0.26-SNAPSHOT'
123+ implementation ' com.carlos.cutils:cutils:0.0.26'
124+ // implementation 'com.github.xbdcc:cutils:0.0.26-SNAPSHOT'
117125
118126 // jpush
119127 implementation ' cn.jiguang.sdk:jpush:3.3.2'
@@ -127,6 +135,7 @@ dependencies {
127135 implementation ' com.liulishuo.filedownloader:library:1.7.7'
128136 implementation ' com.google.android.material:material:1.0.0'
129137
138+ implementation ' org.greenrobot:greendao:3.2.2' // add library
130139
131140}
132141repositories {
0 commit comments