Setup the template project

This commit is contained in:
2021-09-03 10:47:27 +02:00
parent 150bc30d7e
commit 8f70464fa3
38 changed files with 371 additions and 34 deletions
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.ericampire.android.androidstudycase.domain">
</manifest>
@@ -0,0 +1,6 @@
package com.ericampire.android.androidstudycase.domain.di
object UseCaseModule {
}
@@ -0,0 +1,7 @@
package com.ericampire.android.androidstudycase.domain.entity
data class User(
val uid: String = "",
)
@@ -0,0 +1,2 @@
package com.ericampire.android.androidstudycase.domain.extension
@@ -0,0 +1,5 @@
package com.ericampire.android.androidstudycase.domain.mapper
interface Mapper<I, O> {
fun map(input: I): O
}
@@ -0,0 +1,6 @@
package com.ericampire.android.androidstudycase.domain.repository
interface UserRepository {
}
@@ -0,0 +1,2 @@
package com.ericampire.android.androidstudycase.domain.usecase
@@ -0,0 +1,18 @@
package com.ericampire.android.androidstudycase.domain
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}