5 Commits

Author SHA1 Message Date
6bb31bfbb9 chore: 버전 업데이트 v1.5.1 (1151)
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-13 03:37:01 +09:00
1866c67d5e fix: 업데이트 무한 버그 수정
- 동일 버전 확인 시 불필요한 토스트 표시 개선
- serverVersionCode == currentVersionCode 조건 추가

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-13 03:36:07 +09:00
ae4d31dafe feat: 토요일 연장근무 계산 기능 추가
- ShiftRepository에 getSaturdayOvertimeHours() 메소드 추가
- FragmentSettingsLab에 토요일 연장근무 시간 표시 카드 추가
- 토요일 수 * 2시간 계산 로직 구현

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-13 03:34:23 +09:00
8f2ef43360 fix: 달력 스와이프 애니메이션 버그 수정
- 스와이프 제스처로 월 이동 시 animateMonthTransition() 호출하도록 수정
- 이전/다음 월 버튼과 동일한 애니메이션 적용

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-13 03:31:09 +09:00
d4fc184d9f chore: version.json v1.5.0 업데이트
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-13 02:00:50 +09:00
8 changed files with 102 additions and 18 deletions

View File

@@ -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"
}

View File

@@ -1,5 +1,17 @@
# Changelog
## [1.5.1] - 2026-03-13
### Fixed
- **달력 스와이프 애니메이션 버그 수정**: 스와이프 제스처로 월 이동 시 애니메이션이 적용되지 않던 문제 해결
- **업데이트 무한 버그 수정**: 동일 버전 확인 시 불필요한 토스트 표시 개선
### Added
- **토요일 연장근무 계산 기능**: 설정 → 근무 관리에 토요일 근무 횟수 * 2시간 계산 표시
- **사용 설명서 개선**: 최신 기능 반영 및 가독성 향상
### Changed
- 업데이트 확인 로직 최적화: 동일 버전일 때 사용자 경험 개선
## [1.5.0] - 2026-03-13
### Improved
- **달력 월 이동 애니메이션 대폭 개선**: AccelerateDecelerateInterpolator 적용으로 자연스러운 가속/감속 곡선 구현

View File

@@ -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()
}

View File

@@ -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

View File

@@ -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)

View File

@@ -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
}
}

View File

@@ -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="11sp"
android:textColor="@color/primary"
android:layout_marginBottom="24dp"
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="※ 토요일 근무: 1일당 2시간 연장근무 계산"
android:textSize="12sp"
android:textColor="@color/text_tertiary"
android:layout_marginBottom="8dp"
android:gravity="center"/>
</LinearLayout>

View File

@@ -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
}