build.gradle 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 28
  4. buildToolsVersion '27.0.3'
  5. defaultConfig {
  6. minSdkVersion 19
  7. targetSdkVersion 28
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. }
  19. dependencies {
  20. implementation fileTree(include: ['*.jar'], dir: 'libs')
  21. androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
  22. exclude group: 'com.android.support', module: 'support-annotations'
  23. })
  24. api 'com.android.support:appcompat-v7:28.0.0'
  25. implementation 'com.android.support:support-v4:28.0.0'
  26. androidTestImplementation 'junit:junit:4.12'
  27. }
  28. ext {
  29. PUBLISH_GROUP_ID = 'cn.yipianfengye.android'
  30. PUBLISH_ARTIFACT_ID = 'zxing-library'
  31. PUBLISH_VERSION = '2.2'
  32. }
  33. //apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle'