1234567891011121314151617181920212223242526272829303132333435363738 |
- apply plugin: 'com.android.library'
- apply plugin: 'org.greenrobot.greendao'
- android {
- compileSdkVersion rootProject.ext.compileSdkVersion
- buildToolsVersion rootProject.ext.buildToolsVersion
- defaultConfig {
- minSdkVersion rootProject.ext.minSdkVersion
- targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode rootProject.ext.versionCode
- versionName rootProject.ext.versionName
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- }
- greendao {
- schemaVersion 8
- daoPackage 'com.kuxuan.sqlite.dao'
- targetGenDir 'src/main/java'
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation "com.android.support:appcompat-v7:$rootProject.androidSupportVersion"
- testImplementation 'junit:junit:4.12'
- // androidTestCompile('com.android.support.test.espresso:espresso-core:3.0.1', {
- // exclude group: 'com.android.support', module: 'support-annotations'
- // })
- //数据库依赖
- implementation 'org.greenrobot:greendao-generator:3.2.2'
- implementation 'org.greenrobot:greendao:3.2.2'
- implementation 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.0.2'
- }
|