-
Notifications
You must be signed in to change notification settings - Fork 454
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (45 loc) · 1.2 KB
/
build.gradle
File metadata and controls
54 lines (45 loc) · 1.2 KB
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
plugins {
id 'com.android.library'
}
android {
namespace 'no.nordicsemi.android.ble'
compileSdk 34
defaultConfig {
minSdk 18
targetSdk 34
}
buildTypes {
release {
minifyEnabled false
consumerProguardFiles 'ble-proguard-rules.pro'
}
}
publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
dependencies {
api 'androidx.annotation:annotation:1.8.2'
testImplementation 'junit:junit:4.13.2'
}
// === Maven Central configuration ===
// The following file exists only when Android BLE Library project is opened, but not
// when the module is loaded to a different project.
if (rootProject.file('gradle/publish-module.gradle').exists()) {
ext {
POM_ARTIFACT_ID = 'ble'
POM_NAME = 'Bluetooth Low Energy library for Android'
POM_PACKAGING = 'aar'
}
apply from: rootProject.file('gradle/publish-module.gradle')
}
afterEvaluate {
generateMetadataFileForReleasePublication.dependsOn androidSourcesJar
}