Skip to content

Commit 049a445

Browse files
Merge pull request ably#633 from ably/release/1.2.3
Release/1.2.3
2 parents edd1989 + 2e88020 commit 049a445

5 files changed

Lines changed: 42 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Change Log
22

3+
## [v1.2.3](https://github.com/ably/ably-java/tree/v1.2.3)
4+
5+
[Full Changelog](https://github.com/ably/ably-java/compare/v1.2.2...v1.2.3)
6+
7+
**Enhancements and Bug Fixes:**
8+
9+
- Add connectionKey attribute missing from the Message object [\#630](https://github.com/ably/ably-java/pull/630) ([vzhikserg](https://github.com/vzhikserg)), fixing [\#614](https://github.com/ably/ably-java/issues/614)
10+
- Improve error messages for channel attach when realtime is not active [\#627](https://github.com/ably/ably-java/pull/627) ([vzhikserg](https://github.com/vzhikserg)), fixing [\#594](https://github.com/ably/ably-java/issues/594)
11+
- Add verbose logs in push notification related code [\#623](https://github.com/ably/ably-java/pull/623) ([QuintinWillison](https://github.com/QuintinWillison))
12+
- Defaults: Generate environment fallbacks [\#618](https://github.com/ably/ably-java/pull/618) ([vzhikserg](https://github.com/vzhikserg)), fixing [\#603](https://github.com/ably/ably-java/issues/603)
13+
- Rest.publishBatch: support overloaded method that takes params [\#604](https://github.com/ably/ably-java/pull/604) ([SimonWoolf](https://github.com/SimonWoolf))
14+
15+
**Code Quality Improvements:**
16+
17+
- Refactor unit tests related to hosts and environmental fallbacks [\#629](https://github.com/ably/ably-java/pull/629) ([vzhikserg](https://github.com/vzhikserg)), fixing [\#628](https://github.com/ably/ably-java/issues/628)
18+
- Move tests for EventEmitter to unit tests [\#626](https://github.com/ably/ably-java/pull/626) ([vzhikserg](https://github.com/vzhikserg))
19+
- Adopt more Groovy conventions in Gradle scripts [\#625](https://github.com/ably/ably-java/pull/625) ([QuintinWillison](https://github.com/QuintinWillison))
20+
- Gradle conform and reformat [\#624](https://github.com/ably/ably-java/pull/624) ([QuintinWillison](https://github.com/QuintinWillison))
21+
- Fix param and return javadoc statements [\#622](https://github.com/ably/ably-java/pull/622) ([vzhikserg](https://github.com/vzhikserg))
22+
- Make Ably version more robust [\#619](https://github.com/ably/ably-java/pull/619) ([vzhikserg](https://github.com/vzhikserg))
23+
- Remove unnecessary calls to the toString method [\#617](https://github.com/ably/ably-java/pull/617) ([vzhikserg](https://github.com/vzhikserg))
24+
- Update EditorConfig [\#616](https://github.com/ably/ably-java/pull/616) ([QuintinWillison](https://github.com/QuintinWillison))
25+
- Upgrade Gradle wrapper to version 6.6.1 [\#615](https://github.com/ably/ably-java/pull/615) ([QuintinWillison](https://github.com/QuintinWillison))
26+
- Checkstyle: AvoidStarImport [\#613](https://github.com/ably/ably-java/pull/613) ([QuintinWillison](https://github.com/QuintinWillison))
27+
- Checkstyle: UnusedImports [\#612](https://github.com/ably/ably-java/pull/612) ([QuintinWillison](https://github.com/QuintinWillison))
28+
- Convert tabs to spaces in all Java source files [\#610](https://github.com/ably/ably-java/pull/610) ([QuintinWillison](https://github.com/QuintinWillison))
29+
- Introduce Checkstyle [\#609](https://github.com/ably/ably-java/pull/609) ([QuintinWillison](https://github.com/QuintinWillison))
30+
- Remove redundant public keywords in the interfaces' definitions [\#608](https://github.com/ably/ably-java/pull/608) ([vzhikserg](https://github.com/vzhikserg))
31+
332
## [v1.2.2](https://github.com/ably/ably-java/tree/v1.2.2) (2020-09-17)
433

534
[Full Changelog](https://github.com/ably/ably-java/compare/v1.2.1...v1.2.2)

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ Reference the library by including a compile dependency reference in your gradle
3030
For [Java](https://bintray.com/ably-io/ably/ably-java/_latestVersion):
3131

3232
```
33-
compile 'io.ably:ably-java:1.2.2'
33+
compile 'io.ably:ably-java:1.2.3'
3434
```
3535

3636
For [Android](https://bintray.com/ably-io/ably/ably-android/_latestVersion):
3737

3838
```
39-
compile 'io.ably:ably-android:1.2.2'
39+
compile 'io.ably:ably-android:1.2.3'
4040
```
4141

4242
The library is hosted on the [Jcenter repository](https://bintray.com/ably-io/ably), so you need to ensure that the repo is referenced also; IDEs will typically include this by default:
@@ -616,15 +616,15 @@ Configuration of Run/Debug configurations for running the unit tests on Android
616616

617617
This library uses [semantic versioning](http://semver.org/). For each release, the following needs to be done:
618618

619-
1. Create a branch for the release, named like `release/1.2.2`
619+
1. Create a branch for the release, named like `release/1.2.3`
620620
2. Replace all references of the current version number with the new version number (check this file [README.md](./README.md) and [common.gradle](./common.gradle)) and commit the changes
621621
3. Run [`github_changelog_generator`](https://github.com/skywinder/Github-Changelog-Generator) to update the [CHANGELOG](./CHANGELOG.md):
622-
* This might work: `github_changelog_generator -u ably -p ably-java --header-label="# Changelog" --release-branch=release/1.2.2 --future-release=v1.2.2`
623-
* But your mileage may vary as it can error. Perhaps more reliable is something like: `github_changelog_generator -u ably -p ably-java --since-tag v1.2.1 --output delta.md` and then manually merge the delta contents in to the main change log
622+
* This might work: `github_changelog_generator -u ably -p ably-java --header-label="# Changelog" --release-branch=release/1.2.3 --future-release=v1.2.3`
623+
* But your mileage may vary as it can error. Perhaps more reliable is something like: `github_changelog_generator -u ably -p ably-java --since-tag v1.2.2 --output delta.md` and then manually merge the delta contents in to the main change log
624624
4. Commit [CHANGELOG](./CHANGELOG.md)
625625
5. Make a PR against `main`
626626
6. Once the PR is approved, merge it into `main`
627-
7. Add a tag and push to origin - e.g.: `git tag v1.2.2 && git push origin v1.2.2`
627+
7. Add a tag and push to origin - e.g.: `git tag v1.2.3 && git push origin v1.2.3`
628628
8. Create the release on Github including populating the release notes (needed so JFrog can pull them in)
629629
9. Assemble and Upload ([see below](#publishing-to-jcenter-and-maven-central) for details) - but the overall order to follow is:
630630
1. Upload to Bintray and use the pushed tag, which will pull in the associated release notes
@@ -652,18 +652,18 @@ We publish to:
652652

653653
The `java` release process goes as follows:
654654

655-
* Go to the home page for the package; eg https://bintray.com/ably-io/ably/ably-java. Select Add a version, enter the new version such as "1.2.2" in name and save
655+
* Go to the home page for the package; eg https://bintray.com/ably-io/ably/ably-java. Select Add a version, enter the new version such as "1.2.3" in name and save
656656
* Run `./gradlew java:assembleRelease` locally to generate the files
657-
* Open local relative folder in Finder, such as `./java/build/release/1.2.2/io/ably/ably-java/1.2.2`
658-
* Go to the new version in JFrog Bintray; eg https://bintray.com/ably-io/ably/ably-java/1.2.2, then click on the link to upload via the UI in the "Upload files" section
657+
* Open local relative folder in Finder, such as `./java/build/release/1.2.3/io/ably/ably-java/1.2.3`
658+
* Go to the new version in JFrog Bintray; eg https://bintray.com/ably-io/ably/ably-java/1.2.3, then click on the link to upload via the UI in the "Upload files" section
659659
* Drag in the files from Finder, just the `.jar` files and the `.pom` file. JFrog will fill in the "Target Path" box after you drop the files in. Click the "Upload" button.
660660
* You will see a notice something like "4 unpublished files in your version. Will be deleted in 6 days and 22 hours. Publish all or Delete all unpublished files.", make sure you click "Publish all". Wait a few minutes and check that what's uploaded looks like what was uploaded for previous releases. The `maven-metadata` files are created by JFrog.
661661
* Update the README text in Bintray (version number needs incrementing).
662662

663663
Similarly for the `android` release at https://bintray.com/ably-io/ably/ably-android:
664664

665665
* Run `./gradlew android:assembleRelease` locally to generate the files, and drag in the files in
666-
`./android/build/release/1.2.2/io/ably/ably-android/1.2.2`.
666+
`./android/build/release/1.2.3/io/ably/ably-android/1.2.3`.
667667
* In this case upload the `.jar` files, the `.pom` file and the `.aar` file.
668668

669669
#### Releasing to Maven Central (Sonatype Nexus)

common.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repositories {
44
}
55

66
group = 'io.ably'
7-
version = '1.2.2'
7+
version = '1.2.3'
88
description = 'Ably java client library'
99

1010
tasks.withType(Javadoc) {

lib/src/test/java/io/ably/lib/test/realtime/RealtimeHttpHeaderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void realtime_websocket_param_test() {
9191
* Defaults.ABLY_LIB_PARAM, as ultimately the request param has been derived from those values.
9292
*/
9393
assertEquals("Verify correct lib version", requestParameters.get("lib"),
94-
Collections.singletonList("java-1.2.2"));
94+
Collections.singletonList("java-1.2.3"));
9595

9696
/* Spec RTN2a */
9797
assertEquals("Verify correct format", requestParameters.get("format"),

lib/src/test/java/io/ably/lib/test/rest/HttpHeaderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public void header_lib_channel_publish() {
8484
*/
8585
Assert.assertNotNull("Expected headers", headers);
8686
Assert.assertEquals(headers.get("x-ably-version"), "1.2");
87-
Assert.assertEquals(headers.get("x-ably-lib"), "java-1.2.2");
87+
Assert.assertEquals(headers.get("x-ably-lib"), "java-1.2.3");
8888
} catch (AblyException e) {
8989
e.printStackTrace();
9090
Assert.fail("header_lib_channel_publish: Unexpected exception");

0 commit comments

Comments
 (0)