-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert DataStore library version #12891
Conversation
Project dependencies changesThe following changes in project dependencies were detected (configuration list
tree-+--- androidx.datastore:datastore-preferences:1.1.0
-| \--- androidx.datastore:datastore-preferences-android:1.1.0
-| +--- androidx.datastore:datastore:1.1.0
-| | \--- androidx.datastore:datastore-android:1.1.0
-| | +--- androidx.annotation:annotation:1.2.0 -> 1.8.0 (*)
-| | +--- androidx.datastore:datastore-core:1.1.0
-| | | \--- androidx.datastore:datastore-core-android:1.1.0
-| | | +--- androidx.annotation:annotation:1.7.0 -> 1.8.0 (*)
-| | | +--- org.jetbrains.kotlin:kotlin-parcelize-runtime:1.9.22 -> 1.9.25
-| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.9.25 (*)
-| | | | \--- org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.9.25
-| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.9.25 (*)
-| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.22 -> 1.9.25 (*)
-| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3 -> 1.8.1 (*)
-| | | +--- androidx.datastore:datastore:1.1.0 (c)
-| | | +--- androidx.datastore:datastore-core-okio:1.1.0 (c)
-| | | +--- androidx.datastore:datastore-preferences:1.1.0 (c)
-| | | \--- androidx.datastore:datastore-preferences-core:1.1.0 (c)
-| | +--- androidx.datastore:datastore-core-okio:1.1.0
-| | | \--- androidx.datastore:datastore-core-okio-jvm:1.1.0
-| | | +--- androidx.datastore:datastore-core:1.1.0 (*)
-| | | +--- com.squareup.okio:okio:3.4.0 -> 3.7.0
-| | | | \--- com.squareup.okio:okio-jvm:3.7.0
-| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.9.21 -> 1.9.25 (*)
-| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.22 -> 1.9.25 (*)
-| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3 -> 1.8.1 (*)
-| | | +--- androidx.datastore:datastore:1.1.0 (c)
-| | | +--- androidx.datastore:datastore-core:1.1.0 (c)
-| | | +--- androidx.datastore:datastore-preferences:1.1.0 (c)
-| | | \--- androidx.datastore:datastore-preferences-core:1.1.0 (c)
-| | +--- com.squareup.okio:okio:3.4.0 -> 3.7.0 (*)
-| | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.22 -> 1.9.25 (*)
-| | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3 -> 1.8.1 (*)
-| | +--- androidx.datastore:datastore-core:1.1.0 (c)
-| | +--- androidx.datastore:datastore-core-okio:1.1.0 (c)
-| | +--- androidx.datastore:datastore-preferences:1.1.0 (c)
-| | \--- androidx.datastore:datastore-preferences-core:1.1.0 (c)
-| +--- androidx.datastore:datastore-preferences-core:1.1.0
-| | \--- androidx.datastore:datastore-preferences-core-jvm:1.1.0
-| | +--- androidx.datastore:datastore-core:1.1.0 (*)
-| | +--- androidx.datastore:datastore-core-okio:1.1.0 (*)
-| | +--- com.squareup.okio:okio:3.4.0 -> 3.7.0 (*)
-| | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.22 -> 1.9.25 (*)
-| | +--- androidx.datastore:datastore:1.1.0 (c)
-| | +--- androidx.datastore:datastore-core:1.1.0 (c)
-| | +--- androidx.datastore:datastore-core-okio:1.1.0 (c)
-| | \--- androidx.datastore:datastore-preferences:1.1.0 (c)
-| +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.22 -> 1.9.25 (*)
-| +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3 -> 1.8.1 (*)
-| +--- androidx.datastore:datastore:1.1.0 (c)
-| +--- androidx.datastore:datastore-preferences-core:1.1.0 (c)
-| +--- androidx.datastore:datastore-core:1.1.0 (c)
-| \--- androidx.datastore:datastore-core-okio:1.1.0 (c)
++--- androidx.datastore:datastore-preferences:1.0.0
+| +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.10 -> 1.9.25 (*)
+| +--- androidx.datastore:datastore:1.0.0
+| | +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.10 -> 1.9.25 (*)
+| | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0 -> 1.8.1 (*)
+| | +--- androidx.annotation:annotation:1.2.0 -> 1.8.0 (*)
+| | \--- androidx.datastore:datastore-core:1.0.0
+| | +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.10 -> 1.9.25 (*)
+| | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0 -> 1.8.1 (*)
+| | \--- androidx.annotation:annotation:1.1.0 -> 1.8.0 (*)
+| \--- androidx.datastore:datastore-preferences-core:1.0.0
+| +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.10 -> 1.9.25 (*)
+| \--- androidx.datastore:datastore-core:1.0.0 (*)
-+--- androidx.datastore:datastore:1.1.0 (*)
++--- androidx.datastore:datastore:1.0.0 (*)
+--- com.automattic:Automattic-Tracks-Android:5.0.0
| \--- com.squareup.okhttp3:okhttp:4.9.0 -> 4.12.0
-| \--- com.squareup.okio:okio:3.6.0 -> 3.7.0 (*)
+| \--- com.squareup.okio:okio:3.6.0 -> 3.7.0
+| \--- com.squareup.okio:okio-jvm:3.7.0
+| \--- org.jetbrains.kotlin:kotlin-stdlib:1.9.21 -> 1.9.25 (*)
+--- org.wordpress:fluxc:2.99.1
-| \--- org.jetbrains.kotlin:kotlin-parcelize-runtime:1.9.25 (*)
+| \--- org.jetbrains.kotlin:kotlin-parcelize-runtime:1.9.25
+| +--- org.jetbrains.kotlin:kotlin-stdlib:1.9.25 (*)
+| \--- org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.9.25
+| \--- org.jetbrains.kotlin:kotlin-stdlib:1.9.25 (*)
\--- org.wordpress:mediapicker:0.3.1
- \--- androidx.datastore:datastore-preferences:1.0.0 -> 1.1.0 (*)
+ \--- androidx.datastore:datastore-preferences:1.0.0 (*) |
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
@@ -15,7 +15,7 @@ | |||
androidx-constraintlayout-main = '2.1.4' | |||
androidx-core-main = '1.13.1' | |||
androidx-core-splashscreen = '1.0.1' | |||
androidx-datastore = '1.1.0' | |||
androidx-datastore = '1.0.0' # Higher versions of the DataStore library are presenting crashes, refer to peaMlT-XN before upgrading it. |
Check warning
Code scanning / Android Lint
Obsolete Gradle Dependency Warning
@@ -15,7 +15,7 @@ | |||
androidx-constraintlayout-main = '2.1.4' | |||
androidx-core-main = '1.13.1' | |||
androidx-core-splashscreen = '1.0.1' | |||
androidx-datastore = '1.1.0' | |||
androidx-datastore = '1.0.0' # Higher versions of the DataStore library are presenting crashes, refer to peaMlT-XN before upgrading it. |
Check warning
Code scanning / Android Lint
Obsolete Gradle Dependency Warning
@@ -15,7 +15,7 @@ | |||
androidx-constraintlayout-main = '2.1.4' | |||
androidx-core-main = '1.13.1' | |||
androidx-core-splashscreen = '1.0.1' | |||
androidx-datastore = '1.1.0' | |||
androidx-datastore = '1.0.0' # Higher versions of the DataStore library are presenting crashes, refer to peaMlT-XN before upgrading it. |
Check warning
Code scanning / Android Lint
Obsolete Gradle Dependency Warning
@@ -15,7 +15,7 @@ | |||
androidx-constraintlayout-main = '2.1.4' | |||
androidx-core-main = '1.13.1' | |||
androidx-core-splashscreen = '1.0.1' | |||
androidx-datastore = '1.1.0' | |||
androidx-datastore = '1.0.0' # Higher versions of the DataStore library are presenting crashes, refer to peaMlT-XN before upgrading it. |
Check warning
Code scanning / Android Lint
Obsolete Gradle Dependency Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
👋 @ThomazFB , thanks for the fix and apologies for the inconvenience! 🙏 🙇 FYI: As part of the Version Catalogs migration I did warn ( |
Hey @ParaskP7, don't worry about that, and there is no need for apologies; this is not on you in any way; we can't predict that a small version bump of a library could introduce a shady crash like that one; this is a quality fault from the library itself. The Version Catalog was an amazing introduction to our app and thanks for all your work on that! |
Summary
Fix issue #12867 by reverting the DataStore library version back to
1.0.0
.During the project migration to the Version Catalog, we ended up migrating the DataStore from
1.0.0
to1.1.0
. Unfortunately, this upgrade introduced a current known bug from the library to our app.To fix it, this PR reverts the app back to the version prior to the Version Catalog migration one month ago.
How to Test
Currently, 90% of the app's reliance on DataStore is related to Analytics and Stats. To properly test this downgrade, I recommend verifying if the Analytics Hub, My Store Stats, and Top Performers are all working as expected.
Update release notes:
RELEASE-NOTES.txt
if necessary.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: