Skip to content

Commit 06b0956

Browse files
authored
Merge pull request #40 from jush/rs/fix-default-retention
Change Default annotation retention to SOURCE
2 parents ba164f2 + 8da8a93 commit 06b0956

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ And you will have to include the required dependencies:
2828

2929
```groovy
3030
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'
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

annotation/src/main/kotlin/com/tobrun/datacompat/annotation/Default.kt

+1-1
Original file line numberDiff line numberDiff 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)
1616
annotation class Default(val valueAsString: String)

0 commit comments

Comments
 (0)