Skip to content

Commit

Permalink
Update PN migration guides
Browse files Browse the repository at this point in the history
  • Loading branch information
JcMinarro committed Jul 24, 2023
1 parent 8771f31 commit bc2fbfc
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ dependencies {
}
```

The constructor of `FirebasePushDeviceGenerator` has been updated, now it requires a provider name.
```kotlin {2}
val firebasePushDeviceGenerator = FirebasePushDeviceGenerator(
providerName = "your_provider_name"
)
```

## Huawei
If you were using our Huawei Implementation and want to keep it, you only need to switch the dependency in your `build.gradle` file, and update the imports where the old classes are used.
```groovy {2}
Expand All @@ -37,10 +44,29 @@ dependencies {
}
```

The constructor of `HuaweiPushDeviceGenerator` has been updated, now it requires a provider name.
```kotlin {4}
val huaweiPushDeviceGenerator = HuaweiPushDeviceGenerator(
context = context,
appId = ApplicationConfigurator.HUAWEI_APP_ID,
providerName = "your_provider_name",
)
```

## Xiaomi
If you were using our Xiaomi Implementation and want to keep it, you only need to switch the dependency in your `build.gradle` file, and update the imports where the old classes are used.
```groovy {2}
dependencies {
implementation "io.getstream:stream-android-push-xiaomi:$stream_android_push_version"
}
```

The constructor of `XiaomiPushDeviceGenerator` has been updated, now it requires a provider name.
```kotlin {5}
val xiaomiPushDeviceGenerator = XiaomiPushDeviceGenerator(
context = context,
appId = ApplicationConfigurator.XIAOMI_APP_ID,
appKey = ApplicationConfigurator.XIAOMI_APP_KEY,
providerName = "your_provider_name",
)
```

0 comments on commit bc2fbfc

Please sign in to comment.