Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f2fd0a6a6e | |||
| dcbc14b8a1 | |||
| 46400ae58a | |||
| e190ac76b5 | |||
| e62f21c86a | |||
| 9819af3111 | |||
| 73e954c8f4 | |||
| 734aca3ec7 | |||
| 5e828d344c | |||
| 0e3f3641b7 | |||
| 139274067c | |||
| 0f58376c25 | |||
| 9421f67d13 | |||
| 92ff23c297 | |||
| 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 = 1154
|
||||
versionName = "1.5.4"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,26 @@
|
||||
# Changelog
|
||||
|
||||
## [1.5.2] - 2026-03-13
|
||||
### Fixed
|
||||
- **달력 스와이프 애니메이션 버그 수정**: GestureDetector의 onDown 메서드가 true를 반환하도록 수정하여 스와이프 제스처가 정상적으로 작동하도록 개선
|
||||
- **업데이트 다이얼로그 반복 표시 문제**: 버전 코드 1152로 업데이트하여 불필요한 업데이트 알림 제거
|
||||
|
||||
### Added
|
||||
- **토요일 연장근무 계산 기능**: 설정 → 근무 관리에 토요일 근무 횟수 * 2시간 계산 표시
|
||||
- **사용 설명서 개선**: 연차 설정 및 토요일 연장근무 기능 반영, 섹션 구조 정리
|
||||
|
||||
## [1.5.1] - 2026-03-13
|
||||
### Fixed
|
||||
- **달력 스와이프 애니메이션 버그 수정**: 스와이프 제스처로 월 이동 시 애니메이션이 적용되지 않던 문제 해결
|
||||
- **업데이트 무한 버그 수정**: 동일 버전 확인 시 불필요한 토스트 표시 개선
|
||||
|
||||
### Added
|
||||
- **토요일 연장근무 계산 기능**: 설정 → 근무 관리에 토요일 근무 횟수 * 2시간 계산 표시
|
||||
- **사용 설명서 개선**: 최신 기능 반영 및 가독성 향상
|
||||
|
||||
### Changed
|
||||
- 업데이트 확인 로직 최적화: 동일 버전일 때 사용자 경험 개선
|
||||
|
||||
## [1.5.0] - 2026-03-13
|
||||
### Improved
|
||||
- **달력 월 이동 애니메이션 대폭 개선**: AccelerateDecelerateInterpolator 적용으로 자연스러운 가속/감속 곡선 구현
|
||||
|
||||
@@ -29,21 +29,35 @@
|
||||
- **해제**: 중앙의 거대한 원형 버튼을 누르면 알람이 즉시 종료됩니다. (주변에 은은한 오로라 광채 애니메이션이 작동합니다)
|
||||
- **부드러운 스위치**: 알람 항목의 온/오프 스위치는 가볍고 부드러운 애니메이션을 제공합니다.
|
||||
|
||||
## 4. 물때표 및 특수 설정
|
||||
## 4. 근무 관리 (연차 및 연장근무)
|
||||
**근무 관리** 탭에서 연차와 연장근무를 한눈에 관리할 수 있습니다.
|
||||
|
||||
### 연차 설정
|
||||
- **총 연차 설정**: 1~25일 중 본인의 총 연차 일수를 선택하세요. 선택 즉시 저장됩니다.
|
||||
- **남은 연차 자동 계산**: 달력에서 연차/반년으로 설정한 날짜를 자동으로 인식하여 실시간으로 남은 연차를 계산합니다.
|
||||
- 연차: -1일 차감
|
||||
- 반년(반차): -0.5일 차감
|
||||
|
||||
### 연장근무 계산
|
||||
- **자동 집계**: 달력에서 근무(주간/석간/야간 등)로 설정한 날짜를 자동으로 카운트합니다.
|
||||
- **시간 계산**: 근무 1일당 2시간으로 계산하여 총 연장근무 시간을 표시합니다.
|
||||
- **예시**: 3일 근무 → 6시간 연장근무
|
||||
|
||||
## 5. 물때표 및 특수 설정
|
||||
- **물때표 표시**: 설정 → 부가 기능에서 **'물때 정보 표시'**를 활성화하면 달력 각 날짜에 물때 정보가 나타납니다.
|
||||
- **지역 전환**: 달력 상단의 지역 이름(군산, 변산, 여수, 태안)을 터치하여 간편하게 지역별 물때를 확인할 수 있습니다.
|
||||
- **기본 공장 설정**: 설정 → 기본 설정에서 본인이 속한 공장(전주 또는 논산)을 선택하여 공장별 특화된 교대 로직을 적용받으세요.
|
||||
|
||||
## 5. 데이터 백업 및 복구
|
||||
## 6. 데이터 백업 및 복구
|
||||
- **안전한 백업**: 설정 → 부가 기능에서 **'백업하기'** 버튼으로 현재의 근무 기록과 메모를 JSON 파일로 저장할 수 있습니다.
|
||||
- **간편한 복구**: **'복구하기'** 버튼으로 백업 파일을 불러와 이전 상태를 복원할 수 있습니다.
|
||||
- **백업 범위**: 근무 변경 내역, 메모, 환경 설정이 저장됩니다.
|
||||
|
||||
## 6. 앱 공유 및 초기화
|
||||
- **앱 공유하기**: 설정 → 부가 기능에서 **'교대링 앱 친구에게 공유하기'**를 통해 동료들에게 설치 파일(APK)을 직접 보낼 수 있습니다.
|
||||
## 7. 앱 공유 및 초기화
|
||||
- **앱 공유하기**: 설정 → 부가 기능에서 **'교대링 앱 친구에게 공유하기'**를 통해 동료들에게 설치 파일(APK)을 직접 별 수 있습니다.
|
||||
- **데이터 초기화**: 설정 → 부가 기능 하단의 **'개별 근무/알람 설정 전체 삭제'**로 달력에서 개별적으로 바꾼 모든 설정을 초기화할 수 있습니다.
|
||||
|
||||
## 7. 화면 테마 설정
|
||||
## 8. 화면 테마 설정
|
||||
- **테마 선택**: 설정 → 부가 기능에서 **'화면 테마 설정'**을 통해 시스템 기본/라이트 모드/다크 모드 중 선택할 수 있습니다.
|
||||
|
||||
---
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -142,6 +142,10 @@ class MainActivity : AppCompatActivity() {
|
||||
private val SWIPE_THRESHOLD = 100
|
||||
private val SWIPE_VELOCITY_THRESHOLD = 100
|
||||
|
||||
override fun onDown(e: MotionEvent): Boolean {
|
||||
return true
|
||||
}
|
||||
|
||||
override fun onFling(
|
||||
e1: MotionEvent?,
|
||||
e2: MotionEvent,
|
||||
@@ -157,12 +161,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,16 +737,16 @@ 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)
|
||||
.alpha(1f)
|
||||
.scaleX(1f)
|
||||
.scaleY(1f)
|
||||
.setDuration(280)
|
||||
.setDuration(150)
|
||||
.setInterpolator(AccelerateDecelerateInterpolator())
|
||||
.start()
|
||||
}
|
||||
|
||||
@@ -108,4 +108,23 @@ class ShiftRepository(private val context: Context) {
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun getSaturdayOvertimeHours(): Int = withContext(Dispatchers.IO) {
|
||||
val today = LocalDate.now()
|
||||
val yearMonth = java.time.YearMonth.of(today.year, today.monthValue)
|
||||
|
||||
// 해당 월의 토요일 개수 계산
|
||||
var saturdayCount = 0
|
||||
var date = yearMonth.atDay(1)
|
||||
val lastDay = yearMonth.atEndOfMonth()
|
||||
|
||||
while (!date.isAfter(lastDay)) {
|
||||
if (date.dayOfWeek == java.time.DayOfWeek.SATURDAY) {
|
||||
saturdayCount++
|
||||
}
|
||||
date = date.plusDays(1)
|
||||
}
|
||||
|
||||
saturdayCount * 2
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<!-- 배경색: 다크모드에서도 잘 보이도록 surface 색상 사용 -->
|
||||
<solid android:color="#CC333333" />
|
||||
<solid android:color="@color/surface_variant" />
|
||||
<corners android:radius="16dp" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFFFFFFF"/> <!-- Fully Opaque to hide everything behind -->
|
||||
<solid android:color="@color/surface"/> <!-- Theme-aware surface color -->
|
||||
<corners android:radius="32dp"/>
|
||||
<stroke android:width="1.2dp" android:color="#1A000000"/>
|
||||
</shape>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@android:color/white"
|
||||
android:textColor="@color/text_primary"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end" />
|
||||
|
||||
|
||||
@@ -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": 1154,
|
||||
"versionName": "1.5.4",
|
||||
"apkUrl": "https://git.webpluss.net/attachments/d38e521a-6019-43bf-8f40-bd9928907252",
|
||||
"changelog": "v1.5.4: 토요일 연장근무 기본값 표시, 애니메이션 속도 개선, 다크모드 개선",
|
||||
"forceUpdate": false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user