Skip to content

Commit 82ae752

Browse files
committed
add dev mode
1 parent f3dc369 commit 82ae752

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

securechannel/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ plugins {
1111

1212
val mGroupId = "io.myabcwallet"
1313
val mArtifactId = "securechannel"
14-
val mVersionCode = 6
15-
val mVersionName = "0.1.5"
14+
val mVersionCode = 7
15+
val mVersionName = "0.1.6"
1616
val libraryName = "SecureChannel-Android"
1717
val libraryDescription = "Library for Android to create a Secure Channel to communicate with WAAS"
1818

securechannel/src/main/java/io/myabcwallet/securechannel/network/auth/GetSecureChannelUseCase.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class GetSecureChannelUseCase @Inject constructor(
3737
private val authRepository: AuthRepository,
3838
) {
3939

40-
operator fun invoke(): Flow<SecureChannelData?> {
40+
operator fun invoke(isDev: Boolean = false): Flow<SecureChannelData?> {
4141
Security.removeProvider(BouncyCastleProvider.PROVIDER_NAME)
4242
Security.addProvider(BouncyCastleProvider())
4343

@@ -56,7 +56,8 @@ class GetSecureChannelUseCase @Inject constructor(
5656

5757
return authRepository.createSecureChannel(
5858
publicKey = publicKeyHexString,
59-
plainText = plainText
59+
plainText = plainText,
60+
isDev = isDev,
6061
).map { response ->
6162
// 2. 서버로 부터 받은 공개키 로드
6263
val publicKeyFromServerHexString = response.publicKey

0 commit comments

Comments
 (0)