Setup the template project
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest package="com.ericampire.android.androidstudycase.domain">
|
||||
|
||||
</manifest>
|
||||
+6
@@ -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 = "",
|
||||
|
||||
)
|
||||
+2
@@ -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
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package com.ericampire.android.androidstudycase.domain.repository
|
||||
|
||||
|
||||
interface UserRepository {
|
||||
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
package com.ericampire.android.androidstudycase.domain.usecase
|
||||
|
||||
+18
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user