1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- apply plugin: 'com.android.application'
- android {
- compileSdkVersion 28
- defaultConfig {
- applicationId "com.haochuan.hciptvbasic"
- minSdkVersion 19
- targetSdkVersion 28
- versionCode 1
- versionName "1.0.1"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- ndk {
- //APP的build.gradle设置支持的SO库架构
- abiFilters 'armeabi', 'armeabi-v7a', 'x86'
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- buildConfigField "Boolean", "isDebug", "false" //app全局是否调试,发布版本不要开启
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- debug {
- buildConfigField "Boolean", "isDebug", "true" //app全局是否调试,调试版本开启
- }
- }
- compileOptions {
- sourceCompatibility 'VERSION_1_8'
- targetCompatibility 'VERSION_1_8'
- }
- sourceSets {
- main {
- jniLibs.srcDirs = ['libs']
- }
- }
- // Gradle automatically adds 'android.test.runner' as a dependency.
- useLibrary 'android.test.runner'
- useLibrary 'android.test.base'
- useLibrary 'android.test.mock'
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
- implementation 'com.android.support:appcompat-v7:28.0.0'
- implementation 'com.android.support.constraint:constraint-layout:1.1.3'
- implementation 'androidx.appcompat:appcompat:1.0.2'
- implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- // Core library
- androidTestImplementation 'androidx.test:core:1.0.0'
- // AndroidJUnitRunner and JUnit Rules
- androidTestImplementation 'androidx.test:runner:1.1.0'
- androidTestImplementation 'androidx.test:rules:1.1.0'
- // Assertions
- androidTestImplementation 'androidx.test.ext:junit:1.0.0'
- androidTestImplementation 'androidx.test.ext:truth:1.0.0'
- androidTestImplementation 'com.google.truth:truth:0.42'
- // Espresso dependencies
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
- androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.1.0'
- androidTestImplementation 'androidx.test.espresso:espresso-intents:3.1.0'
- androidTestImplementation 'androidx.test.espresso:espresso-accessibility:3.1.0'
- androidTestImplementation 'androidx.test.espresso:espresso-web:3.1.0'
- androidTestImplementation 'androidx.test.espresso.idling:idling-concurrent:3.1.0'
- // The following Espresso dependency can be either "implementation"
- // or "androidTestImplementation", depending on whether you want the
- // dependency to appear on your APK's compile classpath or the test APK
- // classpath.
- androidTestImplementation 'androidx.test.espresso:espresso-idling-resource:3.1.0'
- implementation 'com.shuyu:GSYVideoPlayer:7.0.2'
- implementation 'com.yanzhenjie.nohttp:nohttp:1.1.11'
- implementation 'com.liulishuo.filedownloader:library:1.7.6'
- }
|