-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
34 lines (27 loc) · 882 Bytes
/
build.gradle
File metadata and controls
34 lines (27 loc) · 882 Bytes
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
plugins {
id "com.android.library"
}
group = "io.embrace.flutter"
version = "1.0-SNAPSHOT"
android {
namespace "io.embrace.flutter"
compileSdk 34
defaultConfig { minSdk 21 }
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8
}
}
sourceSets { main.java.srcDirs += "src/main/kotlin" }
}
dependencies {
def embAndroidSdk = (findProperty("emb_android_sdk") ?: rootProject.findProperty("emb_android_sdk"))
if (!embAndroidSdk) throw new GradleException("Missing 'emb_android_sdk' in gradle.properties")
compileOnly "io.embrace:embrace-android-sdk:$embAndroidSdk"
compileOnly "io.embrace:embrace-android-core:$embAndroidSdk"
compileOnly "io.embrace:embrace-internal-api:$embAndroidSdk"
}