Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Week7 필수과제 구현 #12

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from
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
35 changes: 17 additions & 18 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ plugins {
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.kotlin.serialization)
id("kotlin-kapt")
id("com.google.dagger.hilt.android")
alias(libs.plugins.hilt)
alias(libs.plugins.ksp)
}


val properties = Properties().apply {
load(project.rootProject.file("local.properties").inputStream())
}
Expand Down Expand Up @@ -39,11 +38,11 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17 //윈도우에서 hilt 사용 시 java 1.8은 에러가 발생하는 이슈가 있다고함 -> 17 사용 시 해결
targetCompatibility = JavaVersion.VERSION_17 //윈도우에서 hilt 사용 시 java 1.8은 에러가 발생하는 이슈가 있다고함 -> 17 사용 시 해결
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17" //윈도우에서 hilt 사용 시 java 1.8은 에러가 발생하는 이슈가 있다고함 -> 17 사용 시 해결
}
buildFeatures {
compose = true
Expand All @@ -61,31 +60,31 @@ dependencies {
implementation(libs.androidx.ui.graphics)
implementation(libs.androidx.ui.tooling.preview)
implementation(libs.androidx.material3)
implementation(libs.androidx.navigation.runtime.ktx)
implementation(libs.androidx.runtime.livedata)
implementation(libs.androidx.espresso.core)
implementation(libs.androidx.compose.navigation)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.ui.test.junit4)
debugImplementation(libs.androidx.ui.tooling)
debugImplementation(libs.androidx.ui.test.manifest)
implementation(libs.androidx.lifecycle.viewmodel.compose)
implementation(libs.androidx.navigation.compose)
implementation(libs.androidx.material)

//viewmodel
implementation (libs.androidx.lifecycle.viewmodel.compose)

// Network
implementation(platform(libs.okhttp.bom))
implementation(libs.okhttp)
implementation(libs.okhttp.logging.interceptor)
implementation(libs.retrofit)
implementation(libs.retrofit.kotlin.serialization.converter)
implementation(libs.kotlinx.serialization.json)
//hilt
implementation(libs.hilt.android.v2511)
kapt(libs.hilt.compiler.v2511)
implementation(libs.androidx.hilt.navigation.compose)
}

kapt {
correctErrorTypes = true
// hilt
implementation(libs.hilt.android)
implementation(libs.hilt.navigation.compose)
ksp(libs.hilt.compiler)
androidTestImplementation(libs.hilt.android.testing)
kspAndroidTest(libs.hilt.compiler)
}
10 changes: 5 additions & 5 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<uses-permission android:name="android.permission.INTERNET" />

<application
android:name=".MyApplication"
android:name=".WavveApplication"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
Expand All @@ -15,16 +15,16 @@
android:theme="@style/Theme.ANDANDROID"
android:usesCleartextTraffic="true"
tools:targetApi="31">

<activity android:name=".MainActivity"
<activity
android:name=".WavveApplication"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.ANDANDROID">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

</application>

</manifest>
67 changes: 0 additions & 67 deletions app/src/main/java/org/sopt/and/MainActivity.kt

This file was deleted.

91 changes: 0 additions & 91 deletions app/src/main/java/org/sopt/and/MainScreen.kt

This file was deleted.

22 changes: 22 additions & 0 deletions app/src/main/java/org/sopt/and/Route.kt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI 단에서 사용되는 sealed class니 presentation 단에 위치시켜주어도 좋을 것 같아요!

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package org.sopt.and

import kotlinx.serialization.Serializable


@Serializable
sealed class Route(val route: String) {
@Serializable
data object Home : Route("home")

@Serializable
data object SignIn : Route("signIn")

@Serializable
data object SignUp : Route("signUp")

@Serializable
data object Search : Route("search")

@Serializable
data object MyInfo : Route("myInfo")
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import android.app.Application
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp
class MyApplication : Application()
class WavveApplication : Application()
25 changes: 0 additions & 25 deletions app/src/main/java/org/sopt/and/api/Auth.kt

This file was deleted.

13 changes: 0 additions & 13 deletions app/src/main/java/org/sopt/and/api/Hobby.kt

This file was deleted.

18 changes: 18 additions & 0 deletions app/src/main/java/org/sopt/and/core/ContentType.kt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

core에 위치시키신 이유가 있나요?

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package org.sopt.and.core

import androidx.annotation.StringRes
import org.sopt.and.R

enum class ContentType(
@StringRes val titleResId: Int
) {
NEW_CLASSIC(R.string.type_new_classic),
DRAMA(R.string.type_drama),
ENTERTAINMENT(R.string.type_entertainment),
MOVIE(R.string.type_movie),
ANIMATION(R.string.type_animation),
ABROAD_SERIES(R.string.type_abroad_series),
INFORMATION_CULTURE(R.string.type_information_culture),
KIDS(R.string.type_kids),
MOVIE_PLUS(R.string.type_movie_plus),
}
3 changes: 3 additions & 0 deletions app/src/main/java/org/sopt/and/core/Route.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package org.sopt.and.core

interface Route
Loading