diff --git a/app/src/main/assets/legal/copyright.html b/app/src/main/assets/legal/copyright.html new file mode 100644 index 0000000..0370288 --- /dev/null +++ b/app/src/main/assets/legal/copyright.html @@ -0,0 +1,141 @@ + + + + + +Copyright Notice / 版权声明 + + + + + +

版权声明

+ +

AudioVibe © 2026。保留所有权利。

+ +

一、开源组件许可

+

本应用使用了以下开源组件,感谢这些项目的贡献:

+ +

jaudiotagger

+ + +

FFmpegKit / FFmpeg

+ + +

ExoPlayer (Media3)

+ + +

Timber

+ + +

AndroidX / Jetpack 系列

+ + +

Coil

+ + +

二、商标

+

"AudioVibe" 及本应用的图标/Logo 为开发者的商标。此处未明确授予的所有权利均予保留。

+ +

三、第三方内容

+

本应用中出现的所有歌曲名称、专辑名称、艺术家名称、封面图片等均为其各自所有者的财产,仅用于用户个人音乐管理目的。

+ +
+ + +

Copyright Notice

+ +

AudioVibe © 2026. All rights reserved.

+ +

1. Open Source Components

+

This application uses the following open-source components. We are grateful for their contributions:

+ +

jaudiotagger

+ + +

FFmpegKit / FFmpeg

+ + +

ExoPlayer (Media3)

+ + +

Timber

+ + +

AndroidX / Jetpack Libraries

+ + +

Coil

+ + +

2. Trademarks

+

"AudioVibe" and the app icon/logo are trademarks of the developer. All rights not expressly granted herein are reserved.

+ +

3. Third-Party Content

+

All song names, album names, artist names, and cover images appearing in the App are the property of their respective owners, used solely for the user's personal music management purposes.

+ + + diff --git a/app/src/main/assets/legal/privacy_policy.html b/app/src/main/assets/legal/privacy_policy.html new file mode 100644 index 0000000..1e4111f --- /dev/null +++ b/app/src/main/assets/legal/privacy_policy.html @@ -0,0 +1,161 @@ + + + + + +Privacy Policy / 隐私政策 + + + + + +

隐私政策

+

最后更新日期:2026年5月27日

+ +

AudioVibe(以下简称"本应用"或"我们")是一款完全本地化的音频工具,所有数据处理均在您的设备上完成,不会上传至任何服务器。

+ +

一、我们收集的信息

+ +

1.1 您主动提供的信息

+ + +

1.2 我们不收集的信息

+ + +

二、我们如何使用信息

+ + +

三、信息存储与安全

+ + +

四、第三方服务

+

本应用集成了以下第三方SDK:

+ + +

五、数据保留

+ + +

六、您的权利

+ + +

七、政策更新

+

我们可能会更新本隐私政策。更新时,我们会在应用内通知您。

+ +

八、联系我们

+

如果您对本隐私政策有任何疑问,请通过以下方式联系我们:

+ + +
+ + +

Privacy Policy

+

Last Updated: May 27, 2026

+ +

AudioVibe ("the App", "we") is a fully local audio tool. All data processing happens on your device and is never uploaded to any server.

+ +

1. Information We Collect

+ +

1.1 Information You Provide

+ + +

1.2 What We DO NOT Collect

+ + +

2. How We Use Information

+ + +

3. Data Storage & Security

+ + +

4. Third-Party Services

+

This app integrates the following third-party SDKs:

+ + +

5. Data Retention

+ + +

6. Your Rights

+ + +

7. Policy Updates

+

We may update this Privacy Policy. We will notify you within the app when changes are made.

+ +

8. Contact Us

+

If you have any questions about this Privacy Policy, please contact us:

+ + + + diff --git a/app/src/main/assets/legal/terms_of_service.html b/app/src/main/assets/legal/terms_of_service.html new file mode 100644 index 0000000..b494b39 --- /dev/null +++ b/app/src/main/assets/legal/terms_of_service.html @@ -0,0 +1,140 @@ + + + + + +Terms of Service / 用户协议 + + + + + +

用户协议

+

最后更新日期:2026年5月27日

+ +

欢迎使用 AudioVibe(以下简称"本应用")。请您仔细阅读本用户协议(以下简称"本协议")。通过安装、使用本应用,即表示您已阅读并同意本协议的全部条款。

+ +

一、服务说明

+

本应用是一款本地音频编辑与音乐管理工具,提供以下核心功能:

+ + +

二、用户责任

+ + +

三、知识产权

+ + +

四、免责声明

+ + +

五、服务变更与终止

+ + +

六、联系我们

+ + +
+ + +

Terms of Service

+

Last Updated: May 27, 2026

+ +

Welcome to AudioVibe ("the App"). Please read these Terms of Service ("Terms") carefully. By installing or using the App, you agree to be bound by these Terms.

+ +

1. Service Description

+

The App is a local audio editing and music management tool providing the following core features:

+ + +

2. User Responsibilities

+ + +

3. Intellectual Property

+ + +

4. Disclaimer

+ + +

5. Service Changes & Termination

+ + +

6. Contact Us

+ + + + diff --git a/app/src/main/java/com/audio/vibe/ui/i18n/AppLanguage.kt b/app/src/main/java/com/audio/vibe/ui/i18n/AppLanguage.kt index 6f10fa1..c089347 100644 --- a/app/src/main/java/com/audio/vibe/ui/i18n/AppLanguage.kt +++ b/app/src/main/java/com/audio/vibe/ui/i18n/AppLanguage.kt @@ -66,6 +66,7 @@ data class AppStrings( val upgrade: String, val help: String, val privacyPolicy: String, + val termsOfService: String, val account: String, val theme: String, val language: String, @@ -85,6 +86,7 @@ data class AppStrings( val feedbackEmailConfirmMessage: String, val feedbackEmailContinue: String, val copyrightNotice: String, + val legalInfo: String, val removeAdsCloudVoices: String, val view: String, val system: String, @@ -240,6 +242,7 @@ private fun android.content.res.Resources.toAppStrings(): AppStrings = AppString upgrade = getString(R.string.upgrade), help = getString(R.string.help), privacyPolicy = getString(R.string.privacy_policy), + termsOfService = getString(R.string.terms_of_service), account = getString(R.string.account), theme = getString(R.string.theme), language = getString(R.string.language), @@ -259,6 +262,7 @@ private fun android.content.res.Resources.toAppStrings(): AppStrings = AppString feedbackEmailConfirmMessage = getString(R.string.feedback_email_confirm_message), feedbackEmailContinue = getString(R.string.feedback_email_continue), copyrightNotice = getString(R.string.copyright_notice), + legalInfo = getString(R.string.legal_info), removeAdsCloudVoices = getString(R.string.remove_ads_cloud_voices), view = getString(R.string.view), system = getString(R.string.follow_system), @@ -370,6 +374,7 @@ private val fallbackStrings = AppStrings( upgrade = "", help = "", privacyPolicy = "", + termsOfService = "", account = "", theme = "", language = "", @@ -389,6 +394,7 @@ private val fallbackStrings = AppStrings( feedbackEmailConfirmMessage = "", feedbackEmailContinue = "", copyrightNotice = "", + legalInfo = "", removeAdsCloudVoices = "", view = "", system = "Follow system", diff --git a/app/src/main/java/com/audio/vibe/ui/settings/LegalPageScreen.kt b/app/src/main/java/com/audio/vibe/ui/settings/LegalPageScreen.kt new file mode 100644 index 0000000..ac90cfb --- /dev/null +++ b/app/src/main/java/com/audio/vibe/ui/settings/LegalPageScreen.kt @@ -0,0 +1,127 @@ +package com.audio.vibe.ui.settings + +import android.webkit.WebView +import android.webkit.WebViewClient +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.padding +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.ChevronRight +import androidx.compose.material3.Icon +import androidx.compose.material3.IconButton +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.remember +import androidx.compose.runtime.setValue +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.dp +import androidx.compose.ui.viewinterop.AndroidView +import com.audio.vibe.ui.components.AudioVibeColors +import com.audio.vibe.ui.components.RoundIcon +import com.audio.vibe.ui.components.VibeCard +import com.audio.vibe.ui.components.VibeScreen +import com.audio.vibe.ui.i18n.LocalAppStrings + +@Composable +fun LegalPageScreen( + title: String, + assetPath: String, + onBack: () -> Unit +) { + val strings = LocalAppStrings.current + var selectedDoc by remember { mutableStateOf?>(null) } + + if (assetPath.isEmpty()) { + if (selectedDoc != null) { + LegalDocumentScreen( + title = selectedDoc!!.first, + assetPath = selectedDoc!!.second, + onBack = { selectedDoc = null } + ) + return + } + + val documents = listOf( + Pair(strings.privacyPolicy, "privacy_policy.html"), + Pair(strings.termsOfService, "terms_of_service.html"), + Pair(strings.copyrightNotice, "copyright.html") + ) + + VibeScreen(title = title, onBack = onBack) { + Column( + modifier = Modifier + .weight(1f) + .padding(start = 20.dp, end = 20.dp, bottom = 16.dp) + ) { + VibeCard(modifier = Modifier.fillMaxWidth()) { + Column(modifier = Modifier.padding(14.dp)) { + documents.forEach { (docTitle, docPath) -> + Row( + modifier = Modifier + .fillMaxWidth() + .height(56.dp) + .clickable { selectedDoc = Pair(docTitle, docPath) } + .padding(horizontal = 2.dp), + verticalAlignment = Alignment.CenterVertically + ) { + Text( + docTitle, + color = AudioVibeColors.Ink, + fontWeight = FontWeight.Medium, + modifier = Modifier + .padding(start = 14.dp) + .weight(1f) + ) + IconButton(onClick = { selectedDoc = Pair(docTitle, docPath) }) { + Icon( + Icons.Default.ChevronRight, + null, + tint = AudioVibeColors.Muted + ) + } + } + } + } + } + } + } + return + } + + LegalDocumentScreen(title = title, assetPath = assetPath, onBack = onBack) +} + +@Composable +private fun LegalDocumentScreen( + title: String, + assetPath: String, + onBack: () -> Unit +) { + VibeScreen(title = title, onBack = onBack) { + AndroidView( + factory = { context -> + WebView(context).apply { + setBackgroundColor(android.graphics.Color.WHITE) + webViewClient = WebViewClient() + settings.apply { + javaScriptEnabled = false + allowFileAccess = false + loadWithOverviewMode = true + useWideViewPort = true + } + loadUrl("file:///android_asset/legal/$assetPath") + } + }, + modifier = Modifier + .weight(1f) + .padding(horizontal = 8.dp) + ) + } +} diff --git a/app/src/main/java/com/audio/vibe/ui/settings/SettingsScreen.kt b/app/src/main/java/com/audio/vibe/ui/settings/SettingsScreen.kt index 86d87bd..7fa5035 100644 --- a/app/src/main/java/com/audio/vibe/ui/settings/SettingsScreen.kt +++ b/app/src/main/java/com/audio/vibe/ui/settings/SettingsScreen.kt @@ -19,7 +19,7 @@ import androidx.compose.material.icons.filled.ChevronRight import androidx.compose.material.icons.filled.Feedback import androidx.compose.material.icons.filled.Language import androidx.compose.material.icons.filled.Person -import androidx.compose.material.icons.filled.PrivacyTip + import androidx.compose.material.icons.filled.Shield import androidx.compose.material.icons.filled.Style import androidx.compose.material3.AlertDialog @@ -43,6 +43,8 @@ import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import android.widget.Toast +import androidx.compose.foundation.background +import androidx.compose.ui.graphics.Color import com.audio.vibe.common.feedback.FeedbackShare import com.audio.vibe.ui.components.AudioVibeColors import com.audio.vibe.ui.components.VibeCard @@ -62,15 +64,23 @@ fun SettingsScreen( ) { val strings = LocalAppStrings.current var dialog by remember { mutableStateOf(null) } + var legalPage by remember { mutableStateOf?>(null) } val items = listOf( Setting(strings.account, Icons.Default.Person), Setting(strings.theme, Icons.Default.Style), Setting(strings.language, Icons.Default.Language), Setting(strings.helpAndFeedback, Icons.Default.Feedback), - Setting(strings.privacyPolicy, Icons.Default.PrivacyTip), - Setting(strings.copyrightNotice, Icons.Default.Shield) + Setting(strings.legalInfo, Icons.Default.Shield) ) + if (legalPage != null) { + LegalPageScreen( + title = legalPage!!.first, + assetPath = legalPage!!.second, + onBack = { legalPage = null } + ) + return + } VibeScreen(title = strings.settings, onBack = onBack) { Column( modifier = Modifier @@ -85,7 +95,9 @@ fun SettingsScreen( ) { Row( verticalAlignment = Alignment.CenterVertically, - modifier = Modifier.fillMaxSize() + modifier = Modifier + .fillMaxSize() + .padding(14.dp) ) { RoundIcon(Icons.Default.Shield, strings.premium) Column( @@ -108,14 +120,23 @@ fun SettingsScreen( PrimaryButton(strings.view, onClick = toPremium) } } - VibeCard(modifier = Modifier.fillMaxWidth()) { - Column { + VibeCard( + modifier = Modifier + .fillMaxWidth() + ) { + Column(modifier = Modifier.padding(14.dp)) { items.forEachIndexed { index, item -> + val onClick = { + when (item.label) { + strings.legalInfo -> legalPage = Pair(strings.legalInfo, "") + else -> dialog = item.label + } + } Row( modifier = Modifier .fillMaxWidth() .height(56.dp) - .clickable { dialog = item.label } + .clickable(onClick = onClick) .padding(horizontal = 2.dp), verticalAlignment = Alignment.CenterVertically ) { @@ -143,7 +164,7 @@ fun SettingsScreen( color = AudioVibeColors.Muted, fontSize = 12.sp ) - IconButton(onClick = { dialog = item.label }) { + IconButton(onClick = onClick) { Icon( Icons.Default.ChevronRight, null, diff --git a/app/src/main/res/drawable-nodpi/img_edit_track.png b/app/src/main/res/drawable-nodpi/img_edit_track.png index 19ba440..7fd38e5 100644 Binary files a/app/src/main/res/drawable-nodpi/img_edit_track.png and b/app/src/main/res/drawable-nodpi/img_edit_track.png differ diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 5d5cd63..f8fe146 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -26,6 +26,8 @@ アップグレード ヘルプ プライバシーポリシー + 利用規約 + 規約と告知 アカウント テーマ 言語 diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index a85c50b..4400e60 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -26,6 +26,8 @@ 업그레이드 도움말 개인정보 처리방침 + 이용약관 + 약관 및 고지 계정 테마 언어 diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index a46cf63..810eb4e 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -26,6 +26,8 @@ Обновить Справка Политика конфиденциальности + Условия использования + Условия и уведомления Аккаунт Тема Язык diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index c27f549..5e4d236 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -26,6 +26,8 @@ 升級 說明 隱私權政策 + 用戶協議 + 條款與聲明 帳戶 主題 語言 diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index f8e198f..cb3d2ce 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -26,6 +26,8 @@ 升级 帮助 隐私政策 + 用户协议 + 条款与声明 账户 主题 语言 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f8129bf..021d215 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -27,6 +27,8 @@ Upgrade Help Privacy Policy + Terms of Service + Terms & Notices Account Theme Language