-
Notifications
You must be signed in to change notification settings - Fork 308
Move offline support to LLC #6062
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
base: v7
Are you sure you want to change the base?
Conversation
|
DB Entities have been updated. Do we need to upgrade DB Version? |
SDK Size Comparison 📏
|
| this.pluginFactories.addAll(pluginFactories) | ||
| this.pluginFactories = pluginFactories.toList() |
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.
Should we update the KDoc since now we're overwriting the factories instead of adding them?
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.
I will update it!
Although after the refactor of offline/state, I would personally remove this method - I don't think we should allow registering custom plugins. (but we can discuss that separately)
# Conflicts: # metrics/size.json # stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api/OfflineConfig.kt # stream-chat-android-offline/src/main/AndroidManifest.xml # stream-chat-android-offline/src/main/java/io/getstream/chat/android/offline/repository/database/internal/ChatDatabase.kt # stream-chat-android-offline/src/test/java/io/getstream/chat/android/offline/utils/ChannelDiffCallback.kt # stream-chat-android-offline/src/test/java/io/getstream/chat/android/offline/utils/DiffUtilOperationCounter.kt # stream-chat-android-offline/src/test/java/io/getstream/chat/android/offline/utils/MessageDiffCallback.kt # stream-chat-android-offline/src/test/java/io/getstream/chat/android/offline/utils/MockDatabase.kt # stream-chat-android-offline/src/test/java/io/getstream/chat/android/offline/utils/TestLoggerHandler.kt # stream-chat-android-offline/src/test/java/io/getstream/chat/android/offline/utils/TestUtils.kt
|




🎯 Goal
Removes the
stream-chat-android-offlinemodule and moves theStreamOfflinePluginFactory/OfflinePluginto the LLC(stream-chat-android-client).Important: This is just the first part of the offline support refactor. The next step is to move the
statesupport down to the client. Afterwards, we need to revisit the points documented in the following ticket. This is extremely important before publishingV7.🛠 Implementation details
clientmodule, in package:io.getstream.chat.android.client.internal.offlineStreamOfflinePluginFactoryis nowinternalinstead of public to disallow instantiationOfflineConfigclass, via theChatClient.Builder.offlineConfig(OfflineConfig)methodChatClientrelated to the plugin setup - but in the end, theOfflinePluginis still setup internally based on theOfflineConfig.🎨 UI Changes
NA
🧪 Testing
The offline support is now enabled by default.
You can test that everything works as expected without any changes in the samples.
ChatClient.Builder().offlineSupport(OfflineConfig(enabled = false))- and verify that no data is available offline.