-
Notifications
You must be signed in to change notification settings - Fork 473
For #11753 - Update compose to 1.1.0 and Kotlin to 1.6.10 #11754
Conversation
1a7254e
to
1f2d167
Compare
@@ -48,6 +48,7 @@ internal interface TabCollectionDao { | |||
) | |||
fun getTabCollections(): Flow<List<TabCollectionWithTabs>> | |||
|
|||
@Transaction |
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.
Are we intentionally adding @Transaction
for this query because the returned list could be fairly big and therefore want consistent result or for some other reason?
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.
This is probably for consistency. The Room upgrade must have added a new lint rule/failure to ensure we were always adding the @Transaction
annotation.
It probably came in from here.
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.
Indeed, thanks Jonathan.
After updating to a new room
version we'd get a warning here saying
The return value includes a POJO with a @relation. It is usually desired to annotate this method with @transaction to avoid possibility of inconsistent results between the POJO and its relations.
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.
Can we update the commit and title to include the kotlin version bump?
Interesting - there is #11516 which was doing corountines and kotlin 1.6 together. If this works, then let's land it. 🙂 |
Reopening this since the CI seems to be stuck in queued. |
@gabrielluong CI isn't stuck, the gradle dependencies job is failing. |
Looks like version 1.5.0 of activity-compose is still in alpha and 1.4.0 is the latest stable release. |
a19bf89
to
b6d083f
Compare
b6d083f
to
5aa536a
Compare
5aa536a
to
0d11f7a
Compare
This also required updating room to >= 2.4.0. This new version adds a deprecation of the `MigrationTestHelper` api used in `LoginExceptionStorageTest` that is to be later fixed in mozilla-mobile#11765. activity_compose was also update to the latest stable version to ensure a better match with the latest stable version for compose.
0d11f7a
to
b2b1bc8
Compare
Restarting CI. |
This also required updating room to >= 2.4.0.
This new version adds a deprecation of the
MigrationTestHelper
api used inLoginExceptionStorageTest
that is to be later fixed in #11765.activity_compose
was also updated to the latest stable version to ensure abetter match with the latest stable version for compose.
Most of the changes are around supporting exhaustive
when
s for sealed classes as a new kotlin feature - https://kotlinlang.org/docs/whatsnew1530.html#exhaustive-when-statements-for-sealed-and-boolean-subjectsUpdating
kotlin-coroutines
will be a followup - #11755Pull Request checklist
After merge