Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
I think it is because we've deprecated the accidently public mDatabase. Should be fine.
Can you share the full warning so we can verify?
Can you share the full warning so we can verify?
is...@google.com <is...@google.com>
da...@google.com <da...@google.com>
na...@google.com <na...@google.com> #3
That's the entire message:
...app\build\generated\source\kapt\remoteDevDebug\za\co\ruggedmobile\petermeter\data\PeterMeterDb_Impl.java:
uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.
...app\build\generated\source\kapt\remoteDevDebug\za\co\ruggedmobile\petermeter\data\PeterMeterDb_Impl.java:
uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.
pe...@gmail.com <pe...@gmail.com> #4
I see it is a "Note" not a warning.
da...@google.com <da...@google.com> #5
Here are the warnings I'm getting with -Xlint:deprecation:
AppDatabase_Impl.java:154: warning: [deprecation] mCallbacks in RoomDatabase has been deprecated
if (mCallbacks != null) {
^
AppDatabase_Impl.java:155: warning: [deprecation] mCallbacks in RoomDatabase has been deprecated
for (int _i = 0, _size = mCallbacks.size(); _i < _size; _i++) {
^
AppDatabase_Impl.java:156: warning: [deprecation] mCallbacks in RoomDatabase has been deprecated
mCallbacks.get(_i).onCreate(_db);
^
AppDatabase_Impl.java:163: warning: [deprecation] mDatabase in RoomDatabase has been deprecated
mDatabase = _db;
^
AppDatabase_Impl.java:166: warning: [deprecation] mCallbacks in RoomDatabase has been deprecated
if (mCallbacks != null) {
^
AppDatabase_Impl.java:167: warning: [deprecation] mCallbacks in RoomDatabase has been deprecated
for (int _i = 0, _size = mCallbacks.size(); _i < _size; _i++) {
^
AppDatabase_Impl.java:168: warning: [deprecation] mCallbacks in RoomDatabase has been deprecated
mCallbacks.get(_i).onOpen(_db);
^
AppDatabase_Impl.java:154: warning: [deprecation] mCallbacks in RoomDatabase has been deprecated
if (mCallbacks != null) {
^
AppDatabase_Impl.java:155: warning: [deprecation] mCallbacks in RoomDatabase has been deprecated
for (int _i = 0, _size = mCallbacks.size(); _i < _size; _i++) {
^
AppDatabase_Impl.java:156: warning: [deprecation] mCallbacks in RoomDatabase has been deprecated
mCallbacks.get(_i).onCreate(_db);
^
AppDatabase_Impl.java:163: warning: [deprecation] mDatabase in RoomDatabase has been deprecated
mDatabase = _db;
^
AppDatabase_Impl.java:166: warning: [deprecation] mCallbacks in RoomDatabase has been deprecated
if (mCallbacks != null) {
^
AppDatabase_Impl.java:167: warning: [deprecation] mCallbacks in RoomDatabase has been deprecated
for (int _i = 0, _size = mCallbacks.size(); _i < _size; _i++) {
^
AppDatabase_Impl.java:168: warning: [deprecation] mCallbacks in RoomDatabase has been deprecated
mCallbacks.get(_i).onOpen(_db);
^
pe...@gmail.com <pe...@gmail.com> #6
This should be fixed in 2.1.0-alpha05
mi...@gmail.com <mi...@gmail.com> #7
2.1.0-alpha05 ?
still not released, right?
How could I go around this issue for now?
still not released, right?
How could I go around this issue for now?
el...@google.com <el...@google.com> #8
Thanks for the bump, we'll resolve this issue asap.
ap...@google.com <ap...@google.com> #9
Project: platform/frameworks/support
Branch: androidx-main
commit 01002bedc549e0264a5f920dc554ed7dd7785cfe
Author: elifbilgin <elifbilgin@google.com>
Date: Tue Aug 01 05:53:50 2023
Handle special case SQLite exception during upsert.
When 2067 SQLITE_CONSTRAINT_UNIQUE is thrown during an upsert, upsert should perform an update.
Bug: 243039555
Test: EntityUpsertionAdapterTest.java
Change-Id: If28499c59443f590ac456924eff03b18f1a87e4f
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/EntityUpsertionAdapterTest.java
M room/room-runtime/src/main/java/androidx/room/EntityUpsertionAdapter.kt
https://android-review.googlesource.com/2686153
Branch: androidx-main
commit 01002bedc549e0264a5f920dc554ed7dd7785cfe
Author: elifbilgin <elifbilgin@google.com>
Date: Tue Aug 01 05:53:50 2023
Handle special case SQLite exception during upsert.
When 2067 SQLITE_CONSTRAINT_UNIQUE is thrown during an upsert, upsert should perform an update.
Bug: 243039555
Test: EntityUpsertionAdapterTest.java
Change-Id: If28499c59443f590ac456924eff03b18f1a87e4f
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/EntityUpsertionAdapterTest.java
M room/room-runtime/src/main/java/androidx/room/EntityUpsertionAdapter.kt
Description