File tree 6 files changed +12
-9
lines changed
src/main/kotlin/org/jraf/android/prefs/sample
6 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 19
19
``` groovy
20
20
dependencies {
21
21
/* ... */
22
- annotationProcessor 'org.jraf:prefs-compiler:1.3 .0' // or kapt if you use Kotlin
23
- implementation 'org.jraf:prefs:1.3 .0'
22
+ annotationProcessor 'org.jraf:prefs-compiler:1.4 .0' // or kapt if you use Kotlin
23
+ implementation 'org.jraf:prefs:1.4 .0'
24
24
}
25
25
```
26
26
Original file line number Diff line number Diff line change 18
18
org.gradle.parallel =true
19
19
# Enable build cache
20
20
org.gradle.caching =true
21
+ # Use AndroidX
22
+ android.useAndroidX =true
23
+ android.enableJetifier =true
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ android {
27
27
28
28
dependencies {
29
29
implementation ' org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.10'
30
- implementation " com.android.support :appcompat-v7:28 .0.0"
31
- implementation ' com.android.support:support-annotations:28 .0.0'
32
- implementation ' android.arch. lifecycle:livedata:1.1.1 '
30
+ implementation ' androidx.appcompat :appcompat:1 .0.0'
31
+ implementation ' androidx.annotation:annotation:1 .0.0'
32
+ implementation ' androidx. lifecycle:lifecycle- livedata:2.0.0 '
33
33
34
34
kapt project(' :prefs-compiler' )
35
35
implementation project(' :prefs' )
Original file line number Diff line number Diff line change 23
23
*/
24
24
package org.jraf.android.prefs.sample.app
25
25
26
- import android.arch.lifecycle.Observer
27
26
import android.os.Bundle
28
- import android.support.v7.app.AppCompatActivity
29
27
import android.util.Log
28
+ import androidx.appcompat.app.AppCompatActivity
29
+ import androidx.lifecycle.Observer
30
30
import org.jraf.android.prefs.sample.R
31
31
import org.jraf.android.prefs.sample.prefs.MainPrefs
32
32
import org.jraf.android.prefs.sample.prefs.SettingsPrefs
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ import org.jraf.android.prefs.Prefs
32
32
*/
33
33
@Prefs(
34
34
generateGetLiveData = true ,
35
- useAndroidX = false
35
+ useAndroidX = true
36
36
)
37
37
class Main {
38
38
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import org.jraf.android.prefs.Prefs
34
34
@Prefs(
35
35
fileName = " settings" ,
36
36
fileMode = Context .MODE_PRIVATE ,
37
- useAndroidX = false
37
+ useAndroidX = true
38
38
)
39
39
class Settings {
40
40
@DefaultInt(- 0x44ff23 )
You can’t perform that action at this time.
0 commit comments