-
Notifications
You must be signed in to change notification settings - Fork 24
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
Refactor RemoteArgumentSource to be a sealed class #487
Conversation
27d9586
to
10615f0
Compare
93d1f97
to
411bce9
Compare
b540b12
to
b83b694
Compare
b83b694
to
f996a34
Compare
f996a34
to
a3f9831
Compare
8eba428
to
cfa1604
Compare
pathToField = values.subList(1, values.size), | ||
staticValue = null, | ||
sourceType = SourceType.ObjectField, |
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.
No need to fill in the other values because we create just RemoteArgumentSource.ObjectField
now.
} | ||
|
||
RemoteArgumentDefinition(remoteArgName, remoteArgumentSource) | ||
} | ||
} | ||
|
||
private fun createTemplatedRemoteArgumentSource(value: String, argumentType: SourceType): RemoteArgumentSource { |
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.
Inlined this function, it's much simpler now with the sealed classes.
This looks good, will re-review after you've resolved the conflicts |
cfa1604
to
3fc306f
Compare
No description provided.