Skip to content

Commit dece79a

Browse files
chore(flutter): added push notifications snippet for updated settings.gradle file (#7848)
* chore: added push notifications snippet for updated settings.gradle file * chore: remove commented code
1 parent 2264eff commit dece79a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/fragments/lib/push-notifications/common/getting_started/cross-platform-prereq.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import fcmPreReq from '/src/fragments/lib/push-notifications/android/getting_sta
3333

3434
### Applying the Google services plugin
3535

36+
<InlineFilter filters={['react-native']}>
3637
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:
3738

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

4243
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.
4344

45+
</InlineFilter>
46+
47+
<InlineFilter filters={['flutter']}>
48+
49+
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:
50+
51+
```groovy
52+
id "com.google.gms:google-services" version "4.3.14" apply false
53+
```
54+
55+
</InlineFilter>
56+
4457
</Block>
4558
</BlockSwitcher>

0 commit comments

Comments
 (0)