Skip to content

Commit

Permalink
use absolute import path for IdTuple in Kotlin ipc
Browse files Browse the repository at this point in the history
  • Loading branch information
tuta-sudipg committed Jan 2, 2025
1 parent 1b57416 commit 1c86a22
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class AndroidNativeCryptoFacade(
subkeys
} else {
if (keyLength == AesKeyLength.Aes256) {
throw java.lang.IllegalArgumentException("must use mac with AES-256")
throw IllegalArgumentException("must use mac with AES-256")
}
SubKeys(
cKey = key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import kotlinx.serialization.json.*
*/
@Serializable
data class LocalImportMailState(
val remoteStateId: IdTuple,
val remoteStateId: de.tutao.tutashared.IdTuple,
val status: Int,
val start_timestamp: Int,
val totalMails: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ import kotlinx.serialization.json.*
*/
@Serializable
data class ResumableImport(
val remoteStateId: IdTuple,
val remoteStateId: de.tutao.tutashared.IdTuple,
val remainingEmlCount: Int,
)
2 changes: 2 additions & 0 deletions packages/licc/lib/KotlinGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ function renderKotlinType(parsed: ParsedType): RenderedType {
return { externals: [], name: maybeNullable("DataWrapper", nullable) }
case "void":
return { externals: [], name: maybeNullable("Unit", nullable) }
case "IdTuple":
return { externals: [], name: maybeNullable("de.tutao.tutashared.IdTuple", nullable) }
default:
return { externals: [baseName], name: maybeNullable(baseName, nullable) }
}
Expand Down

0 comments on commit 1c86a22

Please sign in to comment.