apply plugin: 'com.android.application' android { compileSdkVersion 33 defaultConfig { applicationId 'com.github.tvbox.osc' targetSdkVersion 28 versionCode 1 versionName '1.0.0' multiDexEnabled true //设置room的Schema的位置 javaCompileOptions { annotationProcessorOptions { arguments = ["room.schemaLocation": "$projectDir/schemas".toString()] } } } packagingOptions { exclude 'META-INF/DEPENDENCIES' } flavorDimensions "mode" productFlavors { normal { dimension "mode" minSdkVersion 16 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } python { dimension "mode" // 配置Python打包特有的设置(如有需要) minSdkVersion 19 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro', 'proguard-python.pro' } } buildTypes { debug { minifyEnabled false ndk { //noinspection ChromeOsAbiSupport abiFilters 'armeabi-v7a' } } release { minifyEnabled true ndk { //noinspection ChromeOsAbiSupport abiFilters 'armeabi-v7a' } } } applicationVariants.configureEach { variant -> variant.outputs.configureEach { output -> def flavorNames = variant.productFlavors.collect { it.name == "normal" ? "java" : it.name }.join('-') // 构建自定义文件名 def fileName = "TVBox_${variant.buildType.name}-${flavorNames}.apk" outputFileName = fileName } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } lintOptions { checkReleaseBuilds false abortOnError false } // dexOptions { // javaMaxHeapSize "4g" // additionalParameters += '--multi-dex' // additionalParameters += '--set-max-idx-number=48000' // additionalParameters += '--minimal-main-dex' // } } repositories { } dependencies { api fileTree(dir: "libs", include: ["*.jar","*.aar"]) implementation 'org.nanohttpd:nanohttpd:2.3.1' implementation 'com.google.zxing:core:3.3.0' implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' implementation 'androidx.recyclerview:recyclerview:1.2.1' // implementation files('libs/thunder.jar') // implementation files('libs/commons-lang3-3.12.0.jar') implementation 'com.squareup.okhttp3:okhttp:3.12.11' annotationProcessor 'androidx.room:room-compiler:2.3.0' implementation 'androidx.room:room-runtime:2.3.0' implementation 'androidx.multidex:multidex:2.0.1' implementation 'com.squareup.okio:okio:2.8.0' implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.45-androidx' implementation 'com.kingja.loadsir:loadsir:1.3.8' implementation 'com.google.code.gson:gson:2.8.7' implementation 'com.squareup.picasso:picasso:2.71828' implementation 'me.jessyan:autosize:1.2.1' implementation('com.thoughtworks.xstream:xstream:1.4.15') { exclude group: 'xmlpull', module: 'xmlpull' } implementation 'org.greenrobot:eventbus:3.2.0' implementation 'com.orhanobut:hawk:2.0.1' implementation project(":player") implementation project(":quickjs") pythonImplementation project(":pyramid") implementation 'com.lzy.net:okgo:3.0.4' // implementation 'com.tencent.bugly:crashreport_upgrade:latest.release' implementation 'com.owen:tv-recyclerview:3.0.0' implementation 'com.github.getActivity:XXPermissions:13.6' implementation 'org.jsoup:jsoup:1.14.1' implementation 'com.github.hedzr:android-file-chooser:v1.2.0-final' implementation 'commons-io:commons-io:2.11.0' implementation 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3' //支持http3 implementation ('com.google.net.cronet:cronet-okhttp:0.1.0') // implementation 'com.google.android.gms:play-services-cronet:18.0.1' implementation ('org.chromium.net:cronet-embedded:101.4951.41') implementation 'org.brotli:dec:0.1.2' }