diff --git a/NOTICE b/NOTICE index cddb467..b2c5278 100644 --- a/NOTICE +++ b/NOTICE @@ -58,7 +58,7 @@ https://creativecommons.org/licenses/by/4.0/ ================================================================================ 3. Android Open Source Project (AndroidX, Jetpack Compose, Material Components) ================================================================================ -androidx.core, androidx.lifecycle, androidx.activity, +androidx.core, androidx.lifecycle, androidx.activity, androidx.fragment, androidx.compose.* , androidx.compose.material3 Copyright (C) The Android Open Source Project @@ -173,5 +173,23 @@ SOFTWARE. ================================================================================ +9. Google Play 인앱 업데이트 라이브러리 (#500) +-------------------------------------------- +com.google.android.play:app-update, com.google.android.play:core-common +Play 스토어에서 설치한 앱이 도움말의 '업데이트 확인'에서 휴대폰의 Play 스토어 앱에 +새 버전이 있는지 물을 때 씁니다. 이 라이브러리는 권한(인터넷 권한 포함)을 더하지 않습니다. + +Copyright (C) Google LLC +Play Core Software Development Kit Terms of Service +https://developer.android.com/guide/playcore/license + +com.google.android.gms:play-services-tasks, com.google.android.gms:play-services-basement +(위 라이브러리가 함께 가져옵니다) +Copyright (C) Google LLC +Android Software Development Kit License +https://developer.android.com/studio/terms.html + +================================================================================ + 테스트에만 쓰이는 의존성(JUnit, Espresso, org.json 등)은 APK 에 포함되지 않으므로 위 목록에서 제외했습니다. diff --git a/PRIVACY.md b/PRIVACY.md index 2ba7d73..5463095 100644 --- a/PRIVACY.md +++ b/PRIVACY.md @@ -2,7 +2,7 @@ # SoundVisualizer 개인정보처리방침 -시행일: 2026년 11월 25일 +시행일: 2026년 11월 26일 SoundVisualizer(이하 "앱")는 팀 SOVIS가 만든 Android 앱입니다. 이 방침은 앱이 어떤 정보를 다루는지 설명합니다. @@ -43,11 +43,16 @@ SoundVisualizer(이하 "앱")는 팀 SOVIS가 만든 Android 앱입니다. 이 - 앱 버전, Android 버전, 기기 모델, 앱 언어가 미리 채워집니다. - 보낼지는 사용자가 정합니다. 보낸 내용은 GitHub 또는 메일 서비스의 정책을 따르며, GitHub 이슈는 누구나 볼 수 있습니다. -## 6. 방침의 변경 +## 6. 업데이트 확인 + +- 도움말 탭의 '업데이트 확인'을 누르면, Play 스토어에서 설치한 경우 휴대폰의 Play 스토어 앱에 새 버전이 있는지 묻습니다. 앱이 직접 인터넷에 접속하지는 않으며, Play 스토어 앱이 주고받는 정보는 Google의 정책을 따릅니다. +- 다른 곳에서 설치했다면 그 스토어(원스토어 또는 Play 스토어)의 앱 페이지를 열 뿐입니다. + +## 7. 방침의 변경 이 방침이 바뀌면 이 페이지에 알리고 시행일을 고칩니다. -## 7. 문의 +## 8. 문의 - 팀 SOVIS - sovis.kr@gmail.com @@ -58,7 +63,7 @@ SoundVisualizer(이하 "앱")는 팀 SOVIS가 만든 Android 앱입니다. 이 # SoundVisualizer Privacy Policy -Effective date: November 25, 2026 +Effective date: November 26, 2026 SoundVisualizer (the "app") is an Android app made by team SOVIS. This policy explains what information the app handles. @@ -99,11 +104,16 @@ The app **does not collect any personal information.** - The app version, Android version, device model and app language are filled in. - You decide whether to send it. What you send is covered by GitHub's or your email provider's policies, and GitHub issues are public. -## 6. Changes to this policy +## 6. Checking for updates + +- When you tap "Check for updates" in the Help tab and the app was installed from Google Play, the app asks the Play Store app on your phone whether a new version is available. The app itself does not connect to the internet; what the Play Store app exchanges is covered by Google's policies. +- If the app was installed from elsewhere, it only opens the app's page in that store (ONE store or Google Play). + +## 7. Changes to this policy If this policy changes, we will update this page and its effective date. -## 7. Contact +## 8. Contact - Team SOVIS - sovis.kr@gmail.com diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 6e64be7..2fcc7fc 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -25,8 +25,8 @@ android { // 37(Android 17)에서 이 앱에 걸리는 변경은 백그라운드 액티비티 시작(BAL) 조이기뿐이었다. 타일·알림 본문· // "다시 켜기" 로 여는 경로가 모두 BAL_ALLOW_NON_APP_VISIBLE_WINDOW 로 허용되는 것을 Android 17 에서 봤다(#155). targetSdk = 37 - versionCode = 21 - versionName = "1.9.2" + versionCode = 22 + versionName = "1.10.0" buildConfigField("boolean", "AI_SILERO_PREVIEW_ENABLED", providers.gradleProperty("aiSileroPreview").map { require(it == "true" || it == "false") { "aiSileroPreview must be true or false" } @@ -215,6 +215,13 @@ dependencies { //noinspection NewerVersionAvailable implementation("com.microsoft.onnxruntime:onnxruntime-android:1.22.0") + // 도움말의 '업데이트 확인'(#500). Play 스토어에서 설치한 앱이 휴대폰의 Play 스토어 앱에 새 버전이 있는지 묻는다. + // 앱이 인터넷에 접속하지 않고 Play 스토어 앱과 기기 안에서 주고받으며, 권한을 더하지 않는다(InternetPermissionTest). + implementation("com.google.android.play:app-update:2.1.0") + // app-update 가 끌고 오는 play-services-basement 는 androidx.fragment 1.0.0 을 가져온다. fragment 가 1.3.0 보다 낮으면 + // registerForActivityResult 가 틀리게 동작할 수 있어 릴리스 lint 가 막는다(InvalidFragmentVersionForActivityResult). 새 판으로 올려 둔다. + implementation("androidx.fragment:fragment:1.9.1") + testImplementation("junit:junit:4.13.2") // Real org.json for JVM unit tests (the Android stub is not mocked by default) testImplementation("org.json:json:20260814") diff --git a/app/src/main/assets/licenses/NOTICE.txt b/app/src/main/assets/licenses/NOTICE.txt index cddb467..b2c5278 100644 --- a/app/src/main/assets/licenses/NOTICE.txt +++ b/app/src/main/assets/licenses/NOTICE.txt @@ -58,7 +58,7 @@ https://creativecommons.org/licenses/by/4.0/ ================================================================================ 3. Android Open Source Project (AndroidX, Jetpack Compose, Material Components) ================================================================================ -androidx.core, androidx.lifecycle, androidx.activity, +androidx.core, androidx.lifecycle, androidx.activity, androidx.fragment, androidx.compose.* , androidx.compose.material3 Copyright (C) The Android Open Source Project @@ -173,5 +173,23 @@ SOFTWARE. ================================================================================ +9. Google Play 인앱 업데이트 라이브러리 (#500) +-------------------------------------------- +com.google.android.play:app-update, com.google.android.play:core-common +Play 스토어에서 설치한 앱이 도움말의 '업데이트 확인'에서 휴대폰의 Play 스토어 앱에 +새 버전이 있는지 물을 때 씁니다. 이 라이브러리는 권한(인터넷 권한 포함)을 더하지 않습니다. + +Copyright (C) Google LLC +Play Core Software Development Kit Terms of Service +https://developer.android.com/guide/playcore/license + +com.google.android.gms:play-services-tasks, com.google.android.gms:play-services-basement +(위 라이브러리가 함께 가져옵니다) +Copyright (C) Google LLC +Android Software Development Kit License +https://developer.android.com/studio/terms.html + +================================================================================ + 테스트에만 쓰이는 의존성(JUnit, Espresso, org.json 등)은 APK 에 포함되지 않으므로 위 목록에서 제외했습니다. diff --git a/app/src/main/java/com/example/soundvisualizer/help/HelpTab.kt b/app/src/main/java/com/example/soundvisualizer/help/HelpTab.kt index 52af2f8..76d9165 100644 --- a/app/src/main/java/com/example/soundvisualizer/help/HelpTab.kt +++ b/app/src/main/java/com/example/soundvisualizer/help/HelpTab.kt @@ -35,13 +35,16 @@ import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.produceState import androidx.compose.runtime.remember +import androidx.compose.runtime.rememberCoroutineScope import androidx.compose.runtime.saveable.rememberSaveable import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalConfiguration import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.stringResource +import androidx.compose.ui.semantics.LiveRegionMode import androidx.compose.ui.semantics.clearAndSetSemantics +import androidx.compose.ui.semantics.liveRegion import androidx.compose.ui.semantics.semantics import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.font.FontWeight @@ -59,6 +62,7 @@ import com.example.soundvisualizer.SecondaryTextColor import com.example.soundvisualizer.SettingsExpander import com.example.soundvisualizer.SettingsManager import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.launch import kotlinx.coroutines.withContext private val BodySize = 15.sp @@ -187,11 +191,12 @@ fun HelpTab() { Text(stringResource(R.string.help_about_team), fontSize = BodySize, color = PrimaryTextColor) Text(stringResource(R.string.help_about_license), fontSize = 14.sp, lineHeight = 21.sp, color = SecondaryTextColor) } + UpdateButton() OutlinedButton( onClick = { showLicenses = true }, border = BorderStroke(1.dp, AccentColor), shape = RoundedCornerShape(14.dp), - modifier = Modifier.fillMaxWidth().padding(top = 16.dp).heightIn(min = 48.dp) + modifier = Modifier.fillMaxWidth().padding(top = 10.dp).heightIn(min = 48.dp) ) { Text(stringResource(R.string.help_licenses_button), fontSize = 15.sp, fontWeight = FontWeight.Bold, textAlign = TextAlign.Center, color = AccentColor) } @@ -208,6 +213,73 @@ fun HelpTab() { } } +/** + * 업데이트 확인(#500). 앱에는 인터넷 권한이 없어 직접 묻지 않는다. Play 스토어에서 설치했으면 휴대폰의 Play 스토어 앱에 + * 새 버전이 있는지 묻고, 최신이면 그렇다고 알린다. 새 버전이 있거나 묻지 못하면, 그리고 다른 곳에서 설치했으면 그 스토어의 + * 앱 페이지를 연다([UpdateStore]). 스토어 페이지에서 업데이트 버튼을 누르는 것은 사용자다. + */ +@Composable +private fun UpdateButton() { + val context = LocalContext.current + val scope = rememberCoroutineScope() + val store = remember(context) { UpdateStore.of(UpdateCheck.installer(context)) } + var checking by remember { mutableStateOf(false) } + var latest by rememberSaveable { mutableStateOf(false) } + val noStore = stringResource(R.string.help_update_no_store) + + OutlinedButton( + onClick = { + latest = false + val links = UpdateLinks.forStore(store, context.packageName) + if (store != UpdateStore.Play) { + openStore(context, links, noStore) + return@OutlinedButton + } + checking = true + scope.launch { + val hasUpdate = UpdateCheck.playHasUpdate(context) + checking = false + if (hasUpdate == false) latest = true else openStore(context, links, noStore) + } + }, + enabled = !checking, + border = BorderStroke(1.dp, AccentColor), + shape = RoundedCornerShape(14.dp), + modifier = Modifier.fillMaxWidth().padding(top = 16.dp).heightIn(min = 48.dp) + ) { + Text( + stringResource(if (checking) R.string.help_update_checking else R.string.help_update_button), + fontSize = 15.sp, fontWeight = FontWeight.Bold, textAlign = TextAlign.Center, color = AccentColor + ) + } + if (latest) { + // 누른 결과라 화면 읽어주기가 읽고 지나가게 한다. + Text( + stringResource(R.string.help_update_latest), + fontSize = 14.sp, lineHeight = 21.sp, color = SecondaryTextColor, + modifier = Modifier.padding(top = 8.dp).semantics { liveRegion = LiveRegionMode.Polite } + ) + } +} + +/** 스토어 페이지를 연다. Play 주소는 Play 스토어 앱으로 열고, 그 앱이 없으면 브라우저로 연다. 둘 다 안 되면 알린다. */ +private fun openStore(context: Context, links: UpdateLinks, noStore: String) { + fun open(url: String): Boolean { + val intent = Intent(Intent.ACTION_VIEW, url.toUri()).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) + // market:// 은 다른 마켓 앱도 받을 수 있어 고르는 창이 뜬다. Play 스토어 앱으로 바로 연다. + if (url.startsWith("market://")) intent.setPackage(UpdateStore.PLAY_STORE_PACKAGE) + return try { + context.startActivity(intent) + true + } catch (e: ActivityNotFoundException) { + false + } + } + if (open(links.primary)) return + if (links.fallback != null && open(links.fallback)) return + Toast.makeText(context, noStore, Toast.LENGTH_LONG).show() +} + /** * 개인정보처리방침을 브라우저로 여는 버튼(#468). 앱 언어가 한국어면 한국어, 그 밖에는 영어 페이지를 연다. * 브라우저가 없는 기기에서는 주소를 알려 준다. diff --git a/app/src/main/java/com/example/soundvisualizer/help/UpdateCheck.kt b/app/src/main/java/com/example/soundvisualizer/help/UpdateCheck.kt new file mode 100644 index 0000000..076ae11 --- /dev/null +++ b/app/src/main/java/com/example/soundvisualizer/help/UpdateCheck.kt @@ -0,0 +1,62 @@ +package com.example.soundvisualizer.help + +import android.content.Context +import android.content.pm.PackageManager +import android.os.Build +import android.util.Log +import com.google.android.play.core.appupdate.AppUpdateManagerFactory +import com.google.android.play.core.install.model.UpdateAvailability +import kotlinx.coroutines.suspendCancellableCoroutine +import kotlin.coroutines.resume + +/** + * 도움말의 '업데이트 확인'(#500)이 기기에 묻는 것. 어느 스토어로 보낼지는 [UpdateStore] 가 정한다. + */ +internal object UpdateCheck { + + private const val TAG = "UpdateCheck" + + /** 이 앱을 설치한 앱의 패키지 이름. 스토어 밖에서 설치했거나 알 수 없으면 null. */ + fun installer(context: Context): String? = try { + val pm = context.packageManager + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { + pm.getInstallSourceInfo(context.packageName).installingPackageName + } else { + @Suppress("DEPRECATION") + pm.getInstallerPackageName(context.packageName) + } + } catch (e: PackageManager.NameNotFoundException) { + null + } catch (e: IllegalArgumentException) { + null + } + + /** + * Play 스토어 앱에 새 버전이 있는지 묻는다. 있으면 true, 최신이면 false, 묻지 못하면 null(그때는 Play 스토어 페이지를 연다). + * + * Play 인앱 업데이트 라이브러리는 앱이 인터넷에 접속하지 않고 기기 안의 Play 스토어 앱과 주고받는다. Play 스토어에서 설치한 + * 앱만 답을 받는다(그래서 [UpdateStore.Play] 일 때만 부른다). + */ + suspend fun playHasUpdate(context: Context): Boolean? = suspendCancellableCoroutine { continuation -> + try { + AppUpdateManagerFactory.create(context.applicationContext).appUpdateInfo + .addOnSuccessListener { info -> + val availability = info.updateAvailability() + if (continuation.isActive) { + continuation.resume( + availability == UpdateAvailability.UPDATE_AVAILABLE || + availability == UpdateAvailability.DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS + ) + } + } + .addOnFailureListener { e -> + Log.w(TAG, "Play 스토어에 업데이트를 묻지 못했습니다", e) + if (continuation.isActive) continuation.resume(null) + } + } catch (e: RuntimeException) { + // Play 스토어 앱이 없거나 꺼져 있는 기기. + Log.w(TAG, "Play 인앱 업데이트를 쓸 수 없습니다", e) + if (continuation.isActive) continuation.resume(null) + } + } +} diff --git a/app/src/main/java/com/example/soundvisualizer/help/UpdateStore.kt b/app/src/main/java/com/example/soundvisualizer/help/UpdateStore.kt new file mode 100644 index 0000000..7e69063 --- /dev/null +++ b/app/src/main/java/com/example/soundvisualizer/help/UpdateStore.kt @@ -0,0 +1,62 @@ +package com.example.soundvisualizer.help + +/** + * 도움말의 '업데이트 확인'(#500)이 어느 스토어로 보낼지. + * + * 앱에는 인터넷 권한이 없다. 새 버전이 있는지는 Play 스토어에서 설치한 경우에만 휴대폰의 Play 스토어 앱에 물을 수 있고, + * 그 밖에는 스토어 페이지를 열어 거기서 업데이트하게 한다. 원스토어에서 받은 사람은 원스토어로 보낸다(원스토어가 업데이트를 + * 관리한다). GitHub 의 APK 처럼 스토어 밖에서 설치했으면 Play 스토어로 보낸다. 같은 팀 키로 서명해 Play 스토어 판이 그 위에 설치된다. + * + * 화면이나 Android API 없이 문자열만 다루므로 단위 테스트로 고정한다. + */ +enum class UpdateStore { + /** Play 스토어에서 설치했다. Play 스토어 앱에 새 버전이 있는지 물을 수 있다. */ + Play, + + /** 원스토어에서 설치했다. 원스토어의 앱 페이지를 연다. */ + OneStore, + + /** 그 밖(GitHub APK, 다른 마켓, 알 수 없음). Play 스토어의 앱 페이지를 연다. */ + Other; + + companion object { + const val PLAY_STORE_PACKAGE = "com.android.vending" + + /** 원스토어 앱과 원스토어 서비스, 예전 통신사 마켓(원스토어로 합쳐짐)의 패키지 이름. */ + val ONE_STORE_PACKAGES = setOf( + "com.skt.skaf.A000Z00040", + "com.skt.skaf.OA00018282", + "com.kt.olleh.storefront", + "com.kt.olleh.istore", + "com.lguplus.appstore", + "android.lgt.appstore", + ) + + /** 원스토어의 SoundVisualizer 페이지(상품 번호 0001013096). 원스토어 앱이 있으면 그 앱이 연다. */ + const val ONE_STORE_URL = "https://m.onestore.co.kr/v2/ko-kr/app/0001013096" + + /** 설치한 앱의 패키지 이름(Android 의 installingPackageName)으로 정한다. */ + fun of(installer: String?): UpdateStore = when { + installer == PLAY_STORE_PACKAGE -> Play + installer in ONE_STORE_PACKAGES -> OneStore + else -> Other + } + + /** Play 스토어 앱으로 여는 주소. */ + fun playMarketUri(packageName: String): String = "market://details?id=$packageName" + + /** Play 스토어 앱이 없을 때 브라우저로 여는 주소. */ + fun playWebUrl(packageName: String): String = "https://play.google.com/store/apps/details?id=$packageName" + } +} + +/** 업데이트 확인을 눌렀을 때 할 일. 앞의 것이 열리지 않으면 뒤의 것을 연다. */ +data class UpdateLinks(val primary: String, val fallback: String?) { + companion object { + fun forStore(store: UpdateStore, packageName: String): UpdateLinks = when (store) { + UpdateStore.OneStore -> UpdateLinks(UpdateStore.ONE_STORE_URL, null) + UpdateStore.Play, UpdateStore.Other -> + UpdateLinks(UpdateStore.playMarketUri(packageName), UpdateStore.playWebUrl(packageName)) + } + } +} diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml index 2f8aaa2..699d848 100644 --- a/app/src/main/res/values-ar/strings.xml +++ b/app/src/main/res/values-ar/strings.xml @@ -367,6 +367,10 @@ من تطوير فريق SOVIS يتم توزيع هذا التطبيق بموجب Apache License 2.0. أسماء الأصوات ومجموعاتها في علامة تبويب «الأصوات» مبنية على أنطولوجيا AudioSet ومرخّصة بموجب CC BY-SA 4.0 (راجع «تراخيص البرامج المفتوحة المصدر» أدناه). تراخيص البرامج المفتوحة المصدر + التحقق من التحديثات + جارٍ التحقق من التحديثات… + أنت تستخدم أحدث إصدار. + تعذّر فتح متجر تطبيقات أو متصفح. تراخيص البرامج المفتوحة المصدر سياسة الخصوصية لا يوجد متصفح لفتح الرابط. سياسة الخصوصية متاحة على %1$s. diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 2dfe691..0876139 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -367,6 +367,10 @@ Entwickelt vom Team SOVIS Diese App wird unter der Apache License 2.0 bereitgestellt. Die Namen und Gruppen der Geräusche im Tab „Geräusche“ beruhen auf der AudioSet-Ontologie und stehen unter der Lizenz CC BY-SA 4.0 (siehe „Open-Source-Lizenzen“ unten). Open-Source-Lizenzen + Nach Updates suchen + Suche nach Updates … + Sie verwenden die neueste Version. + Es konnte weder eine Store-App noch ein Browser geöffnet werden. Open-Source-Lizenzen Datenschutzerklärung Kein Browser zum Öffnen des Links. Die Datenschutzerklärung finden Sie unter %1$s. diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 4faa633..c2ac730 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -367,6 +367,10 @@ Creado por el equipo SOVIS Esta app se distribuye bajo la Apache License 2.0. Los nombres y los grupos de sonidos de la pestaña Sonidos se basan en la ontología de AudioSet y se distribuyen bajo la licencia CC BY-SA 4.0 (consulta “Licencias de código abierto” más abajo). Licencias de código abierto + Buscar actualizaciones + Buscando actualizaciones… + Estás usando la versión más reciente. + No se pudo abrir una tienda de aplicaciones ni un navegador. Licencias de código abierto Política de privacidad No hay ningún navegador para abrir el enlace. La política de privacidad está en %1$s. diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index be7daab..f2a0cef 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -367,6 +367,10 @@ Créé par l\'équipe SOVIS Cette application est distribuée sous l\'Apache License 2.0. Les noms et les groupes de sons de l\'onglet Sons sont basés sur l\'ontologie AudioSet et distribués sous la licence CC BY-SA 4.0 (voir « Licences open source » ci-dessous). Licences open source + Rechercher les mises à jour + Recherche de mises à jour… + Vous utilisez la dernière version. + Impossible d\'ouvrir une boutique d\'applications ou un navigateur. Licences open source Politique de confidentialité Aucun navigateur pour ouvrir le lien. La politique de confidentialité se trouve sur %1$s. diff --git a/app/src/main/res/values-hi/strings.xml b/app/src/main/res/values-hi/strings.xml index 64a89ae..10d22a4 100644 --- a/app/src/main/res/values-hi/strings.xml +++ b/app/src/main/res/values-hi/strings.xml @@ -367,6 +367,10 @@ SOVIS टीम ने बनाया है यह ऐप Apache License 2.0 के तहत उपलब्ध कराया जाता है। “आवाज़ें” टैब में आवाज़ों के नाम और समूह AudioSet ऑन्टोलॉजी पर आधारित हैं और CC BY-SA 4.0 के तहत उपलब्ध हैं (नीचे “ओपन सोर्स लाइसेंस” देखें)। ओपन सोर्स लाइसेंस + अपडेट जांचें + अपडेट जांचे जा रहे हैं… + आप सबसे नया वर्शन इस्तेमाल कर रहे हैं। + कोई ऐप स्टोर या ब्राउज़र नहीं खुल सका। ओपन सोर्स लाइसेंस गोपनीयता नीति लिंक खोलने के लिए कोई ब्राउज़र नहीं है। गोपनीयता नीति %1$s पर है। diff --git a/app/src/main/res/values-in/strings.xml b/app/src/main/res/values-in/strings.xml index eb77b11..51cede7 100644 --- a/app/src/main/res/values-in/strings.xml +++ b/app/src/main/res/values-in/strings.xml @@ -367,6 +367,10 @@ Dibuat oleh tim SOVIS Aplikasi ini didistribusikan berdasarkan Apache License 2.0. Nama dan grup suara di tab Suara didasarkan pada ontologi AudioSet dan didistribusikan berdasarkan CC BY-SA 4.0 (lihat “Lisensi open source” di bawah). Lisensi open source + Periksa pembaruan + Memeriksa pembaruan… + Anda menggunakan versi terbaru. + Tidak dapat membuka toko aplikasi atau browser. Lisensi open source Kebijakan privasi Tidak ada browser untuk membuka tautan. Kebijakan privasi ada di %1$s. diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 750d59c..a5173eb 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -367,6 +367,10 @@ Creata dal team SOVIS Questa app è distribuita ai sensi della Apache License 2.0. I nomi e i gruppi dei suoni nella scheda Suoni si basano sull\'ontologia AudioSet e sono distribuiti ai sensi della licenza CC BY-SA 4.0 (vedi “Licenze open source” qui sotto). Licenze open source + Cerca aggiornamenti + Ricerca di aggiornamenti… + Stai usando la versione più recente. + Impossibile aprire uno store di app o un browser. Licenze open source Informativa sulla privacy Nessun browser per aprire il link. L\'informativa sulla privacy si trova su %1$s. diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index d0ace01..f30c6cb 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -367,6 +367,10 @@ 制作チーム:SOVIS このアプリは Apache License 2.0 のもとで配布されています。「分類」タブの音の名前とグループは AudioSet オントロジーをもとにしており、CC BY-SA 4.0 のもとで配布されています(詳しくは下の「オープンソース ライセンス」をご覧ください)。 オープンソース ライセンス + 更新を確認 + 更新を確認しています… + 最新バージョンを使っています。 + アプリストアもブラウザも開けませんでした。 オープンソース ライセンス プライバシーポリシー リンクを開くブラウザがありません。プライバシーポリシーは %1$s にあります。 diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index cb88202..071a3aa 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -377,6 +377,10 @@ 만든 팀: SOVIS 이 앱은 Apache License 2.0으로 배포됩니다. 분류 탭의 소리 이름과 묶음은 AudioSet 온톨로지를 바탕으로 해 CC BY-SA 4.0을 따르며, 자세한 내용은 아래 ‘오픈소스 라이선스’에서 볼 수 있습니다. 오픈소스 라이선스 + 업데이트 확인 + 업데이트를 확인하는 중입니다… + 최신 버전을 쓰고 있습니다. + 스토어 앱이나 브라우저를 열지 못했습니다. 오픈소스 라이선스 개인정보처리방침 링크를 열 브라우저가 없습니다. 개인정보처리방침은 %1$s 에 있습니다. diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index 9162996..679a04c 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -367,6 +367,10 @@ Autorzy: zespół SOVIS Ta aplikacja jest udostępniana na warunkach Apache License 2.0. Nazwy i grupy dźwięków na karcie „Dźwięki” są oparte na ontologii AudioSet i udostępniane na warunkach licencji CC BY-SA 4.0 (zobacz „Licencje open source” poniżej). Licencje open source + Sprawdź aktualizacje + Sprawdzanie aktualizacji… + Używasz najnowszej wersji. + Nie udało się otworzyć sklepu z aplikacjami ani przeglądarki. Licencje open source Polityka prywatności Brak przeglądarki do otwarcia linku. Polityka prywatności jest dostępna pod adresem %1$s. diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 94cdef0..17089d2 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -367,6 +367,10 @@ Feito pela equipe SOVIS Este app é distribuído sob a Apache License 2.0. Os nomes e os grupos de sons da aba Sons são baseados na ontologia AudioSet e distribuídos sob a licença CC BY-SA 4.0 (veja “Licenças de código aberto” abaixo). Licenças de código aberto + Verificar atualizações + Verificando atualizações… + Você está usando a versão mais recente. + Não foi possível abrir uma loja de apps nem um navegador. Licenças de código aberto Política de privacidade Nenhum navegador para abrir o link. A política de privacidade está em %1$s. diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index b0bc965..0f6e6cf 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -367,6 +367,10 @@ Создано командой SOVIS Это приложение распространяется на условиях Apache License 2.0. Названия и группы звуков на вкладке «Звуки» основаны на онтологии AudioSet и распространяются на условиях лицензии CC BY-SA 4.0 (см. «Лицензии открытого ПО» ниже). Лицензии открытого ПО + Проверить обновления + Проверка обновлений… + У вас последняя версия. + Не удалось открыть магазин приложений или браузер. Лицензии открытого ПО Политика конфиденциальности Нет браузера, чтобы открыть ссылку. Политика конфиденциальности находится на %1$s. diff --git a/app/src/main/res/values-th/strings.xml b/app/src/main/res/values-th/strings.xml index d9ccfea..3579884 100644 --- a/app/src/main/res/values-th/strings.xml +++ b/app/src/main/res/values-th/strings.xml @@ -367,6 +367,10 @@ สร้างโดยทีม SOVIS แอปนี้เผยแพร่ภายใต้ Apache License 2.0 ชื่อและกลุ่มของเสียงในแท็บเสียงอิงจาก AudioSet Ontology และเผยแพร่ภายใต้ CC BY-SA 4.0 (ดู “ใบอนุญาตโอเพนซอร์ส” ด้านล่าง) ใบอนุญาตโอเพนซอร์ส + ตรวจหาอัปเดต + กำลังตรวจหาอัปเดต… + คุณใช้เวอร์ชันล่าสุดอยู่ + เปิดสโตร์แอปหรือเบราว์เซอร์ไม่ได้ ใบอนุญาตโอเพนซอร์ส นโยบายความเป็นส่วนตัว ไม่มีเบราว์เซอร์สำหรับเปิดลิงก์ ดูนโยบายความเป็นส่วนตัวได้ที่ %1$s diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index 71c400c..ff10f34 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -367,6 +367,10 @@ SOVIS ekibi tarafından geliştirildi Bu uygulama Apache License 2.0 kapsamında dağıtılmaktadır. “Sesler” sekmesindeki ses adları ve ses grupları AudioSet ontolojisine dayanır ve CC BY-SA 4.0 kapsamında dağıtılır (ayrıntılar için aşağıdaki “Açık kaynak lisansları” düğmesine dokunun). Açık kaynak lisansları + Güncellemeleri denetle + Güncellemeler denetleniyor… + En son sürümü kullanıyorsunuz. + Uygulama mağazası veya tarayıcı açılamadı. Açık kaynak lisansları Gizlilik politikası Bağlantıyı açacak tarayıcı yok. Gizlilik politikası %1$s adresinde. diff --git a/app/src/main/res/values-vi/strings.xml b/app/src/main/res/values-vi/strings.xml index 9bd7be2..d10d208 100644 --- a/app/src/main/res/values-vi/strings.xml +++ b/app/src/main/res/values-vi/strings.xml @@ -367,6 +367,10 @@ Phát triển bởi nhóm SOVIS Ứng dụng này được phân phối theo Apache License 2.0. Tên và nhóm âm thanh trong thẻ Phân loại dựa trên AudioSet Ontology và được phân phối theo giấy phép CC BY-SA 4.0 (xem “Giấy phép nguồn mở” bên dưới). Giấy phép nguồn mở + Kiểm tra cập nhật + Đang kiểm tra cập nhật… + Bạn đang dùng phiên bản mới nhất. + Không mở được cửa hàng ứng dụng hoặc trình duyệt. Giấy phép nguồn mở Chính sách quyền riêng tư Không có trình duyệt để mở liên kết. Chính sách quyền riêng tư có tại %1$s. diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index bbbe616..fffaa77 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -367,6 +367,10 @@ 制作团队:SOVIS 本应用基于 Apache License 2.0 发布。“分类”标签页中的声音名称和分组基于 AudioSet 本体,并以 CC BY-SA 4.0 许可发布(详见下方的“开源许可”)。 开源许可 + 检查更新 + 正在检查更新… + 你正在使用最新版本。 + 无法打开应用商店或浏览器。 开源许可 隐私政策 没有可以打开链接的浏览器。隐私政策位于 %1$s。 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index b402749..937adc9 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -367,6 +367,10 @@ 製作團隊:SOVIS 本應用程式以 Apache License 2.0 授權發布。「分類」分頁中的聲音名稱和群組以 AudioSet 本體為基礎,並以 CC BY-SA 4.0 授權發布 (詳見下方的「開放原始碼授權」)。 開放原始碼授權 + 檢查更新 + 正在檢查更新… + 你正在使用最新版本。 + 無法開啟應用程式商店或瀏覽器。 開放原始碼授權 隱私權政策 沒有可以開啟連結的瀏覽器。隱私權政策位於 %1$s。 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9aac486..ce3d3ee 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,7 +9,7 @@ Help - Sound Visualizer + SoundVisualizer Draws the sounds you can\'t see right on your screen.\nFrom gaming to movies, try a whole new experience. Status: Running Status: Ready @@ -28,9 +28,9 @@ Stop Add to Quick Settings Turn it on or off from the notification shade, right over your game or video. - Pull down the notification shade, tap Edit (pencil) and add “Sound visualizer” to turn it on or off right over your game or video. + Pull down the notification shade, tap Edit (pencil) and add “SoundVisualizer” to turn it on or off right over your game or video. Turn on and off from the notification shade - “Sound visualizer” is in your Quick Settings in the notification shade. + “SoundVisualizer” is in your Quick Settings in the notification shade. View tutorial @@ -299,14 +299,14 @@ Visualizer turned off - Tells you when the sound visualizer turns off without you stopping it. - Sound visualizer turned off + Tells you when SoundVisualizer turns off without you stopping it. + SoundVisualizer turned off Sound capture ended, so graphics and vibration alerts are off. This happens when screen recording, screen sharing or casting starts, or when the system stops sound capture. If another app is recording, sharing or casting, turning it on again ends it. Sound capture stopped because of an error, so graphics and vibration alerts are off. Sound capture couldn\'t start, so graphics and vibration alerts are off. Graphics couldn\'t be shown over other apps, so the visualizer turned off. Check that “Display over other apps” is allowed. Turn on again - Sound visualizer turned off. Graphics and vibration alerts are off. + SoundVisualizer turned off. Graphics and vibration alerts are off. Danger sound alerts @@ -316,7 +316,7 @@ Check your surroundings. - Sound visualizer + SoundVisualizer On Off “Display over other apps” permission is required. Tap “Start” in the app to allow it. @@ -330,9 +330,9 @@ To turn it off, tap “Stop” on Home or in the notification. Turn on and off from the notification shade - Tap “Add to Quick Settings” in the Settings tab to add a “Sound visualizer” button to your notification shade. You can then turn it on or off right over your game or video without switching apps. + Tap “Add to Quick Settings” in the Settings tab to add a “SoundVisualizer” button to your notification shade. You can then turn it on or off right over your game or video without switching apps. Tap to turn it on, and tap again to turn it off. Long-press to open this app\'s settings. - On Android 12 and earlier, open the notification shade, tap Edit (pencil) and drag “Sound visualizer” in yourself. + On Android 12 and earlier, open the notification shade, tap Edit (pencil) and drag “SoundVisualizer” in yourself. Why permissions are needed Display over other apps @@ -411,6 +411,10 @@ Made by team SOVIS This app is distributed under the Apache License 2.0. The sound names and sound groups in the Sounds tab are based on the AudioSet Ontology and are licensed under CC BY-SA 4.0 (see “Open source licenses” below). Open source licenses + Check for updates + Checking for updates… + You\'re using the latest version. + Couldn\'t open a store app or a browser. Open source licenses Privacy policy No browser to open the link. The privacy policy is at %1$s. diff --git a/app/src/test/java/com/example/soundvisualizer/InternetPermissionTest.kt b/app/src/test/java/com/example/soundvisualizer/InternetPermissionTest.kt new file mode 100644 index 0000000..8252116 --- /dev/null +++ b/app/src/test/java/com/example/soundvisualizer/InternetPermissionTest.kt @@ -0,0 +1,23 @@ +package com.example.soundvisualizer + +import org.junit.Assert.assertTrue +import org.junit.Test +import java.io.File + +/** + * 앱에는 인터넷 권한이 없다. 개인정보처리방침과 스토어 설명이 이것을 약속한다("어떤 정보도 보내지 않습니다"). + * 링크는 브라우저·메일 앱·스토어 앱이 열고, 업데이트 확인(#500)은 기기 안의 Play 스토어 앱에 묻는다. + * + * 매니페스트에 네트워크 권한을 적으면 실패한다. 라이브러리가 몰래 더하는 권한은 이 시험으로 막을 수 없으므로, + * 의존성을 더할 때는 그 라이브러리의 AndroidManifest.xml 에 uses-permission 이 없는지 본다(app-update 2.1.0 은 없다). + */ +class InternetPermissionTest { + + @Test + fun `매니페스트에 네트워크 권한이 없다`() { + val manifest = File("src/main/AndroidManifest.xml").readText(Charsets.UTF_8) + for (permission in listOf("android.permission.INTERNET", "android.permission.ACCESS_NETWORK_STATE", "android.permission.ACCESS_WIFI_STATE")) { + assertTrue("$permission 을 적으면 '인터넷 권한 없음' 약속이 깨집니다", !manifest.contains(permission)) + } + } +} diff --git a/app/src/test/java/com/example/soundvisualizer/help/UpdateStoreTest.kt b/app/src/test/java/com/example/soundvisualizer/help/UpdateStoreTest.kt new file mode 100644 index 0000000..fec594a --- /dev/null +++ b/app/src/test/java/com/example/soundvisualizer/help/UpdateStoreTest.kt @@ -0,0 +1,50 @@ +package com.example.soundvisualizer.help + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertNull +import org.junit.Assert.assertTrue +import org.junit.Test + +/** 도움말의 '업데이트 확인'이 설치한 곳에 따라 어느 스토어로 보내는지(#500). */ +class UpdateStoreTest { + + private val pkg = "com.sovis.soundvisualizer" + + @Test + fun `Play 스토어에서 설치했으면 Play 다`() { + assertEquals(UpdateStore.Play, UpdateStore.of("com.android.vending")) + } + + @Test + fun `원스토어에서 설치했으면 원스토어다`() { + for (installer in listOf("com.skt.skaf.A000Z00040", "com.skt.skaf.OA00018282", "com.kt.olleh.storefront", "com.lguplus.appstore")) { + assertEquals(installer, UpdateStore.OneStore, UpdateStore.of(installer)) + } + } + + @Test + fun `스토어 밖에서 설치했거나 알 수 없으면 그 밖이다`() { + // GitHub APK 는 패키지 설치 프로그램이나 파일 관리자, 브라우저가 설치한다. adb 로 설치하면 null 이다. + for (installer in listOf(null, "", "com.google.android.packageinstaller", "com.android.packageinstaller", "com.sec.android.app.myfiles", "com.uptodown")) { + assertEquals(installer.toString(), UpdateStore.Other, UpdateStore.of(installer)) + } + } + + @Test + fun `Play 와 그 밖은 Play 스토어 앱으로 열고 없으면 브라우저로 연다`() { + for (store in listOf(UpdateStore.Play, UpdateStore.Other)) { + val links = UpdateLinks.forStore(store, pkg) + assertEquals("market://details?id=$pkg", links.primary) + assertEquals("https://play.google.com/store/apps/details?id=$pkg", links.fallback) + } + } + + @Test + fun `원스토어는 원스토어의 앱 페이지만 연다`() { + val links = UpdateLinks.forStore(UpdateStore.OneStore, pkg) + assertEquals("https://m.onestore.co.kr/v2/ko-kr/app/0001013096", links.primary) + // 원스토어에서 받은 사람을 다른 스토어로 보내지 않는다. + assertNull(links.fallback) + assertTrue(links.primary.startsWith("https://")) + } +} diff --git a/app/src/test/java/com/example/soundvisualizer/language/StringResourcesTest.kt b/app/src/test/java/com/example/soundvisualizer/language/StringResourcesTest.kt index 1af95d2..efb4cbc 100644 --- a/app/src/test/java/com/example/soundvisualizer/language/StringResourcesTest.kt +++ b/app/src/test/java/com/example/soundvisualizer/language/StringResourcesTest.kt @@ -137,6 +137,17 @@ class StringResourcesTest { assertTrue("strings.xml 이 없는 지원 언어 폴더: $missing", missing.isEmpty()) } + @Test + fun `앱 이름은 띄어 쓰지 않고 SoundVisualizer 로 적는다`() { + // 홈 제목은 모든 언어에서 그대로 보인다. 예전에는 "Sound Visualizer" 로 띄어 써서 스토어·사이트·Windows 판과 달랐다(#498). + assertEquals("SoundVisualizer", defaults.strings.getValue("home_title").value) + val spaced = Regex("sound\\s+visuali[sz]er", RegexOption.IGNORE_CASE) + val problems = files.values.flatMap { file -> + file.strings.filterValues { spaced.containsMatchIn(it.value) }.keys.sorted().map { "${file.dir}: $it" } + } + assertTrue("앱 이름을 띄어 썼습니다. SoundVisualizer 로 적습니다:\n${problems.joinToString("\n")}", problems.isEmpty()) + } + /** * 한 폴더의 문구. strings.xml 과, 있으면 분류 탭의 소리 이름(sound_names.xml)을 함께 읽어 * 소리 이름도 같은 규칙(한국어 누락, 없는 키, 따옴표 이스케이프)으로 검사한다. diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 238aae6..5bc9e69 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -875,3 +875,16 @@ App Bundle로 배포하더라도 앱 안에서 고른 언어의 문구가 빠지 - **기기 정보 복사**: 브라우저나 메일 앱이 없을 때의 대안입니다. Android 13부터는 시스템이 복사 안내를 직접 띄우므로 그 아래 버전에서만 토스트를 띄웁니다. - 앱은 주소만 넘기고 여는 것은 브라우저·메일 앱이라 **인터넷 권한이 없습니다.** 열 앱이 없으면(`ActivityNotFoundException`) 죽지 않고 토스트로 안내합니다. - 주소 만들기(인코딩, 본문 합치기, 빈 값 처리)는 `ReportLinkTest`가 기기 없이 검사합니다. + +### 업데이트 확인 (`help/UpdateStore`, `help/UpdateCheck`, #500) + +도움말 탭 **앱 정보** 카드의 **업데이트 확인** 버튼입니다. 인터넷 권한 없이 동작합니다. + +- **어디서 설치했는지**(`PackageManager.getInstallSourceInfo().installingPackageName`)로 갈 곳을 정합니다(`UpdateStore.of`). + - Play 스토어(`com.android.vending`): Play 인앱 업데이트 라이브러리(`com.google.android.play:app-update`)로 기기 안의 Play 스토어 앱에 새 버전이 있는지 묻습니다. 최신이면 카드에 "최신 버전을 쓰고 있습니다"를 보이고(화면 읽어주기가 읽습니다), 새 버전이 있거나 묻지 못하면 Play 스토어의 앱 페이지를 엽니다. + - 원스토어(원스토어 앱·서비스, 예전 통신사 마켓): 원스토어의 앱 페이지를 엽니다. 다른 스토어로 보내지 않습니다. + - 그 밖(GitHub APK, 다른 마켓, adb): Play 스토어의 앱 페이지를 엽니다. 같은 팀 키로 서명해 Play 판이 그 위에 설치됩니다. +- Play 주소는 `market://`에 Play 스토어 패키지를 정해 열고(다른 마켓 앱이 고르는 창에 끼지 않게), Play 스토어 앱이 없으면 `https://play.google.com/…`을 브라우저로 엽니다. 둘 다 열 수 없으면 토스트로 알립니다. +- 앱이 직접 내려받거나 설치하지 않습니다. 스토어 페이지에서 업데이트 버튼을 누르는 것은 사용자입니다. +- 라이브러리는 권한을 더하지 않습니다(라이브러리 매니페스트와 만든 APK 의 `aapt2 dump permissions`로 확인). `InternetPermissionTest`가 매니페스트의 네트워크 권한을 막습니다. 라이브러리 고지는 NOTICE 9번입니다. +- 스토어 고르기와 주소는 `UpdateStoreTest`가 기기 없이 검사합니다.