Skip to content

Commit

Permalink
add secondary constructor with default tags param, for backwards comp…
Browse files Browse the repository at this point in the history
…atibility upgrading from 1.x
  • Loading branch information
timbuethe committed Aug 12, 2024
1 parent ef19d3d commit 06cfde6
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.Paths

@Suppress("TooGenericExceptionCaught","SwallowedException")
@Suppress("TooGenericExceptionCaught", "SwallowedException")
class PhraseAppSyncTask(
private val config: PhraseAppSyncTaskConfig
) : Runnable {
Expand Down Expand Up @@ -98,4 +98,10 @@ data class PhraseAppSyncTaskConfig @JvmOverloads constructor(
val messagesFilePostfix: String = ".properties",
val messagesFilePrefix: String = "messages_",
val escapeSingleQuotes: Boolean = false
)
) {
constructor(
url: String,
authKey: String,
projectId: String,
) : this(url = url, authKey = authKey, projectId = projectId, tags = null)
}

0 comments on commit 06cfde6

Please sign in to comment.