File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
annotation/src/main/kotlin/com/tobrun/datacompat/annotation Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ And you will have to include the required dependencies:
2828
2929``` groovy
3030dependencies {
31- implementation 'com.github.tobrun.kotlin-data-compat:annotation:0.6 .0'
32- ksp 'com.github.tobrun.kotlin-data-compat:processor:0.6 .0'
31+ implementation 'com.github.tobrun.kotlin-data-compat:annotation:0.8 .0'
32+ ksp 'com.github.tobrun.kotlin-data-compat:processor:0.8 .0'
3333}
3434```
3535
3636
3737### Getting started
3838
39- Given an exisiting data class:
39+ Given an existing data class:
4040 - add ` @DataCompat ` annotation
4141 - mark class private
4242 - append ` Data ` to the class name
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ package com.tobrun.datacompat.annotation
1111 * it should be passed here as "\"STRING_VALUE\""; if default [Int] is used, it should be passed
1212 * as "INT_VALUE".
1313 */
14- @Retention(AnnotationRetention .RUNTIME )
14+ @Retention(AnnotationRetention .SOURCE )
1515@Target(AnnotationTarget .VALUE_PARAMETER )
1616annotation class Default (val valueAsString : String )
You can’t perform that action at this time.
0 commit comments