-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
129 changed files
with
4,339 additions
and
2,229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Release 1.9.0 | ||
- Small refactorings | ||
- Bugfixes | ||
|
||
# Release 1.8.0 | ||
- Switched to new analytics tool | ||
- Bugfixes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,5 +43,5 @@ data class DebugSettingsData( | |
) : Parcelable | ||
|
||
enum class Environment { | ||
PU, TU, RU, TR | ||
PU, TU, RU, RUDEV, TR | ||
} |
99 changes: 99 additions & 0 deletions
99
android/src/debug/java/de/gematik/ti/erp/app/debug/ui/DebugPKV.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
/* | ||
* Copyright (c) 2023 gematik GmbH | ||
* | ||
* Licensed under the EUPL, Version 1.2 or – as soon they will be approved by | ||
* the European Commission - subsequent versions of the EUPL (the Licence); | ||
* You may not use this work except in compliance with the Licence. | ||
* You may obtain a copy of the Licence at: | ||
* | ||
* https://joinup.ec.europa.eu/software/page/eupl | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the Licence is distributed on an "AS IS" basis, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the Licence for the specific language governing permissions and | ||
* limitations under the Licence. | ||
* | ||
*/ | ||
|
||
package de.gematik.ti.erp.app.debug.ui | ||
|
||
import androidx.compose.foundation.layout.Arrangement | ||
import androidx.compose.foundation.layout.PaddingValues | ||
import androidx.compose.foundation.layout.fillMaxWidth | ||
import androidx.compose.foundation.layout.imePadding | ||
import androidx.compose.foundation.layout.navigationBarsPadding | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.foundation.lazy.LazyColumn | ||
import androidx.compose.foundation.lazy.rememberLazyListState | ||
import androidx.compose.material.OutlinedTextField | ||
import androidx.compose.material.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.runtime.getValue | ||
import androidx.compose.runtime.mutableStateOf | ||
import androidx.compose.runtime.remember | ||
import androidx.compose.runtime.setValue | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.platform.LocalContext | ||
import de.gematik.ti.erp.app.theme.PaddingDefaults | ||
import de.gematik.ti.erp.app.utils.compose.AnimatedElevationScaffold | ||
import de.gematik.ti.erp.app.utils.compose.NavigationBarMode | ||
import org.kodein.di.compose.rememberViewModel | ||
|
||
@Composable | ||
fun DebugScreenPKV(onBack: () -> Unit) { | ||
val viewModel by rememberViewModel<DebugSettingsViewModel>() | ||
val listState = rememberLazyListState() | ||
val context = LocalContext.current | ||
|
||
AnimatedElevationScaffold( | ||
navigationMode = NavigationBarMode.Back, | ||
listState = listState, | ||
topBarTitle = "Debug PKV", | ||
onBack = onBack | ||
) { innerPadding -> | ||
var invoiceBundle by remember { mutableStateOf("") } | ||
var attachement by remember { mutableStateOf("") } | ||
|
||
LazyColumn( | ||
state = listState, | ||
modifier = Modifier | ||
.padding(innerPadding) | ||
.navigationBarsPadding() | ||
.imePadding(), | ||
horizontalAlignment = Alignment.CenterHorizontally, | ||
verticalArrangement = Arrangement.spacedBy(PaddingDefaults.Medium), | ||
contentPadding = PaddingValues(PaddingDefaults.Medium) | ||
) { | ||
item { | ||
DebugCard( | ||
title = "Invoice Bundle" | ||
) { | ||
OutlinedTextField( | ||
modifier = Modifier.fillMaxWidth(), | ||
value = invoiceBundle, | ||
label = { Text("Bundle") }, | ||
onValueChange = { | ||
invoiceBundle = it | ||
}, | ||
maxLines = 1 | ||
) | ||
OutlinedTextField( | ||
modifier = Modifier.fillMaxWidth(), | ||
value = attachement, | ||
label = { Text("Attachement") }, | ||
onValueChange = { | ||
attachement = it | ||
}, | ||
maxLines = 1 | ||
) | ||
DebugLoadingButton( | ||
onClick = { viewModel.shareInvoicePDF(context, invoiceBundle, attachement) }, | ||
text = "Share" | ||
) | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.