Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/cornell-dti/cornell-go in…
Browse files Browse the repository at this point in the history
…to cl893/fix-race-conditions
  • Loading branch information
BrianLa0616 committed Oct 3, 2024
2 parents 678b681 + 1371f67 commit 85014e6
Show file tree
Hide file tree
Showing 10 changed files with 1,422 additions and 46 deletions.
2 changes: 1 addition & 1 deletion game/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
.pub-cache/
.pub/
/build/
pubspec.lock
# pubspec.lock

# Web related

Expand Down
59 changes: 35 additions & 24 deletions game/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,20 @@ PODS:
- Toast
- geolocator_apple (1.2.0):
- Flutter
- Google-Maps-iOS-Utils (5.0.0):
- GoogleMaps (~> 8.0)
- google_maps_flutter_ios (0.0.1):
- Flutter
- GoogleMaps (< 9.0, >= 8.4)
- Google-Maps-iOS-Utils (< 7.0, >= 5.0)
- GoogleMaps (< 10.0, >= 8.4)
- google_sign_in_ios (0.0.1):
- AppAuth (>= 1.7.4)
- Flutter
- FlutterMacOS
- GoogleSignIn (~> 7.0.0)
- GoogleAppMeasurement (10.25.0):
- GoogleAppMeasurement/AdIdSupport (= 10.25.0)
- GoogleSignIn (~> 7.1)
- GTMSessionFetcher (>= 3.4.0)
- GoogleAppMeasurement (10.24.0):
- GoogleAppMeasurement/AdIdSupport (= 10.24.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
- GoogleUtilities/MethodSwizzler (~> 7.11)
- GoogleUtilities/Network (~> 7.11)
Expand All @@ -89,11 +94,11 @@ PODS:
- GoogleMaps/Base (8.4.0)
- GoogleMaps/Maps (8.4.0):
- GoogleMaps/Base
- GoogleSignIn (7.0.0):
- AppAuth (~> 1.5)
- GTMAppAuth (< 3.0, >= 1.3)
- GTMSessionFetcher/Core (< 4.0, >= 1.1)
- GoogleUtilities/AppDelegateSwizzler (7.13.2):
- GoogleSignIn (7.1.0):
- AppAuth (< 2.0, >= 1.7.3)
- GTMAppAuth (< 5.0, >= 4.1.1)
- GTMSessionFetcher/Core (~> 3.3)
- GoogleUtilities/AppDelegateSwizzler (7.13.0):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
Expand Down Expand Up @@ -121,10 +126,14 @@ PODS:
- GoogleUtilities/UserDefaults (7.13.2):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- GTMAppAuth (2.0.0):
- AppAuth/Core (~> 1.6)
- GTMSessionFetcher/Core (< 4.0, >= 1.5)
- GTMSessionFetcher/Core (3.4.1)
- GTMAppAuth (4.1.1):
- AppAuth/Core (~> 1.7)
- GTMSessionFetcher/Core (< 4.0, >= 3.3)
- GTMSessionFetcher (3.5.0):
- GTMSessionFetcher/Full (= 3.5.0)
- GTMSessionFetcher/Core (3.5.0)
- GTMSessionFetcher/Full (3.5.0):
- GTMSessionFetcher/Core
- location (0.0.1):
- Flutter
- nanopb (2.30910.0):
Expand Down Expand Up @@ -174,6 +183,7 @@ SPEC REPOS:
- FirebaseCore
- FirebaseCoreInternal
- FirebaseInstallations
- Google-Maps-iOS-Utils
- GoogleAppMeasurement
- GoogleMaps
- GoogleSignIn
Expand Down Expand Up @@ -227,26 +237,27 @@ SPEC CHECKSUMS:
FirebaseInstallations: 91950fe859846fff0fbd296180909dd273103b09
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_config: f48f0d47a284f1791aacce2687eabb3309ba7a41
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
fluttertoast: 9f2f8e81bb5ce18facb9748d7855bf5a756fe3db
flutter_secure_storage: d33dac7ae2ea08509be337e775f6b59f1ff45f12
fluttertoast: e9a18c7be5413da53898f660530c56f35edfba9c
geolocator_apple: 6cbaf322953988e009e5ecb481f07efece75c450
google_maps_flutter_ios: c454f18e0e22df6ac0e9f2a4df340858f5a3680c
google_sign_in_ios: 7c205d44fdc266640375c6ac33d96ba3983dbe02
GoogleAppMeasurement: 9abf64b682732fed36da827aa2a68f0221fd2356
Google-Maps-iOS-Utils: 66d6de12be1ce6d3742a54661e7a79cb317a9321
google_maps_flutter_ios: e31555a04d1986ab130f2b9f24b6cdc861acc6d3
google_sign_in_ios: 07375bfbf2620bc93a602c0e27160d6afc6ead38
GoogleAppMeasurement: f3abf08495ef2cba7829f15318c373b8d9226491
GoogleMaps: 8939898920281c649150e0af74aa291c60f2e77d
GoogleSignIn: b232380cf495a429b8095d3178a8d5855b42e842
GoogleUtilities: c56430aef51a1aa57b25da78c3f8397e522c67b7
GTMAppAuth: 99fb010047ba3973b7026e45393f51f27ab965ae
GTMSessionFetcher: 8000756fc1c19d2e5697b90311f7832d2e33f6cd
GoogleSignIn: d4281ab6cf21542b1cfaff85c191f230b399d2db
GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152
GTMAppAuth: f69bd07d68cd3b766125f7e072c45d7340dea0de
GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
location: d5cf8598915965547c3f36761ae9cc4f4e87d22e
nanopb: 438bc412db1928dac798aa6fd75726007be04262
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
platform_device_id: 81b3e2993881f87d0c82ef151dc274df4869aef5
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
Toast: 1f5ea13423a1e6674c4abdac5be53587ae481c4e
url_launcher_ios: 6116280ddcfe98ab8820085d8d76ae7449447586
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe

PODFILE CHECKSUM: 7e4597b528a05ac7f6e3e38392cb0f170ba73e9f

Expand Down
5 changes: 4 additions & 1 deletion game/lib/api/geopoint.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ class GeoPoint {
return Future.error(
'Location permissions are permanently denied, we cannot request permissions.');
}
final pos = await Geolocator.getCurrentPosition();
final pos = await Geolocator.getCurrentPosition(
// Ideally we would use best accuracy, but it doesn't work for some reason
// desiredAccuracy: LocationAccuracy.best
desiredAccuracy: LocationAccuracy.medium);
return GeoPoint(pos.latitude, pos.longitude, pos.heading);
} catch (e) {
print(e);
Expand Down
2 changes: 2 additions & 0 deletions game/lib/splash_page/splash_page.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* This file is the login page for the app. It is called splash because of an old design choice that we didn't change. It allows the user to sign in with their Cornell email through google sign in or continue as a guest. When the user tries to log in, we verify the user with their information, the important ones being google authentication and location. */

import 'package:flutter/material.dart';
import 'package:game/api/game_client_dto.dart';
import 'package:google_sign_in/google_sign_in.dart';
Expand Down
Loading

0 comments on commit 85014e6

Please sign in to comment.