diff --git a/android/app/build.gradle b/android/app/build.gradle
index 86a56ac..5384344 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -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
diff --git a/android/app/google-services.json b/android/app/google-services.json
new file mode 100644
index 0000000..9181160
--- /dev/null
+++ b/android/app/google-services.json
@@ -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"
+}
\ No newline at end of file
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 531d4a4..31fbe77 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -6,6 +6,8 @@
+
+
@@ -30,6 +32,9 @@
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
+
diff --git a/android/settings.gradle b/android/settings.gradle
index a42444d..e49e0df 100644
--- a/android/settings.gradle
+++ b/android/settings.gradle
@@ -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"
diff --git a/pubspec.yaml b/pubspec.yaml
index fef9493..7d7ed8d 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -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