-
Notifications
You must be signed in to change notification settings - Fork 191
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
feat: Web support #730
feat: Web support #730
Conversation
wow, looks good, did you test it out? |
Yes doing these changes manually I could make my application work. I tested in this branch, but I did floor changes just locally |
awesome, I'll prepare the project update PR, because the current one contains a lot of changes in the |
Hey @mirland |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #730 +/- ##
==========================================
- Coverage 91.92% 0 -91.93%
==========================================
Files 11 0 -11
Lines 223 0 -223
==========================================
- Hits 205 0 -205
+ Misses 18 0 -18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @dkaera, do you have any feedback for my PR? I don't know if I can do something to merge it |
the coverage check blocks this PR, so you need to add the corresponding test for the newly added condition first |
Hi @dkaera , can you suggest to me how can I do that, in this case, there's no test to do, I mean, if we want to do that we should like mock the platform and check the factory. I checked your tests and that method seems to be not tested and there's not something similar |
@dkaera can you suggest to me what kind of test should I include? |
ah, I'm sorry, I can't help you now, because of the heavy workload. |
any news on this? |
Hey, not really, I couldn't do the test. I mean, If I wanted to add it I had to redefine some things, and I didn't find the value of that only for this test. However, if you want to try the database on the web it's not had. You have to add the dependency, and then redefine the factory in your app database. Here you have an example: https://github.com/xmartlabs/fluttips/blob/main/lib/core/source/database.dart#L24 |
There was a duplicate import, therefor we using the prefix.
# Conflicts: # example/android/gradle/wrapper/gradle-wrapper.properties # example/pubspec.lock # floor/pubspec.lock # floor/pubspec.yaml
aa095b6
to
9c19ecb
Compare
Is this PR still relevant, since it's merged to #819? |
@hendrikvdkaaden yes we can close this PR |
the changes were picked up and integrated separately |
Right now sqflite_common_ffi_web is in an experimental state, but if we add the factory, we can support the web optionally.
What do you think?
Currently, floor doesn't support web and we cannot update the factory creator, so if we want to support web we have to change the generated code (or duplicate code), and it's not a good idea.
This pr adds the web factory