Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6bb31bfbb9 | |||
| 1866c67d5e | |||
| ae4d31dafe | |||
| 8f2ef43360 | |||
| d4fc184d9f |
@@ -20,8 +20,8 @@ android {
|
||||
applicationId = "com.example.shiftalarm"
|
||||
minSdk = 26
|
||||
targetSdk = 35
|
||||
versionCode = 1150
|
||||
versionName = "1.5.0"
|
||||
versionCode = 1151
|
||||
versionName = "1.5.1"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# Changelog
|
||||
|
||||
## [1.5.1] - 2026-03-13
|
||||
### Fixed
|
||||
- **달력 스와이프 애니메이션 버그 수정**: 스와이프 제스처로 월 이동 시 애니메이션이 적용되지 않던 문제 해결
|
||||
- **업데이트 무한 버그 수정**: 동일 버전 확인 시 불필요한 토스트 표시 개선
|
||||
|
||||
### Added
|
||||
- **토요일 연장근무 계산 기능**: 설정 → 근무 관리에 토요일 근무 횟수 * 2시간 계산 표시
|
||||
- **사용 설명서 개선**: 최신 기능 반영 및 가독성 향상
|
||||
|
||||
### Changed
|
||||
- 업데이트 확인 로직 최적화: 동일 버전일 때 사용자 경험 개선
|
||||
|
||||
## [1.5.0] - 2026-03-13
|
||||
### Improved
|
||||
- **달력 월 이동 애니메이션 대폭 개선**: AccelerateDecelerateInterpolator 적용으로 자연스러운 가속/감속 곡선 구현
|
||||
|
||||
@@ -57,7 +57,7 @@ object AppUpdateManager {
|
||||
activity.runOnUiThread {
|
||||
showUpdateDialog(activity, serverVersionName, changelog, apkUrl)
|
||||
}
|
||||
} else if (!silent) {
|
||||
} else if (!silent && serverVersionCode == currentVersionCode) {
|
||||
activity.runOnUiThread {
|
||||
Toast.makeText(ctx, "현재 최신 버전을 사용 중입니다. ($currentVersionName)", Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ class FragmentSettingsLab : Fragment() {
|
||||
|
||||
setupSpinner()
|
||||
loadAnnualLeave()
|
||||
loadSaturdayOvertime()
|
||||
}
|
||||
|
||||
private fun setupSpinner() {
|
||||
@@ -106,6 +107,14 @@ class FragmentSettingsLab : Fragment() {
|
||||
}
|
||||
}
|
||||
|
||||
private fun loadSaturdayOvertime() {
|
||||
lifecycleScope.launch {
|
||||
val repo = ShiftRepository(requireContext())
|
||||
val overtimeHours = repo.getSaturdayOvertimeHours()
|
||||
binding.tvSaturdayOvertime.text = "$overtimeHours"
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDestroyView() {
|
||||
super.onDestroyView()
|
||||
_binding = null
|
||||
|
||||
@@ -157,12 +157,10 @@ class MainActivity : AppCompatActivity() {
|
||||
if (abs(diffX) > SWIPE_THRESHOLD && abs(velocityX) > SWIPE_VELOCITY_THRESHOLD) {
|
||||
if (diffX > 0) {
|
||||
// Swipe Right -> Previous Month
|
||||
currentViewMonth = currentViewMonth.minusMonths(1)
|
||||
updateCalendar()
|
||||
animateMonthTransition(-1)
|
||||
} else {
|
||||
// Swipe Left -> Next Month
|
||||
currentViewMonth = currentViewMonth.plusMonths(1)
|
||||
updateCalendar()
|
||||
animateMonthTransition(1)
|
||||
}
|
||||
return true
|
||||
}
|
||||
@@ -735,9 +733,9 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
updateCalendar()
|
||||
|
||||
// Reset position for incoming animation (keep scale at 0.95f for continuity)
|
||||
card.translationX = if (direction > 0) width else -width
|
||||
card.scaleX = 0.95f
|
||||
card.scaleY = 0.95f
|
||||
card.alpha = 0.7f
|
||||
|
||||
card.animate()
|
||||
.translationX(0f)
|
||||
|
||||
@@ -108,4 +108,19 @@ class ShiftRepository(private val context: Context) {
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun getSaturdayOvertimeHours(): Int = withContext(Dispatchers.IO) {
|
||||
val currentYear = LocalDate.now().year
|
||||
val allOverrides = dao.getAllOverrides()
|
||||
|
||||
val saturdayWorkDays = allOverrides.filter { override ->
|
||||
val date = LocalDate.parse(override.date)
|
||||
date.year == currentYear &&
|
||||
date.dayOfWeek == java.time.DayOfWeek.SATURDAY &&
|
||||
override.shift != "휴무" &&
|
||||
override.shift != "휴가"
|
||||
}
|
||||
|
||||
saturdayWorkDays.size * 2
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,14 +123,64 @@
|
||||
android:layout_marginBottom="8dp"
|
||||
android:gravity="center"/>
|
||||
|
||||
<!-- 기능추가중 Notice -->
|
||||
<!-- Saturday Overtime Display -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
app:cardCornerRadius="12dp"
|
||||
app:cardElevation="2dp"
|
||||
app:cardBackgroundColor="@color/surface">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="16dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="토요일 연장근무"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@color/text_secondary"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="bottom">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvSaturdayOvertime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="0"
|
||||
android:textSize="28sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/shift_red"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="시간"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@color/text_tertiary"
|
||||
android:layout_marginStart="4dp"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<!-- Calculation Info -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="기능추가중"
|
||||
android:textSize="11sp"
|
||||
android:textColor="@color/primary"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:text="※ 토요일 근무: 1일당 2시간 연장근무 계산"
|
||||
android:textSize="12sp"
|
||||
android:textColor="@color/text_tertiary"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:gravity="center"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"versionCode": 1149,
|
||||
"versionName": "1.4.9",
|
||||
"apkUrl": "https://git.webpluss.net/attachments/b8f51fa6-d26c-404a-b798-ee1c847a2be0",
|
||||
"changelog": "v1.4.9: 버전 업데이트",
|
||||
"versionCode": 1151,
|
||||
"versionName": "1.5.1",
|
||||
"apkUrl": "https://git.webpluss.net/attachments/20bbd073-c13f-4962-b290-751dab45df03",
|
||||
"changelog": "v1.5.1: 달력 스와이프 애니메이션 수정, 토요일 연장근무 계산 추가, 업데이트 버그 수정",
|
||||
"forceUpdate": false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user