Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert BrowserSwitchResult to Sealed Class #88

Merged
merged 9 commits into from
Feb 7, 2024
Merged

Conversation

sarahkoop
Copy link
Contributor

Summary of changes

  • Convert BrowserSwitchResult to sealed class with Success and NoResult options
  • Rename existing BrowserSwitchResult details to BrowserSwitchResultInfo and remove BrowserSwitchStatus

Checklist

  • Added a changelog entry

Authors

@sarahkoop sarahkoop requested a review from a team as a code owner February 6, 2024 16:06
v3_MIGRATION_GUIDE.md Outdated Show resolved Hide resolved
@sarahkoop sarahkoop requested a review from tdchow February 7, 2024 15:04
@sarahkoop sarahkoop merged commit 0ab5c35 into v3 Feb 7, 2024
3 checks passed
@sarahkoop sarahkoop deleted the update_result_object branch February 7, 2024 15:43
tdchow added a commit that referenced this pull request Jul 8, 2024
* v3: (21 commits)
  [V3] Rename BrowserSwitchStartResult `.Success` to `.Started` (#105)
  V3  encode pending browser switch as base64 string (#104)
  Fix changelog indents and fix app link unit test
  Pass app link in BrowserSwitchPendingRequestUnitTest
  Remove DemoActivity
  Fix Compose flow and move app link intent filter to DemoActivitySingleTop
  Merge main into v3
  Rename parseResult to completeRequest (#101)
  Revert version to beta1 (#100)
  Visibility Changes for BT Venmo Module (#99)
  Update BrowserSwitchException and BrowserSwitchRequest Visibility Modifiers (#91)
  Update Gradle Release Tasks for Beta (#89)
  Convert `BrowserSwitchResult` to Sealed Class (#88)
  v3 Migration Guide (#87)
  Fix Javadocs Task for SNAPSHOT Publish (#86)
  Upgrade Gradle Dependencies (#85)
  Remove v2 Integration Pattern Methods (#84)
  Update Demo App for v3 Integration (#82)
  Add Convenience String Methods to BrowserSwitchPendingRequest (#83)
  Add Integration Pattern without Local Storage (#81)
  ...

# Conflicts:
#	CHANGELOG.md
#	README.md
#	browser-switch/src/main/java/com/braintreepayments/api/BrowserSwitchClient.java
#	browser-switch/src/main/java/com/braintreepayments/api/BrowserSwitchRequest.java
#	browser-switch/src/test/java/com/braintreepayments/api/BrowserSwitchClientUnitTest.java
#	browser-switch/src/test/java/com/braintreepayments/api/BrowserSwitchRequestUnitTest.java
#	browser-switch/src/test/java/com/braintreepayments/api/BrowserSwitchResultUnitTest.java
#	build.gradle
#	demo/src/main/AndroidManifest.xml
#	demo/src/main/java/com/braintreepayments/api/browserswitch/demo/DemoActivity.java
#	demo/src/main/java/com/braintreepayments/api/browserswitch/demo/DemoActivitySingleTop.java
#	demo/src/main/java/com/braintreepayments/api/browserswitch/demo/DemoFragment.java
#	demo/src/main/res/values/strings.xml
#	gradle/gradle-publish.gradle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants