1
0
Fork 0

fully removed serialization

This commit is contained in:
nin0dev 2024-08-28 16:14:57 -04:00
parent 3712309767
commit f96e896c38

View file

@ -23,15 +23,10 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.google.gson.Gson import com.google.gson.Gson
import com.nin0dev.vendroid.HttpClient.fetchVencord import com.nin0dev.vendroid.HttpClient.fetchVencord
import com.nin0dev.vendroid.Logger.e import com.nin0dev.vendroid.Logger.e
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.Serializable
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.Json
import pl.droidsonroids.gif.GifImageView import pl.droidsonroids.gif.GifImageView
import java.io.IOException import java.io.IOException
@Serializable
data class UpdateData(val version: Int, val changelog: String) data class UpdateData(val version: Int, val changelog: String)
class MainActivity : Activity() { class MainActivity : Activity() {
@ -40,7 +35,6 @@ class MainActivity : Activity() {
@JvmField @JvmField
var filePathCallback: ValueCallback<Array<Uri?>?>? = null var filePathCallback: ValueCallback<Array<Uri?>?>? = null
@OptIn(ExperimentalSerializationApi::class)
fun checkUpdates(ignoreSetting: Boolean = false) fun checkUpdates(ignoreSetting: Boolean = false)
{ {
val sPrefs = getSharedPreferences("settings", Context.MODE_PRIVATE) val sPrefs = getSharedPreferences("settings", Context.MODE_PRIVATE)