build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion rootProject.ext.compileSdkVersion
  4. buildToolsVersion rootProject.ext.buildToolsVersion
  5. defaultConfig {
  6. minSdkVersion rootProject.ext.minSdkVersion
  7. targetSdkVersion rootProject.ext.targetSdkVersion
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. }
  12. compileOptions {
  13. sourceCompatibility rootProject.ext.appSourceCompatibility
  14. targetCompatibility rootProject.ext.appTargetCompatibility
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled true
  19. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  20. }
  21. debug {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. }
  27. dependencies {
  28. implementation fileTree(dir: 'libs', include: ['*.jar'])
  29. implementation("com.android.support:appcompat-v7:${support}")
  30. implementation("com.android.support:support-v4:${support}")
  31. implementation("com.android.support:design:${support}")
  32. implementation("com.android.support:recyclerview-v7:${support}")
  33. implementation("com.android.support.constraint:constraint-layout:${constraint}")
  34. implementation "com.github.bumptech.glide:glide:${glide}"//glide
  35. annotationProcessor "com.github.bumptech.glide:compiler:${glide}"//glide
  36. testImplementation 'junit:junit:4.12'
  37. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  38. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  39. }