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.io.FileInputStream
|
||||||
import java.util.Properties
|
import java.util.Properties
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -51,13 +51,9 @@ android {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = "11"
|
jvmTarget = "11"
|
||||||
}
|
}
|
||||||
buildToolsVersion = "34.0.0"
|
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
compose = true
|
compose = true
|
||||||
}
|
}
|
||||||
composeOptions {
|
|
||||||
kotlinCompilerExtensionVersion = "1.5.14"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -80,6 +76,6 @@ dependencies {
|
||||||
|
|
||||||
tasks . withType ( KotlinCompile :: class ) . all {
|
tasks . withType ( KotlinCompile :: class ) . all {
|
||||||
compilerOptions {
|
compilerOptions {
|
||||||
freeCompilerArgs . addAll ( "-opt-in=kotlin.ExperimentalUnsignedTypes" )
|
freeCompilerArgs . addAll ("-opt-in=kotlin.ExperimentalUnsignedTypes")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
package com.kernelmaft.zanbur
|
package com.kernelmaft.zanbur
|
||||||
|
|
||||||
|
import MQTTClient
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers.IO
|
import kotlinx.coroutines.Dispatchers.IO
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import kotlinx.serialization.SerialName
|
|
||||||
import kotlinx.serialization.Serializable
|
|
||||||
import kotlinx.serialization.encodeToString
|
|
||||||
import kotlinx.serialization.json.Json
|
import kotlinx.serialization.json.Json
|
||||||
import MQTTClient
|
|
||||||
import mqtt.MQTTVersion
|
import mqtt.MQTTVersion
|
||||||
import mqtt.Subscription
|
import mqtt.Subscription
|
||||||
import mqtt.packets.Qos.AT_MOST_ONCE
|
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")
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
||||||
plugins {}
|
|
|
@ -1,25 +1,5 @@
|
||||||
# Project-wide Gradle settings.
|
android.nonTransitiveRClass = true
|
||||||
# IDE (e.g. Android Studio) users:
|
android.useAndroidX = true
|
||||||
# Gradle settings configured through the IDE *will override*
|
org.gradle.configuration-cache = true
|
||||||
# any settings specified in this file.
|
org.gradle.jvmargs = -Xmx2048m -Dfile.encoding=UTF-8 -XX:+UseParallelGC
|
||||||
# For more details on how to configure your build environment visit
|
org.gradle.parallel = true
|
||||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
||||||
# Specifies the JVM arguments used for the daemon process.
|
|
||||||
# The setting is particularly useful for tweaking memory settings.
|
|
||||||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:+UseParallelGC
|
|
||||||
# When configured, Gradle will run in incubating parallel mode.
|
|
||||||
# This option should only be used with decoupled projects. For more details, visit
|
|
||||||
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
|
|
||||||
org.gradle.parallel=true
|
|
||||||
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
||||||
# Android operating system, and which are packaged with your app's APK
|
|
||||||
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
||||||
android.useAndroidX=true
|
|
||||||
# Kotlin code style for this project: "official" or "obsolete":
|
|
||||||
kotlin.code.style=official
|
|
||||||
# Enables namespacing of each library's R class so that its R class includes only the
|
|
||||||
# resources declared in the library itself and none from the library's dependencies,
|
|
||||||
# thereby reducing the size of the R class for that library
|
|
||||||
android.nonTransitiveRClass=true
|
|
||||||
|
|
||||||
org.gradle.configuration-cache=true
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ pluginManagement {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositoriesMode . set ( RepositoriesMode . FAIL_ON_PROJECT_REPOS )
|
|
||||||
repositories {
|
repositories {
|
||||||
google ()
|
google ()
|
||||||
mavenCentral ()
|
mavenCentral ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue