Skip to content

Commit

Permalink
Merge pull request #21 from eshc123/feature/#1-core-design
Browse files Browse the repository at this point in the history
[FEATURE] #1 core-design module 추가
  • Loading branch information
eshc123 committed Sep 17, 2022
2 parents c5d112c + ae9d144 commit f4d762e
Show file tree
Hide file tree
Showing 11 changed files with 107 additions and 32 deletions.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ android {

dependencies {
implementation(project(":core-ui"))
implementation(project(":core-design"))
implementation(project(":data"))
implementation(project(":domain"))
implementation(project(":feature-home"))
Expand Down
1 change: 1 addition & 0 deletions core-design/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
37 changes: 37 additions & 0 deletions core-design/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}

android {
compileSdk 32

defaultConfig {
minSdk 21
targetSdk 32

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {

testImplementation UnitTest.JUNIT
androidTestImplementation AndroidTest.ANDROID_JUNIT
androidTestImplementation AndroidTest.ESPRESSO_CORE
}
Empty file added core-design/consumer-rules.pro
Empty file.
21 changes: 21 additions & 0 deletions core-design/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -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.
#
# 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.eshc.core.design

import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.eshc.core.design.test", appContext.packageName)
}
}
5 changes: 5 additions & 0 deletions core-design/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.eshc.core.design">

</manifest>
17 changes: 17 additions & 0 deletions core-design/src/test/java/com/eshc/core/design/ExampleUnitTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.eshc.core.design

import org.junit.Test

import org.junit.Assert.*

/**
* 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)
}
}
16 changes: 0 additions & 16 deletions feature-login/src/main/res/values-night/themes.xml

This file was deleted.

16 changes: 0 additions & 16 deletions feature-login/src/main/res/values/themes.xml

This file was deleted.

1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ include ':feature-repository'
include ':feature-profile'
include ':domain'
include ':feature-home'
include ':core-design'

0 comments on commit f4d762e

Please sign in to comment.