srctree

Robin Linden parent 2feb8cff 77d069ef
Revert "Add support for decoding animated gifs and webp images in the chat"

This reverts commit 10d303084b7d0e0ed67f2a5c7fa235f9c74036c5.

This is part 1/3 of reverts to get back to Picasso that handled imagesin the chat view without any flickering.

inlinesplit
atox/build.gradle.kts added: 6, removed: 25, total 0
@@ -79,8 +79,7 @@ dependencies {
 
implementation(libs.androidx.multidex)
 
implementation(libs.coil.core)
implementation(libs.coil.gif)
implementation(libs.coil)
 
implementation(libs.nayuki.qrcodegen)
 
 
atox/src/main/kotlin/MainActivity.kt added: 6, removed: 25, total 0
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2019-2022 aTox contributors
// SPDX-FileCopyrightText: 2019-2021 aTox contributors
//
// SPDX-License-Identifier: GPL-3.0-only
 
@@ -14,10 +14,6 @@ import androidx.appcompat.app.AppCompatDelegate
import androidx.core.os.bundleOf
import androidx.core.view.WindowCompat
import androidx.navigation.fragment.findNavController
import coil.Coil
import coil.ImageLoader
import coil.decode.GifDecoder
import coil.decode.ImageDecoderDecoder
import javax.inject.Inject
import ltd.evilcorp.atox.di.ViewModelFactory
import ltd.evilcorp.atox.settings.Settings
@@ -55,18 +51,6 @@ class MainActivity : AppCompatActivity() {
WindowCompat.setDecorFitsSystemWindows(window, false)
}
 
Coil.setImageLoader {
ImageLoader.Builder(this)
.componentRegistry {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
add(ImageDecoderDecoder(this@MainActivity))
} else {
add(GifDecoder())
}
}
.build()
}
 
setContentView(R.layout.activity_main)
 
// Only handle intent the first time it triggers the app.
 
gradle/libs.versions.toml added: 6, removed: 25, total 0
@@ -5,7 +5,6 @@ sdk-target = "31"
kotlin = "1.9.0"
android-plugin = "7.4.2"
 
coil = "1.4.0"
coroutines = "1.7.3"
dagger = "2.47"
espresso = "3.5.1"
@@ -64,8 +63,7 @@ nayuki-qrcodegen = "io.nayuki:qrcodegen:1.8.0"
 
square-leakcanary = "com.squareup.leakcanary:leakcanary-android:2.12"
 
coil-core = { module = "io.coil-kt:coil", version.ref = "coil" }
coil-gif = { module = "io.coil-kt:coil-gif", version.ref = "coil" }
coil = "io.coil-kt:coil:1.4.0"
 
tox4j-android-aarch64 = { module = "org.toktok:tox4j-c_aarch64-linux-android", version.ref = "tox4j-android" }
tox4j-android-arm = { module = "org.toktok:tox4j-c_armv7a-linux-androideabi", version.ref = "tox4j-android" }