Skip to content

Commit

Permalink
fix: cleanup deps and remove desugaring
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Garg committed Mar 4, 2023
1 parent 7d2f97f commit f4c4e0b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
6 changes: 2 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ android {
applicationId = "dev.yashgarg.qbit"
minSdk = 24
targetSdk = 33
versionCode = 11
versionName = "v0.2.0-$commitHash"
versionCode = 12
versionName = "v0.2.1-$commitHash"

multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand All @@ -37,7 +37,6 @@ android {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
isCoreLibraryDesugaringEnabled = true
}

val isGithubCi = System.getenv("GITHUB_CI") != null
Expand Down Expand Up @@ -148,5 +147,4 @@ dependencies {
implementation(libs.tools.whatthestack)

testImplementation(libs.bundles.testing)
coreLibraryDesugaring(libs.tools.desugar)
}
9 changes: 9 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@

# @Serializable and @Polymorphic are used at runtime for polymorphic serialization.
-keepattributes RuntimeVisibleAnnotations,AnnotationDefault

# Don't print notes about potential mistakes or omissions in the configuration for kotlinx-serialization classes
# See also https://github.com/Kotlin/kotlinx.serialization/issues/1900
-dontnote kotlinx.serialization.**

# Serialization core uses `java.lang.ClassValue` for caching inside these specified classes.
# If there is no `java.lang.ClassValue` (for example, in Android), then R8/ProGuard will print a warning.
# However, since in this case they will not be used, we can disable these warnings
-dontwarn kotlinx.serialization.internal.ClassValueReferences
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.yashgarg.qbit.utils

import java.lang.StringBuilder
import java.text.CharacterIterator
import java.text.StringCharacterIterator
import java.time.Instant
Expand Down
6 changes: 0 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,11 @@ kotlinx-serialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-client-logging = { module = "io.ktor:ktor-client-logging", version.ref = "ktor" }
ktor-client-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor" }
ktor-client-js = { module = "io.ktor:ktor-client-js", version.ref = "ktor" }
ktor-client-cio = { module = "io.ktor:ktor-client-cio", version.ref = "ktor" }
ktor-client-darwin = { module = "io.ktor:ktor-client-darwin", version.ref = "ktor" }
ktor-client-winhttp = { module = "io.ktor:ktor-client-winhttp", version.ref = "ktor" }
ktor-client-contentNegotiation = { module = "io.ktor:ktor-client-content-negotiation", version.ref = "ktor" }
ktor-client-curl = { module = "io.ktor:ktor-client-curl", version.ref = "ktor" }
ktor-serialization = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor" }

tools-leakcanary = "com.squareup.leakcanary:leakcanary-android:2.10"
tools-cascade = "me.saket.cascade:cascade:1.3.0"
tools-desugar = "com.android.tools:desugar_jdk_libs:2.0.2"
tools-kotlin-result = "com.michael-bull.kotlin-result:kotlin-result:1.1.16"
tools-lottie = "com.airbnb.android:lottie:6.0.0"
tools-whatthestack = "com.github.haroldadmin:WhatTheStack:1.0.0-alpha04"
Expand Down

0 comments on commit f4c4e0b

Please sign in to comment.