We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For some library, consumers might be useful the ability to get all config info form of a JSON string.
getConfigAsJson
filterEnabled
Usecase 1
val jsonConfiguration = devtools.getAllConfigAsJson()
onCreate
jsonConfiguration
Usecase 2 (Make sure the filter predicate works properly)
val jsonConfiguration = devtools.getAllConfigAsJson { tool -> tool.isEnabled }
The text was updated successfully, but these errors were encountered:
maximbircu
Successfully merging a pull request may close this issue.
Abstract
For some library, consumers might be useful the ability to get all config info form of a JSON string.
Requirements
getConfigAsJson
method to DevToolsStorage.ktfilterEnabled
parameter so that the library user will be able to filter out the disabled configuration values.Consumer flow
Usecase 1
val jsonConfiguration = devtools.getAllConfigAsJson()
inside theonCreate
methodjsonConfiguration
resultUsecase 2 (Make sure the filter predicate works properly)
val jsonConfiguration = devtools.getAllConfigAsJson { tool -> tool.isEnabled }
inside theonCreate
methodjsonConfiguration
resultYou can try and experiment with different filters.
The text was updated successfully, but these errors were encountered: