Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
setup:
runs-on: ubuntu-24.04
runs-on: macos-26-xlarge

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ android {
}

ktlint {
version.set("0.50.0")
android.set(true)
}

Expand Down Expand Up @@ -137,6 +136,7 @@ dependencies {
implementation(libs.hilt.android)
implementation(libs.androidx.recyclerview)
implementation(libs.androidx.navigation3.ui)
ksp(libs.kotlin.metadata.jvm)
ksp(libs.hilt.android.compiler)

implementation(projects.analytics)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import dagger.hilt.components.SingletonComponent

@Module
@InstallIn(SingletonComponent::class)
@Suppress("TooManyFunctions")
object HistoryModule {
@Provides
fun providesSavedIpAddressRecordDomainMapper() = SavedIpAddressRecordDomainMapper()
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/mitteloupe/whoami/di/HomeModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ object HomeModule {
fun providesExceptionPresentationMapper() = ExceptionPresentationMapper()

@Provides
@Suppress("LongParameterList")
fun providesHomeViewModel(
getConnectionDetailsUseCase: GetConnectionDetailsUseCase,
connectionDetailsPresentationMapper: ConnectionDetailsPresentationMapper,
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/mitteloupe/whoami/di/HomeUiModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ object HomeUiModule {
fun providesConnectionDetailsUiMapper() = ConnectionDetailsUiMapper()

@Provides
@Suppress("LongParameterList")
fun providesHomeDependencies(
homeViewModel: HomeViewModel,
homeViewStateUiMapper: HomeViewStateUiMapper,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private fun UiDevice.closeAnrWithWait(appNotRespondingDialog: UiObject) {
val dialogText = appNotRespondingDialog.text
val appName = dialogText.take(dialogText.length - APP_NOT_RESPONDING_TEXT.length)
Log.i(APP_NOT_RESPONDING_TAG, "App \"$appName\" is not responding. Pressed on wait.")
} catch (uiObjectNotFoundException: UiObjectNotFoundException) {
} catch (_: UiObjectNotFoundException) {
Log.i(APP_NOT_RESPONDING_TAG, "Detected app not responding dialog, but window disappeared.")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class MockDispatcher :
ResponseBinder {
override var testName: String = ""

override val usedEndpoints: Set<MockRequest>
final override val usedEndpoints: Set<MockRequest>
field = mutableSetOf()

private val responses = mutableMapOf<MockRequest, MockResponseFactory>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class NewIpAddressRecordLocalMapperTest(
)
)

@Suppress("LongParameterList")
private fun testCase(
testTitle: String,
ipAddress: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class SavedIpAddressRecordDataMapperTest(
)
)

@Suppress("LongParameterList")
private fun testCase(
testTitle: String,
ipAddress: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class IpAddressInformationDataMapperTest(
)
)

@Suppress("LongParameterList")
private fun testCase(
city: String?,
region: String?,
Expand Down
3 changes: 2 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test-androidx-rules = "1.7.0"
androidx-tracing = "1.3.0"
uiautomator = "2.3.0"
okhttp3 = "5.3.2"
kotlin = "2.2.21"
kotlin = "2.3.0"
plugin-oss-licenses = "0.10.10"
ktlint = "14.0.1"
detekt = "1.23.8"
Expand All @@ -40,6 +40,7 @@ compileSdk = "36"
[libraries]
aboutlibraries-compose = { module = "com.mikepenz:aboutlibraries-compose", version.ref = "aboutlibraries" }
aboutlibraries-core = { module = "com.mikepenz:aboutlibraries-core", version.ref = "aboutlibraries" }
kotlin-metadata-jvm = { module = "org.jetbrains.kotlin:kotlin-metadata-jvm", version.ref = "kotlin" }
material = { module = "com.google.android.material:material", version.ref = "material" }
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" }
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "androidx-core-ktx" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class SavedIpAddressRecordDomainMapperTest(
)
)

@Suppress("LongParameterList")
private fun testCase(
testTitle: String,
ipAddress: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class SavedIpAddressRecordPresentationMapperTest(
)
)

@Suppress("LongParameterList")
private fun testCase(
testTitle: String,
ipAddress: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class HistoryRecordUiMapperTest(
companion object {
@JvmStatic
@Parameters(name = "{0} then returns {2}")
@Suppress("LongMethod")
fun data(): Iterable<Array<*>> = setOf(
testCase(
testTitle = "All nulls",
Expand Down Expand Up @@ -109,6 +110,7 @@ class HistoryRecordUiMapperTest(
)
)

@Suppress("LongParameterList")
private fun testCase(
testTitle: String,
ipAddress: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class ConnectionDetailsDataMapperTest(
)
)

@Suppress("LongParameterList")
private fun testCase(
testTitle: String,
ipAddress: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class ConnectionDetailsDomainResolverTest(
)
)

@Suppress("LongParameterList")
private fun connectedWithTestCase(
testTitle: String,
city: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class ConnectionDetailsDomainMapperTest(
)
)

@Suppress("LongParameterList")
private fun connectedTestCase(
ipAddress: String,
city: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class ConnectionDetailsPresentationMapperTest(
stubMapper: ExceptionPresentationMapper.() -> Unit = {}
) = arrayOf(connectionDetails, viewState, stubMapper)

@Suppress("LongParameterList")
private fun connectedTestCase(
ipAddress: String,
city: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class ConnectionDetailsPresentationMapperTest(
nullsTestCase(ipAddress = "4.3.2.1")
)

@Suppress("LongParameterList")
private fun testCase(
testTitle: String,
ipAddress: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class ConnectionDetailsUiMapperTest(
nullsTestCase(ipAddress = "4.3.2.1")
)

@Suppress("LongParameterList")
private fun testCase(
testTitle: String,
ipAddress: String,
Expand Down
Loading