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

235 lines
8.6 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'
id "org.jetbrains.kotlin.plugin.serialization" version "2.3.0"
id "org.jetbrains.kotlin.plugin.parcelize" version "2.3.0"
id "org.jetbrains.kotlin.plugin.compose" version "2.3.0"
}
4 years ago
def properties = new Properties()
3 years ago
def versionMajor = 1
2 years ago
def versionMinor = 8
6 months ago
def versionPatch = 7
def versionBuild = 3 // bump for dogfood builds, public betas, etc.
//WHEN RELEASING BETA KEEP THE SAME VERSION AS LATEST STABLE, SO USERS CAN DOWNGRADE
def isBeta = false
2 years ago
def versionExt = ""
if (versionBuild > 0) {
versionExt += ".${versionBuild}"
}
if (isBeta) {
versionExt += "-beta"
}
4 years ago
android {
2 years ago
namespace 'com.deniscerri.ytdl'
compileSdk = 36
3 years ago
3 years ago
try {
2 years ago
def propertiesFile = rootProject.file("keystore.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"
2 years ago
minSdk 24
targetSdk 36
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
vectorDrawables.generatedDensities = []
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
2 years ago
buildConfig true
compose true
4 years ago
}
compileOptions {
2 years ago
coreLibraryDesugaringEnabled true
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 "1.10.1"
}
2 years ago
dependenciesInfo {
// Disables dependency metadata when building APKs.
includeInApk = false
// Disables dependency metadata when building Android App Bundles.
includeInBundle = false
}
packagingOptions {
jniLibs {
useLegacyPackaging true
}
}
lint {
disable 'MissingTranslation', 'RestrictedApi'
}
4 years ago
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs_nio:2.1.5"
2 years ago
// implementation "com.github.yausername.youtubedl-android:library:$youtubedlAndroidVer"
// implementation "com.github.yausername.youtubedl-android:ffmpeg:$youtubedlAndroidVer"
// implementation "com.github.yausername.youtubedl-android:aria2c:$youtubedlAndroidVer"
2 years ago
implementation "io.github.junkfood02.youtubedl-android:library:0.18.1"
//implementation "io.github.junkfood02.youtubedl-android:ffmpeg:0.18.1"
implementation "io.github.junkfood02.youtubedl-android:aria2c:0.18.1"
9 months ago
9 months ago
// implementation "io.github.junkfood02.youtubedl-android:library:0.17.4"
implementation "io.github.junkfood02.youtubedl-android:ffmpeg:0.17.2"
9 months ago
// implementation "io.github.junkfood02.youtubedl-android:aria2c:0.17.2"
4 years ago
implementation "androidx.appcompat:appcompat:1.7.1"
implementation "androidx.constraintlayout:constraintlayout:2.2.1"
alot of stuff - include search history when searching - removed scroll bug from command tab - added spacing between command template title and ok button in selection card - made download progress not dublicate in terminal - made ability to store terminal state - added ability to create multiple terminal instances and show them as a list similar to download queue - fixed thumbnail download not working - fixed app crashing when clicking on format updated notification - fixed app crashing when double clicking format on multiple download card - added custom sponsorblock api preference - removed contextual app bar when you its enabled and the user taps the log button in the erorred tab - made app always show quick download card and asynchoronously load data. Quick Download now if its on, it wont load data at all - added shimmer when loading data in the download card - fixed app showing no formats if there were no common formats. Now it will give you generic formats - made open command template list be half the screen, shortcuts third of the screen so the user can see what its being added - fixed sometimes app slipping queued downloads even though its told to pause all - fixed trim filenames cutting files too short - made mediastore scanning of files one by one - fixed filename template not working in multiple download card - fixed -F in terminal not being inline - added preferred audio codec - made auto update on boot if there are no active downloads - fixed format text overlapping - added a new error activity dialog in cases yt-dlp data fetching in the home screen fails. You can copy the log
3 years ago
implementation 'com.google.android.material:material:1.10.0'
4 years ago
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.4.0'
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:2.9.6"
implementation "androidx.navigation:navigation-ui-ktx:2.9.6"
implementation 'androidx.core:core-ktx:1.17.0'
implementation 'androidx.test.ext:junit-ktx:1.3.0'
implementation 'androidx.compose.ui:ui-android:1.10.1'
implementation 'androidx.preference:preference-ktx:1.2.1'
testImplementation "junit:junit:4.13.2"
androidTestImplementation "junit:junit:4.13.2"
androidTestImplementation "androidx.test.ext:junit:1.3.0"
androidTestImplementation "androidx.test.espresso:espresso-core:3.7.0"
4 years ago
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'com.devbrackets.android:exomedia:5.2.0'
4 years ago
implementation("androidx.cardview:cardview:1.0.0")
4 years ago
implementation("com.squareup.picasso:picasso:2.71828")
implementation("jp.wasabeef:picasso-transformations:2.4.0")
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.2.0"
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.3.0'
implementation 'com.facebook.shimmer:shimmer:0.5.0'
4 years ago
implementation "androidx.work:work-runtime-ktx:2.11.0"
implementation "androidx.room:room-runtime:2.8.4"
implementation "androidx.room:room-ktx:2.8.4"
ksp "androidx.room:room-compiler:2.8.4"
implementation 'androidx.paging:paging-runtime-ktx:3.3.6'
implementation "androidx.room:room-paging:2.8.4"
androidTestImplementation "androidx.room:room-testing:2.8.4"
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.10.0'
implementation "androidx.compose.runtime:runtime:1.10.1"
androidTestImplementation 'com.google.truth:truth:1.4.5'
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2"
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2"
4 years ago
implementation 'com.google.code.gson:gson:2.13.2'
implementation "com.squareup.okhttp3:okhttp:5.3.2"
4 years ago
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0'
implementation 'it.xabaras.android:recyclerview-swipedecorator:1.4'
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.10.0"
implementation "com.neoutils.highlight:highlight-view:2.3.0"
// For media playback using ExoPlayer
implementation("androidx.media3:media3-exoplayer:1.9.0")
// For DASH playback support with ExoPlayer
implementation("androidx.media3:media3-exoplayer-dash:1.9.0")
// For HLS playback support with ExoPlayer
implementation("androidx.media3:media3-exoplayer-hls:1.9.0")
implementation("androidx.media3:media3-ui:1.9.0")
// For RTSP playback support with ExoPlayer
implementation("androidx.media3:media3-exoplayer-rtsp:1.9.0")
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'
implementation 'com.google.accompanist:accompanist-webview:0.36.0'
implementation 'androidx.compose.material3:material3-android:1.4.0'
implementation "io.noties.markwon:core:4.6.2"
2 years ago
implementation("org.greenrobot:eventbus:3.3.1")
implementation("com.github.teamnewpipe:newpipeextractor:v0.25.2")
implementation("commons-io:commons-io:2.5")
implementation("org.apache.commons:commons-compress:1.12")
5 months ago
implementation("androidx.core:core-splashscreen:1.2.0")
}