Skip to content

Commit

Permalink
chore: presentation-compose 모듈 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
jinukeu committed Oct 4, 2023
1 parent 98647bf commit 371628a
Show file tree
Hide file tree
Showing 9 changed files with 179 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ android {
dependencies {
implementation(project(":domain"))
implementation(project(":data"))
implementation(project(":design-system"))
implementation(project(":presentation-compose"))

implementation(AndroidX.CORE_KTX)
implementation(AndroidX.APP_COMPAT)
Expand Down
1 change: 1 addition & 0 deletions presentation-compose/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
101 changes: 101 additions & 0 deletions presentation-compose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
plugins {
id("com.android.library")
id("dagger.hilt.android.plugin")
kotlin("android")
kotlin("kapt")
id("androidx.navigation.safeargs.kotlin")
id("com.google.gms.google-services")
id("kotlin-parcelize")
}

android {
namespace = "com.plub.presentation_compose"
compileSdk = 33

defaultConfig {
minSdk = 26

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
}
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
viewBinding = true
}
}

dependencies {
implementation(project(":domain"))
implementation(project(":design-system"))

implementation(Kotlin.KOTLIN_STDLIB)
implementation(Kotlin.COROUTINES_ANDROID)
implementation(Kotlin.COROUTINES_CORE)

implementation(AndroidX.APP_COMPAT)
implementation(AndroidX.CORE_KTX)
implementation(AndroidX.LIFECYCLE_RUNTIME_KTX)
implementation(AndroidX.CONSTRAINT_LAYOUT)
implementation(AndroidX.LIFECYCLE_VIEW_MODEL_KTX)
implementation(AndroidX.ACTIVITY_KTX)
implementation(AndroidX.FRAGMENT_KTX)
implementation(AndroidX.NAVIGATION_FRAGMENT_KTX)
implementation(AndroidX.NAVIGATION_UI_KTX)
implementation(AndroidX.LEGACY_SUPPORT)
implementation(AndroidX.RECYCLER_VIEW)
implementation(AndroidX.PAGING3_RUNTIME)
implementation(AndroidX.PAGING3_COMMON_KTX)

implementation(Libraries.CALENDAR_VIEW)
implementation(Libraries.COIL)
implementation(Libraries.TIMBER)
implementation(Libraries.LOTTIE)
implementation(Libraries.INDICATOR)
implementation(Libraries.KAKAO)
implementation(Libraries.TED_PERMISSION)
implementation(Libraries.THREE_TEN_ABP)
implementation(Libraries.IMAGE_CROPPER)
implementation(Libraries.POWER_MENU)

implementation(Google.MATERIAL)
implementation(Google.HILT_ANDROID)
implementation(Google.GOOGLE_PLAY_SERVICE)
implementation(Google.FLEX_BOX)
implementation(Google.FIREBASE_BOM)
implementation(Google.FCM)
implementation(Google.FCM_KTX)

implementation(Glide.GLIDE)
implementation("com.google.android.material:material:1.9.0")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.navigation:navigation-fragment-ktx:2.7.3")
implementation("androidx.navigation:navigation-ui-ktx:2.7.3")
annotationProcessor(Glide.GLIDE_COMPILER)

implementation(Compose.COMPOSE_ACTIVITY)
implementation(Compose.COMPOSE_MATERIAL)
implementation(Compose.COMPOSE_PREVIEW)
implementation(Compose.COMPOSE_UI)
implementation(Compose.COMPOSE_NAV)
implementation(Compose.COMPOSE_ANI_NAV)
implementation(Compose.COMPOSE_UI_TOOL)

kapt(Google.HILT_ANDROID_COMPILER)
}
Empty file.
21 changes: 21 additions & 0 deletions presentation-compose/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.plub.presentation_compose

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.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.plub.presentation_compose.test", appContext.packageName)
}
}
12 changes: 12 additions & 0 deletions presentation-compose/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" >

<application>
<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/title_activity_main"
android:theme="@style/Theme.PlubAndroid" />
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.plub.presentation_compose

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)
}
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ include (":app")
include (":domain")
include (":data")
include(":design-system")
include(":presentation-compose")

0 comments on commit 371628a

Please sign in to comment.