You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ytdl-android/app/build.gradle

187 lines
6.8 KiB
Groovy

plugins {
id 'com.android.application'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' version '2.0.1'
id 'org.jetbrains.kotlin.android'
fixed webview ok button slightly improved listing of items if u have alot of items fixed app not enabling ok button in the cut screen if you change the TO text box only added force keyframes at cuts switch in the cut screen Added 3 dots in multiple download card. It will have the configure chips in a separate card. Each will have a callback that will update all items in multiple download fixed start end textboxes showing truncanted text in playlist select card add ability to start a download now and put the rest of the queue behind it Scrollbar handle shrinked depending on size. Made it same size Fixed Tapping the notification of the errored download leading to the running tab instead of errored Set different icon for terminal in share menu ignored extra command preference in backups of command templates made preference titles be multiline if they are too long if the preferred download type is command, the app will not bother fetching data beforehand fixed app not showing the entire interface when being in landscape hid format details in command type logs because they are useless fixed cookies import not working from external sources other than the app fixed app using continue button for a split second when there are no paused downloads added state in home screen so that it wont populate trending videos while its searching for an item implemented batch downloads in a single worker to avoid bogging down the system with many works fixed instagram status that have multiple videos just using the first video fixed monochrome icon not showing made yt-dlp auto update a choice in the settings fixed bilibili not working in normal mode fixed app overwriting files instead of adding (1) in the filename instead
3 years ago
id 'com.google.devtools.ksp'
3 years ago
id "org.jetbrains.kotlin.plugin.serialization" version "1.8.10"
}
4 years ago
def properties = new Properties()
3 years ago
def versionMajor = 1
def versionMinor = 6
3 years ago
def versionPatch = 6
def versionBuild = 3 // bump for dogfood builds, public betas, etc.
def versionExt = ""
if (versionBuild > 0){
3 years ago
versionExt = ".${versionBuild}-beta"
}
4 years ago
android {
3 years ago
namespace 'com.deniscerri.ytdlnis'
compileSdk 33
3 years ago
try {
def propertiesFile = rootProject.file("local.properties")
3 years ago
if(propertiesFile.text != ""){
properties.load(new FileInputStream(propertiesFile))
3 years ago
3 years ago
properties.load(new FileInputStream(propertiesFile))
signingConfigs {
debug {
storeFile file(properties["signingConfig.storeFile"])
storePassword properties["signingConfig.storePassword"]
keyAlias properties["signingConfig.keyAlias"]
keyPassword properties["signingConfig.keyPassword"]
}
3 years ago
}
}
}catch(IOException ignored){}
4 years ago
defaultConfig {
applicationId "com.deniscerri.ytdl"
3 years ago
minSdk 23
targetSdk 33
3 years ago
versionCode versionMajor * 1000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
versionName "${versionMajor}.${versionMinor}.${versionPatch}${versionExt}"
4 years ago
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
archivesBaseName = "YTDLnis-$versionName"
vectorDrawables {
useSupportLibrary true
}
fixed webview ok button slightly improved listing of items if u have alot of items fixed app not enabling ok button in the cut screen if you change the TO text box only added force keyframes at cuts switch in the cut screen Added 3 dots in multiple download card. It will have the configure chips in a separate card. Each will have a callback that will update all items in multiple download fixed start end textboxes showing truncanted text in playlist select card add ability to start a download now and put the rest of the queue behind it Scrollbar handle shrinked depending on size. Made it same size Fixed Tapping the notification of the errored download leading to the running tab instead of errored Set different icon for terminal in share menu ignored extra command preference in backups of command templates made preference titles be multiline if they are too long if the preferred download type is command, the app will not bother fetching data beforehand fixed app not showing the entire interface when being in landscape hid format details in command type logs because they are useless fixed cookies import not working from external sources other than the app fixed app using continue button for a split second when there are no paused downloads added state in home screen so that it wont populate trending videos while its searching for an item implemented batch downloads in a single worker to avoid bogging down the system with many works fixed instagram status that have multiple videos just using the first video fixed monochrome icon not showing made yt-dlp auto update a choice in the settings fixed bilibili not working in normal mode fixed app overwriting files instead of adding (1) in the filename instead
3 years ago
ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}
4 years ago
}
sourceSets {
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
}
4 years ago
buildTypes {
release {
3 years ago
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
debuggable false
4 years ago
signingConfig signingConfigs.debug
4 years ago
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
debuggable true
signingConfig signingConfigs.debug
}
4 years ago
}
3 years ago
fixed webview ok button slightly improved listing of items if u have alot of items fixed app not enabling ok button in the cut screen if you change the TO text box only added force keyframes at cuts switch in the cut screen Added 3 dots in multiple download card. It will have the configure chips in a separate card. Each will have a callback that will update all items in multiple download fixed start end textboxes showing truncanted text in playlist select card add ability to start a download now and put the rest of the queue behind it Scrollbar handle shrinked depending on size. Made it same size Fixed Tapping the notification of the errored download leading to the running tab instead of errored Set different icon for terminal in share menu ignored extra command preference in backups of command templates made preference titles be multiline if they are too long if the preferred download type is command, the app will not bother fetching data beforehand fixed app not showing the entire interface when being in landscape hid format details in command type logs because they are useless fixed cookies import not working from external sources other than the app fixed app using continue button for a split second when there are no paused downloads added state in home screen so that it wont populate trending videos while its searching for an item implemented batch downloads in a single worker to avoid bogging down the system with many works fixed instagram status that have multiple videos just using the first video fixed monochrome icon not showing made yt-dlp auto update a choice in the settings fixed bilibili not working in normal mode fixed app overwriting files instead of adding (1) in the filename instead
3 years ago
android.applicationVariants.configureEach { variant ->
3 years ago
variant.outputs.each { output ->
def baseAbiVersionCode = project.abiCodes.get(output.getFilter(com.android.build.OutputFile.ABI))
if (baseAbiVersionCode != null) {
output.versionCodeOverride = (100 * project.android.defaultConfig.versionCode) + baseAbiVersionCode
} else {
output.versionCodeOverride = 100 * project.android.defaultConfig.versionCode
}
}
}
4 years ago
buildFeatures {
viewBinding true
compose true
4 years ago
}
compileOptions {
3 years ago
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
4 years ago
}
kotlinOptions {
3 years ago
jvmTarget = '17'
}
4 years ago
splits {
abi {
enable true
reset()
include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
4 years ago
universalApk true
}
}
composeOptions {
kotlinCompilerExtensionVersion composeVer
}
4 years ago
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "com.github.yausername.youtubedl-android:library:$youtubedlAndroidVer"
implementation "com.github.yausername.youtubedl-android:ffmpeg:$youtubedlAndroidVer"
implementation "com.github.yausername.youtubedl-android:aria2c:$youtubedlAndroidVer"
4 years ago
implementation "androidx.appcompat:appcompat:$appCompatVer"
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation 'com.google.android.material:material:1.9.0-rc01'
4 years ago
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.3.1'
fixed webview ok button slightly improved listing of items if u have alot of items fixed app not enabling ok button in the cut screen if you change the TO text box only added force keyframes at cuts switch in the cut screen Added 3 dots in multiple download card. It will have the configure chips in a separate card. Each will have a callback that will update all items in multiple download fixed start end textboxes showing truncanted text in playlist select card add ability to start a download now and put the rest of the queue behind it Scrollbar handle shrinked depending on size. Made it same size Fixed Tapping the notification of the errored download leading to the running tab instead of errored Set different icon for terminal in share menu ignored extra command preference in backups of command templates made preference titles be multiline if they are too long if the preferred download type is command, the app will not bother fetching data beforehand fixed app not showing the entire interface when being in landscape hid format details in command type logs because they are useless fixed cookies import not working from external sources other than the app fixed app using continue button for a split second when there are no paused downloads added state in home screen so that it wont populate trending videos while its searching for an item implemented batch downloads in a single worker to avoid bogging down the system with many works fixed instagram status that have multiple videos just using the first video fixed monochrome icon not showing made yt-dlp auto update a choice in the settings fixed bilibili not working in normal mode fixed app overwriting files instead of adding (1) in the filename instead
3 years ago
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation "androidx.navigation:navigation-fragment-ktx:$navVer"
implementation "androidx.navigation:navigation-ui-ktx:$navVer"
implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.test.ext:junit-ktx:1.1.5'
4 years ago
testImplementation "junit:junit:$junitVer"
androidTestImplementation "junit:junit:$junitVer"
4 years ago
androidTestImplementation "androidx.test.ext:junit:$androidJunitVer"
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVer"
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
4 years ago
implementation "com.devbrackets.android:exomedia:4.3.0"
implementation("androidx.cardview:cardview:1.0.0")
4 years ago
implementation("com.squareup.picasso:picasso:2.71828")
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
implementation 'com.facebook.shimmer:shimmer:0.5.0'
4 years ago
implementation "androidx.work:work-runtime-ktx:$workVer"
implementation "androidx.room:room-runtime:2.5.2"
implementation "androidx.room:room-ktx:2.5.2"
fixed webview ok button slightly improved listing of items if u have alot of items fixed app not enabling ok button in the cut screen if you change the TO text box only added force keyframes at cuts switch in the cut screen Added 3 dots in multiple download card. It will have the configure chips in a separate card. Each will have a callback that will update all items in multiple download fixed start end textboxes showing truncanted text in playlist select card add ability to start a download now and put the rest of the queue behind it Scrollbar handle shrinked depending on size. Made it same size Fixed Tapping the notification of the errored download leading to the running tab instead of errored Set different icon for terminal in share menu ignored extra command preference in backups of command templates made preference titles be multiline if they are too long if the preferred download type is command, the app will not bother fetching data beforehand fixed app not showing the entire interface when being in landscape hid format details in command type logs because they are useless fixed cookies import not working from external sources other than the app fixed app using continue button for a split second when there are no paused downloads added state in home screen so that it wont populate trending videos while its searching for an item implemented batch downloads in a single worker to avoid bogging down the system with many works fixed instagram status that have multiple videos just using the first video fixed monochrome icon not showing made yt-dlp auto update a choice in the settings fixed bilibili not working in normal mode fixed app overwriting files instead of adding (1) in the filename instead
3 years ago
ksp "androidx.room:room-compiler:2.5.2"
implementation 'androidx.paging:paging-runtime-ktx:3.2.0'
implementation "androidx.room:room-paging:2.5.2"
androidTestImplementation "androidx.room:room-testing:2.5.2"
3 years ago
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
implementation "androidx.compose.runtime:runtime:$composeVer"
fixed webview ok button slightly improved listing of items if u have alot of items fixed app not enabling ok button in the cut screen if you change the TO text box only added force keyframes at cuts switch in the cut screen Added 3 dots in multiple download card. It will have the configure chips in a separate card. Each will have a callback that will update all items in multiple download fixed start end textboxes showing truncanted text in playlist select card add ability to start a download now and put the rest of the queue behind it Scrollbar handle shrinked depending on size. Made it same size Fixed Tapping the notification of the errored download leading to the running tab instead of errored Set different icon for terminal in share menu ignored extra command preference in backups of command templates made preference titles be multiline if they are too long if the preferred download type is command, the app will not bother fetching data beforehand fixed app not showing the entire interface when being in landscape hid format details in command type logs because they are useless fixed cookies import not working from external sources other than the app fixed app using continue button for a split second when there are no paused downloads added state in home screen so that it wont populate trending videos while its searching for an item implemented batch downloads in a single worker to avoid bogging down the system with many works fixed instagram status that have multiple videos just using the first video fixed monochrome icon not showing made yt-dlp auto update a choice in the settings fixed bilibili not working in normal mode fixed app overwriting files instead of adding (1) in the filename instead
3 years ago
androidTestImplementation 'com.google.truth:truth:1.1.5'
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutineVer"
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVer"
4 years ago
fixed webview ok button slightly improved listing of items if u have alot of items fixed app not enabling ok button in the cut screen if you change the TO text box only added force keyframes at cuts switch in the cut screen Added 3 dots in multiple download card. It will have the configure chips in a separate card. Each will have a callback that will update all items in multiple download fixed start end textboxes showing truncanted text in playlist select card add ability to start a download now and put the rest of the queue behind it Scrollbar handle shrinked depending on size. Made it same size Fixed Tapping the notification of the errored download leading to the running tab instead of errored Set different icon for terminal in share menu ignored extra command preference in backups of command templates made preference titles be multiline if they are too long if the preferred download type is command, the app will not bother fetching data beforehand fixed app not showing the entire interface when being in landscape hid format details in command type logs because they are useless fixed cookies import not working from external sources other than the app fixed app using continue button for a split second when there are no paused downloads added state in home screen so that it wont populate trending videos while its searching for an item implemented batch downloads in a single worker to avoid bogging down the system with many works fixed instagram status that have multiple videos just using the first video fixed monochrome icon not showing made yt-dlp auto update a choice in the settings fixed bilibili not working in normal mode fixed app overwriting files instead of adding (1) in the filename instead
3 years ago
implementation 'com.google.code.gson:gson:2.10.1'
4 years ago
implementation "com.squareup.okhttp3:okhttp:5.0.0-alpha.10"
4 years ago
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0'
implementation 'it.xabaras.android:recyclerview-swipedecorator:1.4'
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.6.1"
implementation "com.github.Irineu333:Highlight-KT:1.0.4"
// For media playback using ExoPlayer
implementation("androidx.media3:media3-exoplayer:$media3_version")
// For DASH playback support with ExoPlayer
implementation("androidx.media3:media3-exoplayer-dash:$media3_version")
// For HLS playback support with ExoPlayer
implementation("androidx.media3:media3-exoplayer-hls:$media3_version")
implementation("androidx.media3:media3-ui:$media3_version")
// For RTSP playback support with ExoPlayer
implementation("androidx.media3:media3-exoplayer-rtsp:$media3_version")
implementation "com.anggrayudi:storage:1.5.5"
fixed webview ok button slightly improved listing of items if u have alot of items fixed app not enabling ok button in the cut screen if you change the TO text box only added force keyframes at cuts switch in the cut screen Added 3 dots in multiple download card. It will have the configure chips in a separate card. Each will have a callback that will update all items in multiple download fixed start end textboxes showing truncanted text in playlist select card add ability to start a download now and put the rest of the queue behind it Scrollbar handle shrinked depending on size. Made it same size Fixed Tapping the notification of the errored download leading to the running tab instead of errored Set different icon for terminal in share menu ignored extra command preference in backups of command templates made preference titles be multiline if they are too long if the preferred download type is command, the app will not bother fetching data beforehand fixed app not showing the entire interface when being in landscape hid format details in command type logs because they are useless fixed cookies import not working from external sources other than the app fixed app using continue button for a split second when there are no paused downloads added state in home screen so that it wont populate trending videos while its searching for an item implemented batch downloads in a single worker to avoid bogging down the system with many works fixed instagram status that have multiple videos just using the first video fixed monochrome icon not showing made yt-dlp auto update a choice in the settings fixed bilibili not working in normal mode fixed app overwriting files instead of adding (1) in the filename instead
3 years ago
implementation 'me.zhanghai.android.fastscroll:library:1.3.0'
}