-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
build.gradle
45 lines (37 loc) 路 1.18 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
group 'io.flutter.plugins.firebase.core'
version '1.0-SNAPSHOT'
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.4'
}
}
apply plugin: 'com.android.library'
def getRootProjectExtOrDefaultProperty(name) {
if (!rootProject.ext.has("FlutterFire")) return project.properties[name]
if (!rootProject.ext.get("FlutterFire")[name]) return project.properties[name]
return rootProject.ext.get("FlutterFire").get(name)
}
android {
compileSdkVersion 31
defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
disable 'InvalidPackage'
}
dependencies {
implementation platform("com.google.firebase:firebase-bom:${getRootProjectExtOrDefaultProperty("FirebaseSDKVersion")}")
implementation "com.google.firebase:firebase-common"
implementation 'androidx.annotation:annotation:1.1.0'
}
}
apply from: file("./user-agent.gradle")