Skip to content

Commit

Permalink
Fix bug preventing Android app from launching
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Nov 2, 2023
1 parent 33cd67d commit 4f5a13a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion app/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ android {
buildTypes {
release {
isMinifyEnabled = true
proguardFile("proguard-rules.pro")
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
buildFeatures {
Expand Down
4 changes: 3 additions & 1 deletion app/android/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@
<1>.<2>$Companion Companion;
}

-dontobfuscate
# compose
-keep class androidx.compose.ui.text.platform.Platform { *; }
-keep class androidx.compose.runtime.** { *; }
2 changes: 1 addition & 1 deletion app/desktop/src/commonMain/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import java.awt.Window as AWTWindow

private val LOG = KotlinLogging.logger { }

fun main(array: Array<String>) = start(arrayOf("tonbrett://login?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL211c2lrdXMuZ3V0aWt1cy5zY2hsYXUuYmkiLCJ1c2VySWQiOjQxNjkwMjM3OTU5ODc3NDI3MywicmVmcmVzaFRva2VuIjoiVTNtdXV4WE1WTW9uQkU4RGFQOW1jRkN4dUQzMkRlIiwiZXhwIjoxNjk5NDg2NDM4fQ.lLXjSeynjaHiCXbO5lJh6fWb9rKjBfOGii9mDT-yK40"))
fun main(array: Array<String>) = start(array)

fun startApplication(forAuth: Boolean = false) = application {
val sessionExpired = remember { mutableStateOf(false) }
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

allprojects {
group = "dev.schlaubi.tonbrett"
version = "1.16.4"
version = "1.16.5"

repositories {
mavenCentral()
Expand Down

0 comments on commit 4f5a13a

Please sign in to comment.