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 df1d702 commit 4752140
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@

package de.tutao.tutashared.ipc

import kotlinx.serialization.*
import kotlinx.serialization.json.*
import kotlinx.serialization.Serializable


/**
* Local import mail state, to show progress during an mail import.
*/
@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 4752140

Please sign in to comment.