Skip to content

Commit

Permalink
Update to use correct magnessdk jar (#254)
Browse files Browse the repository at this point in the history
* fix imports

* Use the correct jar for magnes sdk
  • Loading branch information
saperi22 authored Apr 22, 2024
1 parent 95e0def commit a249074
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Binary file modified FraudProtection/libs/android-magnessdk-5.5.1.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.paypal.android.fraudprotection

import com.paypal.android.corepayments.CoreConfig
import lib.android.com.paypal.magnessdk.Environment
import lib.android.paypal.com.magnessdk.Environment

internal val CoreConfig.magnesEnvironment: Environment
get() = when (environment) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package com.paypal.android.fraudprotection
import android.content.Context
import android.util.Log
import com.paypal.android.corepayments.CoreConfig
import lib.android.com.paypal.magnessdk.InvalidInputException
import lib.android.com.paypal.magnessdk.MagnesSDK
import lib.android.com.paypal.magnessdk.MagnesSettings
import lib.android.com.paypal.magnessdk.MagnesSource
import lib.android.paypal.com.magnessdk.InvalidInputException
import lib.android.paypal.com.magnessdk.MagnesSDK
import lib.android.paypal.com.magnessdk.MagnesSettings
import lib.android.paypal.com.magnessdk.MagnesSource

/**
* Enables you to collect data about a customer's device and correlate it with a session identifier on your server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import io.mockk.mockk
import io.mockk.mockkStatic
import io.mockk.slot
import io.mockk.verify
import lib.android.com.paypal.magnessdk.InvalidInputException
import lib.android.com.paypal.magnessdk.MagnesResult
import lib.android.com.paypal.magnessdk.MagnesSDK
import lib.android.com.paypal.magnessdk.MagnesSettings
import lib.android.com.paypal.magnessdk.MagnesSource
import lib.android.paypal.com.magnessdk.InvalidInputException
import lib.android.paypal.com.magnessdk.MagnesResult
import lib.android.paypal.com.magnessdk.MagnesSDK
import lib.android.paypal.com.magnessdk.MagnesSettings
import lib.android.paypal.com.magnessdk.MagnesSource
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
Expand Down Expand Up @@ -48,7 +48,7 @@ class PayPalDataCollectorUnitTest {
val magnesSettings = magnesSettingsSlot.captured
assertEquals(
magnesSettings.environment,
lib.android.com.paypal.magnessdk.Environment.SANDBOX
lib.android.paypal.com.magnessdk.Environment.SANDBOX
)
assertFalse(magnesSettings.isDisableBeacon)
assertEquals(magnesSettings.appGuid, appGUID)
Expand All @@ -70,7 +70,7 @@ class PayPalDataCollectorUnitTest {
verify { mockMagnesSDK.setUp(capture(magnesSettingsSlot)) }

val magnesSettings = magnesSettingsSlot.captured
assertEquals(magnesSettings.environment, lib.android.com.paypal.magnessdk.Environment.LIVE)
assertEquals(magnesSettings.environment, lib.android.paypal.com.magnessdk.Environment.LIVE)
}

@Test
Expand Down

0 comments on commit a249074

Please sign in to comment.