- Upgrade
compileSdkVersion
andtargetSdkVersion
to API 35 - Breaking Changes
- Bump target Java version to Java 17
- Make
BrowserSwitchClient.assertCanPerformBrowserSwitch()
public - Breaking Changes
- Bump
minSdkVersion
to API 23 - Bump target Java version to Java 11
- Upgrade Kotlin version to 1.9.10
- Upgrade to Android Gradle Plugin 8
- Change
BrowserSwitchClient#start
parameters and return type - Change
BrowserSwitchClient#parseResult
parameters - Remove
deliverResult
,getResult
,captureResult
,clearActiveRequests
,getResultFromCache
, anddeliverResultFromCache
fromBrowserSwitchClient
- Add
BrowserSwitchRequest
andBrowserSwitchPendingRequest
- Convert
BrowserSwitchResult
to sealed class and addBrowserSwitchResultInfo
- Remove
BrowserSwitchStatus
- Rename
parseResult()
tocompleteRequest()
- Bump
- Add
appLinkUri
toBrowserSwitchOptions
for Android App Link support
- Throw
BrowserSwitchException
when a browser is not found to start browser switch
- Upgrade
compileSdkVersion
andtargetSdkVersion
to API 34
- Fix issue where URL scheme matching is case sensitive
- Revert
androidx.annotation:annotation
dependency to version1.2.0
- Revert
androidx.appcompat:appcompat
dependency to version1.3.1
- Remove Jetifier now that AndroidX is fully supported
- Upgrade
compileSdkVersion
andtargetSdkVersion
to API 33 - Remove unnecessary assertion for a browser application on the device
- Add
BrowserSwitchClient#parseResult()
method - Add
BrowserSwitchClient#clearActiveRequests()
method
- Check if a pending browser switch request exists before delivering a browser switch result instead of setting Activity intent to null
- Fix issue that causes a browser switch to start while the host Activity is finishing
- Fix issue that causes successful deep links to be parsed multiple times
- Add BrowserSwitchClient#getResult() method to peek at a pending browser switch result before it is delivered
- Add BrowserSwitchClient#getResultFromCache() method to peek at a cached browser switch result before it is delivered
- Add BrowserSwitchClient#captureResult() method to capture a browser switch result into persistent storage
- Add BrowserSwitchClient#deliverResultFromCache() method to deliver a previously captured browser switch result
- Fallback to browser when Chrome Custom Tabs is unavailable (thanks! @calvarez-ov)
- Upgrade
compileSdkVersion
andtargetSdkVersion
to API 31
- Upgrade
compileSdkVersion
andtargetSdkVersion
to API 31
- Add internal methods for usage with other Braintree libraries.
- Update
BrowserSwitchClient#deliverResult()
to allow canceled browser switches a chance to reach the success state (See braintree_android #409) - Fix nullability annotations in
BrowserSwitchOptions
setters
- Includes all changes in 2.0.0-beta1, 2.0.0-beta2, and 2.0.0-beta3
- Fix issue where app links couldn't be opened by
BrowserSwitchClient#start()
- Fix issue where app links couldn't be opened by
BrowserSwitchClient#start()
- Fix issue of false successful result when
deepLinkUrl
did not match requestreturnUrlScheme
- Add
BrowserSwitchException
- Add
returnUrlScheme
toBrowserSwitchOptions
- Add
requestCode
,requestUrl
anddeepLinkUrl
properties toBrowserSwitchResult
- Breaking Changes
- Move BrowserSwitch module from
com.braintreepayments.browserswitch
package tocom.braintreepayments.api
- Remove
BrowserSwitchFragment
- Remove
BrowserSwitchActivity
- Remove
BrowserSwitchClient
static constructor - Remove convenience
BrowserSwitchClient#start
methods - Remove convenience
BrowserSwitchClient#deliverResult
methods - Remove
STATUS_ERROR
and throw error instart
method - Remove
BrowserSwitchResult#getErrorMessages
- Remove support for
Intent
onBrowserSwitchOptions
- Remove
ChromeCustomTabs
- Rename
BrowserSwitchResult.STATUS_OK
toBrowserSwitchStatus.SUCCESS
- Rename
BrowserSwitchResult.STATUS_CANCELED
toBrowserSwitchStatus.CANCELED
- Remove
BrowserSwitchListener
- Move BrowserSwitch module from
- Update androidx dependencies to latest versions
- Update to SDK version 30
- Add
query
section to AndroidManifest to allow querying for web browsers on a device
- Fix bug where
getReturnUrlScheme
is called on BrowserSwitchFragment and an Activity is no longer attached to the fragment
- Create
BrowserSwitchOptions
value object for configuring browser switch behavior - Add BrowserSwitchClient#start overloads with
BrowserSwitchOptions
param - Add BrowserSwitchFragment#browserSwitch overload with
BrowserSwitchOptions
param
- Create BrowserSwitchClient to allow browser switch behavior through composition as well as inheritance.
- Update minSdkVersion from 15 to 21 (thanks! @calvarez-ov)
- Update Gradle build tools version to 3.6.3
- Breaking Changes
- BrowserSwitchActivity::getReturnUri() has been removed
- BrowserSwitchActivity::clearReturnUri() has been removed
- Using androidx 1.0.0
- Migrate Fragment to
androidx.fragment.app.Fragment
- Update to SDK version 28
- Return an error when no activities are available to handle browser switch intent
- Update compile and target SDK versions to 26
- Prevent Chrome Custom Tab from being killed when user leaves
- Stop using dependency ranges
- Prevent dependency resolution of alpha major versions of support-annotations
- Include a message when an error is returned
- Change artifact id to
browser-switch
frombrowser_switch
- Initial release