build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 22
  4. buildToolsVersion "22.0.1"
  5. defaultConfig {
  6. minSdkVersion 8
  7. targetSdkVersion 22
  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:22+'
  26. compile 'com.android.support:support-v4:22+'
  27. testCompile 'junit:junit:4.12'
  28. }
  29. ext {
  30. PUBLISH_GROUP_ID = 'cn.yipianfengye.android'
  31. PUBLISH_ARTIFACT_ID = 'zxing-library'
  32. PUBLISH_VERSION = '1.9'
  33. }
  34. //apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle'