Skip to content

Commit 4abf926

Browse files
author
Quintin Willison
authored
Merge pull request ably#602 from ably/release/1.2.2
Release/1.2.2
2 parents 2afb487 + 644300b commit 4abf926

5 files changed

Lines changed: 29 additions & 13 deletions

File tree

CHANGELOG.md

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

3+
## [v1.2.2](https://github.com/ably/ably-java/tree/v1.2.2) (2020-09-17)
4+
5+
[Full Changelog](https://github.com/ably/ably-java/compare/v1.2.1...v1.2.2)
6+
7+
**Fixed bugs:**
8+
9+
- Restoral of ActivationStateMachine events fails because not all event types have a no-argument constructor [\#598](https://github.com/ably/ably-java/issues/598) fixed by:
10+
- Discard persisted events with non-nullary constructors [\#599](https://github.com/ably/ably-java/pull/599) ([tcard](https://github.com/tcard))
11+
- Fatal Exception on API level below 19 [\#596](https://github.com/ably/ably-java/issues/596) fixed by:
12+
- Replace use of StandardCharsets [\#601](https://github.com/ably/ably-java/pull/601) ([QuintinWillison](https://github.com/QuintinWillison))
13+
14+
**Other merged pull requests:**
15+
16+
- Rename master to main [\#592](https://github.com/ably/ably-java/pull/592) ([QuintinWillison](https://github.com/QuintinWillison))
17+
- Bump protocol version to 1.2 [\#591](https://github.com/ably/ably-java/pull/591) ([QuintinWillison](https://github.com/QuintinWillison))
18+
319
## [v1.2.1](https://github.com/ably/ably-java/tree/v1.2.1) (2020-06-15)
420

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

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.1'
33+
compile 'io.ably:ably-java:1.2.2'
3434
```
3535

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

3838
```
39-
compile 'io.ably:ably-android:1.2.1'
39+
compile 'io.ably:ably-android:1.2.2'
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:
@@ -586,15 +586,15 @@ Configuration of Run/Debug configurations for running the unit tests on Android
586586

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

589-
1. Create a branch for the release, named like `release/1.2.1`
589+
1. Create a branch for the release, named like `release/1.2.2`
590590
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
591591
3. Run [`github_changelog_generator`](https://github.com/skywinder/Github-Changelog-Generator) to update the [CHANGELOG](./CHANGELOG.md):
592-
* This might work: `github_changelog_generator -u ably -p ably-java --header-label="# Changelog" --release-branch=release/1.2.1 --future-release=v1.2.1`
593-
* 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.0 --output delta.md` and then manually merge the delta contents in to the main change log
592+
* 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`
593+
* 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
594594
4. Commit [CHANGELOG](./CHANGELOG.md)
595595
5. Make a PR against `main`
596596
6. Once the PR is approved, merge it into `main`
597-
7. Add a tag and push to origin - e.g.: `git tag v1.2.1 && git push origin v1.2.1`
597+
7. Add a tag and push to origin - e.g.: `git tag v1.2.2 && git push origin v1.2.2`
598598
8. Create the release on Github including populating the release notes (needed so JFrog can pull them in)
599599
9. Assemble and Upload ([see below](#publishing-to-jcenter-and-maven-central) for details) - but the overall order to follow is:
600600
1. Upload to Bintray and use the pushed tag, which will pull in the associated release notes
@@ -622,18 +622,18 @@ We publish to:
622622

623623
The `java` release process goes as follows:
624624

625-
* 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.1" in name and save
625+
* 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
626626
* Run `./gradlew java:assembleRelease` locally to generate the files
627-
* Open local relative folder in Finder, such as `./java/build/release/1.2.1/io/ably/ably-java/1.2.1`
628-
* Go to the new version in JFrog Bintray; eg https://bintray.com/ably-io/ably/ably-java/1.2.1, then click on the link to upload via the UI in the "Upload files" section
627+
* Open local relative folder in Finder, such as `./java/build/release/1.2.2/io/ably/ably-java/1.2.2`
628+
* 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
629629
* 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.
630630
* 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.
631631
* Update the README text in Bintray (version number needs incrementing).
632632

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

635635
* Run `./gradlew android:assembleRelease` locally to generate the files, and drag in the files in
636-
`./android/build/release/1.2.1/io/ably/ably-android/1.2.1`.
636+
`./android/build/release/1.2.2/io/ably/ably-android/1.2.2`.
637637
* In this case upload the `.jar` files, the `.pom` file and the `.aar` file.
638638

639639
#### 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.1'
7+
version = '1.2.2'
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.1"));
94+
Collections.singletonList("java-1.2.2"));
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.1");
87+
Assert.assertEquals(headers.get("x-ably-lib"), "java-1.2.2");
8888
} catch (AblyException e) {
8989
e.printStackTrace();
9090
Assert.fail("header_lib_channel_publish: Unexpected exception");

0 commit comments

Comments
 (0)