From 280ead028975e89ad0e43a36a08e5c87daa0811d Mon Sep 17 00:00:00 2001 From: AbdallahMehiz Date: Sat, 19 Oct 2024 22:48:51 +0100 Subject: [PATCH] chore: bump versions and put the privacy policy in the repository --- .../mehiz/mpvkt/ui/preferences/AboutScreen.kt | 23 ++++++---- app/src/main/res/values/strings.xml | 2 + docs/privacy_policy.html | 44 +++++++++++++++++++ gradle/libs.versions.toml | 24 +++++----- 4 files changed, 72 insertions(+), 21 deletions(-) create mode 100644 docs/privacy_policy.html diff --git a/app/src/main/java/live/mehiz/mpvkt/ui/preferences/AboutScreen.kt b/app/src/main/java/live/mehiz/mpvkt/ui/preferences/AboutScreen.kt index 20f8c20..0984b60 100644 --- a/app/src/main/java/live/mehiz/mpvkt/ui/preferences/AboutScreen.kt +++ b/app/src/main/java/live/mehiz/mpvkt/ui/preferences/AboutScreen.kt @@ -93,7 +93,7 @@ object AboutScreen : Screen() { id = R.string.pref_about_app_version_formatted, BuildConfig.BUILD_TYPE.replaceFirstChar { it.uppercaseChar() }, BuildConfig.VERSION_NAME, - ) + ), ) }, onClick = { @@ -105,6 +105,17 @@ object AboutScreen : Screen() { title = { Text(text = stringResource(id = R.string.pref_about_oss_libraries)) }, onClick = { navigator.push(LibrariesScreen) }, ) + Preference( + title = { Text(text = stringResource(id = R.string.pref_about_privacy_policy)) }, + onClick = { + context.startActivity( + Intent( + Intent.ACTION_VIEW, + Uri.parse(context.getString(R.string.privacy_policy_url)), + ), + ) + }, + ) } Row( Modifier.fillMaxWidth(), @@ -133,15 +144,9 @@ object LibrariesScreen : Screen() { Scaffold( topBar = { TopAppBar( - title = { - Text(text = stringResource(R.string.pref_about_oss_libraries)) - }, + title = { Text(text = stringResource(R.string.pref_about_oss_libraries)) }, navigationIcon = { - IconButton( - onClick = { - navigator.pop() - }, - ) { + IconButton(onClick = navigator::pop) { Icon(imageVector = Icons.AutoMirrored.Default.ArrowBack, contentDescription = null) } }, diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7077d71..ae2c2fa 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -115,6 +115,7 @@ App version %s %s Open source libraries + Privacy policy Add external subtitles Add external audio tracks @@ -208,6 +209,7 @@ %.2f\%% https://github.com/abdallahmehiz/mpvKt + https://abdallahmehiz.github.io/mpvKt/privacy_policy.html Control player with media buttons Swap volume and brightness slider Hide player control time diff --git a/docs/privacy_policy.html b/docs/privacy_policy.html new file mode 100644 index 0000000..f66dd76 --- /dev/null +++ b/docs/privacy_policy.html @@ -0,0 +1,44 @@ + + + + + + Privacy Policy - mpvKt + + +

Privacy Policy for mpvKt

+

+ Welcome to mpvKt, a media player based on mpv-android. We value your privacy and are committed to + protecting it. This Privacy Policy outlines our current practices regarding the collection, use, + and disclosure of your information when you use our application. +

+ +

Data Collection

+

+ At this time, mpvKt does not collect, store, or process any personal data or information from its + users. We believe in providing a seamless and private media playback experience. +

+ +

Changes to This Privacy Policy

+

+ While we currently do not collect any data, we reserve the right to change our data collection + practices and this Privacy Policy at any time. Any changes will be posted on this page with an + updated effective date. We encourage you to review this Privacy Policy periodically for any + updates or changes. +

+ +

Contact Us

+

+ If you have any questions or concerns about this Privacy Policy, please contact us at + abdallahmehiz0@gmail.com. +

+ +

Effective Date

+

This Privacy Policy is effective as of Aug 8th 2024.

+ +

+ By using mpvKt, you acknowledge that you have read and understood this Privacy Policy. Thank you + for choosing mpvKt. +

+ + \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 63fabe1..413d4da 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,15 +1,15 @@ [versions] -agp = "8.5.2" -kotlin = "2.0.0" +agp = "8.7.1" +kotlin = "2.0.21" coreKtx = "1.13.1" -lifecycleRuntimeKtx = "2.8.5" -activityCompose = "1.9.2" -composeBom = "2024.09.01" -koin = "4.0.0-RC2" -voyager = "1.0.0" +lifecycleRuntimeKtx = "2.8.6" +composeBom = "2024.10.00" +activityCompose = "1.9.3" +koin = "4.0.0" +voyager = "1.1.0-beta03" material3Android = "1.3.0" room = "2.6.1" -detekt = "1.23.6" +detekt = "1.23.7" about-libs = "11.2.3" [libraries] @@ -23,7 +23,7 @@ androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" } androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" } androidx-material3-android = { group = "androidx.compose.material3", name = "material3-android", version.ref = "material3Android" } androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version = "1.7.0" } -androidx-material3-icons-extended = { group = "androidx.compose.material", name = "material-icons-extended", version = "1.7.1" } +androidx-material3-icons-extended = { group = "androidx.compose.material", name = "material-icons-extended", version = "1.7.4" } androidx-compose-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout-compose", version = "1.0.1" } androidx-compose-animation-graphics = { group = "androidx.compose.animation", name = "animation-graphics-android" } androidx-preferences-ktx = { group = "androidx.preference", name = "preference-ktx", version = "1.2.1" } @@ -52,21 +52,21 @@ detekt-gradle-plugin = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plu detekt-formatter = { module = "io.gitlab.arturbosch.detekt:detekt-formatting", version.ref = "detekt"} detekt-rules-compose = { module = "io.nlopez.compose.rules:detekt", version = "0.4.10" } -kotlinx-immutable-collections = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version = "0.3.7" } +kotlinx-immutable-collections = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version = "0.3.8" } truetype-parser = { module = "io.github.yubyf:truetypeparser-light", version = "2.1.4" } fsaf = { module = "com.github.K1rakishou:Fuck-Storage-Access-Framework", version = "1.1.3" } about-libs-core = { module = "com.mikepenz:aboutlibraries-core", version.ref = "about-libs" } about-libs-ui-m3 = { module = "com.mikepenz:aboutlibraries-compose-m3", version.ref = "about-libs" } -simple-icons = { module = "br.com.devsrsouza.compose.icons:simple-icons", version = "1.1.0" } +simple-icons = { module = "br.com.devsrsouza.compose.icons:simple-icons", version = "1.1.1" } [bundles] koin = ["koin-core", "koin-android", "koin-compose"] voyager = ["voyager-navigator", "voyager-transitions"] about-libs = ["about-libs-core", "about-libs-ui-m3"] [plugins] -ksp = { id = "com.google.devtools.ksp", version = "2.0.0-1.0.23" } +ksp = { id = "com.google.devtools.ksp", version = "2.0.21-1.0.25" } android-application = { id = "com.android.application", version.ref = "agp" } jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } kotlin-compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }