refactor(core): reorganize to feature packages

This commit is contained in:
Harsh Shandilya 2025-06-06 12:07:45 +05:30
parent c0fde85262
commit 3a7c1b9068
13 changed files with 18 additions and 23 deletions

View file

@ -4,15 +4,13 @@
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package dev.msfjarvis.claw.core.injection
package dev.msfjarvis.claw.core.coroutines
import com.deliveryhero.whetstone.app.ApplicationScope
import com.squareup.anvil.annotations.ContributesTo
import dagger.Binds
import dagger.Module
import dagger.Provides
import dev.msfjarvis.claw.core.coroutines.DefaultDispatcherProvider
import dev.msfjarvis.claw.core.coroutines.DispatcherProvider
import javax.inject.Qualifier
import kotlinx.coroutines.CoroutineDispatcher

View file

@ -4,7 +4,7 @@
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package dev.msfjarvis.claw.core.injection
package dev.msfjarvis.claw.core.network
import com.deliveryhero.whetstone.app.ApplicationScope
import com.squareup.anvil.annotations.ContributesTo
@ -36,7 +36,7 @@ object JsonModule {
fun provideJsonSerializer(): Json {
return Json {
ignoreUnknownKeys = true
namingStrategy = JsonNamingStrategy.SnakeCase
namingStrategy = JsonNamingStrategy.Builtins.SnakeCase
}
}
}

View file

@ -4,7 +4,7 @@
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package dev.msfjarvis.claw.core.injection
package dev.msfjarvis.claw.core.network
import android.content.Context
import android.net.TrafficStats
@ -15,9 +15,6 @@ import dagger.Binds
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoSet
import dev.msfjarvis.claw.core.network.DelegatingSocketFactory
import dev.msfjarvis.claw.core.network.NapierLogger
import dev.msfjarvis.claw.core.network.UserAgentInterceptor
import java.net.Socket
import javax.net.SocketFactory
import okhttp3.Cache