Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

> ํ•ด๋‹น pr์— ๋Œ€ํ•œ ๋‚ด์šฉ์„ ์š”์•ฝํ•ด์ฃผ์„ธ์š”

### #๏ธโƒฃ ์—ฐ๊ด€๋œ ์ด์Šˆ
<!-- ์—ฐ๊ด€๋œ ์ด์Šˆ ๋ฒˆํ˜ธ๋กœ ์ˆ˜์ •ํ•ด์ฃผ์„ธ์š” -->
closes #(issue_num)

<br/>

## โœ… ๋ณ€๊ฒฝ ์‚ฌํ•ญ

> ์ด๋ฒˆ PR์—์„œ ๋ณ€๊ฒฝ๋œ ๋‚ด์šฉ์„ ๊ฐ„๋žตํžˆ ์ •๋ฆฌํ•ด์ฃผ์„ธ์š”.
Expand Down
47 changes: 14 additions & 33 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,34 +1,15 @@
# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Log/OS Files
*.log

# Android Studio generated files and folders
captures/
.externalNativeBuild/
.cxx/
*.aab
*.apk
output-metadata.json

# IntelliJ
*.iml
.idea/
misc.xml
deploymentTargetDropDown.xml
render.experimental.xml

# Keystore files
*.jks
*.keystore

# Google Services (e.g. APIs or Firebase)
google-services.json

# Android Profiling
*.hprof
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/AndroidProjectSystem.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/deviceManager.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
65 changes: 65 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.compose)
id("org.jetbrains.kotlin.plugin.serialization")
}

android {
namespace = "com.example.composeapplication"
compileSdk {
version = release(36) {
minorApiLevel = 1
}
}

defaultConfig {
applicationId = "com.example.composeapplication"
minSdk = 24
targetSdk = 36
versionCode = 1
versionName = "1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
buildFeatures {
compose = true
}
}

dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(libs.androidx.activity.compose)
implementation(platform(libs.androidx.compose.bom))
implementation(libs.androidx.compose.ui)
implementation(libs.androidx.compose.ui.graphics)
implementation(libs.androidx.compose.ui.tooling.preview)
implementation(libs.androidx.compose.material3)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
debugImplementation(libs.androidx.compose.ui.tooling)
debugImplementation(libs.androidx.compose.ui.test.manifest)

// โญ๏ธ Jetpack Compose Navigation (์ตœ์‹  2.8.0+ ๋ฒ„์ „ ๊ถŒ์žฅ)
implementation("androidx.navigation:navigation-compose:2.8.0")

// โญ๏ธ Kotlinx Serialization Json (๋ฐ์ดํ„ฐ ์ง๋ ฌํ™”์šฉ)
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.0")
}
21 changes: 21 additions & 0 deletions app/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.example.composeapplication

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.example.composeapplication", appContext.packageName)
}
}
27 changes: 27 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.ComposeApplication">
<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.ComposeApplication">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
16 changes: 16 additions & 0 deletions app/src/main/java/com/example/composeapplication/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.example.composeapplication

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import com.example.composeapplication.ui.screens.MainScreen

class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
// ํ”„๋กœ์ ํŠธ ํ…Œ๋งˆ๊ฐ€ ์žˆ๋‹ค๋ฉด ๊ฐ์‹ธ์ฃผ์…”๋„ ์ข‹์Šต๋‹ˆ๋‹ค. (์˜ˆ: ComposeApplicationTheme)
MainScreen()
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package com.example.composeapplication.data

import androidx.annotation.DrawableRes
import com.example.composeapplication.R
import kotlinx.serialization.Serializable

@Serializable
sealed interface AppDestination {
val title: String
// TODO: ํ”„๋กœ์ ํŠธ์— ๋งž๋Š” ์•„์ด์ฝ˜ R.drawable ID๋ฅผ ๋„ฃ์œผ์„ธ์š”!
val iconId: Int

@Serializable
data object Home : AppDestination {
override val title = "ํ™ˆ"
override val iconId = R.drawable.ic_home
}

@Serializable
data object Shop : AppDestination {
override val title = "๊ตฌ๋งคํ•˜๊ธฐ"
override val iconId = R.drawable.ic_shop
}

@Serializable
data object Wishlist : AppDestination {
override val title = "์œ„์‹œ๋ฆฌ์ŠคํŠธ"
override val iconId = R.drawable.ic_wishlist
}

@Serializable
data object Cart : AppDestination {
override val title = "์žฅ๋ฐ”๊ตฌ๋‹ˆ"
override val iconId = R.drawable.ic_cart
}

@Serializable
data object Profile : AppDestination {
override val title = "ํ”„๋กœํ•„"
override val iconId = R.drawable.ic_profile
}
}
Loading