-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert ComponentsConfiguration to Kotlin
Summary: The goal of this diff is to make our `ComponentsConfiguration` into a kotlin data class. The main changes are: - `ComponentsConfiguration` is now a data class. - `ComponentsConfiguration` has an `internal` constructor. This forces clients to only be able to generate one either by getting the `defaultInstance` or by overriding some values calling `copy` on the `defaultInstance`. - There is still a `ComponentsConfiguration.create()` method for the Java clients to still have an easy access to overriding. However, as more code is converted to Kotlin we can actually remove it. (there are not really many usages of it). Some examples of usage in Kotlin: ``` /* overriding the default */ ComponentsConfiguration.defaultInstance = ComponentsConfiguration.defaultInstance.copy(myParam = true) ``` Reviewed By: adityasharat Differential Revision: D51109234 fbshipit-source-id: f566bae4b3902a6570f0e9d6819843530f2fdb17
- Loading branch information
1 parent
a65a680
commit bab82b0
Showing
36 changed files
with
516 additions
and
676 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
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
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
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
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
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
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
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
Oops, something went wrong.