diff options
author | Allan Wang <me@allanwang.ca> | 2021-04-17 14:48:01 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-04-17 14:48:01 -0700 |
commit | 6c4d3c203ab87d4d4cc3b86bf4e55c40b18cff96 (patch) | |
tree | c971b19d1a644838fed8800434bf2948e5b8f86e /sample/src/main | |
parent | dab71ba1f0633ae12d02be6a7bb2c86548b1a590 (diff) | |
download | kau-6c4d3c203ab87d4d4cc3b86bf4e55c40b18cff96.tar.gz kau-6c4d3c203ab87d4d4cc3b86bf4e55c40b18cff96.tar.bz2 kau-6c4d3c203ab87d4d4cc3b86bf4e55c40b18cff96.zip |
Update versions and fix hilt
Diffstat (limited to 'sample/src/main')
-rw-r--r-- | sample/src/main/kotlin/ca/allanwang/kau/sample/KPrefSample.kt | 6 | ||||
-rw-r--r-- | sample/src/main/res/xml/kau_changelog.xml | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/KPrefSample.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/KPrefSample.kt index ee39184..970d3eb 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/KPrefSample.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/KPrefSample.kt @@ -23,8 +23,8 @@ import ca.allanwang.kau.kpref.KPrefFactoryAndroid import dagger.Module import dagger.Provides import dagger.hilt.InstallIn -import dagger.hilt.android.components.ApplicationComponent import dagger.hilt.android.qualifiers.ApplicationContext +import dagger.hilt.components.SingletonComponent /** * Created by Allan Wang on 2017-06-07. @@ -44,14 +44,14 @@ class KPrefSample(factory: KPrefFactory) : KPref("pref_sample", factory = factor } @Module -@InstallIn(ApplicationComponent::class) +@InstallIn(SingletonComponent::class) object PrefModule { @Provides fun pref(factory: KPrefFactory): KPrefSample = KPrefSample(factory) } @Module -@InstallIn(ApplicationComponent::class) +@InstallIn(SingletonComponent::class) object PrefFactoryModule { @Provides fun factory(@ApplicationContext context: Context): KPrefFactory = KPrefFactoryAndroid(context) diff --git a/sample/src/main/res/xml/kau_changelog.xml b/sample/src/main/res/xml/kau_changelog.xml index 7ee1ea5..fc56b2d 100644 --- a/sample/src/main/res/xml/kau_changelog.xml +++ b/sample/src/main/res/xml/kau_changelog.xml @@ -33,7 +33,7 @@ <item text=":core: Remove statusBarLight toggle" /> <item text=":core: Remove kau_status_bar_height; height should be found programmatically" /> <item text=":fastadapter: Migrate fastadapter to v4.x.x" /> - <item text=":fastadapter-viewbinding: Create helper items for ViewBinding" /> + <item text=":fastadapter-viewbinding: Create helper items for ViewBinding" />g <item text="Update translations" /> <version title="v5.1.0" /> |