diff --git a/dependencies.gradle b/dependencies.gradle index 9496c8cd9bb..dc04bbd9fda 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,5 +1,6 @@ ext.versions = [ detekt: "1.20.0", + mavericks: "2.6.1" ] ext.buildLibs = [ @@ -10,6 +11,11 @@ ext.configs = [ androidLibrary: "${project.rootDir}/build-configuration/android-library.gradle", ] +ext.libs = [ + mavericks: "com.airbnb.android:mavericks:$versions.mavericks" +] + ext.testLibs = [ - turbine: "app.cash.turbine:turbine:0.8.0" + turbine: "app.cash.turbine:turbine:0.8.0", + mavericks: "com.airbnb.android:mavericks-testing:$versions.mavericks" ] diff --git a/financial-connections-example/build.gradle b/financial-connections-example/build.gradle index deaa47d4acd..3d4f8ec6bca 100644 --- a/financial-connections-example/build.gradle +++ b/financial-connections-example/build.gradle @@ -47,7 +47,6 @@ dependencies { implementation "androidx.activity:activity-ktx:$androidxActivityVersion" implementation "androidx.appcompat:appcompat:$androidxAppcompatVersion" - implementation "androidx.constraintlayout:constraintlayout:$androidxConstraintlayoutVersion" implementation "androidx.core:core-ktx:$androidxCoreVersion" implementation "com.google.android.material:material:$materialVersion" implementation 'com.google.code.gson:gson:2.9.0' diff --git a/financial-connections/api/financial-connections.api b/financial-connections/api/financial-connections.api index 68693c230f1..ae59cd9976f 100644 --- a/financial-connections/api/financial-connections.api +++ b/financial-connections/api/financial-connections.api @@ -120,11 +120,11 @@ public abstract interface class com/stripe/android/financialconnections/Financia } public final class com/stripe/android/financialconnections/FinancialConnectionsSheetViewModel_Factory : dagger/internal/Factory { - public fun (Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;)V - public static fun create (Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;)Lcom/stripe/android/financialconnections/FinancialConnectionsSheetViewModel_Factory; + public fun (Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;)V + public static fun create (Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;Ljavax/inject/Provider;)Lcom/stripe/android/financialconnections/FinancialConnectionsSheetViewModel_Factory; public fun get ()Lcom/stripe/android/financialconnections/FinancialConnectionsSheetViewModel; public synthetic fun get ()Ljava/lang/Object; - public static fun newInstance (Ljava/lang/String;Lcom/stripe/android/financialconnections/launcher/FinancialConnectionsSheetActivityArgs;Lcom/stripe/android/financialconnections/domain/GenerateFinancialConnectionsSessionManifest;Lcom/stripe/android/financialconnections/domain/FetchFinancialConnectionsSession;Lcom/stripe/android/financialconnections/domain/FetchFinancialConnectionsSessionForToken;Landroidx/lifecycle/SavedStateHandle;Lcom/stripe/android/financialconnections/analytics/FinancialConnectionsEventReporter;)Lcom/stripe/android/financialconnections/FinancialConnectionsSheetViewModel; + public static fun newInstance (Ljava/lang/String;Lcom/stripe/android/financialconnections/domain/GenerateFinancialConnectionsSessionManifest;Lcom/stripe/android/financialconnections/domain/FetchFinancialConnectionsSession;Lcom/stripe/android/financialconnections/domain/FetchFinancialConnectionsSessionForToken;Lcom/stripe/android/financialconnections/analytics/FinancialConnectionsEventReporter;Lcom/stripe/android/financialconnections/FinancialConnectionsSheetState;)Lcom/stripe/android/financialconnections/FinancialConnectionsSheetViewModel; } public final class com/stripe/android/financialconnections/analytics/DefaultFinancialConnectionsEventReporter_Factory : dagger/internal/Factory { @@ -135,19 +135,9 @@ public final class com/stripe/android/financialconnections/analytics/DefaultFina public static fun newInstance (Lcom/stripe/android/core/networking/AnalyticsRequestExecutor;Lcom/stripe/android/core/networking/AnalyticsRequestFactory;Lkotlin/coroutines/CoroutineContext;)Lcom/stripe/android/financialconnections/analytics/DefaultFinancialConnectionsEventReporter; } -public final class com/stripe/android/financialconnections/databinding/ActivityFinancialconnectionsSheetBinding : androidx/viewbinding/ViewBinding { - public final field spinner Lcom/google/android/material/progressindicator/CircularProgressIndicator; - public static fun bind (Landroid/view/View;)Lcom/stripe/android/financialconnections/databinding/ActivityFinancialconnectionsSheetBinding; - public synthetic fun getRoot ()Landroid/view/View; - public fun getRoot ()Landroidx/constraintlayout/widget/ConstraintLayout; - public static fun inflate (Landroid/view/LayoutInflater;)Lcom/stripe/android/financialconnections/databinding/ActivityFinancialconnectionsSheetBinding; - public static fun inflate (Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Z)Lcom/stripe/android/financialconnections/databinding/ActivityFinancialconnectionsSheetBinding; -} - public final class com/stripe/android/financialconnections/di/DaggerFinancialConnectionsSheetComponent : com/stripe/android/financialconnections/di/FinancialConnectionsSheetComponent { public static fun builder ()Lcom/stripe/android/financialconnections/di/FinancialConnectionsSheetComponent$Builder; public fun getViewModel ()Lcom/stripe/android/financialconnections/FinancialConnectionsSheetViewModel; - public fun inject (Lcom/stripe/android/financialconnections/FinancialConnectionsSheetViewModel$Factory;)V } public final class com/stripe/android/financialconnections/di/FinancialConnectionsSheetConfigurationModule_ProvidesApplicationIdFactory : dagger/internal/Factory { diff --git a/financial-connections/build.gradle b/financial-connections/build.gradle index 9ce0d244f2e..7b105815429 100644 --- a/financial-connections/build.gradle +++ b/financial-connections/build.gradle @@ -29,10 +29,10 @@ dependencies { implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinCoroutinesVersion" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinCoroutinesVersion" implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinSerializationVersion" + implementation libs.mavericks kapt "com.google.dagger:dagger-compiler:$daggerVersion" - testImplementation 'app.cash.turbine:turbine:0.8.0' testImplementation "androidx.arch.core:core-testing:$androidxArchCoreVersion" testImplementation "androidx.fragment:fragment-testing:$androidxFragmentVersion" testImplementation "androidx.test.ext:junit-ktx:$androidTestJunitVersion" @@ -47,6 +47,7 @@ dependencies { testImplementation "org.mockito:mockito-core:$mockitoCoreVersion" testImplementation "org.mockito:mockito-inline:$mockitoCoreVersion" testImplementation "org.robolectric:robolectric:$robolectricVersion" + testImplementation testLibs.mavericks androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion" androidTestImplementation "androidx.test:rules:$androidTestVersion" @@ -56,13 +57,6 @@ dependencies { ktlint "com.pinterest:ktlint:$ktlintVersion" } -android { - buildFeatures { - viewBinding true - } -} - - ext { artifactId = "financial-connections" artifactName = "financial-connections" diff --git a/financial-connections/res/layout/activity_financialconnections_sheet.xml b/financial-connections/res/layout/activity_financialconnections_sheet.xml index 60257da7ec6..d10ce4abb68 100644 --- a/financial-connections/res/layout/activity_financialconnections_sheet.xml +++ b/financial-connections/res/layout/activity_financialconnections_sheet.xml @@ -1,5 +1,5 @@ - @@ -8,6 +8,7 @@ android:id="@+id/spinner" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_gravity="center" android:indeterminate="true" app:indicatorColor="@color/stripe_toolbar_color_default" app:indicatorSize="@dimen/stripe_connectionssheet_loading_indicator_size" @@ -17,4 +18,4 @@ app:layout_constraintTop_toTopOf="parent" app:trackThickness="@dimen/stripe_connectionssheet_loading_indicator_stroke_width" /> - + \ No newline at end of file diff --git a/financial-connections/src/main/AndroidManifest.xml b/financial-connections/src/main/AndroidManifest.xml index b303ce148d6..316e1fd1bd1 100644 --- a/financial-connections/src/main/AndroidManifest.xml +++ b/financial-connections/src/main/AndroidManifest.xml @@ -29,6 +29,12 @@ android:name="com.stripe.android.financialconnections.FinancialConnectionsSheetActivity" android:exported="false" android:theme="@style/StripeDefaultTheme" /> + +