build.gradle 1.0 KB

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