build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 28
  4. defaultConfig {
  5. applicationId "com.mylove.okhttp"
  6. minSdkVersion 15
  7. targetSdkVersion 28
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. debug {
  14. buildConfigField "boolean", "LOG_DEBUG", "true"
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  17. }
  18. release {
  19. buildConfigField "boolean", "LOG_DEBUG", "false"
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. }
  25. dependencies {
  26. implementation fileTree(include: ['*.jar'], dir: 'libs')
  27. implementation 'com.android.support:appcompat-v7:28.0.0-rc02'
  28. testImplementation 'junit:junit:4.12'
  29. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  30. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  31. implementation project(':okhttplib')
  32. implementation 'com.yanyi.benyanyi:loglib:1.0.0'
  33. implementation 'com.yanyi.benyanyi:permissionlib:1.0.1'
  34. }