Skip to content

Commit

Permalink
fix proguard error
Browse files Browse the repository at this point in the history
  • Loading branch information
BreakZero committed May 17, 2024
1 parent b9df3e0 commit b49709b
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 44 deletions.
3 changes: 2 additions & 1 deletion core/network/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
-keep class org.easy.ai.network.gemini.internal.** { *; }
-keep class org.easy.ai.network.gemini.internal.** { *; }
-keep @kotlinx.serialization.Serializable class * {*;}
3 changes: 3 additions & 0 deletions feature/chat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ plugins {

android {
namespace = "org.easy.ai.chat"
defaultConfig {
consumerProguardFile("consumer-rules.pro")
}
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions feature/chat/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-keep @kotlinx.serialization.Serializable class * {*;}
21 changes: 0 additions & 21 deletions feature/chat/proguard-rules.pro

This file was deleted.

3 changes: 3 additions & 0 deletions feature/plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ plugins {

android {
namespace = "org.easy.ai.plugins"
defaultConfig {
consumerProguardFile("consumer-rules.pro")
}
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions feature/plugins/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-keep @kotlinx.serialization.Serializable class * {*;}
21 changes: 0 additions & 21 deletions feature/plugins/proguard-rules.pro

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ internal fun InputView(

val coroutineScope = rememberCoroutineScope()

fun toggleFullScreen(byClickAction: Boolean = true) {
fun toggleFullScreen() {
coroutineScope.launch {
displayLevel = if (displayLevel == DisplayLevel.FULLSCREEN) DisplayLevel.MEDIUM
else DisplayLevel.FULLSCREEN
Expand Down Expand Up @@ -252,6 +252,7 @@ internal fun InputView(
onClick = {
onSubmit(enterContent.text.toString())
keyboardController?.hide()
displayLevel = DisplayLevel.MINIMAL
enterContent.clearText()
}
) {
Expand Down
3 changes: 3 additions & 0 deletions feature/settings/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ plugins {

android {
namespace = "org.easy.ai.feature.settings"
defaultConfig {
consumerProguardFile("consumer-rules.pro")
}
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions feature/settings/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-keep @kotlinx.serialization.Serializable class * {*;}

0 comments on commit b49709b

Please sign in to comment.