Skip to content

Commit

Permalink
Merge pull request #25 from BU-Spark/sso_login
Browse files Browse the repository at this point in the history
SSO login
  • Loading branch information
jaimeyfrank authored Oct 30, 2024
2 parents 8752718 + 660b0b8 commit c2252c1
Show file tree
Hide file tree
Showing 20 changed files with 1,175 additions and 290 deletions.
8 changes: 6 additions & 2 deletions bu_passport/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
id 'com.google.gms.google-services'
}

def localProperties = new Properties()
Expand Down Expand Up @@ -45,12 +46,14 @@ android {
applicationId "com.example.bu_passport"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
minSdkVersion 20
minSdkVersion 23
manifestPlaceholders += [
'appAuthRedirectScheme': 'com.example.bu_passport'
]
}

buildTypes {
Expand All @@ -68,4 +71,5 @@ flutter {

dependencies {
implementation 'androidx.multidex:multidex:2.0.1'
implementation platform('com.google.firebase:firebase-bom:33.4.0')
}
5 changes: 5 additions & 0 deletions bu_passport/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
plugins {
// Add the dependency for the Google services Gradle plugin
id 'com.google.gms.google-services' version '4.4.2' apply false
}

allprojects {
repositories {
google()
Expand Down
55 changes: 55 additions & 0 deletions bu_passport/android/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"project_info": {
"project_number": "429645705382",
"firebase_url": "https://se-bu-passport-default-rtdb.firebaseio.com",
"project_id": "se-bu-passport",
"storage_bucket": "se-bu-passport.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:429645705382:android:9f0f8af5edb9341147c467",
"android_client_info": {
"package_name": "com.example.bu_passport"
}
},
"oauth_client": [
{
"client_id": "429645705382-eaea9sqfmj8st3mn8o2t9jgnbacih67m.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.example.bu_passport",
"certificate_hash": "d20f358562edf29f6d34f9d5ab57697734bc4157"
}
},
{
"client_id": "429645705382-qdv5dcrft8ifi50gs2d1e7psu7e22nfq.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCoIG5QDtwfePSWyYQWOBZQgMLy3RPetc4"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "429645705382-qdv5dcrft8ifi50gs2d1e7psu7e22nfq.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "429645705382-1j4106od8lrq0ceoetqln2c928v18850.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.example.buPassport.RunnerTests"
}
}
]
}
}
}
],
"configuration_version": "1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-all.zip
1 change: 1 addition & 0 deletions bu_passport/firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"flutter":{"platforms":{"android":{"default":{"projectId":"crypto-monolith-417321","appId":"1:368645643837:android:9762661e16a81671965454","fileOutput":"android/app/google-services.json"}},"ios":{"default":{"projectId":"crypto-monolith-417321","appId":"1:368645643837:ios:259eeb31aac82760965454","uploadDebugSymbols":false,"fileOutput":"ios/Runner/GoogleService-Info.plist"}},"macos":{"default":{"projectId":"crypto-monolith-417321","appId":"1:368645643837:ios:259eeb31aac82760965454","uploadDebugSymbols":false,"fileOutput":"macos/Runner/GoogleService-Info.plist"}},"dart":{"lib/firebase_options.dart":{"projectId":"crypto-monolith-417321","configurations":{"android":"1:368645643837:android:9762661e16a81671965454","ios":"1:368645643837:ios:259eeb31aac82760965454","macos":"1:368645643837:ios:259eeb31aac82760965454","web":"1:368645643837:web:0c7de7191eb84a8a965454","windows":"1:368645643837:web:c8ea8678917e5ca3965454"}}}}}}
18 changes: 0 additions & 18 deletions bu_passport/ios/Flutter/Flutter.podspec

This file was deleted.

9 changes: 4 additions & 5 deletions bu_passport/ios/Flutter/Generated.xcconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/Users/saisriram/development/flutter
FLUTTER_APPLICATION_PATH=/Users/saisriram/Desktop/BUPassport/se-bu-passport-arts/bu_passport
FLUTTER_ROOT=C:\Users\franj\flutter\flutter_windows_3.24.3-stable\flutter
FLUTTER_APPLICATION_PATH=C:\Users\franj\se-bu-passport-arts\bu_passport
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_TARGET=/Users/saisriram/Desktop/BUPassport/se-bu-passport-arts/bu_passport/lib/main.dart
FLUTTER_TARGET=lib\main.dart
FLUTTER_BUILD_DIR=build
FLUTTER_BUILD_NAME=1.0.0
FLUTTER_BUILD_NUMBER=1
EXCLUDED_ARCHS[sdk=iphonesimulator*]=i386 arm64
EXCLUDED_ARCHS[sdk=iphoneos*]=armv7
DART_DEFINES=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==,RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC8wNDgxN2M5OWM5ZmQ0OTU2ZjI3NTA1MjA0ZjdlMzQ0MzM1ODEwYWVkLw==
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=true
TREE_SHAKE_ICONS=false
PACKAGE_CONFIG=/Users/saisriram/Desktop/BUPassport/se-bu-passport-arts/bu_passport/.dart_tool/package_config.json
PACKAGE_CONFIG=.dart_tool/package_config.json
9 changes: 4 additions & 5 deletions bu_passport/ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/Users/saisriram/development/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/saisriram/Desktop/BUPassport/se-bu-passport-arts/bu_passport"
export "FLUTTER_ROOT=C:\Users\franj\flutter\flutter_windows_3.24.3-stable\flutter"
export "FLUTTER_APPLICATION_PATH=C:\Users\franj\se-bu-passport-arts\bu_passport"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_TARGET=/Users/saisriram/Desktop/BUPassport/se-bu-passport-arts/bu_passport/lib/main.dart"
export "FLUTTER_TARGET=lib\main.dart"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
export "DART_DEFINES=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==,RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC8wNDgxN2M5OWM5ZmQ0OTU2ZjI3NTA1MjA0ZjdlMzQ0MzM1ODEwYWVkLw=="
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=true"
export "TREE_SHAKE_ICONS=false"
export "PACKAGE_CONFIG=/Users/saisriram/Desktop/BUPassport/se-bu-passport-arts/bu_passport/.dart_tool/package_config.json"
export "PACKAGE_CONFIG=.dart_tool/package_config.json"
7 changes: 7 additions & 0 deletions bu_passport/ios/Runner/GeneratedPluginRegistrant.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
@import google_maps_flutter_ios;
#endif

#if __has_include(<google_sign_in_ios/FLTGoogleSignInPlugin.h>)
#import <google_sign_in_ios/FLTGoogleSignInPlugin.h>
#else
@import google_sign_in_ios;
#endif

#if __has_include(<image_picker_ios/FLTImagePickerPlugin.h>)
#import <image_picker_ios/FLTImagePickerPlugin.h>
#else
Expand Down Expand Up @@ -69,6 +75,7 @@ + (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry {
[FLTFirebaseStoragePlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTFirebaseStoragePlugin"]];
[GeolocatorPlugin registerWithRegistrar:[registry registrarForPlugin:@"GeolocatorPlugin"]];
[FLTGoogleMapsPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTGoogleMapsPlugin"]];
[FLTGoogleSignInPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTGoogleSignInPlugin"]];
[FLTImagePickerPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTImagePickerPlugin"]];
[PermissionHandlerPlugin registerWithRegistrar:[registry registrarForPlugin:@"PermissionHandlerPlugin"]];
[URLLauncherPlugin registerWithRegistrar:[registry registrarForPlugin:@"URLLauncherPlugin"]];
Expand Down
13 changes: 13 additions & 0 deletions bu_passport/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,18 @@
<string>We need your location to check you into events near you.</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>We need your location to provide notifications and information about events near you.</string>
<key>GIDClientID</key>
<string>429645705382-neovegus18m295gn11dpo2g6mi85tv3j.apps.googleusercontent.com</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.429645705382-neovegus18m295gn11dpo2g6mi85tv3j</string>
</array>
</dict>
</array>
</dict>
</plist>
2 changes: 2 additions & 0 deletions bu_passport/lib/classes/user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class Users {
final int userPoints;
final String userProfileURL;
final Map<String, dynamic> userSavedEvents;
final bool admin;

Users({
required this.firstName,
Expand All @@ -21,5 +22,6 @@ class Users {
required this.userSavedEvents,
required this.userPoints,
required this.userProfileURL,
required this.admin,
});
}
Loading

0 comments on commit c2252c1

Please sign in to comment.