build.gradle
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apply plugin: 'com.android.library'
apply plugin: 'org.greenrobot.greendao'
android {
// compileSdkVersion 29
// buildToolsVersion "29.0.2"
//
//
// defaultConfig {
// minSdkVersion 16
// targetSdkVersion 29
// versionCode 1
// versionName "1.0"
//
// testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
// consumerProguardFiles 'consumer-rules.pro'
// }
//
// buildTypes {
// release {
// minifyEnabled false
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
// }
// }
}
greendao {
schemaVersion 1 //数据库版本号
daoPackage 'com.cnlive.database.dao'
targetGenDir 'src/main/java'
generateTests false //设置为true以自动生成单元测试。
targetGenDirTests 'src/main/java'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//数据库加密
implementation 'net.zetetic:android-database-sqlcipher:3.5.6'
}