[docs] added groovy support to prism
This commit is contained in:
parent
ef42fcb98d
commit
fe0a98f1c8
|
@ -393,6 +393,7 @@
|
||||||
<script src="//unpkg.com/prismjs/components/prism-javascript.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-javascript.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-java.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-java.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-ruby.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-ruby.min.js"></script>
|
||||||
|
<script src="//unpkg.com/prismjs/components/prism-groovy.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-c.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-c.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-objectivec.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-objectivec.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-swift.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-swift.min.js"></script>
|
||||||
|
|
|
@ -7,7 +7,7 @@ Next you'll have to add the google-services gradle plugin in order to parse it.
|
||||||
|
|
||||||
Add the google-services gradle plugin as a dependency in the *project* level build.gradle
|
Add the google-services gradle plugin as a dependency in the *project* level build.gradle
|
||||||
`android/build.gradle`
|
`android/build.gradle`
|
||||||
```java
|
```groovy
|
||||||
buildscript {
|
buildscript {
|
||||||
// ...
|
// ...
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -19,7 +19,7 @@ buildscript {
|
||||||
|
|
||||||
In your app build.gradle file, add the gradle plugin at the VERY BOTTOM of the file (below all dependencies)
|
In your app build.gradle file, add the gradle plugin at the VERY BOTTOM of the file (below all dependencies)
|
||||||
`android/app/build.gradle`
|
`android/app/build.gradle`
|
||||||
```java
|
```groovy
|
||||||
apply plugin: 'com.google.gms.google-services'
|
apply plugin: 'com.google.gms.google-services'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -29,14 +29,14 @@ RNFirebase is split into separate modules to allow you to only include the Fireb
|
||||||
|
|
||||||
First add the project path to `android/settings.gradle`:
|
First add the project path to `android/settings.gradle`:
|
||||||
|
|
||||||
```
|
```groovy
|
||||||
include ':react-native-firebase'
|
include ':react-native-firebase'
|
||||||
project(':react-native-firebase').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase/android')
|
project(':react-native-firebase').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase/android')
|
||||||
```
|
```
|
||||||
|
|
||||||
Now you need to include RNFirebase and the required Firebase dependencies in our `android/app/build.gradle` so that they are compiled as part of React Native. In the `dependencies` listing, add the appropriate `compile` lines:
|
Now you need to include RNFirebase and the required Firebase dependencies in our `android/app/build.gradle` so that they are compiled as part of React Native. In the `dependencies` listing, add the appropriate `compile` lines:
|
||||||
|
|
||||||
```
|
```groovy
|
||||||
dependencies {
|
dependencies {
|
||||||
// RNFirebase required dependencies
|
// RNFirebase required dependencies
|
||||||
compile(project(':react-native-firebase')) {
|
compile(project(':react-native-firebase')) {
|
||||||
|
|
Loading…
Reference in New Issue