Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
simond-stripe committed Oct 8, 2024
1 parent 1422da5 commit 1dab786
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 108 deletions.
6 changes: 3 additions & 3 deletions stripe-connect-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ dependencies {
implementation libs.kotlin.coroutinesAndroid
implementation libs.kotlin.serialization

// Logging
implementation libs.timber

// Networking
implementation libs.fuel
implementation libs.fuelCoroutines

// Logging
implementation libs.timber

// AndroidX
implementation libs.androidx.activity
implementation libs.androidx.annotation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.app.Application
import android.os.StrictMode
import timber.log.Timber

class App: Application() {
class App : Application() {
override fun onCreate() {
super.onCreate()

Expand All @@ -29,4 +29,4 @@ class App: Application() {
Timber.plant(Timber.DebugTree())
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ suspend fun <T : Any> Request.awaitModel(
}

return awaitResult(deserializer)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object ApplicationJsonHeaderInterceptor : FoldableRequestInterceptor {
}

object UserAgentHeader : FoldableRequestInterceptor {
fun getUserAgent(): String {
private fun getUserAgent(): String {
val androidBrand = Build.BRAND
val androidDevice = Build.MODEL
val osVersion = Build.VERSION.SDK_INT
Expand Down Expand Up @@ -56,4 +56,4 @@ class TimberResponseLogger(private val tag: String) : FoldableResponseIntercepto
next(request, response)
}
}
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ fun LaunchEmbeddedComponentsScreenPreviewWithEmptyAccounts() {
onConnectSDKAccountSelected = {},
onEmbeddedComponentLaunched = {}
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ class AccountOnboardingExampleActivity : ComponentActivity() {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import timber.log.Timber
class AccountOnboardingExampleViewModel(
private val embeddedComponentService: EmbeddedComponentService = EmbeddedComponentService(),
private val networkingScope: CoroutineScope = CoroutineScope(Dispatchers.IO),
): ViewModel() {
) : ViewModel() {

private val timber get() = Timber.tag("AccountOnboardingExampleViewModel")

Expand Down Expand Up @@ -70,4 +70,4 @@ class AccountOnboardingExampleViewModel(
val accounts: List<Merchant>? = null,
val publishableKey: String? = null,
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import timber.log.Timber
class PayoutsExampleViewModel(
private val embeddedComponentService: EmbeddedComponentService = EmbeddedComponentService(),
private val networkingScope: CoroutineScope = CoroutineScope(Dispatchers.IO),
): ViewModel() {
) : ViewModel() {

private val timber get() = Timber.tag("PayoutsExampleViewModel")

Expand Down Expand Up @@ -70,4 +70,4 @@ class PayoutsExampleViewModel(
val accounts: List<Merchant>? = null,
val publishableKey: String? = null,
)
}
}

This file was deleted.

0 comments on commit 1dab786

Please sign in to comment.