build.gradle 1.16 KB
Newer Older
Wietse Kuipers's avatar
Wietse Kuipers committed
1
2
3
4
5
6
7
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
Wietse Kuipers's avatar
Wietse Kuipers committed
8
        classpath 'com.android.tools.build:gradle:2.2.3'
9
        classpath 'com.google.gms:google-services:3.1.0'
Wietse Kuipers's avatar
Wietse Kuipers committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
24
25
26
        maven {
            url "https://maven.google.com" // Google's Maven repository
        }
Sébastiaan Versteeg's avatar
Sébastiaan Versteeg committed
27
28
29
30
31
32
33
34
        configurations.all {
            resolutionStrategy {
                // Fixes https://github.com/evollu/react-native-fcm/issues/857#issuecomment-375243825
                force 'com.google.firebase:firebase-messaging:11.4.0'
                force 'com.google.firebase:firebase-core:11.4.0'
                force 'com.google.android.gms:play-services-gcm:11.4.0'
            }
        }
Wietse Kuipers's avatar
Wietse Kuipers committed
35
    }
Sébastiaan Versteeg's avatar
Sébastiaan Versteeg committed
36
}