v1.1.3 - 하루 메모 헤더 아이콘 컨테이너 스타일 적용, 사용 설명서 최신화 및 닫기 아이콘 교체, 업데이트 정보 자동 연동
This commit is contained in:
@@ -33,18 +33,21 @@ class ManualActivity : AppCompatActivity() {
|
||||
try {
|
||||
val versionName = try {
|
||||
packageManager.getPackageInfo(packageName, 0).versionName
|
||||
} catch (e: Exception) { "0.7.1" }
|
||||
} catch (e: Exception) { "1.1.3" }
|
||||
|
||||
binding.manualVersionText.text = "교대링(Shiftring) v$versionName"
|
||||
binding.manualVersionText.text = "교대링(ShiftRing) v$versionName"
|
||||
|
||||
val rawContent = assets.open("MANUAL.md").bufferedReader().use { it.readText() }
|
||||
|
||||
// Premium Styling logic
|
||||
// Clean Markdown markers and format with One UI Typography
|
||||
val styledContent = rawContent
|
||||
.replace(Regex("^# (.*)", RegexOption.MULTILINE), "<br><big><big><b>$1</b></big></big><br>")
|
||||
.replace(Regex("^## (.*)", RegexOption.MULTILINE), "<br><br><font color='#00897B'><b>$1</b></font><br>")
|
||||
.replace(Regex("^### (.*)", RegexOption.MULTILINE), "<br><br><b>$1</b><br>")
|
||||
.replace(Regex("^- (.*)", RegexOption.MULTILINE), " • $1")
|
||||
.replace(Regex("^# (.*)", RegexOption.MULTILINE), "<big><b>$1</b></big><br>")
|
||||
.replace(Regex("^## (.*)", RegexOption.MULTILINE), "<br><br><font color='#007AFF'><big><b>$1</b></big></font><br>")
|
||||
.replace(Regex("^### (.*)", RegexOption.MULTILINE), "<br><b>$1</b><br>")
|
||||
.replace(Regex("^- (.*?): (.*)", RegexOption.MULTILINE), "• <b>$1</b>: $2")
|
||||
.replace(Regex("^- (.*)", RegexOption.MULTILINE), "• $1")
|
||||
.replace(Regex("^---", RegexOption.MULTILINE), "<br><font color='#CCCCCC'>────────────────────</font><br>")
|
||||
.replace("**", "") // Strip any leftover double asterisks
|
||||
.replace("\n", "<br>")
|
||||
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
|
||||
|
||||
@@ -41,8 +41,8 @@ class NoticeActivity : AppCompatActivity() {
|
||||
}
|
||||
|
||||
private fun fetchChangelog() {
|
||||
// GitHub Raw URL with cache busting
|
||||
val baseUrl = "https://raw.githubusercontent.com/sanjeok77-tech/dakjaba-releases/main/CHANGELOG.md"
|
||||
// Gitea Raw URL with cache busting
|
||||
val baseUrl = "https://git.webpluss.net/sanjeok77/ShiftRing/raw/branch/main/app/src/main/assets/CHANGELOG.md"
|
||||
val urlString = "$baseUrl?t=${System.currentTimeMillis()}"
|
||||
|
||||
Thread {
|
||||
|
||||
Reference in New Issue
Block a user