Skip to content

Commit 06cfde6

Browse files
committed
add secondary constructor with default tags param, for backwards compatibility upgrading from 1.x
1 parent ef19d3d commit 06cfde6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/main/kotlin/com/freenow/apis/phraseapi/task/PhraseAppSyncTask.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import java.nio.file.Files
99
import java.nio.file.Path
1010
import java.nio.file.Paths
1111

12-
@Suppress("TooGenericExceptionCaught","SwallowedException")
12+
@Suppress("TooGenericExceptionCaught", "SwallowedException")
1313
class PhraseAppSyncTask(
1414
private val config: PhraseAppSyncTaskConfig
1515
) : Runnable {
@@ -98,4 +98,10 @@ data class PhraseAppSyncTaskConfig @JvmOverloads constructor(
9898
val messagesFilePostfix: String = ".properties",
9999
val messagesFilePrefix: String = "messages_",
100100
val escapeSingleQuotes: Boolean = false
101-
)
101+
) {
102+
constructor(
103+
url: String,
104+
authKey: String,
105+
projectId: String,
106+
) : this(url = url, authKey = authKey, projectId = projectId, tags = null)
107+
}

0 commit comments

Comments
 (0)