Skip to content

Commit

Permalink
prepare 2.0.0 alpha release
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Jan 23, 2024
1 parent fd2f7a9 commit 4115a34
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 26 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
lib = "1.1.1-SNAPSHOT"
lib = "2.0.0-alpha-01"
android = "8.1.2"
auto-service = "1.1.1"
kotlin = "1.9.22"
Expand Down
21 changes: 0 additions & 21 deletions sample/src/main/kotlin/KSPTest.kt

This file was deleted.

6 changes: 3 additions & 3 deletions sample/src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ fun main() {
val secretValue = Sekret.testKey("password12345")
println("Decoded secret: $secretValue")
}
val testing = KSPTest<Int>(java.lang.String("java-string"), "my-secret")
val testing = SecretTest("kotlin-string", java.lang.String("java-string"))
println(testing.toString())
println(testing.secret)
println(testing.charSeq)
println(testing.kString)
println(testing.jString)
}
15 changes: 15 additions & 0 deletions sample/src/main/kotlin/SecretTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import dev.datlag.sekret.Obfuscate
import dev.datlag.sekret.Secret

@Obfuscate
data class SecretTest(
@Secret val kString: String,
@Secret val jString: java.lang.String,
@Secret val kCharSequence: CharSequence = "kotlin-char-sequence",
@Secret val jCharSequence: java.lang.CharSequence = "java-char-sequence" as java.lang.CharSequence,
@Secret val kBuilder: StringBuilder = StringBuilder("kotlin-string-builder"),
@Secret val jBuilder: java.lang.StringBuilder = StringBuilder("java-string-builder") as java.lang.StringBuilder,
@Secret val kAppendable: Appendable = kBuilder,
@Secret val jAppendable: java.lang.Appendable = jBuilder,
@Secret val buffer: StringBuffer = StringBuffer("java-string-buffer")
)
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ open class SekretPlugin : Plugin<Project> {
}

companion object {
private const val VERSION = "1.1.1-SNAPSHOT"
private const val VERSION = "2.0.0-alpha-01"

internal fun getVersion(): String {
return runCatching {
Expand Down

0 comments on commit 4115a34

Please sign in to comment.