apply plugin: 'com.android.application' apply plugin: 'org.greenrobot.greendao' //apply plugin: 'kotlin-android' android { namespace "com.yr.videoplayer" //添加这两行 aaptOptions.cruncherEnabled = false // aaptOptions.useNewCruncher = false // 签名配置 signingConfigs { debug { keyAlias rootProject.ext.base["signAlias"] keyPassword rootProject.ext.base["signPassword"] storeFile file(rootProject.ext.base["signFile"]) storePassword rootProject.ext.base["signPassword"] } release { keyAlias rootProject.ext.base["signAlias"] keyPassword rootProject.ext.base["signPassword"] storeFile file(rootProject.ext.base["signFile"]) storePassword rootProject.ext.base["signPassword"] } } compileSdkVersion 31 defaultConfig { applicationId rootProject.ext.base.applicationId minSdkVersion 21 targetSdkVersion 31 multiDexEnabled true versionCode rootProject.ext.base.versionCode versionName rootProject.ext.base.versionName resConfigs "zh" } buildTypes { release { apply from: rootProject.file('android_data/flavors.gradle') } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } sourceSets { main { jniLibs.srcDirs = ['libs'] assets.srcDirs += ['../android_data/csj_config'] // res.srcDirs += ['../resource/logo', '../resource/module/视频A001'] } } } greendao { schemaVersion 1 //当前数据库版本 // 生成数据库文件的目录 targetGenDir 'src/main/java' // 生成的数据库相关文件的包名 daoPackage 'com.yr.videoplayer.db' } dependencies { implementation fileTree(include: ['*.aar', '*.jar'], dir: 'libs') implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'com.google.android.material:material:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' testImplementation 'junit:junit:4.+' //---------- 友盟 start ---------- // 下面各SDK根据宿主App是否使用相关业务按需引入。 // 友盟统计SDK implementation 'com.umeng.umsdk:common:9.6.5'// 必选 implementation 'com.umeng.umsdk:asms:1.4.1'// 必选 implementation 'com.umeng.umsdk:apm:1.7.0' // 错误分析模块改为独立库,看crash和性能数据请一定集成 implementation 'com.umeng.umsdk:abtest:1.0.0'//使用U-App中ABTest能力,可选 //---------- 友盟 end ---------- api 'com.geyifeng.immersionbar:immersionbar:3.2.2' //网络请求 implementation 'com.squareup.okhttp3:okhttp:3.4.2' implementation 'com.squareup.okhttp3:logging-interceptor:3.5.0' implementation 'com.google.code.gson:gson:2.9.0' implementation 'com.alibaba:fastjson:1.2.55' // implementation 'io.github.youth5201314:banner:2.2.2' // implementation 'com.github.yujinzhao123:DoubleHeadedDragonBar:1.0.4' implementation 'androidx.activity:activity:1.3.0' //进度条 implementation 'com.daimajia.numberprogressbar:library:1.4@aar' //播放器(无UI交互) implementation 'com.github.hty527.iPlayer:iplayer:2.1.26.1' //SDK默认UI交互组件 implementation 'com.github.hty527.iPlayer:widget:2.1.26.1' //ijk音视频解码器 implementation 'com.github.hty527.iPlayer:ijk:2.1.26.1' //exo音视频解码器 implementation 'com.github.hty527.iPlayer:exo:2.1.26.1' //音乐播放器 implementation 'com.github.hty527.iMusic:music-player:1.2.0' //视频播放器 implementation 'com.github.hty527.iMusic:video-player:1.2.0' implementation 'io.reactivex:rxjava:1.0.14' implementation 'io.reactivex:rxandroid:1.0.1' implementation 'com.github.bumptech.glide:glide:3.7.0' implementation 'com.google.android:flexbox:0.3.1' implementation 'com.github.bumptech.glide:glide:4.14.1' annotationProcessor 'com.github.bumptech.glide:compiler:4.14.1' // Glide图形转换工具 implementation 'jp.wasabeef:glide-transformations:2.0.1' //BasePopup implementation 'io.github.razerdp:BasePopup:3.2.1' //文件管理 implementation 'com.jiajunhui.xapp.medialoader:medialoader:1.2.1' //数据库 implementation 'org.greenrobot:greendao:3.3.0' implementation project(':BaseLibrary') implementation project(':BookReader') // implementation project(':videocut') implementation project(':wallpaperlibrary') } /* apply plugin: 'mediation-auto-adapter' mediationAutoAdapter { //自动适配adn 所有adn adapter,默认值为true,如果为false脚本功能全部关闭 autoUpdate true //如果不想全部自动适配,可选择此项,默认值为空[],可以不填写 //如果autoUpdate设置成false,此项不生效,不会自动适配adn adapter //如果autoUpdate设置成true,autoUpdateAdn配置了adn,则生效配置的adn。 //autoUpdateAdn没有配置adn,自动适配所有的adn autoUpdateAdn = ["gdt"] }*/