Skip to content

Commit

Permalink
Update more build and test dependencies. (#9336)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaynewstrom-stripe authored Sep 25, 2024
1 parent 204c8c7 commit a9ff548
Show file tree
Hide file tree
Showing 10 changed files with 272 additions and 266 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ apiValidation {
"screenshot-testing",
"3ds2playground",
"dokka-stripe",
"stripe-test-e2e",
]
nonPublicMarkers.add("androidx.annotation.RestrictTo")
nonPublicMarkers.add("dagger.internal.DaggerGenerated")
Expand Down
22 changes: 11 additions & 11 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ ext.versions = [
androidxNavigation : '2.7.6',
androidxPreference : '1.2.1',
androidxRecyclerview : '1.3.2',
binaryCompatibilityValidator: '0.14.0',
binaryCompatibilityValidator: '0.16.3',
bouncyCastle : '1.78.1',
cameraX : '1.3.1',
dagger : '2.50',
detekt : '1.23.6',
diskLruCache : '2.0.2',
dokka : '1.9.20',
espresso : '3.5.1',
firebaseAppDistribution : '4.0.1',
firebaseAppDistribution : '5.0.0',
fuel : '2.3.1',
goDaddyColorPicker : '0.7.0',
googleServices : '4.3.15',
googleServices : '4.4.2',
gson : '2.10.1',
hamcrest : '2.2',
instantApps : '1.1.0',
junit : '4.13.2',
json : '20230227',
json : '20240303',
kotlin : '1.9.22',
kotlinCoroutines : '1.7.3',
kotlinSerialization : '1.6.2',
Expand All @@ -49,14 +49,14 @@ ext.versions = [
ktlint : '0.48.2',
leakCanary : '2.14',
material : '1.11.0',
mockito : '5.10.0',
mockito : '5.13.0',
mockitoInline : '5.2.0',
mockitoKotlin : '5.2.1',
mockitoKotlin : '5.4.0',
nimbusJwt : '9.40',
okhttp : '4.12.0',
okio : '3.7.0',
okio : '3.9.1',
paparazzi : '1.3.3',
poko : '0.15.2',
poko : '0.17.1',
payButtonCompose : '0.1.3',
places : '3.3.0',
playServicesCoroutines : '1.7.3',
Expand All @@ -69,9 +69,9 @@ ext.versions = [
stripe3ds2 : '6.1.8',
tensorflowLite : '2.11.0',
tensorflowLiteSupport : '0.4.3',
testParameterInjector : '1.12',
truth : '1.1.3',
turbine : '1.0.0',
testParameterInjector : '1.17',
truth : '1.4.4',
turbine : '1.1.0',
uiAutomator : '2.3.0',
workManager : '2.9.0',
zxing : '3.5.2',
Expand Down
174 changes: 87 additions & 87 deletions example/dependencies/dependencies.txt

Large diffs are not rendered by default.

113 changes: 55 additions & 58 deletions payments-core-testing/dependencies/dependencies.txt

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions payments/api/payments.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
public final class com/stripe/android/payments/BuildConfig {
public static final field BUILD_TYPE Ljava/lang/String;
public static final field DEBUG Z
public static final field LIBRARY_PACKAGE_NAME Ljava/lang/String;
public fun <init> ()V
}

202 changes: 101 additions & 101 deletions paymentsheet-example/dependencies/dependencies.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.stripe.android.paymentsheet.utils

import com.google.testing.junit.testparameterinjector.TestParameter
import com.google.testing.junit.testparameterinjector.TestParameterValuesProvider

internal enum class CustomerSheetTestType {
AttachToCustomer,
AttachToSetupIntent,
}

internal object CustomerSheetTestTypeProvider : TestParameter.TestParameterValuesProvider {
override fun provideValues(): List<CustomerSheetTestType> {
internal object CustomerSheetTestTypeProvider : TestParameterValuesProvider() {
override fun provideValues(context: Context?): List<CustomerSheetTestType> {
return CustomerSheetTestType.entries
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.stripe.android.paymentsheet.utils

import com.google.testing.junit.testparameterinjector.TestParameter
import com.google.testing.junit.testparameterinjector.TestParameterValuesProvider

internal enum class IntegrationType {
Activity,
Compose,
}

internal object IntegrationTypeProvider : TestParameter.TestParameterValuesProvider {
override fun provideValues(): List<IntegrationType> {
internal object IntegrationTypeProvider : TestParameterValuesProvider() {
override fun provideValues(context: Context?): List<IntegrationType> {
return IntegrationType.entries
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.stripe.android.paymentsheet.utils

import com.google.testing.junit.testparameterinjector.TestParameter
import com.google.testing.junit.testparameterinjector.TestParameterValuesProvider

internal enum class ProductIntegrationType {
PaymentSheet,
FlowController,
}

internal object ProductIntegrationTypeProvider : TestParameter.TestParameterValuesProvider {
override fun provideValues(): List<ProductIntegrationType> {
internal object ProductIntegrationTypeProvider : TestParameterValuesProvider() {
override fun provideValues(context: Context?): List<ProductIntegrationType> {
return ProductIntegrationType.entries
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ class CustomerSheetViewModelTest {
val resultTurbine = viewModel.result.testIn(backgroundScope)

assertThat(viewStateTurbine.awaitItem()).isInstanceOf<SelectPaymentMethod>()
viewStateTurbine.cancelAndIgnoreRemainingEvents()
assertThat(resultTurbine.awaitItem()).isNull()

viewModel.handleViewAction(CustomerSheetViewAction.OnPrimaryButtonPressed)
Expand Down

0 comments on commit a9ff548

Please sign in to comment.