Modern Apps git

← Modern-Apps.git

everysync: rewire stale auth package references to data/platform

Commit
ce307a74e9144f75311d5c8bb49fac723b55c031
Author
Vayun Mathur <[email protected]>
When
2026-12-01 22:16 UTC (4 days ago)
Parents
69910ed
The auth package root was removed repo-wide and its classes moved:
AccountStore, AccountConfig and TokenStore now live in data/, and
Authenticator/AuthenticatorService in platform/. SyncEngine still
imported auth.AccountStore, so :everysync:compileReleaseKotlin
failed with an unresolved reference, and its KDoc pointed at the
old auth.AccountConfig.

Fix every stale everysync.auth reference in everysync/src (main and
test) to the verified new fully-qualified names, with no behaviour
changes: SyncEngine import and KDoc, DataType KDoc, and the test
imports / fully-qualified AuthenticatorService use in PlatformTest
and BinderNavigationWave3Test. Import order in PlatformTest was
adjusted to keep data/ before platform/.

everysync/AGENTS.md already lists data/AccountStore.kt,
data/AccountConfig.kt, data/TokenStore.kt and
platform/Authenticator.kt correctly, so no AGENTS.md change was
needed. A repo-wide grep for everysync.auth outside everysync found
no other stale sites.

Verified:
./gradlew :everysync:compileReleaseKotlin :everysync:lint
  :everysync:lintVitalRelease :everysync:testDevUnitTest
BUILD SUCCESSFUL (plus a re-run of :everysync:lintVitalRelease,
also BUILD SUCCESSFUL).

Diff

everysync/src/main/java/com/vayunmathur/everysync/provider/DataType.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/provider/DataType.kt b/everysync/src/main/java/com/vayunmathur/everysync/provider/DataType.ktindex 7d37b2c912..2746677d4b 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/provider/DataType.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/provider/DataType.kt@@ -19,7 +19,7 @@ enum class DataType { enum class AuthType {     /**      * No remote auth: all authority is client-side (owner-signed roster/epochs/-     * transfers). The vault key lives in [com.vayunmathur.everysync.auth.TokenStore]+     * transfers). The vault key lives in [com.vayunmathur.everysync.data.TokenStore]      * per (account, type).      */     RELAY,
everysync/src/main/java/com/vayunmathur/everysync/sync/SyncEngine.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/sync/SyncEngine.kt b/everysync/src/main/java/com/vayunmathur/everysync/sync/SyncEngine.ktindex ac2916c7a1..dc1491dd10 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/sync/SyncEngine.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/sync/SyncEngine.kt@@ -2,7 +2,7 @@ package com.vayunmathur.everysync.sync  import android.content.Context import com.vayunmathur.library.log.Log-import com.vayunmathur.everysync.auth.AccountStore+import com.vayunmathur.everysync.data.AccountStore import com.vayunmathur.everysync.provider.ProviderRegistry import com.vayunmathur.everysync.provider.SyncDirection import java.util.concurrent.ConcurrentHashMap@@ -11,7 +11,7 @@ import kotlinx.coroutines.sync.Mutex /**  * Runs a sync pass for an account: resolve its provider, pull remote changes into  * the on-device sinks and (two-way) push local DIRTY/DELETED rows back, then- * record the outcome on the [com.vayunmathur.everysync.auth.AccountConfig].+ * record the outcome on the [com.vayunmathur.everysync.data.AccountConfig].  */ object SyncEngine {     private const val TAG = "SyncEngine"
everysync/src/test/java/com/vayunmathur/everysync/BinderNavigationWave3Test.kt
diff --git a/everysync/src/test/java/com/vayunmathur/everysync/BinderNavigationWave3Test.kt b/everysync/src/test/java/com/vayunmathur/everysync/BinderNavigationWave3Test.ktindex a4b6c3c8fc..1bfdb3990f 100644--- a/everysync/src/test/java/com/vayunmathur/everysync/BinderNavigationWave3Test.kt+++ b/everysync/src/test/java/com/vayunmathur/everysync/BinderNavigationWave3Test.kt@@ -14,9 +14,9 @@ import androidx.compose.ui.test.performTextInput import androidx.test.core.app.ApplicationProvider import androidx.work.Data import androidx.work.ListenableWorker-import com.vayunmathur.everysync.auth.AccountConfig-import com.vayunmathur.everysync.auth.AccountStore-import com.vayunmathur.everysync.auth.TokenStore+import com.vayunmathur.everysync.data.AccountConfig+import com.vayunmathur.everysync.data.AccountStore+import com.vayunmathur.everysync.data.TokenStore import com.vayunmathur.everysync.platform.EverySyncViewModel import com.vayunmathur.everysync.provider.DataType import com.vayunmathur.everysync.sync.SnapshotKeyStore
everysync/src/test/java/com/vayunmathur/everysync/PlatformTest.kt
diff --git a/everysync/src/test/java/com/vayunmathur/everysync/PlatformTest.kt b/everysync/src/test/java/com/vayunmathur/everysync/PlatformTest.ktindex ce34dfb472..ef580bef8b 100644--- a/everysync/src/test/java/com/vayunmathur/everysync/PlatformTest.kt+++ b/everysync/src/test/java/com/vayunmathur/everysync/PlatformTest.kt@@ -7,10 +7,10 @@ import android.content.Intent import androidx.test.core.app.ApplicationProvider import androidx.work.Data import androidx.work.ListenableWorker-import com.vayunmathur.everysync.auth.AccountConfig-import com.vayunmathur.everysync.auth.AccountStore-import com.vayunmathur.everysync.auth.Authenticator+import com.vayunmathur.everysync.data.AccountConfig+import com.vayunmathur.everysync.data.AccountStore import com.vayunmathur.everysync.data.VaultMeta+import com.vayunmathur.everysync.platform.Authenticator import com.vayunmathur.everysync.platform.BootReceiver import com.vayunmathur.everysync.platform.EverySyncViewModel import com.vayunmathur.everysync.provider.AuthType@@ -132,7 +132,7 @@ class PlatformTest {         assertNull(auth.addAccount(null, "t", null, null, null)); assertNull(auth.editProperties(null, "t"))         assertNull(auth.confirmCredentials(null, acct, null)); assertNull(auth.getAuthToken(null, acct, "t", null))         assertNull(auth.getAuthTokenLabel("t")); assertNull(auth.updateCredentials(null, acct, null, null)); assertNull(auth.hasFeatures(null, acct, null))-        val svc = com.vayunmathur.everysync.auth.AuthenticatorService()+        val svc = com.vayunmathur.everysync.platform.AuthenticatorService()         // SyncWorker construction + KEY         assertEquals("account", com.vayunmathur.everysync.sync.SyncWorker.KEY_ACCOUNT)         val data = Data.Builder().putString("account", "ghost").build()