Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "spring2025-81f5b"
}
}
Binary file modified .gitignore
Binary file not shown.
94 changes: 94 additions & 0 deletions .vscode/launch.json
Copy link
Contributor

@aholt014 aholt014 Mar 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop this commit - doesn't need to be merged

Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Flutter",
"type": "dart",
"request": "launch",
"program": "lib/main.dart"
},
{
"name": "team_a",
"cwd": "team_a",
"request": "launch",
"type": "dart"
},
{
"name": "team_a (profile mode)",
"cwd": "team_a",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "team_a (release mode)",
"cwd": "team_a",
"request": "launch",
"type": "dart",
"flutterMode": "release"
},
{
"name": "stml_application",
"cwd": "STML\\stml_application",
"request": "launch",
"type": "dart"
},
{
"name": "stml_application (profile mode)",
"cwd": "STML\\stml_application",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "stml_application (release mode)",
"cwd": "STML\\stml_application",
"request": "launch",
"type": "dart",
"flutterMode": "release"
},
{
"name": "teamA",
"cwd": "team_a\\teamA",
"request": "launch",
"type": "dart"
},
{
"name": "teamA (profile mode)",
"cwd": "team_a\\teamA",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "teamA (release mode)",
"cwd": "team_a\\teamA",
"request": "launch",
"type": "dart",
"flutterMode": "release"
},
{
"name": "yappy",
"cwd": "team_b\\yappy",
"request": "launch",
"type": "dart"
},
{
"name": "yappy (profile mode)",
"cwd": "team_b\\yappy",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "yappy (release mode)",
"cwd": "team_b\\yappy",
"request": "launch",
"type": "dart",
"flutterMode": "release"
}
]
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cmake.ignoreCMakeListsMissing": true,
"dart.flutterSdkPath": "C:\\flutter_windows_3.29.0-stable\\flutter"
}
2 changes: 1 addition & 1 deletion STML/stml_application/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
android {
namespace = "com.umgc.memoryminder"
compileSdk = 35
ndkVersion = "27.0.12077973"
ndkVersion = "29.0.13113456"

compileOptions {
coreLibraryDesugaringEnabled true
Expand Down
18 changes: 15 additions & 3 deletions STML/stml_application/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<!-- Microphone Permission (Required for Recording) -->
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.CALL_PHONE"/>

<!-- Storage Permissions (Required for Saving Audio Files) -->
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO"/>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CALL_PHONE"/>

<!-- Required for foreground location tracking -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

<!-- Required for background location access (Android 10+) -->
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>

<!-- Required for foreground service usage (Android 9+) -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

<uses-permission android:name="android.permission.INTERNET"/>

<application
android:label="memoryminder"
Expand Down
16 changes: 16 additions & 0 deletions STML/stml_application/lib/services/help_service.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import 'package:firebase_messaging/firebase_messaging.dart';

class HelpService {
final FirebaseMessaging _firebaseMessaging = FirebaseMessaging.instance;

Future<void> sendHelpNotification() async {
// Remplacez 'caregiver_device_token' par le token du soignant
await _firebaseMessaging.sendMessage(
to: 'caregiver_device_token',
data: {
'type': 'help_request',
'message': 'The STML user has requested help.',
},
);
}
}
Loading
Loading