diff --git a/app/build.gradle.kts b/app/build.gradle.kts index c40299ce6..25c21f2e0 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -68,14 +68,18 @@ android { jniLibs.excludes.add("lib/armeabi-v7a/*_neon.so") } - namespace = "com.github.libretube" - tasks.register("testClasses") lint { abortOnError = false checkReleaseBuilds = false } + + buildFeatures { + buildConfig = true + } + + namespace = "com.github.libretube" } dependencies { diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt index ef33987c2..e4ae01cce 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt @@ -114,7 +114,6 @@ import com.github.libretube.util.TextUtils import com.github.libretube.util.TextUtils.toTimeInSeconds import com.github.libretube.util.YoutubeHlsPlaylistParser import com.github.libretube.util.deArrow -import com.google.android.material.elevation.SurfaceColors import java.io.IOException import java.util.* import java.util.concurrent.Executors @@ -201,8 +200,8 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions { private val fullscreenDialog by lazy { object : Dialog(requireContext(), android.R.style.Theme_Black_NoTitleBar_Fullscreen) { + @Deprecated("Deprecated in Java", ReplaceWith("onbackpressedispatcher and callback")) override fun onBackPressed() { - super.onBackPressed() unsetFullscreen() } } diff --git a/gradle.properties b/gradle.properties index c57869e52..1bd778226 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,6 +15,5 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 kotlin.code.style=official android.useAndroidX=true android.enableJetifier=true -android.defaults.buildfeatures.buildconfig=true android.nonTransitiveRClass=true android.nonFinalResIds=true \ No newline at end of file