Skip to content

Commit 6019a97

Browse files
authored
release: 0.0.1(1)
* feat: ViewModel 기초 로직 적용 (#4) * chore: 액티비티 명 변경(NaverActivity -> MainActivity) * feat: MainViewModel 파일 생성 * feat: ViewModel 의존성 추가, 기본적인 Event 전달 로직 추가 * feat: 위치 권한 관련 util 함수 정의 * feat: ViewModel로 Activity에 정의된 지도 관련 로직 이동 * feat: ViewModel에서 View로 이벤트 전달하는 예시 로직 구현 * fix: 미사용 lateinit 키워드 삭제 * feat: 상단 지역 선택 레이아웃 구현 * feat: 지역 선택 버튼 클릭 리스너 추가 * feat: 지역별 식당 마커 표시 로직 구현(최적화 필요) * fix: 테스트를 위해 위도/경도를 바꿨던 코드 롤백 * fix: 마커 표시 로직 최적화 * fix: 식당 정보 조회 함수 수정 - 함수명 변경, null 체크 로직 추가 * fix: 초기 카메라 위치 변경(현위치 -> 강남) * fix: 카메라 확대 비율 관련 수정 * feat: 식당 정보 조회 로직 구현 (#6) * chore: ViewBinding 적용 * chore: ViewPager 배치 * chore: 식당 정보 카드 표시 로직 기초 구현(ViewPager) * feat: ViewPager 페이지 전환시 마커로 카메라 이동하는 로직 구현 * fix: 역삼 지역 이동시 ViewPager 초기화 안되는 오류 수정 * feat: Application 추가 & 마커로 카메라 이동시 지도의 하단 패딩 추가 기능 구현 * feat: 마커 클릭시 해당하는 index의 ViewPager item을 표시하는 로직 구현 * feat: 마커 클릭시 해당하는 index의 ViewPager item을 표시하는 로직 오류 수정 * fix: 마커 클릭시 발생하는 이벤트 순서에 맞게 handleEvent()내의 순서 변경 * feat: locationCategoryOrder 필드로 식당 정보 정렬하는 로직 추가 * feat: 디자인 적용 (#10) * feat: 타이틀 바 제거 * feat: 상단 지역 선택 버튼 디자인 적용 * fix: showLocationInfo() 내의 식당 정보는 정렬되어있지 않는 오류 수정 * feat: 마커 이미지, 클릭 시 이미지 변경 * feat: 식당 정보 디자인 적용 * feat: 상태 바 색상 변경 * fix: 지도 내의 현위치,줌 버튼 제거 * fix: primary 색상 변경 * feat: '내 주변' 버튼 클릭 관련 기본 로직 구현(위치 조회) * feat: GPS 설정 완료시 자동으로 내 위치로 이동하는 로직 구현 * feat: 식당 이미지 로딩 로직 구현(Glide) * fix: 식당 정보 텍스트 스타일(크기, 색상) 수정 * feat: 전화번호 데이터 추가 * feat: 로고 적용 * fix: 패키지 명 변경(meonya -> monya) * fix: 패키지 명 변경(meonya -> monya)(2) * chore: release 버전용 설정 수정 * release: 0.0.1 버전 배포
1 parent 2e46538 commit 6019a97

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1248
-267
lines changed

.idea/.name

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ def localProperties = new Properties()
99
localProperties.load(new FileInputStream(rootProject.file("local.properties")))
1010

1111
android {
12-
namespace 'com.woozoo.menumeonya'
12+
namespace 'com.woozoo.menumonya'
1313
compileSdk 33
1414

1515
defaultConfig {
16-
applicationId "com.woozoo.menumeonya"
16+
applicationId "com.woozoo.menumonya"
1717
minSdk 24
1818
targetSdk 33
1919
versionCode 1
20-
versionName "1.0"
20+
versionName "0.0.1"
2121

2222
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2323
}
@@ -30,6 +30,7 @@ android {
3030
release {
3131
minifyEnabled false
3232
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
33+
resValue "string", "NAVER_CLIENT_ID", localProperties['NAVER_CLIENT_ID']
3334
}
3435
}
3536
compileOptions {
@@ -39,6 +40,9 @@ android {
3940
kotlinOptions {
4041
jvmTarget = '1.8'
4142
}
43+
buildFeatures {
44+
viewBinding = true
45+
}
4246
}
4347

4448
dependencies {
@@ -66,4 +70,15 @@ dependencies {
6670
implementation 'com.google.firebase:firebase-messaging-ktx'
6771
implementation 'com.google.firebase:firebase-crashlytics-ktx'
6872
implementation 'com.google.firebase:firebase-config-ktx'
73+
74+
// ViewModel
75+
def lifecycle_version = "2.6.1"
76+
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
77+
implementation 'androidx.activity:activity-ktx:1.7.0'
78+
79+
// ViewPager
80+
implementation 'androidx.viewpager2:viewpager2:1.0.0'
81+
82+
// Glide
83+
implementation 'com.github.bumptech.glide:glide:4.15.1'
6984
}

app/src/androidTest/java/com/woozoo/menumeonya/ExampleInstrumentedTest.kt renamed to app/src/androidTest/java/com/woozoo/menumonya/ExampleInstrumentedTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.woozoo.menumeonya
1+
package com.woozoo.menumonya
22

33
import androidx.test.platform.app.InstrumentationRegistry
44
import androidx.test.ext.junit.runners.AndroidJUnit4
@@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
1919
fun useAppContext() {
2020
// Context of the app under test.
2121
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22-
assertEquals("com.woozoo.menumeonya", appContext.packageName)
22+
assertEquals("com.woozoo.menumonya", appContext.packageName)
2323
}
2424
}

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,19 @@
77
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
88

99
<application
10+
android:name="com.woozoo.menumonya.Application"
1011
android:allowBackup="true"
1112
android:dataExtractionRules="@xml/data_extraction_rules"
1213
android:fullBackupContent="@xml/backup_rules"
13-
android:icon="@mipmap/ic_launcher"
14+
android:icon="@mipmap/logo"
1415
android:label="@string/app_name"
1516
android:networkSecurityConfig="@xml/network_security_config"
1617
android:supportsRtl="true"
17-
android:theme="@style/Theme.MenuMeonya"
18+
android:theme="@style/Theme.MenuMonya"
1819
android:usesCleartextTraffic="true"
1920
tools:targetApi="31">
2021
<activity
21-
android:name=".NaverActivity"
22-
android:exported="false" />
23-
<activity
24-
android:name=".SplashActivity"
22+
android:name="com.woozoo.menumonya.MainActivity"
2523
android:exported="true">
2624
<intent-filter>
2725
<action android:name="android.intent.action.MAIN" />

app/src/main/java/com/woozoo/menumeonya/NaverActivity.kt

Lines changed: 0 additions & 131 deletions
This file was deleted.

app/src/main/java/com/woozoo/menumeonya/SplashActivity.kt

Lines changed: 0 additions & 90 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.woozoo.menumonya
2+
3+
import android.app.Application
4+
import android.content.Context
5+
6+
class Application: Application() {
7+
8+
init {
9+
instance = this
10+
}
11+
12+
companion object {
13+
private var instance: Application? = null
14+
15+
fun context(): Context {
16+
return instance!!.applicationContext
17+
}
18+
}
19+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.woozoo.menumonya
2+
3+
import com.naver.maps.geometry.LatLng
4+
5+
class Constants {
6+
companion object {
7+
val LATLNG_GN = LatLng(37.4981647, 127.0283079)
8+
val LATLNG_YS = LatLng(37.5007163, 127.0366182)
9+
val MAP_MIN_ZOOM = 13.0
10+
val MAP_DEFAULT_ZOOM = 14.5
11+
12+
val GLIDE_IMAGE_SIZE_WIDTH = 100
13+
val GLIDE_IMAGE_SIZE_HEIGHT = 100
14+
}
15+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.woozoo.menumonya
2+
3+
import androidx.lifecycle.Lifecycle
4+
import androidx.lifecycle.LifecycleOwner
5+
import androidx.lifecycle.lifecycleScope
6+
import kotlinx.coroutines.CoroutineScope
7+
import kotlinx.coroutines.launch
8+
import androidx.lifecycle.repeatOnLifecycle
9+
10+
fun LifecycleOwner.repeatOnStarted(block: suspend CoroutineScope.() -> Unit) {
11+
lifecycleScope.launch {
12+
lifecycle.repeatOnLifecycle(Lifecycle.State.STARTED, block)
13+
}
14+
}

0 commit comments

Comments
 (0)