build.gradle 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 25
  4. buildToolsVersion "26.0.0"
  5. defaultConfig {
  6. minSdkVersion 15
  7. targetSdkVersion 25
  8. versionCode 1
  9. versionName "1.0"
  10. multiDexEnabled true
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. packagingOptions {
  20. //打包时的相关配置
  21. exclude 'META-INF/DEPENDENCIES'
  22. exclude 'META-INF/NOTICE'
  23. exclude 'META-INF/LICENSE'
  24. exclude 'META-INF/LICENSE.txt'
  25. exclude 'META-INF/NOTICE.txt'
  26. }
  27. dexOptions {
  28. javaMaxHeapSize "4g"
  29. }
  30. }
  31. repositories {
  32. mavenCentral()
  33. flatDir {
  34. dirs 'libs'
  35. }
  36. }
  37. dependencies {
  38. compile fileTree(dir: 'libs', include: ['*.jar'])
  39. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  40. exclude group: 'com.android.support', module: 'support-annotations'
  41. })
  42. compile 'com.android.support:appcompat-v7:25.3.1'
  43. testCompile 'junit:junit:4.12'
  44. compile(name: 'peb-lib', ext: 'aar')
  45. compile 'com.android.support:cardview-v7:25.3.1'
  46. compile 'com.android.support:recyclerview-v7:25.3.1'
  47. compile 'com.squareup.picasso:picasso:2.4.0'
  48. compile 'com.squareup.okhttp:okhttp:2.4.0'
  49. compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
  50. compile 'com.github.bumptech.glide:glide:3.5.2'
  51. compile 'com.squareup.retrofit2:retrofit:2.3.0'
  52. compile 'com.squareup.retrofit2:converter-gson:2.3.0'
  53. compile 'com.google.android.gms:play-services-auth:11.8.0'
  54. compile files('libs/AllPaySDK.jar')
  55. }