build.gradle 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 fileTree(include: ['*.jar'], dir: 'libs')
  28. testCompile 'junit:junit:4.12'
  29. compile 'com.android.support:support-v4:23.4.0'
  30. compile 'org.greenrobot:greendao:3.2.2'
  31. }
  32. // uploadArchive only arr and eclipse
  33. //apply from: "https://github.com/sinlov/Gradle_Zoo/raw/master/android-local/local-archives-only-arr-eclipse.gradle"