Fixed
Status Update
Comments
jb...@google.com <jb...@google.com>
cl...@google.com <cl...@google.com>
ap...@google.com <ap...@google.com> #2
since these are in public API (:/) we need to do this in 1.2
cl...@google.com <cl...@google.com> #3
since it is already marked as deprecated, we can probably do it by now.
je...@gmail.com <je...@gmail.com> #4
Opening diff shortly
il...@google.com <il...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-master-dev
commit d576cbdc911cba16638a44fd8223391a90a07ef7
Author: Mike Nakhimovich <digitalbuddha@users.noreply.github.com>
Date: Tue Aug 11 09:30:34 2020
[GH] Hide deprecated internal API.
## Proposed Changes
* `RoomDatabase.java` has protected `mCallbacks` field which is leaking in the API docs, we should @Hide it.
## Testing
Test: Ran unit tests locally
## Issues Fixed
Fixes: 76109329
This is an imported pull request fromhttps://github.com/androidx/androidx/pull/61 .
Resolves #61
Github-Pr-Head-Sha: 6440daa3a63752c7f9d5ba2a390248cd85bc634f
GitOrigin-RevId: fe92d8466a59b44b218b6ca3cbd57dcda17992f7
Change-Id: Id599cdf5b02b32bdae0166266fb7da967598fe92
A room/runtime/api/current.ignore
M room/runtime/api/current.txt
M room/runtime/api/public_plus_experimental_current.txt
M room/runtime/api/restricted_current.txt
M room/runtime/src/main/java/androidx/room/RoomDatabase.java
https://android-review.googlesource.com/1396827
Branch: androidx-master-dev
commit d576cbdc911cba16638a44fd8223391a90a07ef7
Author: Mike Nakhimovich <digitalbuddha@users.noreply.github.com>
Date: Tue Aug 11 09:30:34 2020
[GH] Hide deprecated internal API.
## Proposed Changes
* `RoomDatabase.java` has protected `mCallbacks` field which is leaking in the API docs, we should @Hide it.
## Testing
Test: Ran unit tests locally
## Issues Fixed
Fixes: 76109329
This is an imported pull request from
Resolves #61
Github-Pr-Head-Sha: 6440daa3a63752c7f9d5ba2a390248cd85bc634f
GitOrigin-RevId: fe92d8466a59b44b218b6ca3cbd57dcda17992f7
Change-Id: Id599cdf5b02b32bdae0166266fb7da967598fe92
A room/runtime/api/current.ignore
M room/runtime/api/current.txt
M room/runtime/api/public_plus_experimental_current.txt
M room/runtime/api/restricted_current.txt
M room/runtime/src/main/java/androidx/room/RoomDatabase.java
lu...@gmail.com <lu...@gmail.com> #6
I got the same issue as
Even if regular enums are implicitly Serializable
, you still need to add it or the issue Ensure that the serialName for this argument is the default fully qualified name
will appear.
package org.jdc.template.ux.test
@Serializable
enum class TestEnum {
ONE,
TWO
}
@Serializable
data class TestRoute(
val testEnum: TestEnum
)
You will also need to specified type in the declaration of your route:
composable<Route.TestRoute>(
typeMap = mapOf(
typeOf<TestEnum>() to NavType.EnumType(TestEnum::class.java)
),
) {
...
}
During my investigations, I've found that if you declare it like this:
package org.jdc.template.ux.test
@Serializable
data class TestRoute(
val testEnum: TestEnum
) {
enum class TestEnum {
ONE,
TWO
}
}
It will work on non-minified code, but it won't after minifying and you will get same error as before.
pr...@google.com <pr...@google.com> #8
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.navigation:navigation-common:2.8.0-beta07
androidx.navigation:navigation-runtime:2.8.0-beta07
Description
Component used: Navigation: androidx.navigation:navigation-compose
Version used: 2.8.0-beta02
Per Ian's comment here https://issuetracker.google.com/issues/346505952#comment2 it should not be needed.
Repro here:https://github.com/hrach/navigation-compose/commit/6342c95cc0c57a5e8598f92241d59a658c538071