Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ce88d0a
chore: prepare ViewModels for Metro migration
Garzas May 13, 2026
66d08bc
refactor: remove SavedStateHandle nav args from ViewModels
Garzas May 13, 2026
cda484b
chore: prepare ViewModel creation boundary for Metro
Garzas May 13, 2026
2d0e32b
chore: use JDK 21 for project builds
Garzas May 13, 2026
2d26d07
feat: add Metro ViewModel pilot setup
Garzas May 13, 2026
2e15e04
feat: add Metro factories for ViewModels
Garzas May 13, 2026
b510356
feat: use Metro for initial ViewModel runtime pilot
Garzas May 13, 2026
2e71173
refactor: migrate more ViewModels to Metro
Garzas May 13, 2026
b1261ea
refactor: migrate settings and sync ViewModels to Metro
Garzas May 13, 2026
23fa46a
refactor: migrate profile and device ViewModels to Metro
Garzas May 13, 2026
226641a
refactor: migrate account settings ViewModels to Metro
Garzas May 13, 2026
37624f2
refactor: migrate app lock and account ViewModels to Metro
Garzas May 13, 2026
8539ad4
refactor: migrate debug and device ViewModels to Metro
Garzas May 13, 2026
9911a47
refactor: migrate profile and media ViewModels to Metro
Garzas May 13, 2026
87be819
refactor: migrate auth entry ViewModels to Metro
Garzas May 13, 2026
e464cd9
refactor: migrate registration ViewModels to Metro
Garzas May 13, 2026
1561885
refactor: migrate login and utility ViewModels to Metro
Garzas May 13, 2026
56673c5
refactor: migrate common and debug ViewModels to Metro
Garzas May 13, 2026
2f08e38
refactor: migrate conversation action ViewModels to Metro
Garzas May 14, 2026
4b5cbc0
refactor: migrate conversation settings ViewModels to Metro
Garzas May 14, 2026
985751d
refactor: migrate conversation utility ViewModels to Metro
Garzas May 14, 2026
1b6004c
refactor: migrate message component ViewModels to Metro
Garzas May 14, 2026
9d10fc2
refactor: migrate feature ViewModels to Metro graph
Garzas May 14, 2026
8768634
refactor: migrate remaining screen ViewModels to Metro
Garzas May 14, 2026
5ca5811
refactor: reduce Hilt surface for Metro migration
Garzas May 14, 2026
dc5ce0f
refactor: reduce remaining Hilt surface for Metro
Garzas May 14, 2026
15dbc75
fix: stabilize Metro application scope
Garzas May 14, 2026
8cffc81
chore: remove redundant Metro providers
Garzas May 14, 2026
e8fa8dd
refactor: migrate simple gateway bindings to Metro
Garzas May 14, 2026
7e1a30b
chore: remove unused initializer entry point
Garzas May 14, 2026
9bf6456
refactor: migrate broadcast receiver dependencies to Metro
Garzas May 14, 2026
e84bfc0
refactor: move location picker helper to Metro
Garzas May 14, 2026
97e6ded
refactor: provide log file writer through Metro
Garzas May 14, 2026
a2bd79d
chore: remove duplicate audio loudness Hilt provider
Garzas May 14, 2026
cd578ee
refactor: remove hilt from app tests
Garzas May 14, 2026
fe8c32a
fix: restore scoped metro view models
Garzas May 14, 2026
9efa346
feat: add ios shared pilot graph
Garzas May 15, 2026
b231763
feat: add swift friendly ios view model observers
Garzas May 15, 2026
fd4625a
feat: add shared ios login identifier view model
Garzas May 15, 2026
d149752
fix: use concrete composer scoped view model factory
Garzas May 15, 2026
80dd1f3
feat: add Kalium-backed iOS login probe
Garzas May 15, 2026
8bd9aee
feat: add shared auth flow for iOS handoff
Garzas May 18, 2026
940ad90
chore: bump metro to 1.1.1
Garzas May 19, 2026
c3baf8d
fix: complete metro wiring after rebase
Garzas May 20, 2026
5f172ea
fix: resolve detekt issues
Garzas May 20, 2026
1a203b8
fix: repair test coverage task
Garzas May 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .java-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17.0
21.0
12 changes: 3 additions & 9 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ plugins {
// id(BuildPlugins.kotlinAndroidExtensions)
id(BuildPlugins.kotlinParcelize)
id(BuildPlugins.junit5)
id(libs.plugins.wire.hilt.get().pluginId)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.ksp)
alias(libs.plugins.compose.compiler)
Expand Down Expand Up @@ -202,6 +201,7 @@ dependencies {
implementationWithCoverage(projects.features.sketch)
implementationWithCoverage(projects.features.meetings)
implementationWithCoverage(projects.features.sync)
implementation(projects.shared.auth)

// Anonymous Analytics
val flavors = getFlavorsSettings()
Expand Down Expand Up @@ -274,14 +274,11 @@ dependencies {
// Emoji
implementation(libs.androidx.emoji.picker)

// hilt
implementation(libs.hilt.navigationCompose)
implementation(libs.hilt.work)

// smaller view models
implementation(libs.resaca.core)
implementation(libs.resaca.hilt)
implementation(libs.resaca.metro)
implementation(libs.bundlizer.core)
implementation(libs.dagger)

allFlavors.forEach { flavor ->
if (flavor in nonFreeFlavors) {
Expand Down Expand Up @@ -331,9 +328,6 @@ dependencies {
androidTestImplementation(libs.androidx.espresso.intents)
androidTestImplementation(libs.androidx.espresso.accessibility)
androidTestImplementation(libs.hamcrest)
androidTestImplementation(libs.hilt.test)
kspAndroidTest(libs.hilt.compiler)

androidTestImplementation(libs.androidx.test.extJunit)
androidTestImplementation(libs.androidx.test.uiAutomator)
androidTestImplementation(libs.androidx.test.work)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ import androidx.test.runner.AndroidJUnitRunner

class CustomTestRunner : AndroidJUnitRunner() {
override fun newApplication(cl: ClassLoader?, className: String?, context: Context?): Application {
return super.newApplication(cl, HiltTestApp_Application::class.java.name, context)
return super.newApplication(cl, WireApplication::class.java.name, context)
}
}
127 changes: 0 additions & 127 deletions app/src/androidTest/kotlin/com/wire/android/TestCoreLogicModule.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,15 @@ import com.wire.android.util.DataDogLogger
import com.wire.kalium.logger.KaliumLogLevel
import com.wire.kalium.logger.KaliumLogger
import com.wire.kalium.common.logger.CoreLogger
import dagger.hilt.android.testing.HiltAndroidRule
import dagger.hilt.android.testing.HiltAndroidTest
import kotlinx.coroutines.test.runTest
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test

@HiltAndroidTest
class WireActivityTest {

@get:Rule(order = 0)
var hiltRule = HiltAndroidRule(this)

@get:Rule(order = 1)
@get:Rule
val composeTestRule: AndroidComposeTestRule<ActivityScenarioRule<WireActivity>, WireActivity> =
createAndroidComposeRule<WireActivity>()

Expand All @@ -58,7 +52,6 @@ class WireActivityTest {
context.deleteDatabase("global-db") // GLOBAL_DB_NAME in FileNameUtil
WorkManagerTestInitHelper.initializeTestWorkManager(context)
initializeApplicationLoggingFrameworks()
hiltRule.inject()
}

@Ignore // TODO add other api mocks to not have flaky test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
*/
package com.wire.android.ui.home.messagecomposer.location

import dev.zacsweers.metro.Inject as MetroInject
import javax.inject.Inject

class LocationPickerHelperFlavor @Inject constructor(
class LocationPickerHelperFlavor @Inject @MetroInject constructor(
private val locationPickerHelper: LocationPickerHelper,
) {
suspend fun getLocation(onSuccess: (GeoLocatedAddress) -> Unit, onError: () -> Unit) {
Expand Down
Loading
Loading