Skip to content

Commit

Permalink
Restrict access on some internal classes
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarSpruit committed Apr 14, 2023
1 parent b8da9e6 commit a8a2c24
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import androidx.annotation.CallSuper;
import androidx.annotation.NonNull;
import androidx.annotation.RestrictTo;

import com.adyen.checkout.core.log.LogUtil;
import com.adyen.checkout.core.log.Logger;
Expand All @@ -24,6 +25,7 @@
*
* @param <T> The type returned by the {@link Connection}
*/
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public abstract class ConnectionTask<T> extends FutureTask<T> {
private static final String TAG = LogUtil.getTag();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@

package com.adyen.checkout.components;

import androidx.annotation.RestrictTo;

/**
* This provider should be used to get an instance of a {@link Component} that is bound your lifecycle.
*/
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public interface ComponentProvider<ComponentT extends Component> {
// Maker interface
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package com.adyen.checkout.components.api

import android.graphics.drawable.BitmapDrawable
import androidx.annotation.RestrictTo
import com.adyen.checkout.core.api.ConnectionTask
import com.adyen.checkout.core.api.ThreadManager
import com.adyen.checkout.core.log.LogUtil
Expand All @@ -19,6 +20,7 @@ import java.util.concurrent.TimeoutException
/**
* Task that wraps a Connection to get a Logo.
*/
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
class LogoConnectionTask(
private val logoApi: LogoApi,
val logoUrl: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ package com.adyen.checkout.components.base

import android.app.Activity
import android.content.Intent
import androidx.annotation.RestrictTo

/**
* A component that expects to receive and handle an activity result.
*/
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
interface ActivityResultHandlingComponent : ResultHandlingComponent {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import android.content.Context
import android.os.Bundle
import android.view.KeyEvent
import android.widget.FrameLayout
import androidx.annotation.RestrictTo
import androidx.fragment.app.activityViewModels
import com.adyen.checkout.components.ActionComponentData
import com.adyen.checkout.components.PaymentComponentState
Expand All @@ -30,6 +31,7 @@ import com.google.android.material.bottomsheet.BottomSheetDialogFragment

private val TAG = LogUtil.getTag()

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
abstract class DropInBottomSheetDialogFragment : BottomSheetDialogFragment() {

lateinit var protocol: Protocol
Expand Down

0 comments on commit a8a2c24

Please sign in to comment.