File tree 2 files changed +4
-4
lines changed
annotation/src/main/kotlin/com/tobrun/datacompat/annotation
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:
28
28
29
29
``` groovy
30
30
dependencies {
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'
33
33
}
34
34
```
35
35
36
36
37
37
### Getting started
38
38
39
- Given an exisiting data class:
39
+ Given an existing data class:
40
40
- add ` @DataCompat ` annotation
41
41
- mark class private
42
42
- 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
11
11
* it should be passed here as "\"STRING_VALUE\""; if default [Int] is used, it should be passed
12
12
* as "INT_VALUE".
13
13
*/
14
- @Retention(AnnotationRetention .RUNTIME )
14
+ @Retention(AnnotationRetention .SOURCE )
15
15
@Target(AnnotationTarget .VALUE_PARAMETER )
16
16
annotation class Default (val valueAsString : String )
You can’t perform that action at this time.
0 commit comments