added firebase code

This commit is contained in:
Vaibhav Surve 2025-07-16 16:06:27 +05:30
parent 990bf737dc
commit 5fa4a67b0a
5 changed files with 50 additions and 2 deletions

View File

@ -3,6 +3,16 @@ plugins {
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
id("com.google.gms.google-services")
}
dependencies {
// Import the Firebase BoM
implementation(platform("com.google.firebase:firebase-bom:33.15.0"))
// TODO: Add the dependencies for Firebase products you want to use
// When using the BoM, don't specify versions in Firebase dependencies
implementation("com.google.firebase:firebase-analytics")
// Add the dependencies for any other desired Firebase products
// https://firebase.google.com/docs/android/setup#available-libraries
}
android {
@ -21,7 +31,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.marcostage"
applicationId = "com.marcoaiot.marcopms"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion

View File

@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "1092827913328",
"project_id": "marcopms-mobileapp",
"storage_bucket": "marcopms-mobileapp.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:1092827913328:android:2c70d4f75f334a572ae8b5",
"android_client_info": {
"package_name": "com.marcoaiot.marcopms"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyAugYA2UsQewE-Yd6LBU90hWb2W6NkiMpU"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}

View File

@ -6,6 +6,8 @@
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
@ -30,6 +32,9 @@
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<meta-data
android:name="com.google.firebase.messaging.default_notification_channel_id"
android:value="high_importance_channel"/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>

View File

@ -19,7 +19,8 @@ pluginManagement {
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.2.1" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
id("com.google.gms.google-services") version "4.4.2" apply false
}
include ":app"

View File

@ -77,6 +77,9 @@ dependencies:
html_editor_enhanced: ^2.7.0
flutter_quill_delta_from_html: ^1.5.2
quill_delta: ^3.0.0-nullsafety.2
firebase_core: ^3.14.0
firebase_messaging: ^15.2.7
googleapis_auth: ^2.0.0
dev_dependencies:
flutter_test:
sdk: flutter