Skip to content

Commit

Permalink
Merge pull request #17 from shadow578/wip/release_1.4.0
Browse files Browse the repository at this point in the history
Yodel release 1.4.0
  • Loading branch information
shadow578 authored Mar 10, 2023
2 parents ab03ae3 + 9d6f459 commit 20602c3
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
29 changes: 15 additions & 14 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@file:Suppress("UnstableApiUsage")
import java.io.FileInputStream
import java.util.*

Expand Down Expand Up @@ -96,23 +97,24 @@ dependencies {
// androidX
implementation("androidx.core:core-ktx:1.9.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.appcompat:appcompat:1.5.1")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1")
implementation("androidx.lifecycle:lifecycle-service:2.5.1")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.0")
implementation("androidx.lifecycle:lifecycle-service:2.6.0")
implementation("androidx.legacy:legacy-support-v4:1.0.0")
implementation("androidx.preference:preference-ktx:1.2.0")

// material design
implementation("com.google.android.material:material:1.6.1")
implementation("com.google.android.material:material:1.8.0")

// Room
implementation("androidx.room:room-runtime:2.4.3")
kapt("androidx.room:room-compiler:2.4.3")
implementation("androidx.room:room-runtime:2.5.0")
kapt("androidx.room:room-compiler:2.5.0")

// youtube-dl
implementation("com.github.yausername.youtubedl-android:library:0.14.0")
implementation("com.github.yausername.youtubedl-android:ffmpeg:0.14.0")
implementation("com.github.yausername.youtubedl-android:aria2c:0.14.0")
//TODO: currently uses the latest version available. This makes the build unstable!
implementation("com.github.yausername.youtubedl-android:library:master-SNAPSHOT")
implementation("com.github.yausername.youtubedl-android:ffmpeg:master-SNAPSHOT")
implementation("com.github.yausername.youtubedl-android:aria2c:master-SNAPSHOT")

// id3v2 tagging
implementation("com.mpatric:mp3agic:0.9.1")
Expand All @@ -132,15 +134,14 @@ dependencies {
implementation("com.mikepenz:aboutlibraries:8.9.4")

// desugaring
//TODO 2.0.0 is only available with AGP > 7.4.0
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0")
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.2")

// unit testing
testImplementation("androidx.test.ext:junit:1.1.3")
testImplementation("androidx.test.ext:junit:1.1.5")
testImplementation("org.robolectric:robolectric:4.8.2")
testImplementation("io.kotest:kotest-assertions-core:5.4.2")
androidTestImplementation("androidx.test:runner:1.4.0")
androidTestImplementation("androidx.test:rules:1.4.0")
androidTestImplementation("androidx.test:runner:1.5.2")
androidTestImplementation("androidx.test:rules:1.5.0")
androidTestImplementation("io.kotest:kotest-assertions-core:5.4.2")

// leakcanary (only on debug builds)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ class TempFiles(tempFile: File, format: String) {

/**
* the main audio file downloaded by youtube-dl.
* this file will be the same as [.convertedAudio], but with a .tmp extension
*/
private val downloadedAudio: File = File(tempFile.absolutePath + ".tmp")

/**
* the converted audio file, created by ffmpeg with the --extract-audio option
* the converted audio file, created by ffmpeg with the --extract-audio option.
* this file will be the same as [.downloadedAudio], but with the format extension added to it (*.tmp.<fmt>)
*/
private val convertedAudio: File = File(tempFile.absolutePath + "." + format)
private val convertedAudio: File = File(downloadedAudio.absolutePath + "." + format)

/**
* delete all files
Expand Down
4 changes: 2 additions & 2 deletions app/src/test/kotlin/io/github/shadow578/yodel/TestUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ fun <T> LiveData<T>.getOrAwaitValue(
var data: T? = null
val latch = CountDownLatch(1)
val observer = object : Observer<T> {
override fun onChanged(o: T?) {
data = o
override fun onChanged(value: T) {
data = value
latch.countDown()
this@getOrAwaitValue.removeObserver(this)
}
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ buildscript {
maven { setUrl("https://plugins.gradle.org/m2/") }
}
dependencies {
classpath("com.android.tools.build:gradle:7.3.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
classpath("com.android.tools.build:gradle:7.4.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10")
classpath("com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:8.9.4")

// NOTE: Do not place your application dependencies here; they belong
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Jul 18 10:54:22 CEST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

0 comments on commit 20602c3

Please sign in to comment.