build.gradle 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 27
  4. defaultConfig {
  5. minSdkVersion 16
  6. targetSdkVersion 27
  7. versionCode 1
  8. versionName "1.0"
  9. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  15. }
  16. }
  17. }
  18. dependencies {
  19. implementation fileTree(include: ['*.jar'], dir: 'libs')
  20. implementation 'androidx.appcompat:appcompat:1.0.0'
  21. testImplementation 'junit:junit:4.12'
  22. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  23. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
  24. api 'com.lzy.net:okgo:3.0.4'
  25. //以下三个选择添加,okrx和okrx2不能同时使用
  26. api 'com.lzy.net:okrx2:2.0.2'
  27. api 'com.lzy.net:okserver:2.0.5'
  28. api 'com.google.code.gson:gson:2.8.2'
  29. api files('libs/fastjson-1.2.2.jar')
  30. }