Skip to content
This repository has been archived by the owner on Aug 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #12 from ReneeVandervelde/api-stability-fixes
Browse files Browse the repository at this point in the history
Documentation updates
  • Loading branch information
ReneeVandervelde authored Sep 29, 2019
2 parents 6ded838 + da759d0 commit c270dd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ class MyApplication: Application() {
Creating your AppConfig
-----------------------

### Priority-Config
### Prioritized-Config

A `PriorityConfig` allows you to search one or more configuration providers
A `PrioritizedConfig` allows you to search one or more configuration providers
before using the default value of the parameter.

The providers will be invoked in the order they are specified. For example:
Expand Down Expand Up @@ -206,7 +206,7 @@ For Example:
val MY_PARAMETER = Parameter.Switch("my.parameter", false)

@Module class MyModule {
@Provides @IntoSet fun myParameter(): Parameter<@JvmSuppressWildcards Any> = MY_PARAMETER
@Provides @IntoSet fun myParameter(): @JvmSuppressWildcards Parameter<Any> = MY_PARAMETER
}
```

Expand All @@ -215,7 +215,7 @@ parameters easily:

```kotlin
class MyActivity: Activity() {
@Inject lateinit var myParameters: Parameter<@JvmSuppressWildcards Any>
@Inject lateinit var myParameters: @JvmSuppressWildcards Parameter<Any>

fun showControlPanel() {
startControlPanel(myParameters)
Expand All @@ -230,7 +230,7 @@ default value map:
```kotlin
class MyActivity: Activity() {
@Inject lateinit var remoteConfig: FirebaseRemoteConfig
@Inject lateinit var myParameters: Parameter<@JvmSuppressWildcards Any>
@Inject lateinit var myParameters: @JvmSuppressWildcards Parameter<Any>

fun loadFirebaseDefaults() {
Log.i("Setting Firebase Config Defaults")
Expand Down

0 comments on commit c270dd2

Please sign in to comment.