Added serialization
This commit is contained in:
parent
56ce7c5aa4
commit
5363af1071
|
@ -1,7 +1,10 @@
|
||||||
apply plugin: 'com.android.application'
|
plugins {
|
||||||
apply plugin: 'kotlin-android'
|
id 'com.android.application'
|
||||||
apply plugin: 'kotlin-android-extensions'
|
id 'kotlin-android'
|
||||||
apply plugin: 'kotlin-kapt'
|
id 'kotlin-android-extensions'
|
||||||
|
id 'kotlin-kapt'
|
||||||
|
id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlin_version"
|
||||||
|
}
|
||||||
|
|
||||||
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
||||||
def keystoreProperties = new Properties()
|
def keystoreProperties = new Properties()
|
||||||
|
@ -71,6 +74,7 @@ dependencies {
|
||||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||||
implementation 'com.googlecode.ez-vcard:ez-vcard:0.11.3'
|
implementation 'com.googlecode.ez-vcard:ez-vcard:0.11.3'
|
||||||
implementation 'androidx.lifecycle:lifecycle-process:2.5.1'
|
implementation 'androidx.lifecycle:lifecycle-process:2.5.1'
|
||||||
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
|
||||||
|
|
||||||
kapt "androidx.room:room-compiler:2.5.1"
|
kapt "androidx.room:room-compiler:2.5.1"
|
||||||
implementation "androidx.room:room-runtime:2.5.1"
|
implementation "androidx.room:room-runtime:2.5.1"
|
||||||
|
|
|
@ -4,7 +4,9 @@ import android.content.ContentValues
|
||||||
import android.provider.Telephony
|
import android.provider.Telephony
|
||||||
import androidx.core.content.contentValuesOf
|
import androidx.core.content.contentValuesOf
|
||||||
import com.google.gson.annotations.SerializedName
|
import com.google.gson.annotations.SerializedName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@Serializable
|
||||||
data class MmsAddress(
|
data class MmsAddress(
|
||||||
@SerializedName("address")
|
@SerializedName("address")
|
||||||
val address: String,
|
val address: String,
|
||||||
|
|
|
@ -4,7 +4,9 @@ import android.content.ContentValues
|
||||||
import android.provider.Telephony
|
import android.provider.Telephony
|
||||||
import androidx.core.content.contentValuesOf
|
import androidx.core.content.contentValuesOf
|
||||||
import com.google.gson.annotations.SerializedName
|
import com.google.gson.annotations.SerializedName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@Serializable
|
||||||
data class MmsBackup(
|
data class MmsBackup(
|
||||||
@SerializedName("creator")
|
@SerializedName("creator")
|
||||||
val creator: String?,
|
val creator: String?,
|
||||||
|
|
|
@ -4,7 +4,9 @@ import android.content.ContentValues
|
||||||
import android.provider.Telephony
|
import android.provider.Telephony
|
||||||
import androidx.core.content.contentValuesOf
|
import androidx.core.content.contentValuesOf
|
||||||
import com.google.gson.annotations.SerializedName
|
import com.google.gson.annotations.SerializedName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@Serializable
|
||||||
data class MmsPart(
|
data class MmsPart(
|
||||||
@SerializedName("cd")
|
@SerializedName("cd")
|
||||||
val contentDisposition: String?,
|
val contentDisposition: String?,
|
||||||
|
|
|
@ -5,7 +5,9 @@ import android.content.ContentValues
|
||||||
import android.provider.Telephony
|
import android.provider.Telephony
|
||||||
import androidx.core.content.contentValuesOf
|
import androidx.core.content.contentValuesOf
|
||||||
import com.google.gson.annotations.SerializedName
|
import com.google.gson.annotations.SerializedName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@Serializable
|
||||||
data class SmsBackup(
|
data class SmsBackup(
|
||||||
@SerializedName("sub_id")
|
@SerializedName("sub_id")
|
||||||
val subscriptionId: Long,
|
val subscriptionId: Long,
|
||||||
|
|
Loading…
Reference in New Issue