Skip to content

Commit

Permalink
chore(flutter): added push notifications snippet for updated settings…
Browse files Browse the repository at this point in the history
….gradle file (#7848)

* chore: added push notifications snippet for updated settings.gradle file

* chore: remove commented code
  • Loading branch information
khatruong2009 authored Aug 5, 2024
1 parent 2264eff commit dece79a
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import fcmPreReq from '/src/fragments/lib/push-notifications/android/getting_sta

### Applying the Google services plugin

<InlineFilter filters={['react-native']}>
The Firebase documentation directs you to add the Google services plugin to your app `build.gradle` using the [Gradle plugins DSL](https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block). However, we recommend you continue to use the [Legacy Plugin Application](https://docs.gradle.org/current/userguide/plugins.html#sec:old_plugin_application) instead:

```groovy
Expand All @@ -41,5 +42,17 @@ apply plugin: 'com.google.gms.google-services'

If you prefer using the plugins DSL, you should add the `plugins` block to the very top of the file or you may experience issues when building your app for Android.

</InlineFilter>

<InlineFilter filters={['flutter']}>

The Firebase documentation directs you to add the Google services plugin to your app `settings.gradle` using the [Gradle plugins DSL](https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block). However, we recommend you continue to use the [Legacy Plugin Application](https://docs.gradle.org/current/userguide/plugins.html#sec:old_plugin_application) instead:

```groovy
id "com.google.gms:google-services" version "4.3.14" apply false
```

</InlineFilter>

</Block>
</BlockSwitcher>

0 comments on commit dece79a

Please sign in to comment.