Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle permission on a measure level #411

Merged
merged 15 commits into from
Jul 22, 2024
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
4AAD24F0DD03DFADC1E7F711 /* Pods-Runner.release.xcconfig */,
8570FBD7F7AA5A6435D33A09 /* Pods-Runner.profile.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
Expand Down Expand Up @@ -492,7 +491,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 8TB3T6MAZG;
DEVELOPMENT_TEAM = 59TCTNUBMQ;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down
3 changes: 2 additions & 1 deletion apps/carp_mobile_sensing_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'dart:async';

import 'package:flutter/material.dart' hide TimeOfDay;
import 'package:flutter/services.dart';
import 'package:permission_handler/permission_handler.dart';

import 'package:carp_serializable/carp_serializable.dart';
import 'package:carp_core/carp_core.dart';
Expand All @@ -18,7 +19,7 @@ import 'package:carp_apps_package/apps.dart';
// import 'package:movisens_flutter/movisens_flutter.dart';
import 'package:carp_movisens_package/carp_movisens_package.dart';
import 'package:carp_health_package/health_package.dart';
// import 'package:health/health.dart';
import 'package:health/health.dart';
import 'package:carp_movesense_package/carp_movesense_package.dart';

import 'package:carp_webservices/carp_auth/carp_auth.dart';
Expand Down
3 changes: 3 additions & 0 deletions apps/carp_mobile_sensing_app/lib/src/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class LoadingPage extends StatelessWidget {
///
/// Returns true when successfully done.
Future<bool> init(BuildContext context) async {
// Try to get location permissions as the first thing.
await Permission.locationWhenInUse.request();

// Initialize and use the CAWS backend if not in local deployment mode
if (bloc.deploymentMode != DeploymentMode.local) {
await CarpBackend().initialize();
Expand Down
Loading
Loading