-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove PresentationSession from Holder App (#381)
- Loading branch information
1 parent
0b9b31e
commit 4592ed6
Showing
13 changed files
with
232 additions
and
146 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
appholder/src/main/java/com/android/identity/wallet/composables/CurveLabelFor.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,26 @@ | ||
package com.android.identity.wallet.composables | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.res.stringResource | ||
import com.android.identity.securearea.SecureArea | ||
import com.android.identity.wallet.R | ||
|
||
@Composable | ||
fun curveLabelFor( | ||
@SecureArea.EcCurve curveOption: Int | ||
): String { | ||
return when (curveOption) { | ||
SecureArea.EC_CURVE_P256 -> stringResource(id = R.string.curve_p_256) | ||
SecureArea.EC_CURVE_P384 -> stringResource(id = R.string.curve_p_384) | ||
SecureArea.EC_CURVE_P521 -> stringResource(id = R.string.curve_p_521) | ||
SecureArea.EC_CURVE_BRAINPOOLP256R1 -> stringResource(id = R.string.curve_brain_pool_p_256R1) | ||
SecureArea.EC_CURVE_BRAINPOOLP320R1 -> stringResource(id = R.string.curve_brain_pool_p_320R1) | ||
SecureArea.EC_CURVE_BRAINPOOLP384R1 -> stringResource(id = R.string.curve_brain_pool_p_384R1) | ||
SecureArea.EC_CURVE_BRAINPOOLP512R1 -> stringResource(id = R.string.curve_brain_pool_p_512R1) | ||
SecureArea.EC_CURVE_ED25519 -> stringResource(id = R.string.curve_ed25519) | ||
SecureArea.EC_CURVE_X25519 -> stringResource(id = R.string.curve_x25519) | ||
SecureArea.EC_CURVE_ED448 -> stringResource(id = R.string.curve_ed448) | ||
SecureArea.EC_CURVE_X448 -> stringResource(id = R.string.curve_X448) | ||
else -> "" | ||
} | ||
} |
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
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
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
23 changes: 0 additions & 23 deletions
23
appholder/src/main/java/com/android/identity/wallet/transfer/CredentialStore.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.