-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from hotwired/strada-logging
Move the `debugLoggingEnabled` flag to the Strada.config namespace
- Loading branch information
Showing
2 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
package dev.hotwire.strada | ||
|
||
class StradaConfig internal constructor() { | ||
/** | ||
* Set a custom JSON converter to easily decode Message.dataJson to a data | ||
* object in received messages and to encode a data object back to json to | ||
* reply with a custom message back to the web. | ||
*/ | ||
var jsonConverter: StradaJsonConverter? = null | ||
|
||
/** | ||
* Enable debug logging to see message communication from/to the WebView. | ||
* | ||
* NOTE: You should not enable debug logging in production builds. | ||
*/ | ||
var debugLoggingEnabled = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters