Skip to content

Commit d22b581

Browse files
authored
Merge pull request #495 from journeyapps/release-401
Release v4.0.2
2 parents 9aa5381 + 9349b31 commit d22b581

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

CHANGES.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
### 4.0.0 (2019-09-07)
1+
### 4.0.2 (2019-09-07)
22

33
* Use androidx.
44
* Use zxing:core 3.4.0 by default.
55
* Minimum SDK version 24.
66
* Fix ArithmeticException.
77
* Fix ResultPoint locations when camera is mirrored.
88

9+
### 4.0.0 / 4.0.1 (2019-09-07)
10+
11+
* Broken release - use 4.0.2.
12+
913
### 3.6.0 (2018-03-04)
1014

1115
* Use zxing:core 3.3.2 by default (#360).

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66

77
dependencies {
88
classpath 'com.android.tools.build:gradle:3.5.0'
9-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
9+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
1010
}
1111
}
1212

@@ -17,7 +17,7 @@ subprojects {
1717
mavenLocal()
1818
}
1919

20-
version = '4.0.0'
20+
version = '4.0.2'
2121
group = 'com.journeyapps'
2222

2323
ext.androidBuildTools = '28.0.3'

sample/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
defaultConfig {
88
minSdkVersion 24
99
targetSdkVersion project.androidTargetSdk
10-
versionCode 400
11-
versionName "4.0.0"
10+
versionCode 402
11+
versionName "4.0.2"
1212
}
1313

1414
def validConfig
@@ -60,7 +60,7 @@ android {
6060

6161
dependencies {
6262
// If you use this from an external project, use the following instead:
63-
// compile 'com.journeyapps:zxing-android-embedded:<version>'
63+
// implementation 'com.journeyapps:zxing-android-embedded:<version>'
6464
implementation project(':zxing-android-embedded')
6565

6666
implementation 'androidx.appcompat:appcompat:1.0.2'

zxing-android-embedded/build.gradle

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,11 @@ task sourceJar(type: Jar) {
6565
from android.sourceSets.main.java.srcDirs
6666
}
6767

68-
publishing {
69-
publications {
70-
// We need this check to cover Android Studio gradle sync
71-
if(project.tasks.findByPath('bundleRelease') != null) {
68+
project.afterEvaluate {
69+
publishing {
70+
publications {
7271
maven(MavenPublication) {
73-
artifact bundleRelease
72+
artifact bundleReleaseAar
7473
artifactId project.artifactId
7574

7675
artifact sourceJar
@@ -81,16 +80,15 @@ publishing {
8180
// remove this section.
8281
def deps = asNode().appendNode('dependencies')
8382

84-
project.configurations.compile.allDependencies.each { dep ->
83+
project.configurations.api.allDependencies.each { dep ->
8584
def node = deps.appendNode('dependency')
8685
node.appendNode('groupId', dep.group)
8786
node.appendNode('artifactId', dep.name)
8887
node.appendNode('version', dep.version)
89-
node.appendNode('scope', 'compile')
88+
node.appendNode('scope', 'api')
9089
}
9190

9291
}
93-
9492
}
9593
}
9694
}

0 commit comments

Comments
 (0)