Skip to content

Commit f1c3de4

Browse files
author
Nick Rout
committed
Prevent DataStore crash
1 parent d5f8581 commit f1c3de4

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

Diff for: app/proguard-rules.pro

+5
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,8 @@
100100
## Jetpack Navigation
101101

102102
-keepnames class androidx.navigation.fragment.NavHostFragment
103+
104+
## BUG: Jetpack DataStore
105+
## https://issuetracker.google.com/issues/168580258
106+
107+
-keep class androidx.datastore.*.** {*;}

Diff for: buildSrc/src/main/java/dev/ricknout/rugbyranker/buildsrc/Dependencies.kt

-8
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ object Versions {
3131
const val work = "2.5.0-alpha02"
3232
const val hilt = "1.0.0-alpha02"
3333
const val dataStore = "1.0.0-alpha01"
34-
// BUG: Issue with preferences/crypto (most likely DataStore)
35-
// https://issuetracker.google.com/issues/157983099
36-
const val security = "1.1.0-alpha02"
3734
object Test {
3835
const val core = "1.3.0"
3936
const val jUnit = "1.1.2"
@@ -114,11 +111,6 @@ object Libs {
114111
object DataStore {
115112
const val preferences = "androidx.datastore:datastore-preferences:${Versions.AndroidX.dataStore}"
116113
}
117-
// BUG: Issue with preferences/crypto (most likely DataStore)
118-
// https://issuetracker.google.com/issues/157983099
119-
object Security {
120-
const val cryptoKtx = "androidx.security:security-crypto-ktx:${Versions.AndroidX.security}"
121-
}
122114
object Test {
123115
const val runner = "androidx.test:runner:${Versions.AndroidX.Test.runner}"
124116
const val instrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

Diff for: core/build.gradle

-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ dependencies {
4444
api Libs.AndroidX.Hilt.Lifecycle.viewModel
4545
api Libs.AndroidX.Hilt.work
4646
api Libs.AndroidX.DataStore.preferences
47-
// BUG: Issue with preferences/crypto (most likely DataStore)
48-
// https://issuetracker.google.com/issues/157983099
49-
api Libs.AndroidX.Security.cryptoKtx
5047
api Libs.Square.okHttp
5148
api Libs.Square.Retrofit.retrofit
5249
api Libs.Square.Retrofit.gsonConverter

0 commit comments

Comments
 (0)