Skip to content

Commit

Permalink
Make BraintreeClient Constructor with BraintreeOptions Library Private (
Browse files Browse the repository at this point in the history
#786)

* Make BraintreeOptions constructor available to the library group.

* Update CHANGELOG.md.
  • Loading branch information
sshropshire authored Sep 18, 2023
1 parent 5adb192 commit 76b9dd8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ open class BraintreeClient @VisibleForTesting internal constructor(
braintreeDeepLinkReturnUrlScheme = params.braintreeReturnUrlScheme
)

internal constructor(options: BraintreeOptions) : this(BraintreeClientParams(options))
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
constructor(options: BraintreeOptions) : this(BraintreeClientParams(options))

/**
* Create a new instance of [BraintreeClient] using a tokenization key or client token.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
package com.braintreepayments.api

import android.content.Context
import androidx.annotation.RestrictTo

internal data class BraintreeOptions(
/**
* @suppress
*/
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
data class BraintreeOptions @JvmOverloads constructor(
val context: Context,
val sessionId: String? = null,
val returnUrlScheme: String? = null,
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Braintree Android SDK Release Notes

## unreleased

* BraintreeCore
* Internal Fixes

## 4.38.1 (2023-09-14)

* ThreeDSecure
Expand Down

0 comments on commit 76b9dd8

Please sign in to comment.