Skip to content

Commit 7acc824

Browse files
committed
Merge branch 'improvement/sc-log' into release
# Conflicts: # build.gradle # dfu/build.gradle # gradle/gradle-bintray-push.gradle # gradle/wrapper/gradle-wrapper.properties
2 parents fe3a90a + c2bed38 commit 7acc824

File tree

5 files changed

+39
-30
lines changed

5 files changed

+39
-30
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.0.0'
9+
classpath 'com.android.tools.build:gradle:3.6.1'
1010

11-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
11+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files
1414
}

dfu/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ android {
77
minSdkVersion 18
88
targetSdkVersion 29
99
versionCode 24
10+
versionName VERSION_NAME
1011
}
1112

1213
buildTypes {
@@ -18,7 +19,7 @@ android {
1819
}
1920

2021
dependencies {
21-
implementation 'androidx.core:core:1.5.0-alpha01'
22+
implementation 'androidx.core:core:1.3.0-alpha02'
2223
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
2324
implementation 'androidx.annotation:annotation:1.1.0'
2425
implementation 'com.google.code.gson:gson:2.8.6'

dfu/src/main/java/no/nordicsemi/android/dfu/BaseDfuImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ public boolean initialize(@NonNull final Intent intent, @NonNull final Bluetooth
371371
if (!serviceChangedIndicationsEnabled)
372372
enableCCCD(serviceChangedCharacteristic, INDICATIONS);
373373

374+
logi("Service Changed indications enabled");
374375
mService.sendLogBroadcast(DfuBaseService.LOG_LEVEL_APPLICATION, "Service Changed indications enabled");
375376
}
376377
}

gradle/gradle-bintray-push.gradle

Lines changed: 32 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,11 @@ apply plugin: 'com.jfrog.bintray'
44
version = VERSION_NAME
55
group = GROUP
66

7-
task androidJavadocs(type: Javadoc) {
8-
source = android.sourceSets.main.java.srcDirs
9-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
10-
android.libraryVariants.all { variant ->
11-
if (variant.name == 'release') {
12-
owner.classpath += variant.javaCompileProvider.get().classpath
13-
}
14-
}
15-
exclude '**/R.html', '**/R.*.html', '**/index.html'
16-
}
17-
18-
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
19-
archiveClassifier.set('javadoc')
20-
from androidJavadocs.destinationDir
21-
}
22-
23-
task androidSourcesJar(type: Jar) {
24-
archiveClassifier.set('sources')
25-
from android.sourceSets.main.java.srcDirs
26-
}
27-
287
afterEvaluate { project ->
298
publishing {
309
publications {
3110
release(MavenPublication) {
3211
from components.release
33-
34-
artifact androidSourcesJar
35-
artifact androidJavadocsJar
36-
3712
groupId = GROUP
3813
artifactId = POM_ARTIFACT_ID
3914
version = VERSION_NAME
@@ -69,13 +44,45 @@ afterEvaluate { project ->
6944
}
7045
}
7146

47+
task javadoc(type: Javadoc) {
48+
failOnError false
49+
source = android.sourceSets.main.java.sourceFiles
50+
51+
title = POM_DESCRIPTION
52+
53+
options.links("https://docs.oracle.com/javase/8/docs/api/")
54+
options.linksOffline("https://d.android.com/reference","${android.sdkDirectory}/docs/reference")
55+
56+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
57+
classpath += configurations.compile
58+
59+
// We're excluding these generated files
60+
exclude '**/BuildConfig.java'
61+
exclude '**/R.java'
62+
}
63+
64+
task androidJavadocsJar(type: Jar, dependsOn: javadoc) {
65+
classifier = 'javadoc'
66+
from javadoc.destinationDir
67+
}
68+
69+
task androidSourcesJar(type: Jar) {
70+
classifier = 'sources'
71+
from android.sourceSets.main.java.source
72+
}
73+
7274
if (JavaVersion.current().isJava8Compatible()) {
7375
allprojects {
7476
tasks.withType(Javadoc) {
7577
options.addStringOption('Xdoclint:none', '-quiet')
7678
}
7779
}
7880
}
81+
82+
artifacts {
83+
archives androidSourcesJar
84+
archives androidJavadocsJar
85+
}
7986
}
8087

8188
// Bintray
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Jun 24 14:20:07 CEST 2020
1+
#Tue Mar 10 10:35:51 CET 2020
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip

0 commit comments

Comments
 (0)