Skip to content

Commit

Permalink
Merge pull request #81 from Adyen/adjustAndroidPackageName
Browse files Browse the repository at this point in the history
Adjust android package name
  • Loading branch information
Robert-SD authored Dec 18, 2023
2 parents bcdfecc + b404f1e commit fad6a10
Show file tree
Hide file tree
Showing 58 changed files with 129 additions and 148 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: 'ktlint.gradle'

android {
namespace = "com.adyen.adyen_checkout"
namespace = "com.adyen.checkout.flutter"
compileSdk 34

compileOptions {
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.adyen.adyen_checkout">
package="com.adyen.checkout.flutter">

<application>
<service android:name=".dropIn.session.SessionDropInService" />
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout
package com.adyen.checkout.flutter

import CheckoutPlatformInterface
import ComponentFlutterInterface
Expand All @@ -8,14 +8,14 @@ import DropInPlatformInterface
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleEventObserver
import com.adyen.adyen_checkout.components.ComponentPlatformApi
import com.adyen.adyen_checkout.components.card.CardComponentFactory
import com.adyen.adyen_checkout.components.card.CardComponentFactory.Companion.cardComponentAdvancedId
import com.adyen.adyen_checkout.components.card.CardComponentFactory.Companion.cardComponentSessionId
import com.adyen.adyen_checkout.dropIn.DropInPlatformApi
import com.adyen.adyen_checkout.session.SessionHolder
import com.adyen.adyen_checkout.utils.Constants.Companion.WRONG_FLUTTER_ACTIVITY_USAGE_ERROR_MESSAGE
import com.adyen.checkout.dropin.DropIn
import com.adyen.checkout.flutter.components.ComponentPlatformApi
import com.adyen.checkout.flutter.components.card.CardComponentFactory
import com.adyen.checkout.flutter.components.card.CardComponentFactory.Companion.cardComponentAdvancedId
import com.adyen.checkout.flutter.components.card.CardComponentFactory.Companion.cardComponentSessionId
import com.adyen.checkout.flutter.dropIn.DropInPlatformApi
import com.adyen.checkout.flutter.session.SessionHolder
import com.adyen.checkout.flutter.utils.Constants.Companion.WRONG_FLUTTER_ACTIVITY_USAGE_ERROR_MESSAGE
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.embedding.engine.plugins.FlutterPlugin.FlutterPluginBinding
import io.flutter.embedding.engine.plugins.activity.ActivityAware
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout
package com.adyen.checkout.flutter

import CardComponentConfigurationDTO
import CheckoutPlatformInterface
Expand All @@ -7,15 +7,15 @@ import SessionDTO
import android.util.Log
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.lifecycleScope
import com.adyen.adyen_checkout.session.SessionHolder
import com.adyen.adyen_checkout.utils.ConfigurationMapper.mapToAnalyticsConfiguration
import com.adyen.adyen_checkout.utils.ConfigurationMapper.mapToDropInConfiguration
import com.adyen.adyen_checkout.utils.ConfigurationMapper.toNativeModel
import com.adyen.checkout.components.core.OrderRequest
import com.adyen.checkout.components.core.PaymentMethodsApiResponse
import com.adyen.checkout.components.core.internal.Configuration
import com.adyen.checkout.core.AdyenLogger
import com.adyen.checkout.core.internal.util.Logger.NONE
import com.adyen.checkout.flutter.session.SessionHolder
import com.adyen.checkout.flutter.utils.ConfigurationMapper.mapToAnalyticsConfiguration
import com.adyen.checkout.flutter.utils.ConfigurationMapper.mapToDropInConfiguration
import com.adyen.checkout.flutter.utils.ConfigurationMapper.toNativeModel
import com.adyen.checkout.redirect.RedirectComponent
import com.adyen.checkout.sessions.core.CheckoutSessionProvider
import com.adyen.checkout.sessions.core.CheckoutSessionResult
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.adyen.adyen_checkout.components
package com.adyen.checkout.flutter.components

import ErrorDTO
import PaymentResultModelDTO
import androidx.lifecycle.LiveData
import com.adyen.adyen_checkout.utils.Event
import com.adyen.checkout.flutter.utils.Event
import org.json.JSONObject


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.components
package com.adyen.checkout.flutter.components

import ComponentPlatformInterface
import ErrorDTO
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.components
package com.adyen.checkout.flutter.components

import ComponentCommunicationModel
import ComponentCommunicationType
Expand All @@ -9,8 +9,8 @@ import android.widget.FrameLayout
import androidx.activity.ComponentActivity
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.lifecycle.lifecycleScope
import com.adyen.adyen_checkout.R
import com.adyen.checkout.components.core.internal.Component
import com.adyen.checkout.flutter.R
import com.adyen.checkout.ui.core.AdyenComponentView
import com.adyen.checkout.ui.core.internal.ui.ViewableComponent
import com.google.android.material.button.MaterialButton
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.components.card
package com.adyen.checkout.flutter.components.card

import CardComponentConfigurationDTO
import ComponentFlutterInterface
Expand All @@ -14,15 +14,15 @@ import androidx.core.util.Consumer
import androidx.core.view.children
import androidx.core.view.doOnNextLayout
import androidx.core.view.updateLayoutParams
import com.adyen.adyen_checkout.R
import com.adyen.adyen_checkout.components.ComponentActionMessenger
import com.adyen.adyen_checkout.components.ComponentErrorMessenger
import com.adyen.adyen_checkout.components.ComponentHeightMessenger
import com.adyen.adyen_checkout.components.ComponentResultMessenger
import com.adyen.adyen_checkout.components.ComponentWrapperView
import com.adyen.adyen_checkout.utils.ConfigurationMapper.mapToAnalyticsConfiguration
import com.adyen.adyen_checkout.utils.ConfigurationMapper.toNativeModel
import com.adyen.checkout.card.CardComponent
import com.adyen.checkout.flutter.R
import com.adyen.checkout.flutter.components.ComponentActionMessenger
import com.adyen.checkout.flutter.components.ComponentErrorMessenger
import com.adyen.checkout.flutter.components.ComponentHeightMessenger
import com.adyen.checkout.flutter.components.ComponentResultMessenger
import com.adyen.checkout.flutter.components.ComponentWrapperView
import com.adyen.checkout.flutter.utils.ConfigurationMapper.mapToAnalyticsConfiguration
import com.adyen.checkout.flutter.utils.ConfigurationMapper.toNativeModel
import com.adyen.checkout.redirect.RedirectComponent
import com.adyen.checkout.ui.core.AdyenComponentView
import io.flutter.plugin.platform.PlatformView
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.adyen.adyen_checkout.components.card
package com.adyen.checkout.flutter.components.card

import ComponentFlutterInterface
import android.content.Context
import androidx.fragment.app.FragmentActivity
import com.adyen.adyen_checkout.components.card.advanced.CardAdvancedComponent
import com.adyen.adyen_checkout.components.card.session.CardSessionComponent
import com.adyen.adyen_checkout.session.SessionHolder
import com.adyen.checkout.flutter.components.card.advanced.CardAdvancedComponent
import com.adyen.checkout.flutter.components.card.session.CardSessionComponent
import com.adyen.checkout.flutter.session.SessionHolder
import io.flutter.plugin.platform.PlatformView
import io.flutter.plugin.platform.PlatformViewFactory

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.adyen.adyen_checkout.components.card.advanced
package com.adyen.checkout.flutter.components.card.advanced

import ComponentCommunicationModel
import ComponentCommunicationType
import ComponentFlutterInterface
import com.adyen.adyen_checkout.components.ComponentHeightMessenger
import com.adyen.checkout.card.CardComponentState
import com.adyen.checkout.components.core.ActionComponentData
import com.adyen.checkout.components.core.ComponentCallback
import com.adyen.checkout.components.core.ComponentError
import com.adyen.checkout.components.core.PaymentComponentData
import com.adyen.checkout.flutter.components.ComponentHeightMessenger

class CardAdvancedCallback(private val componentFlutterApi: ComponentFlutterInterface) :
ComponentCallback<CardComponentState> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.components.card.advanced
package com.adyen.checkout.flutter.components.card.advanced

import ComponentCommunicationModel
import ComponentCommunicationType
Expand All @@ -9,15 +9,15 @@ import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.core.view.doOnNextLayout
import androidx.fragment.app.FragmentActivity
import com.adyen.adyen_checkout.R
import com.adyen.adyen_checkout.components.ComponentActionMessenger
import com.adyen.adyen_checkout.components.ComponentErrorMessenger
import com.adyen.adyen_checkout.components.ComponentResultMessenger
import com.adyen.adyen_checkout.components.card.BaseCardComponent
import com.adyen.checkout.card.CardComponent
import com.adyen.checkout.components.core.PaymentMethod
import com.adyen.checkout.components.core.StoredPaymentMethod
import com.adyen.checkout.components.core.action.Action
import com.adyen.checkout.flutter.R
import com.adyen.checkout.flutter.components.ComponentActionMessenger
import com.adyen.checkout.flutter.components.ComponentErrorMessenger
import com.adyen.checkout.flutter.components.ComponentResultMessenger
import com.adyen.checkout.flutter.components.card.BaseCardComponent
import com.adyen.checkout.ui.core.AdyenComponentView
import org.json.JSONObject
import java.util.UUID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.adyen.adyen_checkout.components.card.session
package com.adyen.checkout.flutter.components.card.session

import ComponentCommunicationModel
import ComponentCommunicationType
import ComponentFlutterInterface
import PaymentResultModelDTO
import com.adyen.adyen_checkout.components.ComponentHeightMessenger
import com.adyen.adyen_checkout.utils.ConfigurationMapper.mapToOrderResponseModel
import com.adyen.checkout.card.CardComponentState
import com.adyen.checkout.components.core.ComponentError
import com.adyen.checkout.components.core.action.Action
import com.adyen.checkout.flutter.components.ComponentHeightMessenger
import com.adyen.checkout.flutter.utils.ConfigurationMapper.mapToOrderResponseModel
import com.adyen.checkout.sessions.core.SessionComponentCallback
import com.adyen.checkout.sessions.core.SessionPaymentResult

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.components.card.session
package com.adyen.checkout.flutter.components.card.session

import ComponentFlutterInterface
import android.content.Context
Expand All @@ -7,14 +7,14 @@ import android.view.ViewGroup
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.view.doOnNextLayout
import androidx.fragment.app.FragmentActivity
import com.adyen.adyen_checkout.R
import com.adyen.adyen_checkout.components.card.BaseCardComponent
import com.adyen.adyen_checkout.session.SessionHolder
import com.adyen.checkout.card.CardComponent
import com.adyen.checkout.components.core.Order
import com.adyen.checkout.components.core.PaymentMethod
import com.adyen.checkout.components.core.StoredPaymentMethod
import com.adyen.checkout.components.core.action.Action
import com.adyen.checkout.flutter.R
import com.adyen.checkout.flutter.components.card.BaseCardComponent
import com.adyen.checkout.flutter.session.SessionHolder
import com.adyen.checkout.sessions.core.CheckoutSession
import com.adyen.checkout.sessions.core.SessionSetupResponse
import com.adyen.checkout.ui.core.AdyenComponentView
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.dropIn
package com.adyen.checkout.flutter.dropIn

import DeletedStoredPaymentMethodResultDTO
import DropInConfigurationDTO
Expand All @@ -14,18 +14,6 @@ import PlatformCommunicationType
import androidx.activity.result.ActivityResultLauncher
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.lifecycleScope
import com.adyen.adyen_checkout.dropIn.advanced.AdvancedDropInService
import com.adyen.adyen_checkout.dropIn.advanced.DropInAdditionalDetailsPlatformMessenger
import com.adyen.adyen_checkout.dropIn.advanced.DropInAdditionalDetailsResultMessenger
import com.adyen.adyen_checkout.dropIn.advanced.DropInPaymentMethodDeletionPlatformMessenger
import com.adyen.adyen_checkout.dropIn.advanced.DropInPaymentMethodDeletionResultMessenger
import com.adyen.adyen_checkout.dropIn.advanced.DropInPaymentResultMessenger
import com.adyen.adyen_checkout.dropIn.advanced.DropInServiceResultMessenger
import com.adyen.adyen_checkout.dropIn.models.DropInType
import com.adyen.adyen_checkout.dropIn.session.SessionDropInService
import com.adyen.adyen_checkout.session.SessionHolder
import com.adyen.adyen_checkout.utils.ConfigurationMapper.mapToDropInConfiguration
import com.adyen.adyen_checkout.utils.ConfigurationMapper.mapToOrderResponseModel
import com.adyen.checkout.components.core.Order
import com.adyen.checkout.components.core.PaymentMethodsApiResponse
import com.adyen.checkout.dropin.DropIn
Expand All @@ -35,6 +23,18 @@ import com.adyen.checkout.dropin.SessionDropInCallback
import com.adyen.checkout.dropin.SessionDropInResult
import com.adyen.checkout.dropin.internal.ui.model.DropInResultContractParams
import com.adyen.checkout.dropin.internal.ui.model.SessionDropInResultContractParams
import com.adyen.checkout.flutter.dropIn.advanced.AdvancedDropInService
import com.adyen.checkout.flutter.dropIn.advanced.DropInAdditionalDetailsPlatformMessenger
import com.adyen.checkout.flutter.dropIn.advanced.DropInAdditionalDetailsResultMessenger
import com.adyen.checkout.flutter.dropIn.advanced.DropInPaymentMethodDeletionPlatformMessenger
import com.adyen.checkout.flutter.dropIn.advanced.DropInPaymentMethodDeletionResultMessenger
import com.adyen.checkout.flutter.dropIn.advanced.DropInPaymentResultMessenger
import com.adyen.checkout.flutter.dropIn.advanced.DropInServiceResultMessenger
import com.adyen.checkout.flutter.dropIn.model.DropInType
import com.adyen.checkout.flutter.dropIn.session.SessionDropInService
import com.adyen.checkout.flutter.session.SessionHolder
import com.adyen.checkout.flutter.utils.ConfigurationMapper.mapToDropInConfiguration
import com.adyen.checkout.flutter.utils.ConfigurationMapper.mapToOrderResponseModel
import com.adyen.checkout.sessions.core.CheckoutSession
import com.adyen.checkout.sessions.core.SessionSetupResponse
import kotlinx.coroutines.Dispatchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.dropIn.advanced
package com.adyen.checkout.flutter.dropIn.advanced

import DeletedStoredPaymentMethodResultDTO
import ErrorDTO
Expand All @@ -9,8 +9,6 @@ import android.os.IBinder
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.ServiceLifecycleDispatcher
import com.adyen.adyen_checkout.dropIn.models.DropInStoredPaymentMethodDeletionModel
import com.adyen.adyen_checkout.dropIn.models.DropInType
import com.adyen.checkout.components.core.ActionComponentData
import com.adyen.checkout.components.core.PaymentComponentData
import com.adyen.checkout.components.core.PaymentComponentState
Expand All @@ -20,6 +18,8 @@ import com.adyen.checkout.dropin.DropInService
import com.adyen.checkout.dropin.DropInServiceResult
import com.adyen.checkout.dropin.ErrorDialog
import com.adyen.checkout.dropin.RecurringDropInServiceResult
import com.adyen.checkout.flutter.dropIn.model.DropInStoredPaymentMethodDeletionModel
import com.adyen.checkout.flutter.dropIn.model.DropInType
import org.json.JSONObject

class AdvancedDropInService : DropInService(), LifecycleOwner {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.adyen.adyen_checkout.dropIn.advanced
package com.adyen.checkout.flutter.dropIn.advanced

import DeletedStoredPaymentMethodResultDTO
import PaymentEventDTO
import androidx.lifecycle.LiveData
import com.adyen.adyen_checkout.dropIn.models.DropInStoredPaymentMethodDeletionModel
import com.adyen.adyen_checkout.utils.Event
import com.adyen.checkout.flutter.dropIn.model.DropInStoredPaymentMethodDeletionModel
import com.adyen.checkout.flutter.utils.Event
import org.json.JSONObject

class DropInServiceResultMessenger : LiveData<Event<JSONObject>>() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.dropIn.models
package com.adyen.checkout.flutter.dropIn.model

data class DropInStoredPaymentMethodDeletionModel(
val storedPaymentMethodId: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.dropIn.models
package com.adyen.checkout.flutter.dropIn.model

enum class DropInType {
SESSION,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package com.adyen.adyen_checkout.dropIn.session
package com.adyen.checkout.flutter.dropIn.session

import DeletedStoredPaymentMethodResultDTO
import android.content.Intent
import android.os.IBinder
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.ServiceLifecycleDispatcher
import com.adyen.adyen_checkout.dropIn.advanced.DropInPaymentMethodDeletionPlatformMessenger
import com.adyen.adyen_checkout.dropIn.advanced.DropInPaymentMethodDeletionResultMessenger
import com.adyen.adyen_checkout.dropIn.models.DropInStoredPaymentMethodDeletionModel
import com.adyen.adyen_checkout.dropIn.models.DropInType
import com.adyen.checkout.components.core.StoredPaymentMethod
import com.adyen.checkout.dropin.ErrorDialog
import com.adyen.checkout.dropin.RecurringDropInServiceResult
import com.adyen.checkout.dropin.SessionDropInService
import com.adyen.checkout.flutter.dropIn.advanced.DropInPaymentMethodDeletionPlatformMessenger
import com.adyen.checkout.flutter.dropIn.advanced.DropInPaymentMethodDeletionResultMessenger
import com.adyen.checkout.flutter.dropIn.model.DropInStoredPaymentMethodDeletionModel
import com.adyen.checkout.flutter.dropIn.model.DropInType

class SessionDropInService : SessionDropInService(), LifecycleOwner {
private val dispatcher = ServiceLifecycleDispatcher(this)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.session
package com.adyen.checkout.flutter.session

import org.json.JSONObject

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.utils
package com.adyen.checkout.flutter.utils

import AddressMode
import AmountDTO
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.utils
package com.adyen.checkout.flutter.utils

class Constants {
companion object {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.adyen.adyen_checkout.utils
package com.adyen.checkout.flutter.utils

import androidx.annotation.Nullable

Expand Down
Loading

0 comments on commit fad6a10

Please sign in to comment.