File tree Expand file tree Collapse file tree 6 files changed +10
-9
lines changed
src/main/java/com/funny/data_saver/core
data_saver_data_store_preferences Expand file tree Collapse file tree 6 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 11plugins {
22 id ' com.android.application'
33 id ' kotlin-android'
4- id ' org.jetbrains.kotlin.plugin.serialization' version " 1.7.10 "
4+ id ' org.jetbrains.kotlin.plugin.serialization' version " 1.9.20 "
55}
66
77android {
8- compileSdk 33
8+ compileSdk 34
99 buildToolsVersion " 33.0.0"
1010
1111 defaultConfig {
Original file line number Diff line number Diff line change 11// Top-level build file where you can add configuration options common to all sub-projects/modules.
22buildscript {
3- ext. kotlin_version = ' 1.8.10 '
4- ext. version_name = " 1.1.7 "
5- ext. compose_compiler_version = " 1.4.3 "
6- ext. compose_bom_version = " 2023.06 .01"
3+ ext. kotlin_version = ' 1.9.20 '
4+ ext. version_name = " 1.1.8 "
5+ ext. compose_compiler_version = " 1.5.5 "
6+ ext. compose_bom_version = " 2023.10 .01"
77 repositories {
88 google()
99 mavenCentral()
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ task generateSourcesJar(type: Jar) {
1010}
1111
1212android {
13- compileSdk 33
13+ compileSdk 34
1414 buildToolsVersion " 33.0.0"
1515
1616 defaultConfig {
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ open class DataSaverPreferences(
4343 private val logger by lazy { DataSaverLogger (" DataSaverPreferences" ) }
4444 private val onSharedPreferenceChangeListener by lazy {
4545 SharedPreferences .OnSharedPreferenceChangeListener { sharedPreferences, key ->
46+ key ? : return @OnSharedPreferenceChangeListener
4647 logger.d(" data changed: $key -> ${sharedPreferences.all[key]} , subscriptionCount: ${externalDataChangedFlow?.subscriptionCount?.value} " )
4748 externalDataChangedFlow?.tryEmit(key to sharedPreferences.all[key])
4849 }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
55}
66
77android {
8- compileSdk 33
8+ compileSdk 34
99 buildToolsVersion " 33.0.0"
1010
1111 defaultConfig {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
55}
66
77android {
8- compileSdk 33
8+ compileSdk 34
99 buildToolsVersion " 33.0.0"
1010
1111 defaultConfig {
You can’t perform that action at this time.
0 commit comments