build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 24
  4. buildToolsVersion "25.0.0"
  5. defaultConfig {
  6. minSdkVersion 9
  7. targetSdkVersion 24
  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. compile fileTree(include: ['*.jar'], dir: 'libs')
  21. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  22. exclude group: 'com.android.support', module: 'support-annotations'
  23. })
  24. compile files('libs/zxing.jar')
  25. compile 'com.android.support:appcompat-v7:24.2.1'
  26. testCompile 'junit:junit:4.12'
  27. }
  28. ext {
  29. PUBLISH_GROUP_ID = 'cn.yipianfengye.android'
  30. PUBLISH_ARTIFACT_ID = 'zxing-library'
  31. PUBLISH_VERSION = '1.9'
  32. }
  33. //apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle'