Android端钱多多随手记项目

build.gradle 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'org.greenrobot.greendao'
  3. android {
  4. compileSdkVersion rootProject.ext.compileSdkVersion
  5. buildToolsVersion rootProject.ext.buildToolsVersion
  6. defaultConfig {
  7. minSdkVersion rootProject.ext.minSdkVersion
  8. targetSdkVersion rootProject.ext.targetSdkVersion
  9. versionCode rootProject.ext.versionCode
  10. versionName rootProject.ext.versionName
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. }
  13. greendao {
  14. schemaVersion 8
  15. daoPackage 'com.kuxuan.sqlite.dao'
  16. targetGenDir 'src/main/java'
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. }
  25. dependencies {
  26. implementation fileTree(dir: 'libs', include: ['*.jar'])
  27. implementation "com.android.support:appcompat-v7:$rootProject.androidSupportVersion"
  28. testImplementation 'junit:junit:4.12'
  29. // androidTestCompile('com.android.support.test.espresso:espresso-core:3.0.1', {
  30. // exclude group: 'com.android.support', module: 'support-annotations'
  31. // })
  32. //数据库依赖
  33. implementation 'org.greenrobot:greendao-generator:3.2.2'
  34. implementation 'org.greenrobot:greendao:3.2.2'
  35. implementation 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.0.2'
  36. }