Fixed
Status Update
Comments
aa...@google.com <aa...@google.com>
je...@google.com <je...@google.com>
cm...@google.com <cm...@google.com>
sp...@google.com <sp...@google.com> #2
We don't support cross-process invalidations yet.
an...@google.com <an...@google.com> #3
At least , add a "refresh all observables" function to alpha4 ? i am trying to implement it by myself with your InvalidationTracker class
an...@google.com <an...@google.com> #4
Okey, I made it and created a method to invalidate all observables below;
private void refreshAllLiveData() {
AppDataBase YOUR_DATABASE_WHICH_YOU_BUILD = .....
SupportSQLiteDatabase writableDatabase = YOUR_DATABASE_WHICH_YOU_BUILD.getOpenHelper().getWritableDatabase();
//get the database count;
Cursor cursor = writableDatabase.query("SELECT count(*) FROM sqlite_master WHERE type = 'table' AND name != 'android_metadata' AND name != 'room_master_table';");
int tableCount = 0;
while(cursor.moveToNext()) {
tableCount = cursor.getInt(0);
}
for (int i = 0; i < tableCount; i++) {
//update version table with the incremented count because room modification log stores tables with ids instead of names
writableDatabase.execSQL("INSERT OR REPLACE INTO room_table_modification_log VALUES(null, "+(i)+")");
}
YOUR_DATABASE_WHICH_YOU_BUILD.getInvalidationTracker().refreshVersionsAsync();
}
-----
This is a workaroud for refreshing all live datas, I still prefer to use a proper API you implemented.
Thanx
private void refreshAllLiveData() {
AppDataBase YOUR_DATABASE_WHICH_YOU_BUILD = .....
SupportSQLiteDatabase writableDatabase = YOUR_DATABASE_WHICH_YOU_BUILD.getOpenHelper().getWritableDatabase();
//get the database count;
Cursor cursor = writableDatabase.query("SELECT count(*) FROM sqlite_master WHERE type = 'table' AND name != 'android_metadata' AND name != 'room_master_table';");
int tableCount = 0;
while(cursor.moveToNext()) {
tableCount = cursor.getInt(0);
}
for (int i = 0; i < tableCount; i++) {
//update version table with the incremented count because room modification log stores tables with ids instead of names
writableDatabase.execSQL("INSERT OR REPLACE INTO room_table_modification_log VALUES(null, "+(i)+")");
}
YOUR_DATABASE_WHICH_YOU_BUILD.getInvalidationTracker().refreshVersionsAsync();
}
-----
This is a workaroud for refreshing all live datas, I still prefer to use a proper API you implemented.
Thanx
an...@google.com <an...@google.com> #5
Cross process invalidation is now support in Room 2.1.0 with the enableMultiInstanceInvalidation() API.
jo...@gmail.com <jo...@gmail.com> #6
Comment has been deleted.
ta...@gmail.com <ta...@gmail.com> #7
Comment has been deleted.
ta...@gmail.com <ta...@gmail.com> #8
Comment has been deleted.
pa...@gmail.com <pa...@gmail.com>
s0...@gmail.com <s0...@gmail.com> #9
good
re...@gmail.com <re...@gmail.com> #10
Hola mundo "
ra...@gmail.com <ra...@gmail.com> #11
Fff
gu...@gmail.com <gu...@gmail.com> #12
Hola mundo
Description
When trying to use the new
com.android.settings
plugin insettings.gradle
, added in Android Gradle Plugin 8.0.0-alpha09, im getting an error not recognizingtargetSdk
method.In
settings.gradle
:Build log when sync-ing:
Gradle DSL method not found: 'targetSdk()'
Tried using up to the latest version (as of today
8.3.0-alpha18
) but still doesn't recognize. Haven't found any references to the lack of support for this.Are there any plans to add it? If i'm gonna move my module configuration to use this plugin, i need it to have all 3 versions, otherwise i will have 2 configurations in different places.
Studio Build: Version of Gradle Plugin: 8.2.0 Version of Gradle: gradle-8.5-all Version of Java: openjdk 17.0.7 2023-04-18 OS: macOs Ventura 13.4