Various cleanups
This commit is contained in:
parent
37437dc3bd
commit
ce6309a22b
6 changed files with 9 additions and 39 deletions
|
@ -1,6 +1,6 @@
|
|||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
import java.io.FileInputStream
|
||||
import java.util.Properties
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
|
||||
|
||||
|
@ -51,13 +51,9 @@ android {
|
|||
kotlinOptions {
|
||||
jvmTarget = "11"
|
||||
}
|
||||
buildToolsVersion = "34.0.0"
|
||||
buildFeatures {
|
||||
compose = true
|
||||
}
|
||||
composeOptions {
|
||||
kotlinCompilerExtensionVersion = "1.5.14"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
@ -80,6 +76,6 @@ dependencies {
|
|||
|
||||
tasks . withType ( KotlinCompile :: class ) . all {
|
||||
compilerOptions {
|
||||
freeCompilerArgs . addAll ( "-opt-in=kotlin.ExperimentalUnsignedTypes" )
|
||||
freeCompilerArgs . addAll ("-opt-in=kotlin.ExperimentalUnsignedTypes")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
package com.kernelmaft.zanbur
|
||||
|
||||
import MQTTClient
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers.IO
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.encodeToString
|
||||
import kotlinx.serialization.json.Json
|
||||
import MQTTClient
|
||||
import mqtt.MQTTVersion
|
||||
import mqtt.Subscription
|
||||
import mqtt.packets.Qos.AT_MOST_ONCE
|
||||
|
|
|
@ -7,4 +7,4 @@ import androidx.datastore.preferences.preferencesDataStore
|
|||
|
||||
|
||||
|
||||
val Context. dataStore : DataStore<Preferences> by preferencesDataStore ("state")
|
||||
val Context . dataStore : DataStore <Preferences> by preferencesDataStore ("state")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue