Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,13 @@ android {
keyPassword = System.getenv("KEY_PASSWORD")
} else {
// Fallback to debug configuration if release keystore is missing
storeFile = file("${rootDir}/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
val debugStore = signingConfigs.getByName("debug")
storeFile = debugStore.storeFile
storePassword = debugStore.storePassword
keyAlias = debugStore.keyAlias
keyPassword = debugStore.keyPassword
Comment thread
SayanthRock marked this conversation as resolved.
Comment thread
SayanthRock marked this conversation as resolved.
}
}
create("debugConfig") {
storeFile = file("${rootDir}/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
}
}

buildTypes {
Expand All @@ -54,7 +49,7 @@ android {
signingConfig = signingConfigs.getByName("release")
}
debug {
signingConfig = signingConfigs.getByName("debugConfig")
// Using default debug signingConfig
}
}
compileOptions {
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/java/com/example/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import androidx.compose.animation.core.tween
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import android.view.WindowManager
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.verticalScroll
Expand Down Expand Up @@ -43,6 +44,8 @@ class MainActivity : ComponentActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// Fix screenshot viewing issues by removing FLAG_SECURE
window.clearFlags(WindowManager.LayoutParams.FLAG_SECURE)
Comment thread
SayanthRock marked this conversation as resolved.
Comment thread
SayanthRock marked this conversation as resolved.
Comment thread
SayanthRock marked this conversation as resolved.
enableEdgeToEdge()
setContent {
val viewModel: QRViewModel = viewModel()
Expand Down
Loading