build.gradle 937 B

1234567891011121314151617181920212223242526272829303132
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'org.greenrobot.greendao'
  3. android {
  4. compileSdkVersion ANDROID_COMPILE_SDK_VERSION as int
  5. buildToolsVersion ANDROID_BUILD_TOOLS_VERSION
  6. defaultConfig {
  7. minSdkVersion ANDROID_MIN_SDK_VERSION as int
  8. targetSdkVersion ANDORID_TARGET_SDK_VERSION as int
  9. versionCode VERSION_CODE as int
  10. versionName VERSION_NAME
  11. }
  12. greendao {
  13. schemaVersion 2
  14. targetGenDir 'src/main/java'
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  20. }
  21. }
  22. }
  23. dependencies {
  24. compile 'com.android.support:support-v4:27.1.0'
  25. compile 'org.greenrobot:greendao:3.2.2'
  26. }
  27. // uploadArchive only arr and eclipse
  28. //apply from: "https://github.com/sinlov/Gradle_Zoo/raw/master/android-local/local-archives-only-arr-eclipse.gradle"