Skip to content

Commit

Permalink
adding privacy policy link to google health connect and bumping packa…
Browse files Browse the repository at this point in the history
…ge versions
  • Loading branch information
Panosfunk committed Feb 5, 2025
1 parent 280ff79 commit 36a5d22
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 33 deletions.
10 changes: 9 additions & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@

<data android:scheme="carp-studies" />
</intent-filter>
</activity>
<activity
android:name=".PermissionsRationaleActivity"
android:exported="true">
<!-- Deep linking -->
<meta-data
android:name="flutter_deeplinking_enabled"
android:value="true" />

<!-- Intention to show Permissions screen for Health Connect API -->
<intent-filter>
Expand All @@ -178,7 +186,7 @@
<activity-alias
android:name="ViewPermissionUsageActivity"
android:exported="true"
android:targetActivity=".MainActivity"
android:targetActivity=".PermissionsRationaleActivity"
android:permission="android.permission.START_VIEW_PERMISSION_USAGE">
<intent-filter>
<action android:name="android.intent.action.VIEW_PERMISSION_USAGE" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package dk.carp.studies_app

import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.activity.ComponentActivity

class PermissionsRationaleActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

val privacyPolicyUrl = "https://carp.cachet.dk/privacy-policy-app"
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(privacyPolicyUrl))
startActivity(intent)

finish() // Close the activity immediately after opening the link
}
}
64 changes: 32 additions & 32 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ packages:
dependency: "direct main"
description:
name: appcheck
sha256: "0fcbe15b6bba67027c6f94bd177b9b319e019b51e0b49e9cd80486448c4a1909"
sha256: "531ae96307c7362ceeeb92ab6ec229cca937ce1bda63f2a7d0319f91958df09e"
url: "https://pub.dev"
source: hosted
version: "1.5.2"
version: "1.5.3"
archive:
dependency: transitive
description:
Expand Down Expand Up @@ -74,10 +74,10 @@ packages:
dependency: transitive
description:
name: audio_session
sha256: b2a26ba8b7efa1790d6460e82971fde3e398cfbe2295df9dea22f3499d2c12a7
sha256: "2b7fff16a552486d078bfc09a8cde19f426dc6d6329262b684182597bec5b1ac"
url: "https://pub.dev"
source: hosted
version: "0.1.23"
version: "0.1.25"
audio_streamer:
dependency: transitive
description:
Expand Down Expand Up @@ -210,10 +210,10 @@ packages:
dependency: transitive
description:
name: camera_avfoundation
sha256: "3f81ee3e88a79b0b010f0233d42625926299551b05d5dc995267a0b35bc33247"
sha256: "55eb9c216f25339a3faa55fc42826e2c4a45becefa1387fd50fce6ae9dd0c574"
url: "https://pub.dev"
source: hosted
version: "0.9.18"
version: "0.9.18+1"
camera_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -716,10 +716,10 @@ packages:
dependency: "direct main"
description:
name: flutter_markdown
sha256: e37f4c69a07b07bb92622ef6b131a53c9aae48f64b176340af9e8e5238718487
sha256: b3ff1ef5fb3924ee02b4d38b974ffae3969d50603e68787684ee9dd45f6f144a
url: "https://pub.dev"
source: hosted
version: "0.7.5"
version: "0.7.6+1"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
Expand Down Expand Up @@ -838,10 +838,10 @@ packages:
dependency: transitive
description:
name: glob
sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63"
sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.1.3"
globbing:
dependency: transitive
description:
Expand All @@ -854,10 +854,10 @@ packages:
dependency: "direct main"
description:
name: go_router
sha256: "7c2d40b59890a929824f30d442e810116caf5088482629c894b9e4478c67472d"
sha256: "9b736a9fa879d8ad6df7932cbdcc58237c173ab004ef90d8377923d7ad731eaa"
url: "https://pub.dev"
source: hosted
version: "14.6.3"
version: "14.7.2"
google_fonts:
dependency: "direct main"
description:
Expand Down Expand Up @@ -982,18 +982,18 @@ packages:
dependency: transitive
description:
name: just_audio
sha256: "1a1eb86e7d81e69a1d36943f2b3efd62dece3dad2cafd9ec2e62e6db7c04d9b7"
sha256: "50ed9f0ba88012eabdef7519ba6040bdbcf6c6667ebd77736fb25c196c98c0f3"
url: "https://pub.dev"
source: hosted
version: "0.9.43"
version: "0.9.44"
just_audio_platform_interface:
dependency: transitive
description:
name: just_audio_platform_interface
sha256: "0243828cce503c8366cc2090cefb2b3c871aa8ed2f520670d76fd47aa1ab2790"
sha256: "271b93b484c6f494ecd72a107fffbdb26b425f170c665b9777a0a24a726f2f24"
url: "https://pub.dev"
source: hosted
version: "4.3.0"
version: "4.4.0"
just_audio_web:
dependency: transitive
description:
Expand Down Expand Up @@ -1382,18 +1382,18 @@ packages:
dependency: transitive
description:
name: package_info_plus
sha256: "739e0a5c3c4055152520fa321d0645ee98e932718b4c8efeeb51451968fe0790"
sha256: c447a3c3e7be4addf129b8f9ab6a4bd5d166b78918223e223b61fddf4d07e254
url: "https://pub.dev"
source: hosted
version: "8.1.3"
version: "8.2.0"
package_info_plus_platform_interface:
dependency: transitive
description:
name: package_info_plus_platform_interface
sha256: a5ef9986efc7bf772f2696183a3992615baa76c1ffb1189318dd8803778fb05b
sha256: "205ec83335c2ab9107bbba3f8997f9356d72ca3c715d2f038fc773d0366b4c76"
url: "https://pub.dev"
source: hosted
version: "3.0.2"
version: "3.1.0"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -1670,18 +1670,18 @@ packages:
dependency: transitive
description:
name: shared_preferences
sha256: a752ce92ea7540fc35a0d19722816e04d0e72828a4200e83a98cf1a1eb524c9a
sha256: "688ee90fbfb6989c980254a56cb26ebe9bb30a3a2dff439a78894211f73de67a"
url: "https://pub.dev"
source: hosted
version: "2.3.5"
version: "2.5.1"
shared_preferences_android:
dependency: transitive
description:
name: shared_preferences_android
sha256: "138b7bbbc7f59c56236e426c37afb8f78cbc57b094ac64c440e0bb90e380a4f5"
sha256: "650584dcc0a39856f369782874e562efd002a9c94aec032412c9eb81419cce1f"
url: "https://pub.dev"
source: hosted
version: "2.4.2"
version: "2.4.4"
shared_preferences_foundation:
dependency: transitive
description:
Expand Down Expand Up @@ -2099,10 +2099,10 @@ packages:
dependency: transitive
description:
name: vector_graphics
sha256: "27d5fefe86fb9aace4a9f8375b56b3c292b64d8c04510df230f849850d912cb7"
sha256: "44cc7104ff32563122a929e4620cf3efd584194eec6d1d913eb5ba593dbcf6de"
url: "https://pub.dev"
source: hosted
version: "1.1.15"
version: "1.1.18"
vector_graphics_codec:
dependency: transitive
description:
Expand Down Expand Up @@ -2155,18 +2155,18 @@ packages:
dependency: transitive
description:
name: video_player_platform_interface
sha256: "229d7642ccd9f3dc4aba169609dd6b5f3f443bb4cc15b82f7785fcada5af9bbb"
sha256: df534476c341ab2c6a835078066fc681b8265048addd853a1e3c78740316a844
url: "https://pub.dev"
source: hosted
version: "6.2.3"
version: "6.3.0"
video_player_web:
dependency: transitive
description:
name: video_player_web
sha256: "881b375a934d8ebf868c7fb1423b2bfaa393a0a265fa3f733079a86536064a10"
sha256: "3ef40ea6d72434edbfdba4624b90fd3a80a0740d260667d91e7ecd2d79e13476"
url: "https://pub.dev"
source: hosted
version: "2.3.3"
version: "2.3.4"
vm_service:
dependency: transitive
description:
Expand Down Expand Up @@ -2227,10 +2227,10 @@ packages:
dependency: transitive
description:
name: win32
sha256: "154360849a56b7b67331c21f09a386562d88903f90a1099c5987afc1912e1f29"
sha256: daf97c9d80197ed7b619040e86c8ab9a9dad285e7671ee7390f9180cc828a51e
url: "https://pub.dev"
source: hosted
version: "5.10.0"
version: "5.10.1"
win32_registry:
dependency: transitive
description:
Expand Down

0 comments on commit 36a5d22

Please sign in to comment.