- Notifications
You must be signed in to change notification settings - Fork 1.1k
Configure script based on remote config #7036
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
Configure script based on remote config #7036
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
a52dd72 to d84dffc Compare 301952b to ad6c768 Compare ac2f5ab to a48fefe Compare | private val postInitialPing = "\$POST_INITIAL_PING$" | ||
| private val replyToNativeMessages = "\$REPLY_TO_NATIVE_MESSAGES$" | ||
| | ||
| private fun configureWebViewForWebViewCompatTest(webView: DuckDuckGoWebView) { |
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.
can we move all of this to its own class to keep BTF changes minimal and contained? thinking there would be a single line in BTF which calls through to your thing passing the WebView for instance.
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.
Sure. I wanted to avoid overengineering for this project, as we did for the previous one, but happy to reach a middle ground between overengineering and purely hacking our way around it
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.
Approving, but think we should encapsulate that new code to a different class if we can
ad6c768 to 4939603 Compare a48fefe to 1078f2d Compare 4939603 to 9acf98b Compare 5a08c8b to e5f0620 Compare 2c94455 to 25ece01 Compare e5f0620 to 31f03cf Compare | withContext(dispatchers.main()) { | ||
| val script = withContext(dispatchers.io()) { |
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.
nit: i don't think this top level withContext(dispatchers.main()) helps with readability since you immediately jump to another dispatchers in the first of the nested block.
might read better to have val script = withContext(dispatchers.io()) where you get the script on IO, and then withContext(dispatchers.main() for calling addDocumentStartJavaScript. i.e., not nesting the withContext calls.
No strong feelings though.
Merge activity
|
5264c26 to 759a26d Compare 
Task/Issue URL: https://app.asana.com/1/137249556945/project/72649045549333/task/1211755269770777?focus=true
Description
Configure script based on remote config
Steps to test this PR
Feature 1
UI changes
n/a