Skip to content
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.1] - 2022-11-07
### Changed
- Upgrade Gson to 2.10.0
- Fix array not being properly cloned (#13)

## [2.0.0] - 2022-11-07
### Added
- Pushed to Maven Central
### Changed
- Changed namespace from com.cmtelecom to com.cm
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.cm</groupId>
<artifactId>text-sdk</artifactId>
<version>2.0</version>
<version>2.0.1</version>
<packaging>jar</packaging>
<build>
<plugins>
Expand Down Expand Up @@ -121,7 +121,7 @@
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.2</version>
<version>2.10</version>
</dependency>
</dependencies>
</project>
2 changes: 1 addition & 1 deletion src/main/java/com/cm/text/models/Channel.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public enum Channel {

/// <summary>
/// Sends messages to push using Hybrid messages.
/// See also https://docs.cmtelecom.com/en/hybrid-messaging/v2.0.0
/// See also https://developers.cm.com/messaging
/// </summary>
/// <remarks>Works only when <see cref="Message.HybridAppKey" /> is set</remarks>
Push,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/cm/text/models/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public class Message {
/// The given reference will be used in the status reports and MO replies for the message,
/// so you can link the messages to the sent batch.
/// For more information on status reports, see:
/// https://docs.cmtelecom.com/business-messaging/v1.0#/status_report_webhook
/// https://developers.cm.com/messaging/docs/incoming-status-report
/// The given reference must be between 1 - 32 alphanumeric characters, and will not work using demo accounts.
/// </summary>
@SerializedName("reference")
Expand All @@ -121,7 +121,7 @@ public class Message {
/// or a relative offset. A message is considered failed if it was not successfully delivered before that time.
/// And via a Status Report we inform you this was the case.
/// For more information on status reports, see:
/// https://docs.cmtelecom.com/business-messaging/v1.0#/status_report_webhook
/// https://developers.cm.com/messaging/docs/incoming-status-report
/// You can supply the time zone for the validity period using either of the following formats:
///
/// Absolute date and time:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void AddConversationPart(IRichMessage part)
else
{
IRichMessage[] newArr = this.Conversation;
Arrays.copyOf(newArr, this.Conversation.length + 1 );
newArr = Arrays.copyOf(newArr, this.Conversation.length + 1 );
newArr[newArr.length - 1] = part;
this.Conversation = newArr;
}
Expand All @@ -54,7 +54,7 @@ public void AddSuggestion(Suggestion suggestion)
else
{
Suggestion[] newArr = this.Suggestions;
Arrays.copyOf(newArr, this.Conversation.length + 1 );
newArr = Arrays.copyOf(newArr, this.Suggestions.length + 1 );
newArr[newArr.length - 1] = suggestion;
this.Suggestions = newArr;
}
Expand Down