Skip to content

Commit

Permalink
updated proguard-rules.pro and checkout view only visible if list is …
Browse files Browse the repository at this point in the history
…not empty (#5)
  • Loading branch information
BBBlakee authored Jun 6, 2024
1 parent efb5a4d commit 76cb994
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
val versionMajor = 1
val versionMinor = 0
val versionPatch = 4
val versionMinor = 1
val versionPatch = 0

plugins {
alias(libs.plugins.android.application)
Expand Down
6 changes: 5 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
-keep class your.app.data.model.** { *; }
-keep class * implements java.io.Serializable { *; }
-keep enum your.app.data.model.** { *; }
-keep class kotlin.collections.* { *; }
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fun ReceiptArea(
)

Button(
onClick = { showCheckoutView = true },
onClick = { showCheckoutView = saleItemList.isNotEmpty() },
colors = ButtonDefaults.buttonColors(containerColor = Color(0xFF3C8B40)),
modifier = Modifier
.fillMaxWidth()
Expand Down

0 comments on commit 76cb994

Please sign in to comment.