-
Notifications
You must be signed in to change notification settings - Fork 0
[Feat] Glance로 구현한 widget #251
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
Changes from 88 commits
ae0525e
315645e
8fae0eb
59edc7d
3e5c2fc
b1c8de7
6d4839e
4bdedee
5966c2c
66fae76
08cb069
cffddec
4b9713c
374a40a
b31feac
0955b79
69f43cf
5c1fc45
1f4c25f
37cd1a1
9d92f9d
99251cb
72decae
672d22c
aa8a0e5
6588456
f6c5b50
0cfadd2
3d4a8e6
a00bcb5
485a50c
a5a0508
ab9eaca
52fe598
a209a81
c240346
edf514b
f3a979e
9b643ec
f2a1e06
8f6952e
980d512
dff569a
f0afeae
2e93c4a
47abf7c
79e0fc4
8a1b532
bae53ed
62ebf57
aa23fc7
1bdb78d
e408df4
6f659a8
861a488
d55e4ab
f97d27b
1717328
e437601
8d7dbd2
c349598
5d89d8b
2998fd3
6e6e6f0
ef759c1
5538055
68ab3d5
eef38a3
fe61eb0
2ae1677
084f497
535f791
6c9a1b3
22e8b0b
6c8c01f
dda9ea5
41e9e2f
fc1f897
2e3cc18
52a2a1c
c2d7141
c656cea
8050c8d
4d767a0
a5d49fd
e4e8ea4
85066d6
e445acc
6054c4a
71080fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,13 +8,14 @@ plugins { | |||||
| alias(libs.plugins.hilt.android) | ||||||
| id("kotlin-parcelize") | ||||||
| id("kotlin-android") | ||||||
| id("kotlin-kapt") | ||||||
| id("com.google.android.gms.oss-licenses-plugin") | ||||||
| id("kotlin-kapt") | ||||||
|
|
||||||
| } | ||||||
|
|
||||||
| android { | ||||||
| namespace = "com.eatssu.android" | ||||||
| compileSdk = 34 | ||||||
| compileSdk = 35 | ||||||
|
|
||||||
| // S8: API 28 | ||||||
| // S21: API 33 | ||||||
|
|
@@ -47,12 +48,11 @@ android { | |||||
| buildConfigField("String", "KAKAO_NATIVE_APP_KEY", "\"$kakaoKey\"") | ||||||
| manifestPlaceholders["KAKAO_NATIVE_APP_KEY"] = kakaoKey | ||||||
|
|
||||||
| isShrinkResources = false | ||||||
| isMinifyEnabled = false | ||||||
| proguardFiles( | ||||||
| getDefaultProguardFile("proguard-android-optimize.txt"), | ||||||
| "proguard-rules.pro" | ||||||
| ) | ||||||
| proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | ||||||
|
|
||||||
| var shrinkResources = false | ||||||
| var minifyEnabled = false | ||||||
| } | ||||||
|
|
||||||
| debug { | ||||||
|
|
@@ -68,8 +68,6 @@ android { | |||||
| val kakaoKey: String = p.getProperty("KAKAO_NATIVE_APP_KEY") | ||||||
| buildConfigField("String", "KAKAO_NATIVE_APP_KEY", "\"$kakaoKey\"") | ||||||
| manifestPlaceholders["KAKAO_NATIVE_APP_KEY"] = kakaoKey | ||||||
|
|
||||||
| isMinifyEnabled = false | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
|
|
@@ -78,14 +76,18 @@ android { | |||||
| targetCompatibility = JavaVersion.VERSION_17 | ||||||
| } | ||||||
|
|
||||||
| kotlinOptions { | ||||||
| jvmTarget = "17" | ||||||
| } | ||||||
|
|
||||||
| composeOptions { | ||||||
| kotlinCompilerExtensionVersion = "1.5.15" | ||||||
| } | ||||||
|
|
||||||
| kotlin { | ||||||
| jvmToolchain(17) | ||||||
| } | ||||||
|
|
||||||
| kotlinOptions { | ||||||
| jvmTarget = JavaVersion.VERSION_17.toString() | ||||||
| } | ||||||
|
|
||||||
| splits { | ||||||
| abi { | ||||||
| isEnable = true | ||||||
|
|
@@ -100,26 +102,34 @@ android { | |||||
| } | ||||||
|
|
||||||
| dependencies { | ||||||
| implementation(project(":core:design-system")) | ||||||
|
|
||||||
| implementation(libs.androidx.core.ktx) | ||||||
| implementation(libs.androidx.appcompat) | ||||||
| implementation(libs.material) | ||||||
| implementation(libs.constraintlayout) | ||||||
| implementation(libs.androidx.constraintlayout) | ||||||
| implementation(libs.threetenabp) | ||||||
| implementation(libs.material.calendarview) | ||||||
| implementation(libs.recyclerview) | ||||||
| implementation(libs.androidx.recyclerview) | ||||||
| implementation(libs.transport.runtime) | ||||||
| implementation(libs.activity) | ||||||
| implementation(libs.fragment) | ||||||
| implementation(libs.androidx.activity) | ||||||
| implementation(libs.androidx.activity.ktx) | ||||||
| implementation(libs.androidx.fragment.ktx) | ||||||
|
|
||||||
| //glance | ||||||
| implementation(libs.androidx.glance) | ||||||
| implementation(libs.androidx.glance.preview) | ||||||
| implementation(libs.androidx.glance.appwidget) | ||||||
| implementation(libs.androidx.glance.material3) | ||||||
| debugImplementation(libs.androidx.glance.appwidget.preview) // 프리뷰 지원 | ||||||
|
|
||||||
| // Testing libraries | ||||||
| testImplementation(libs.junit) | ||||||
| androidTestImplementation(libs.androidx.test.ext.junit) | ||||||
| androidTestImplementation(libs.espresso.core) | ||||||
| androidTestImplementation(libs.androidx.espresso.core) | ||||||
|
|
||||||
| //retrofit2: 서버통신 | ||||||
| implementation(libs.retrofit) | ||||||
| implementation(libs.converter.gson) | ||||||
| implementation(libs.retrofit.converter.gson) | ||||||
|
|
||||||
| // Gson for JSON parsing | ||||||
| implementation(libs.gson) | ||||||
|
|
@@ -136,20 +146,23 @@ dependencies { | |||||
| implementation(libs.compressor) | ||||||
|
|
||||||
| // Coroutines for concurrency | ||||||
| implementation(libs.coroutines) | ||||||
| implementation(libs.coroutines.core) | ||||||
| implementation(libs.lifecycle.runtime) | ||||||
| implementation(libs.kotlinx.coroutines.android) | ||||||
| implementation(libs.kotlinx.coroutines.core) | ||||||
| implementation(libs.androidx.lifecycle.runtime.ktx) | ||||||
|
|
||||||
| // Kakao login SDK | ||||||
| implementation(libs.kakao.login) | ||||||
|
|
||||||
| // Hilt for Dependency Injection | ||||||
| implementation(libs.hilt) | ||||||
| kapt(libs.hilt.compiler) | ||||||
| implementation(libs.hilt.android) | ||||||
| kapt(libs.hilt.android.compiler) | ||||||
| kapt(libs.androidx.hilt.compiler) | ||||||
| implementation(libs.androidx.hilt.common) | ||||||
| implementation(libs.androidx.hilt.work) | ||||||
|
|
||||||
| // ViewModel and LiveData | ||||||
| implementation(libs.lifecycle.viewmodel) | ||||||
| implementation(libs.lifecycle.livedata) | ||||||
| implementation(libs.androidx.lifecycle.viewmodel.ktx) | ||||||
| implementation(libs.androidx.lifecycle.livedata.ktx) | ||||||
|
|
||||||
| implementation(libs.play.services.base) | ||||||
|
|
||||||
|
|
@@ -167,26 +180,33 @@ dependencies { | |||||
|
|
||||||
| // Compose | ||||||
| implementation(libs.androidx.activity.compose) | ||||||
| implementation(libs.androidx.animation) | ||||||
| implementation(libs.androidx.ui.tooling) | ||||||
| implementation(libs.androidx.lifecycle.viewmodel.compose) | ||||||
| implementation(libs.androidx.lifecycle.runtime.ktx.v252) | ||||||
| implementation(libs.compose.bom) | ||||||
| implementation(libs.androidx.ui) | ||||||
| implementation(libs.androidx.ui.graphics) | ||||||
| implementation(libs.androidx.ui.tooling.preview) | ||||||
| implementation(libs.androidx.material3) | ||||||
| androidTestImplementation(libs.androidx.ui.test.junit4) | ||||||
| implementation(libs.androidx.compose.animation) | ||||||
| implementation(libs.androidx.compose.ui.tooling) | ||||||
| implementation(libs.androidx.compose.lifecycle.viewmodel) | ||||||
| implementation(libs.androidx.compose.lifecycle.runtime) | ||||||
| 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) | ||||||
| // androidTestImplementation(libs.androidx.compose.ui.test.junit4) | ||||||
|
||||||
| // androidTestImplementation(libs.androidx.compose.ui.test.junit4) | |
| androidTestImplementation(libs.androidx.compose.ui.test.junit4) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| package com.eatssu.android.data.dto.response | ||
|
|
||
| import com.google.gson.annotations.SerializedName | ||
|
|
||
| data class TokenValidationResponse( | ||
HI-JIN2 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| @SerializedName("isValid") | ||
| val isValid: Boolean | ||
| ) | ||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,7 @@ | ||||||||||
| package com.eatssu.android.data.enums | ||||||||||
|
|
||||||||||
|
|
||||||||||
|
|
||||||||||
| enum class Restaurant(val displayName: String, val menuType: MenuType) { | ||||||||||
| HAKSIK("학생 식당", MenuType.VARIABLE), | ||||||||||
| DODAM("도담 식당", MenuType.VARIABLE), | ||||||||||
|
|
@@ -8,4 +10,18 @@ enum class Restaurant(val displayName: String, val menuType: MenuType) { | |||||||||
| FOOD_COURT("푸드 코트", MenuType.FIXED), | ||||||||||
| SNACK_CORNER("스낵 코너", MenuType.FIXED), | ||||||||||
| THE_KITCHEN("더 키친", MenuType.FIXED); | ||||||||||
|
|
||||||||||
| companion object { | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [ Etc ] data모듈에서 UI <> 서버 <> 비즈니스 로직 간 매핑 함수들이 생겨난거군요 좋네욤 |
||||||||||
|
|
||||||||||
| fun getVariableRestaurantList(): List<Restaurant> { | ||||||||||
| return entries.filter { it.menuType == MenuType.VARIABLE } | ||||||||||
| } | ||||||||||
|
|
||||||||||
| fun fromRestaurantEnumName(enumName: String): String { | ||||||||||
|
Comment on lines
+19
to
+20
|
||||||||||
| fun fromRestaurantEnumName(enumName: String): String { | |
| fun fromRestaurantEnumName(enumName: String): String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These variables are declared but never used. They should either be assigned to the build configuration properties or removed.