build.gradle 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. apply plugin: 'com.android.library'
  2. //apply plugin: 'com.jakewharton.butterknife'
  3. android {
  4. compileSdkVersion 28
  5. useLibrary 'org.apache.http.legacy'
  6. defaultConfig {
  7. minSdkVersion 16
  8. targetSdkVersion 28
  9. versionCode 1
  10. versionName "1.0"
  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. compileOptions {
  20. sourceCompatibility = 1.8
  21. targetCompatibility = 1.8
  22. }
  23. buildToolsVersion = '28.0.3'
  24. }
  25. //repositories {
  26. // flatDir {
  27. // dirs 'libs'
  28. // }
  29. //}
  30. configurations.all {
  31. resolutionStrategy.eachDependency { DependencyResolveDetails details ->
  32. def requested = details.requested
  33. if (requested.group == 'com.android.support') {
  34. if (!requested.name.startsWith("multidex")) {
  35. details.useVersion '28.0.0'
  36. }
  37. }
  38. }
  39. }
  40. dependencies {
  41. compileOnly fileTree(include: ['uniapp-v8-release.aar'], dir: '../app/libs')
  42. // compileOnly fileTree(dir: '../app/libs', include: ['android-smartband-sdk-sxrblejy2library-release.aar'])
  43. // compileOnly fileTree(dir: '../app/libs', include: ['android-smartband-sdk-sxrblejy2aidl-release.aar'])
  44. compileOnly "com.android.support:recyclerview-v7:28.0.0"
  45. compileOnly "com.android.support:support-v4:28.0.0"
  46. compileOnly "com.android.support:appcompat-v7:28.0.0"
  47. compileOnly 'com.alibaba:fastjson:1.2.66'
  48. //squareup公司的HTTP请求框架,基于OKHTTP的封装,下面两个是gson解析器和rx2的适配器
  49. // implementation 'com.squareup.retrofit2:retrofit:2.5.0'
  50. // implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
  51. // implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0
  52. // implementation 'com.jakewharton:butterknife:9.0.0'
  53. // annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0'
  54. /*implementation 'com.android.support:appcompat-v7:28.0.0'
  55. testImplementation 'junit:junit:4.12'
  56. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  57. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'*/
  58. }