-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Solvro/topwr-mobile into main
- Loading branch information
Showing
16 changed files
with
296 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ analyzer: | |
- "**/*.gen.dart" | ||
- "**/*.graphql.dart" | ||
- "**/*.icons.dart" | ||
- "**/firebase_options.dart" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "399902347530", | ||
"project_id": "topwr-a2066", | ||
"storage_bucket": "topwr-a2066.appspot.com" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:399902347530:android:54f57104b4011528db2af3", | ||
"android_client_info": { | ||
"package_name": "com.solvro.topwr" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "399902347530-u4rvugj7gmcan53gma2u0j6ii2uruh6n.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyAR3ysGBw3Nz5L85-rfgSGH_4RWlEUHDPM" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [ | ||
{ | ||
"client_id": "399902347530-u4rvugj7gmcan53gma2u0j6ii2uruh6n.apps.googleusercontent.com", | ||
"client_type": 3 | ||
}, | ||
{ | ||
"client_id": "399902347530-1pdnhl4c0fmk62pulk4vomp5jbd0ovcj.apps.googleusercontent.com", | ||
"client_type": 2, | ||
"ios_info": { | ||
"bundle_id": "com.solvro.ToPwr", | ||
"app_store_id": "1644647395" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CLIENT_ID</key> | ||
<string>399902347530-1pdnhl4c0fmk62pulk4vomp5jbd0ovcj.apps.googleusercontent.com</string> | ||
<key>REVERSED_CLIENT_ID</key> | ||
<string>com.googleusercontent.apps.399902347530-1pdnhl4c0fmk62pulk4vomp5jbd0ovcj</string> | ||
<key>API_KEY</key> | ||
<string>AIzaSyBaDwyDAki28oTuwVc4Vg9_ZYQClzChxWE</string> | ||
<key>GCM_SENDER_ID</key> | ||
<string>399902347530</string> | ||
<key>PLIST_VERSION</key> | ||
<string>1</string> | ||
<key>BUNDLE_ID</key> | ||
<string>com.solvro.ToPwr</string> | ||
<key>PROJECT_ID</key> | ||
<string>topwr-a2066</string> | ||
<key>STORAGE_BUCKET</key> | ||
<string>topwr-a2066.appspot.com</string> | ||
<key>IS_ADS_ENABLED</key> | ||
<false></false> | ||
<key>IS_ANALYTICS_ENABLED</key> | ||
<false></false> | ||
<key>IS_APPINVITE_ENABLED</key> | ||
<true></true> | ||
<key>IS_GCM_ENABLED</key> | ||
<true></true> | ||
<key>IS_SIGNIN_ENABLED</key> | ||
<true></true> | ||
<key>GOOGLE_APP_ID</key> | ||
<string>1:399902347530:ios:46a00f036bf46d80db2af3</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"file_generated_by": "FlutterFire CLI", | ||
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory", | ||
"GOOGLE_APP_ID": "1:399902347530:ios:46a00f036bf46d80db2af3", | ||
"FIREBASE_PROJECT_ID": "topwr-a2066", | ||
"GCM_SENDER_ID": "399902347530" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import "dart:async"; | ||
|
||
import "package:firebase_core/firebase_core.dart"; | ||
import "package:firebase_crashlytics/firebase_crashlytics.dart"; | ||
import "package:firebase_messaging/firebase_messaging.dart"; | ||
import "package:flutter/foundation.dart"; | ||
import "package:logger/logger.dart"; | ||
|
||
import "firebase_options.dart"; | ||
|
||
Future<void> firebaseInit() async { | ||
// * General Firebase setup | ||
await Firebase.initializeApp( | ||
options: DefaultFirebaseOptions.currentPlatform, | ||
); | ||
// * Crashlytics setup | ||
if (!kDebugMode) { | ||
FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterFatalError; | ||
PlatformDispatcher.instance.onError = (error, stack) { | ||
unawaited( | ||
FirebaseCrashlytics.instance.recordError(error, stack, fatal: true), | ||
); | ||
return true; | ||
}; | ||
} | ||
|
||
if (kDebugMode) { | ||
unawaited(FirebaseMessaging.instance.getToken().then(Logger().i)); | ||
} | ||
} | ||
|
||
Future<void> requestFCMPermission() async { | ||
await FirebaseMessaging.instance.requestPermission(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
// File generated by FlutterFire CLI. | ||
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members | ||
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions; | ||
import 'package:flutter/foundation.dart' | ||
show defaultTargetPlatform, kIsWeb, TargetPlatform; | ||
|
||
/// Default [FirebaseOptions] for use with your Firebase apps. | ||
/// | ||
/// Example: | ||
/// ```dart | ||
/// import 'firebase_options.dart'; | ||
/// // ... | ||
/// await Firebase.initializeApp( | ||
/// options: DefaultFirebaseOptions.currentPlatform, | ||
/// ); | ||
/// ``` | ||
class DefaultFirebaseOptions { | ||
static FirebaseOptions get currentPlatform { | ||
if (kIsWeb) { | ||
return web; | ||
} | ||
switch (defaultTargetPlatform) { | ||
case TargetPlatform.android: | ||
return android; | ||
case TargetPlatform.iOS: | ||
return ios; | ||
case TargetPlatform.macOS: | ||
return macos; | ||
case TargetPlatform.windows: | ||
throw UnsupportedError( | ||
'DefaultFirebaseOptions have not been configured for windows - ' | ||
'you can reconfigure this by running the FlutterFire CLI again.', | ||
); | ||
case TargetPlatform.linux: | ||
throw UnsupportedError( | ||
'DefaultFirebaseOptions have not been configured for linux - ' | ||
'you can reconfigure this by running the FlutterFire CLI again.', | ||
); | ||
default: | ||
throw UnsupportedError( | ||
'DefaultFirebaseOptions are not supported for this platform.', | ||
); | ||
} | ||
} | ||
|
||
static const FirebaseOptions web = FirebaseOptions( | ||
apiKey: 'AIzaSyDU1JCqYFVCp0KVVDjAcEOhqBLsHfE2WeM', | ||
appId: '1:399902347530:web:9c8d0eb4e22dbbb7db2af3', | ||
messagingSenderId: '399902347530', | ||
projectId: 'topwr-a2066', | ||
authDomain: 'topwr-a2066.firebaseapp.com', | ||
storageBucket: 'topwr-a2066.appspot.com', | ||
measurementId: 'G-0B5HMNSE0C', | ||
); | ||
|
||
static const FirebaseOptions android = FirebaseOptions( | ||
apiKey: 'AIzaSyAR3ysGBw3Nz5L85-rfgSGH_4RWlEUHDPM', | ||
appId: '1:399902347530:android:54f57104b4011528db2af3', | ||
messagingSenderId: '399902347530', | ||
projectId: 'topwr-a2066', | ||
storageBucket: 'topwr-a2066.appspot.com', | ||
); | ||
|
||
static const FirebaseOptions ios = FirebaseOptions( | ||
apiKey: 'AIzaSyBaDwyDAki28oTuwVc4Vg9_ZYQClzChxWE', | ||
appId: '1:399902347530:ios:46a00f036bf46d80db2af3', | ||
messagingSenderId: '399902347530', | ||
projectId: 'topwr-a2066', | ||
storageBucket: 'topwr-a2066.appspot.com', | ||
iosClientId: | ||
'399902347530-1pdnhl4c0fmk62pulk4vomp5jbd0ovcj.apps.googleusercontent.com', | ||
iosBundleId: 'com.solvro.ToPwr', | ||
); | ||
|
||
static const FirebaseOptions macos = FirebaseOptions( | ||
apiKey: 'AIzaSyBaDwyDAki28oTuwVc4Vg9_ZYQClzChxWE', | ||
appId: '1:399902347530:ios:3f66b1b8f9cc9742db2af3', | ||
messagingSenderId: '399902347530', | ||
projectId: 'topwr-a2066', | ||
storageBucket: 'topwr-a2066.appspot.com', | ||
iosBundleId: 'pl.edu.pwr.solvro.topwrMobile.RunnerTests', | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.