-
Notifications
You must be signed in to change notification settings - Fork 67
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
Add commit attribute to AndroidSettings.Factory #74
Comments
This might be taken broader to cover all specific configuration options for other |
There's a bit of a combinatorial explosion when trying to support every option for both constructors and factories. I haven't been very focused on the At some point I want to do some deeper rethinking of how initialization works, and have been thinking about doing a DSL builder style like Ktor and kotlinx.serialization use. See #65. |
I think the commit flag could set also from common module perspective. For example, when I use the no-arg module and creating the settings with |
Platform-specific settings should be configured in platform code, not common code. Otherwise you end up with a bunch of extra flags in common code that don't do anything most of the time, and that makes for a confusing API. The purpose of no-arg is to provide a reasonable default configuration where you don't need to do anything extra. If those default settings don't fit your needs, then you shouldn't be using no-arg. |
I don't think there's changes that need to happen here so I'm closing this issue. |
AndroidSettings
constructor allows to set acommit
flag.I am missing the same configuration option when using
AndroidSettings.Factory
.As the
fun create(String?)
is defined in the parentSettings.Factory
interface, thecommit
option would need to be set inAndroidSettings.Factory
constructor.If we can agree on this I can to the PR.
The text was updated successfully, but these errors were encountered: