Skip to content

Commit 33fe265

Browse files
committed
Update compileSdk version to 36 across multiple Gradle files and add a StubProfileComponent for testing in ProfileViewModelTest. Enhance import statements in ActivityScreenTest and SharedWithMeScreenTest to align with updated domain structure, improving code clarity and consistency.
1 parent d5ad35e commit 33fe265

41 files changed

Lines changed: 48 additions & 40 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

frontend/androidApp/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (keystorePropertiesFile.exists()) {
2323

2424
android {
2525
namespace = "com.vaultstadio.app"
26-
compileSdk = 34
26+
compileSdk = 36
2727

2828
defaultConfig {
2929
applicationId = "com.vaultstadio.app"

frontend/composeApp/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ kotlin {
2525

2626
android {
2727
namespace = "com.vaultstadio.app.shared"
28-
compileSdk = 34
28+
compileSdk = 36
2929
minSdk = 24
3030
}
3131

frontend/composeApp/src/test/kotlin/com/vaultstadio/app/feature/profile/ProfileViewModelTest.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ private class FakeAuthRepositoryForProfile : AuthRepository {
6060
override fun isLoggedIn() = true
6161
}
6262

63+
private class StubProfileComponent : ProfileComponent {
64+
override fun onBack() {}
65+
override fun navigateToChangePassword() {}
66+
override fun navigateToSecurity() {}
67+
override fun exportData(fileName: String, data: ByteArray, mimeType: String) {}
68+
}
69+
6370
class ProfileViewModelTest {
6471

6572
private fun createViewModel(): ProfileViewModel {
@@ -69,6 +76,7 @@ class ProfileViewModelTest {
6976
getQuotaUseCase = GetQuotaUseCaseImpl(repo),
7077
updateProfileUseCase = UpdateProfileUseCaseImpl(repo),
7178
changePasswordUseCase = ChangePasswordUseCaseImpl(repo),
79+
profileComponent = StubProfileComponent(),
7280
)
7381
}
7482

frontend/composeApp/src/test/kotlin/com/vaultstadio/app/ui/screens/ActivityScreenTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package com.vaultstadio.app.ui.screens
66

77
import com.vaultstadio.app.domain.activity.model.Activity
8+
import com.vaultstadio.app.feature.activity.ActivityFilter
89
import kotlin.time.Clock
910
import kotlin.test.Test
1011
import kotlin.test.assertEquals

frontend/composeApp/src/test/kotlin/com/vaultstadio/app/ui/screens/SharedWithMeScreenTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package com.vaultstadio.app.ui.screens
77
import com.vaultstadio.app.domain.storage.model.ItemType
88
import com.vaultstadio.app.domain.storage.model.StorageItem
99
import com.vaultstadio.app.domain.storage.model.Visibility
10+
import com.vaultstadio.app.feature.sharedwithme.SharedWithMeItem
1011
import kotlinx.datetime.Instant
1112
import kotlin.test.Test
1213
import kotlin.test.assertEquals

frontend/core/resources/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ kotlin {
1616
jvm("desktop")
1717
android {
1818
namespace = libNamespace
19-
compileSdk = 34
19+
compileSdk = 36
2020
minSdk = 24
2121
compilerOptions { jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17) }
2222
}

frontend/domain/activity/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kotlin {
66
jvm("desktop")
77
android {
88
namespace = libNamespace
9-
compileSdk = 34
9+
compileSdk = 36
1010
minSdk = 24
1111
compilerOptions { jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17) }
1212
}

frontend/domain/admin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kotlin {
66
jvm("desktop")
77
android {
88
namespace = libNamespace
9-
compileSdk = 34
9+
compileSdk = 36
1010
minSdk = 24
1111
compilerOptions { jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17) }
1212
}

frontend/domain/ai/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kotlin {
66
jvm("desktop")
77
android {
88
namespace = libNamespace
9-
compileSdk = 34
9+
compileSdk = 36
1010
minSdk = 24
1111
compilerOptions { jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17) }
1212
}

frontend/domain/auth/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ kotlin {
1515
jvm("desktop")
1616
android {
1717
namespace = libNamespace
18-
compileSdk = 34
18+
compileSdk = 36
1919
minSdk = 24
2020
compilerOptions {
2121
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)

0 commit comments

Comments
 (0)