build.gradle 985 B

1234567891011121314151617181920212223242526272829303132333435
  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. dexOptions {
  13. incremental true
  14. }
  15. greendao {
  16. schemaVersion 2
  17. targetGenDir 'src/main/java'
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. }
  26. dependencies {
  27. compile 'com.android.support:support-v4:27.0.2'
  28. compile 'org.greenrobot:greendao:3.2.2'
  29. }
  30. // uploadArchive only arr and eclipse
  31. //apply from: "https://github.com/sinlov/Gradle_Zoo/raw/master/android-local/local-archives-only-arr-eclipse.gradle"