Setup the template project
This commit is contained in:
@@ -0,0 +1 @@
|
||||
/build
|
||||
@@ -0,0 +1,48 @@
|
||||
plugins {
|
||||
id("com.android.library")
|
||||
id("kotlin-android")
|
||||
kotlin("kapt")
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = Apps.compileSdk
|
||||
buildToolsVersion = Apps.buildToolsVersion
|
||||
|
||||
defaultConfig {
|
||||
minSdk = Apps.minSdk
|
||||
targetSdk = Apps.targetSdk
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
consumerProguardFiles("consumer-rules.pro")
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
api(project(":util"))
|
||||
implementation(Libs.core_ktx)
|
||||
|
||||
api(platform(Libs.kotlin_coroutine_bom))
|
||||
api(Libs.kotlin_coroutine_core)
|
||||
|
||||
testImplementation(Libs.junit_jupiter_api)
|
||||
testImplementation(Libs.junit_jupiter_engine)
|
||||
|
||||
testImplementation(Libs.mockk_core)
|
||||
|
||||
api(Libs.hilt_android)
|
||||
kapt(Libs.hilt_android_compiler)
|
||||
|
||||
api(Libs.timber)
|
||||
}
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.kts.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
@@ -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