-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
build.gradle
62 lines (55 loc) 路 1.28 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
}
}
plugins {
id "io.invertase.gradle.build" version "1.4"
}
project.ext {
set('react-native', [
versions: [
android : [
minSdk : 16,
targetSdk : 30,
compileSdk: 30,
// optional as gradle.buildTools comes with one by default
// overriding here though to match the version RN uses
buildTools: "30.0.2"
],
firebase : [
bom: "26.8.0"
],
],
])
}
android {
defaultConfig {
multiDexEnabled true
}
lintOptions {
disable 'GradleCompatible'
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
repositories {
google()
mavenCentral()
}
dependencies {
api project(':@react-native-firebase_app')
implementation platform("com.google.firebase:firebase-bom:${ReactNative.ext.getVersion("firebase", "bom")}")
implementation "com.google.firebase:firebase-_template_"
}
ReactNative.shared.applyPackageVersion()
ReactNative.shared.applyDefaultExcludes()
ReactNative.module.applyAndroidVersions()
ReactNative.module.applyReactNativeDependency("api")