- Updated
android-core
version to1.0.0-beta.14
. - Updated
android-core-logging
version to1.0.0-beta.14
.
- Added support for a new communication identifier
MicrosoftTeamsAppIdentifier
. - Added a new constructor with required param
tokenRefresher
forCommunicationTokenRefreshOptions
. - Added fluent setters for optional properties:
- Added the
setRefreshProactively(boolean refreshProactively)
fluent setter that allows setting whether the token should be proactively renewed prior to its expiry or on demand. - Added the
setInitialToken(String initialToken)
fluent setter that allows setting the optional serialized JWT token.
- Added the
- Optimization added: When the proactive refreshing is enabled and the token refresher fails to provide a token that's not about to expire soon, the subsequent refresh attempts will be scheduled for when the token reaches half of its remaining lifetime until a token with long enough validity (>10 minutes) is obtained.
- Added a default
CommunicationCloudEnvironment
constructor set to use Azure Public Cloud. - Overrode the
equals
,toString
,hashCode
methods ofCommunicationCloudEnvironment
to make it consistent with Azure Core'sExpandableStringEnum
APIs.
- Introduction of
MicrosoftTeamsAppIdentifier
is a breaking change. It will impact any code that previously depended on the use of UnknownIdentifier with rawIDs starting with28:orgid:
,28:dod:
, or28:gcch:
. - Deprecated constructors that take 2 or more arguments in
CommunicationTokenRefreshOptions
. Users should now use theCommunicationTokenRefreshOptions(Callable tokenRefresher)
constructor and chain fluent setters. - Updated
targetSdkVersion
andcompileSdkVersion
from30
to34
.
- Added new constructor with required param
tokenRefresher
forCommunicationTokenRefreshOptions
- Deprecated old constructor overloads in
CommunicationTokenRefreshOptions
and replaced by fluent setters - Added fluent setters for optional properties:
- Added
setRefreshProactively(boolean refreshProactively)
setter that allows setting whether the token should be proactively renewed prior to its expiry or on demand. - Added
setInitialToken(String initialToken)
setter that allows setting the optional serialized JWT token
- Added
- Optimization added: When the proactive refreshing is enabled and the token refresher fails to provide a token that's not about to expire soon, the subsequent refresh attempts will be scheduled for when the token reaches half of its remaining lifetime until a token with long enough validity (>10 minutes) is obtained.
- The default
CommunicationCloudEnvironment
constructor will create Azure public cloud. - Overrode the
equals
,toString
,hashCode
methods ofCommunicationCloudEnvironment
to make it consistent with Java API.
- Introduced non-nullability check for the argument of
CommunicationCloudEnvironment.fromString(String name)
. It will throwNullPointerException
if the passed argument is null.
- Added support for a new communication identifier
MicrosoftBotIdentifier
.
- Introduction of
MicrosoftBotIdentifier
is a breaking change. It will affect code that relied on usingUnknownIdentifier
with a rawID starting with28:
- Updated
android-core
version to1.0.0-beta.13
. - Updated
android-core-logging
version to1.0.0-beta.13
.
- Fixed the logic of
PhoneNumberIdentifier
to always maintain the original phone number string whether it included the leading + sign or not.
- Updated
android-core
version to1.0.0-beta.12
. - Updated
android-core-logging
version to1.0.0-beta.12
. - Updated
jackson-databind
dependency to2.12.7.1
.
- Added
String getRawId()
, andstatic CommunicationIdentifier fromRawId(String rawId)
toCommunicationIdentifier
to translate between aCommunicationIdentifier
and its underlying canonical rawId representation. Developers can now use the rawId as an encoded format for identifiers to store in their databases or as stable keys in general.
- Updated
azure-core
dependency to1.0.0-beta.10
- Updated
azure-core-logging
dependency to1.0.0-beta.10
- Updated
android-retrofuture
dependency to1.7.4
- Updated
jackson-databind
dependency to2.12.6
- Updated
threetenabp
dependency to1.3.1
- Updated
com.azure.android.core
from1.0.0-beta.5
to1.0.0-beta.6
- Update version
- Changed
UserCredential.getToken()
to returnCompletableFuture<CommunicationAccessToken>
instead ofFuture<CommunicationAccessToken>
. - Invoking
getToken
on a disposedUserCredential
returns a failedCompletableFuture
instead of cancelledFuture
. - Removed the
fromString
method fromCommunicationCloudEnvironment
given the same result can be achieved using the existing public constructor. - Renamed the
getToken
method inCommunicationTokenRefreshOptions
togetInitialToken
.
- Credential
getToken
returns the newly addedCommunicationAccessToken
object instead ofAccessToken
. - Renamed 'getRefreshProactively' to 'isRefreshProactively' in 'CommunicationTokenRefreshOptions'
- Removed constructor 'MicrosoftTeamsUserIdentifier(String userId, boolean isAnonymous, CommunicationCloudEnvironment cloudEnvironment)' in 'MicrosoftTeamsUserIdentifier'
- A few classes are made final 'CommunicationTokenCredential', 'CommunicationTokenRefreshOptions', 'CommunicationUserIdentifier', 'MicrosoftTeamsUserIdentifier', 'PhoneNumberIdentifier', 'UnknownIdentifier', 'CommunicationAccessToken'
- Introduce new class
CommunicationAccessToken
.
- Removed
CommunicationTokenCredential(Callable<String> tokenRefresher)
,CommunicationTokenCredential(Callable<String> tokenRefresher, String initialToken)
,CommunicationTokenCredential(Callable<String> tokenRefresher, boolean refreshProactively)
,CommunicationTokenCredential(Callable<String> tokenRefresher, boolean refreshProactively, String initialToken)
, and addedCommunicationTokenCredential(CommunicationTokenRefreshOptions tokenRefreshOptions)
- Removed 'CallingApplicationIdentifier'.
- Removed 'getId' method in 'CommunicationIdentifier' class.
- Added a new 'MicrosoftTeamsUserIdentifier' constructor that takes a non-null CommunicationCloudEnvironment parameter.
- Added class 'CommunicationCloudEnvironment'.
- Added class 'CommunicationCloudEnvironmentModel'.
- Added class 'CommunicationIdentifierSerializer'.
- Added class 'CommunicationIdentifierModel'.
- Added class 'MicrosoftTeamsUserIdentifierModel'.
- Added class 'PhoneNumberIdentifierModel'.
- Added class 'CommunicationUserIdentifierModel'.
- Renamed
CommunicationUserCredential
toCommunicationTokenCredential
- Renamed
PhoneNumber
toPhoneNumberIdentifier
- Renamed
CommunicationUser
toCommunicationUserIdentifier
- Renamed
CallingApplication
toCallingApplicationIdentifier
- Added class
MicrosoftTeamsUserIdentifier
This package contains common code for Azure Communication Service libraries. For more information, please see the README and documentation.
This is a Public Preview version, so breaking changes are possible in subsequent releases as we improve the product. To provide feedback, please submit an issue in our Azure SDK for Java GitHub repo.