build.gradle 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 28
  4. defaultConfig {
  5. applicationId "com.haochuan.hciptvbasic"
  6. minSdkVersion 19
  7. targetSdkVersion 28
  8. versionCode 1
  9. versionName "1.0.1"
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. ndk {
  12. //APP的build.gradle设置支持的SO库架构
  13. abiFilters 'armeabi', 'armeabi-v7a', 'x86'
  14. }
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. buildConfigField "Boolean", "isDebug", "false" //app全局是否调试,发布版本不要开启
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. debug {
  23. buildConfigField "Boolean", "isDebug", "true" //app全局是否调试,调试版本开启
  24. }
  25. }
  26. compileOptions {
  27. sourceCompatibility 'VERSION_1_8'
  28. targetCompatibility 'VERSION_1_8'
  29. }
  30. sourceSets {
  31. main {
  32. jniLibs.srcDirs = ['libs']
  33. }
  34. }
  35. // Gradle automatically adds 'android.test.runner' as a dependency.
  36. useLibrary 'android.test.runner'
  37. useLibrary 'android.test.base'
  38. useLibrary 'android.test.mock'
  39. }
  40. dependencies {
  41. implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
  42. implementation 'com.android.support:appcompat-v7:28.0.0'
  43. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  44. implementation 'androidx.appcompat:appcompat:1.0.2'
  45. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  46. testImplementation 'junit:junit:4.12'
  47. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  48. // Core library
  49. androidTestImplementation 'androidx.test:core:1.0.0'
  50. // AndroidJUnitRunner and JUnit Rules
  51. androidTestImplementation 'androidx.test:runner:1.1.0'
  52. androidTestImplementation 'androidx.test:rules:1.1.0'
  53. // Assertions
  54. androidTestImplementation 'androidx.test.ext:junit:1.0.0'
  55. androidTestImplementation 'androidx.test.ext:truth:1.0.0'
  56. androidTestImplementation 'com.google.truth:truth:0.42'
  57. // Espresso dependencies
  58. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
  59. androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.1.0'
  60. androidTestImplementation 'androidx.test.espresso:espresso-intents:3.1.0'
  61. androidTestImplementation 'androidx.test.espresso:espresso-accessibility:3.1.0'
  62. androidTestImplementation 'androidx.test.espresso:espresso-web:3.1.0'
  63. androidTestImplementation 'androidx.test.espresso.idling:idling-concurrent:3.1.0'
  64. // The following Espresso dependency can be either "implementation"
  65. // or "androidTestImplementation", depending on whether you want the
  66. // dependency to appear on your APK's compile classpath or the test APK
  67. // classpath.
  68. androidTestImplementation 'androidx.test.espresso:espresso-idling-resource:3.1.0'
  69. implementation 'com.shuyu:GSYVideoPlayer:7.0.2'
  70. implementation 'com.yanzhenjie.nohttp:nohttp:1.1.11'
  71. implementation 'com.liulishuo.filedownloader:library:1.7.6'
  72. }