-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
46 lines (38 loc) · 1.17 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
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.1"
}
}
apply plugin: "com.android.library"
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 16 // Minimum version supported by Cocos2dx
versionName '2.0.1'
}
}
repositories {
flatDir {
dirs '../libs'
}
}
dependencies {
// Runtime dependency of the bugsnag-plugin-android-* dependencies
api "org.jetbrains.kotlin:kotlin-stdlib:1.3.61"
// bugsnag-android libs use this runtime dependency
implementation "androidx.annotation:annotation:1.1.0"
runtimeOnly(name:'bugsnag-android', ext:'aar')
api(name:'bugsnag-android-core', ext:'aar')
api(name:'bugsnag-plugin-android-ndk', ext:'aar')
runtimeOnly(name:'bugsnag-plugin-android-anr', ext:'aar')
}
task unpackBuildDeps(type: Copy) {
description 'Unpacks the library dependencies from zip files into a linkable location'
from zipTree(file('../libs/bugsnag-plugin-android-ndk.aar'))
into file("${project.buildDir}/unpacked/bugsnag-plugin-android-ndk")
}
tasks.preBuild.dependsOn(unpackBuildDeps)