apply plugin: 'com.android.application' android { compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.unionmed.unionmedtv" minSdkVersion 21 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { // 设置支持的SO库架构 // abiFilters 'armeabi-v7a' lrj:替换成底下的代码,才支持模拟器 abiFilters "armeabi", "armeabi-v7a", "native-lib", "arm64-v8a", "x86", "x86_64" /*armeabi-v7a: 第7代及以上的 ARM 处理器。2011年以后生产的大部分Android设备都使用它. arm64-v8a: 第8代、64位ARM处理器,很少设备,三星 Galaxy S6是其中之一。 armeabi: 第5代、第6代的ARM处理器,早期的手机用的比较多。 x86: 平板、模拟器用得比较多。 x86_64: 64位的平板。*/ } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } lintOptions { checkReleaseBuilds false // Or, if you prefer, you can continue to check for errors in release builds, // but continue the build even when errors are found: abortOnError false } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } packagingOptions { pickFirst 'lib/x86/libc++_shared.so' pickFirst 'lib/arm64-v8a/libc++_shared.so' pickFirst 'lib/armeabi-v7a/libc++_shared.so' pickFirst 'lib/x86_64/libc++_shared.so' } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(':library-player') implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.leanback:leanback:1.0.0' implementation 'com.google.code.gson:gson:2.8.5' implementation("com.github.bumptech.glide:glide:4.9.0") { exclude group: "com.android.support" } implementation 'me.jessyan:autosize:1.1.2' implementation 'com.tencent.bugly:crashreport:3.1.0' implementation 'com.tencent.bugly:nativecrashreport:3.7.1' implementation 'androidx.legacy:legacy-support-v4:1.0.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' // 网络请求框架:https://github.com/getActivity/EasyHttp implementation 'com.github.getActivity:EasyHttp:11.2' implementation 'com.squareup.okhttp3:okhttp:3.12.13' implementation 'com.google.code.gson:gson:2.8.5' implementation 'com.github.getActivity:GsonFactory:6.2' implementation 'com.github.li-xiaojun:XPopup:2.9.19' implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.recyclerview:recyclerview:1.2.1' //工具类 implementation 'com.blankj:utilcodex:1.30.6' //微信开源项目,替代SP implementation 'com.tencent:mmkv:1.0.22' //拼音库 implementation 'com.github.SilenceDut:jpinyin:v1.0' // 权限请求框架:https://github.com/getActivity/XXPermissions implementation 'com.github.getActivity:XXPermissions:16.5' //BaseRecyclerViewAdapterHelper implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.11' //下拉刷新 implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3' //核心必须依赖 implementation 'com.scwang.smart:refresh-header-classics:2.0.3' //经典刷新头 implementation 'com.google.android.material:material:1.3.0' //https://github.com/donkingliang/LabelsView implementation 'com.github.donkingliang:LabelsView:1.6.5' // https://github.com/JavaNoober/BackgroundLibrary //布局直接用shape selector等属性 implementation 'com.github.JavaNoober.BackgroundLibrary:libraryx:1.7.2' //融云IM 5.2.1.55 api project(path: ':imlib') api project(path: ':calllib') compile 'com.github.lmiot:LoadDialog:V2.1' }