-
Notifications
You must be signed in to change notification settings - Fork 284
Bluecost store #422
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
base: main
Are you sure you want to change the base?
Bluecost store #422
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import 'package:flutter/material.dart'; | ||
| import 'package:firebase_core/firebase_core.dart'; | ||
|
|
||
| // Import the firebase_app_check plugin | ||
| import 'package:firebase_app_check/firebase_app_check.dart'; | ||
|
|
||
| Future<void> main() async { | ||
| WidgetsFlutterBinding.ensureInitialized(); | ||
| await Firebase.initializeApp(); | ||
| await FirebaseAppCheck.instance.activate( | ||
| // You can also use a `ReCaptchaEnterpriseProvider` provider instance as an | ||
| // argument for `webProvider` | ||
| webProvider: ReCaptchaV3Provider('recaptcha-v3-site-key'), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A hardcoded reCAPTCHA v3 site key is present. Secrets like API keys should not be hardcoded in the source code as this poses a significant security risk. It is recommended to load these from a secure location, such as environment variables, at compile time. |
||
| // Default provider for Android is the Play Integrity provider. You can use the "AndroidProvider" enum to choose | ||
| // your preferred provider. Choose from: | ||
| // 1. Debug provider | ||
| // 2. Safety Net provider | ||
| // 3. Play Integrity provider | ||
| androidProvider: AndroidProvider.debug, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Android App Check provider is set to |
||
| // Default provider for iOS/macOS is the Device Check provider. You can use the "AppleProvider" enum to choose | ||
| // your preferred provider. Choose from: | ||
| // 1. Debug provider | ||
| // 2. Device Check provider | ||
| // 3. App Attest provider | ||
| // 4. App Attest provider with fallback to Device Check provider (App Attest provider is only available on iOS 14.0+, macOS 14.0+) | ||
| appleProvider: AppleProvider.appAttest, | ||
| ); | ||
| runApp(App()); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The filename
Materialis unconventional for a Dart file. According to Dart's style guide, filenames should be insnake_caseand have a.dartextension (e.g.,main.dart). This improves readability and consistency within the project.