apply plugin: 'com.android.application' apply plugin: 'com.huawei.agconnect' // 统一排除外部引入的 zip4j,避免与 DCUniMPSDK AAR 内置类重复 configurations.all { exclude group: 'net.lingala.zip4j', module: 'zip4j' } //必须配置 def mfph = [ //包名 "apk.applicationId" : "cn.shangyu.gdxzExpert", ] android { namespace 'cn.shangyu.gdxzExpert' signingConfigs { release { keyAlias 'gdxzdoctor_key' keyPassword 'password' storeFile file('D:/projects/key/gdxzdoctor_key.key.keystore') storePassword 'password' } } compileSdkVersion 35 buildToolsVersion "35.0.0" defaultConfig { applicationId "cn.shangyu.gdxzExpert" minSdkVersion 21 targetSdkVersion 34 versionCode 133 versionName "4.1.6" testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' multiDexEnabled true ndk { // abiFilters "armeabi", "armeabi-v7a", "x86" , "arm64-v8a" // abiFilters "arm64-v8a" abiFilters 'x86_64','arm64-v8a' //不支持armeabi 64位 // abiFilters "armeabi", "armeabi-v7a", "x86" , "arm64-v8a"// 64+32 混合 } signingConfig signingConfigs.release manifestPlaceholders = mfph } aaptOptions { additionalParameters '--auto-add-overlay' //noCompress 'foo', 'bar' ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~" } compileOptions { // sourceCompatibility 1.8 // targetCompatibility 1.8 sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } dexOptions { incremental true preDexLibraries false jumboMode true javaMaxHeapSize "6g" } 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 } packagingOptions{ pickFirst 'lib/armeabi-v7a/libc++_shared.so' pickFirst 'lib/arm64-v8a/libc++_shared.so' pickFirst 'lib/x86/libc++_shared.so' pickFirst 'lib/x86_64/libc++_shared.so' } sourceSets { main { jniLibs.srcDirs = ['libs'] } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { signingConfig signingConfigs.release } } useLibrary 'org.apache.http.legacy' productFlavors { } // AGP 8.0+ 需要显式启用 buildConfig buildFeatures { buildConfig = true } } dependencies { implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs') implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation project(path: ':pager-bottom-tab-strip') implementation project(path: ':zbarlibary') implementation project(path: ':autosize') // 投屏sdk implementation files("libs/wx-commonlib-1.0.1.aar") implementation files("libs/wx-dlnasdk-1.1.5.aar") implementation files("libs/wx-dlnasender-1.1.5.aar") implementation files("libs/wx-jettylib-1.0.1.aar") testImplementation 'junit:junit:4.12' androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', { exclude group: 'com.android.support', module: 'support-annotations' }) implementation files('libs/afinal_0.5.1_bin.jar') implementation files('libs/classes.jar') implementation files('libs/httpmime-4.1.3.jar') implementation files('libs/Msc.jar') implementation files('libs/pinyin4j-2.5.0.jar') implementation files('libs/Sunflower.jar') implementation files('libs/universal-image-loader-1.9.4-with-sources.jar') implementation files('libs/xUtils-2.6.14.jar') implementation project(path: ':uikit') implementation project(path: ':selector') //华为推送 implementation 'com.huawei.hms:push:6.5.0.300' implementation ('com.github.barteksc:android-pdf-viewer:3.1.0-beta.1') { exclude group: 'com.android.support' } implementation 'com.github.dfqin:grantor:2.1.0' implementation files('libs/commons-lang-2.6.jar') implementation 'androidx.annotation:annotation:1.0.0' implementation 'androidx.multidex:multidex:2.0.0' implementation 'net.polyv.android:polyvPlayer:2.18.2'//SDK核心包 implementation 'net.polyv.android:polyvModuleABI:1.7.6'//SDK核心包 implementation 'net.polyv.android:polyvDownload:2.18.2'//SDK下载功能 implementation 'net.polyv.android:polyvUpload:2.3.3'//SDK上传功能 implementation 'de.hdodenhof:circleimageview:2.2.0' implementation 'com.daimajia.swipelayout:library:1.2.0@aar' implementation 'net.polyv.android:polyvGif:2.2.2'//demo中课程讨论区显示的内容里用到的包 implementation 'net.polyv.android:polyvSub:2.17.0'//弹幕、截图功能中使用 implementation 'de.greenrobot:eventbus:3.0.0-beta1' implementation 'androidx.recyclerview:recyclerview:1.0.0' implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.appcompat:appcompat:1.0.0' implementation 'com.pingxx:pingpp-android:2.3.5' // (Ping++ 标准版 SDK) 必须添加 implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.5.8' // 使用微信支付时添加,具体版本参考微信官方文档或者 jcenter implementation 'com.pingxx:pingpp-android-alipay:15.7.4' // 使用支付宝时添加(bu包含 UTDID) //压缩图片 implementation 'top.zibin:Luban:1.1.8' // //数据库 implementation 'net.zetetic:android-database-sqlcipher:3.5.9' //精品课评论刷新 implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3' implementation 'com.scwang.smart:refresh-footer-classics:2.0.3' // 友盟SDK implementation 'com.umeng.umsdk:common:9.6.7'// 必选 implementation 'com.umeng.umsdk:asms:1.8.2'// 必选 implementation 'com.umeng.umsdk:share-core:7.2.0'//分享核心库,必选 implementation 'com.umeng.umsdk:share-board:7.2.0'//分享面板功能,可选 implementation 'com.umeng.umsdk:share-wx:7.1.6' //微信完整版 implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.7.9'//微信官方依赖库,必选 implementation 'com.umeng.umsdk:share-sina:7.1.6'//新浪微博完整版 // implementation 'com.sina.weibo.sdk:core:10.10.0:openDefaultRelease@aar'//新浪微博官方SDK依赖库,必选,如在线集成失败请本地下载离线包https://counsel.umeng.com/api/activity/download?fileName=activity/67/openDefault-10.10.0.aar //沉浸式 // 基础依赖包,必须要依赖 implementation 'com.gyf.immersionbar:immersionbar:3.0.0' // fragment快速实现(可选) implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0' //androidX 版本使用下面的依赖轮播图 implementation 'com.github.xiaohaibin:XBanner:androidx_v1.2.1' //宽高比以及圆角 implementation 'com.github.1993hzw:Androids:1.3' //Recyclerview + 滚动条 implementation 'com.github.zaaach:TransformersLayout:1.0.8' //跑马灯 implementation 'com.gongwen:marqueelibrary:1.1.3' //友盟Push依赖 api ('com.umeng.umsdk:push:6.6.3') { exclude group: 'com.umeng.umsdk', module: 'utdid' exclude group: 'com.umeng.umsdk', module: 'alicloud-httpdns' exclude group: 'com.umeng.umsdk', module: 'alicloud-utils' exclude group: 'com.umeng.umsdk', module: 'alicloud_beacon' } api 'com.umeng.umsdk:huawei-umengaccs:1.3.6' //友盟号码一键登录 implementation 'com.umeng.umsdk:uverify:2.6.1'// 必选 implementation 'com.umeng.umsdk:uverify-main:2.1.4'// 必选 implementation 'com.umeng.umsdk:uverify-logger:2.1.4'// 必选 implementation 'com.umeng.umsdk:uverify-crashshield:2.1.4'// 必选 implementation 'com.android.volley:volley:1.2.1' // 基础功能 (必需) implementation "com.netease.nimlib:basesdk:9.6.3" // 聊天室需要 implementation "com.netease.nimlib:chatroom:9.6.3" // 通过云信来集成小米等厂商推送需要 implementation "com.netease.nimlib:push:9.6.3" // 超大群需要 implementation "com.netease.nimlib:superteam:9.6.2" // 全文检索插件 implementation "com.netease.nimlib:lucene:9.6.3" //以下依赖都需要添加 implementation 'com.google.code.gson:gson:2.6.2' implementation 'com.android.support:support-annotations:28.0.0' implementation 'commons-codec:commons-codec:1.6' implementation 'com.binioter:guideview:1.0.0' //汉字转拼音 implementation 'com.github.promeg:tinypinyin:2.0.3' // TinyPinyin核心包,约80KB implementation 'com.github.promeg:tinypinyin-lexicons-android-cncity:2.0.3' // 可选,适用于Android的中国地区词典 implementation 'com.github.promeg:tinypinyin-lexicons-java-cncity:2.0.3' // 可选,适用于Java的中国地区词典 implementation 'com.zhy:okhttputils:2.6.2'//okhttp implementation 'com.squareup.okhttp3:okhttp:3.9.0' //弹窗 implementation 'com.github.getActivity:EasyWindow:10.3' //图表 implementation 'com.github.AAChartModel:AAChartCore:7.2.0' //进度条 implementation 'com.github.zhouzhuo810:ZzHorizontalProgressBar:1.1.1' //日期选择器 implementation 'com.github.gzu-liyujiang.AndroidPicker:WheelPicker:4.1.13' //uniapp implementation 'androidx.recyclerview:recyclerview:1.0.0' //必须集成,android 自带recyclerview支持 implementation 'androidx.legacy:legacy-support-v4:1.0.0' //必须集成,androidx support支持 implementation 'androidx.appcompat:appcompat:1.0.0' //必须集成,androidx appcompat支持 implementation 'com.alibaba:fastjson:1.2.83' //必须集成,fastjson功能需要 implementation 'com.facebook.fresco:fresco:2.5.0'//必须集成,图片加载需要 implementation 'com.facebook.fresco:animated-gif:2.5.0'//必须集成,图片加载需要 implementation 'androidx.webkit:webkit:1.5.0' //4.45版本之后 必须集成,用来支持暗黑模式 implementation 'com.github.bumptech.glide:glide:4.1.1'//必须集成,图片加载需要 // implementation 'com.github.bumptech.glide:glide:4.9.0' // 重要:避免部分设备可能卡死的问题 // annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0' implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.7.9' }