build.gradle 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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"
  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. // Gradle automatically adds 'android.test.runner' as a dependency.
  31. useLibrary 'android.test.runner'
  32. useLibrary 'android.test.base'
  33. useLibrary 'android.test.mock'
  34. }
  35. dependencies {
  36. implementation fileTree(dir: 'libs', include: ['*.jar'])
  37. implementation 'com.android.support:appcompat-v7:28.0.0'
  38. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  39. implementation 'androidx.appcompat:appcompat:1.0.2'
  40. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  41. testImplementation 'junit:junit:4.12'
  42. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  43. // Core library
  44. androidTestImplementation 'androidx.test:core:1.0.0'
  45. // AndroidJUnitRunner and JUnit Rules
  46. androidTestImplementation 'androidx.test:runner:1.1.0'
  47. androidTestImplementation 'androidx.test:rules:1.1.0'
  48. // Assertions
  49. androidTestImplementation 'androidx.test.ext:junit:1.0.0'
  50. androidTestImplementation 'androidx.test.ext:truth:1.0.0'
  51. androidTestImplementation 'com.google.truth:truth:0.42'
  52. // Espresso dependencies
  53. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
  54. androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.1.0'
  55. androidTestImplementation 'androidx.test.espresso:espresso-intents:3.1.0'
  56. androidTestImplementation 'androidx.test.espresso:espresso-accessibility:3.1.0'
  57. androidTestImplementation 'androidx.test.espresso:espresso-web:3.1.0'
  58. androidTestImplementation 'androidx.test.espresso.idling:idling-concurrent:3.1.0'
  59. // The following Espresso dependency can be either "implementation"
  60. // or "androidTestImplementation", depending on whether you want the
  61. // dependency to appear on your APK's compile classpath or the test APK
  62. // classpath.
  63. androidTestImplementation 'androidx.test.espresso:espresso-idling-resource:3.1.0'
  64. implementation 'com.shuyu:GSYVideoPlayer:7.0.2'
  65. }