v1.1.7 - 교육 근무 변경 시 원래 근무 알람 울림 보장

This commit is contained in:
sanjeok77
2026-08-17 16:21:00 +09:00
parent 3ace249761
commit 8888150c84
7 changed files with 60 additions and 28 deletions
+10 -18
View File
@@ -6,17 +6,14 @@ import shutil
token = "e3b515eaa0a6683c921ca3bf718e281ed30a6075"
owner_repo = "sanjeok77/ShiftRing"
tag = "v1.1.6"
title = "v1.1.6 - 알람 볼륨 0 버그 수정 및 최초 설치 권한 모달 루프 버그 수정"
body = """## 🚀 ShiftRing v1.1.6 릴리즈
tag = "v1.1.7"
title = "v1.1.7 - 교육 근무 변경 시 원래 근무 알람 울림 보장"
body = """## 🚀 ShiftRing v1.1.7 릴리즈
### 🐛 버그 수정
1. **🔊 알람 추가 시 기본 볼륨 0 버그 수정 (`AlarmSyncManager.kt`, `FragmentSettingsAlarm.kt`)**:
- 시스템 알람 스트림 볼륨을 항상 최대치로 강제 설정하여 새 알람 추가 시 볼륨이 0이 되는 문제를 원천 차단
- 조건부(currVol == 0)가 아닌 무조건 최대 볼륨 적용으로 안정성 극대화
2. **🔐 최초 설치 시 권한 모달 팝업 루프 버그 수정 (`AlarmPermissionUtil.kt`, `MainActivity.kt`)**:
- 시스템 설정 화면이 잠깐 보였다가 모달로 되돌아가는 현상을 `isPermissionFlowActive` / `isDialogShowing` 이중 플래그로 완전 차단
- `MainActivity.onResume()` 재진입 시 권한 플로우 진행 중이면 `checkAndRequestAllPermissions()` 호출을 스킵하여 중복 모달 표시 방지"""
1. **⏰ 교육 근무 변경 시 원래 근무 알람 울림 보장 (`AlarmUtils.kt`, `AlarmSyncManager.kt`)**:
- 달력에서 근무를 '교육'으로 변경해도 원래 근무(주간/석간/야간 등)의 알람이 정상적으로 울리도록 개선
- `syncAllAlarms`, `addAlarm`, `updateAlarm`, `syncAllAlarmsWithCheck` 4곳 모두 일관되게 적용"""
apk_path = "app/build/outputs/apk/release/app-release.apk"
if not os.path.exists(apk_path):
@@ -25,7 +22,6 @@ if not os.path.exists(apk_path):
print(f"Using APK at: {apk_path}")
# Create Gitea Release
url = f"https://git.webpluss.net/api/v1/repos/{owner_repo}/releases"
headers = {"Authorization": f"token {token}", "Content-Type": "application/json"}
@@ -36,7 +32,6 @@ with urllib.request.urlopen(req) as response:
release_id = result["id"]
print(f"Created Gitea Release successfully. Release ID: {release_id}")
# Upload APK asset
upload_url = f"https://git.webpluss.net/api/v1/repos/{owner_repo}/releases/{release_id}/assets"
print(f"Uploading APK to {upload_url}...")
@@ -48,16 +43,14 @@ upload_json = json.loads(upload_result.stdout)
apk_uuid = upload_json.get("uuid")
direct_url = upload_json.get("browser_download_url", f"https://git.webpluss.net/attachments/{apk_uuid}")
# Copy APK to project root
shutil.copy2(apk_path, "app.apk")
print("Updated app.apk at project root.")
# Update version.json
v_info = {
"versionCode": 116,
"versionName": "1.1.6",
"versionCode": 117,
"versionName": "1.1.7",
"apkUrl": direct_url,
"changelog": "v1.1.6: 알람 볼륨 0 버그 수정, 최초 설치 권한 모달 루프 버그 수정",
"changelog": "v1.1.7: 교육 근무 변경 시 원래 근무 알람 울림 보장",
"forceUpdate": False
}
with open("version.json", "w", encoding="utf-8") as f:
@@ -65,11 +58,10 @@ with open("version.json", "w", encoding="utf-8") as f:
print(f"Updated version.json with apkUrl: {direct_url}")
# Git commit and push
git_path = r"C:\Users\work\AppData\Roaming\MobaXterm\slash\mx86_64b\bin"
os.environ["PATH"] = git_path + os.pathsep + os.environ.get("PATH", "")
commit_msg = "v1.1.6 - 알람 볼륨 0 버그 수정 및 최초 설치 권한 모달 루프 버그 수정"
commit_msg = "v1.1.7 - 교육 근무 변경 시 원래 근무 알람 울림 보장"
subprocess.run(["git", "add", "."], check=True)
subprocess.run(["git", "commit", "-m", commit_msg], check=True)
subprocess.run(["git", "push", "origin", "main"], check=True)