Реструктуризация проекта

This commit is contained in:
Roman Pytkov
2024-10-31 17:19:02 +03:00
parent c74d398c53
commit b95666789c
25 changed files with 49 additions and 146 deletions

View File

@@ -6,8 +6,8 @@ plugins {
}
android {
namespace = "com.github.nullptroma.data"
compileSdk = 35
namespace = "com.github.nullptroma.wallenc.data"
compileSdk = 34
defaultConfig {
minSdk = 24
@@ -35,13 +35,28 @@ android {
}
dependencies {
// Hilt
implementation(libs.dagger.hilt)
ksp(libs.dagger.hilt.compiler)
// Room
implementation(libs.room.ktx)
implementation(libs.room.runtime)
annotationProcessor(libs.room.compiler)
ksp(libs.room.compiler)
// Retrofit
implementation(libs.retrofit)
implementation(libs.retrofit.converter.gson)
implementation(libs.retrofit.converter.scalars)
implementation(libs.google.gson)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.material)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
implementation(project(":domain"))
}

View File

@@ -1,4 +1,4 @@
package com.github.nullptroma.data
package com.github.nullptroma.wallenc.data
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
@@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.github.nullptroma.data.test", appContext.packageName)
assertEquals("com.github.nullptroma.wallenc.data.test", appContext.packageName)
}
}

View File

@@ -1,4 +1,4 @@
package com.github.nullptroma.data
package com.github.nullptroma.wallenc.data
import org.junit.Test