From b7330988d9522164a90f9d8a61dc50ee914a7428 Mon Sep 17 00:00:00 2001 From: Aaldn Date: Mon, 5 Feb 2024 12:00:35 +0100 Subject: [PATCH] chores: remove firebase references --- README.md | 2 - assets/translations/en.json | 3 +- assets/translations/fr.json | 3 +- firebase.json | 16 ------- ios/Flutter/AppFrameworkInfo.plist | 2 +- ios/Podfile | 2 +- ios/Podfile.lock | 42 ++----------------- ios/Runner.xcodeproj/project.pbxproj | 6 +-- lib/main.dart | 5 --- macos/Flutter/GeneratedPluginRegistrant.swift | 2 - macos/Podfile.lock | 36 +--------------- pubspec.lock | 40 ------------------ pubspec.yaml | 2 - .../flutter/generated_plugin_registrant.cc | 3 -- windows/flutter/generated_plugins.cmake | 1 - 15 files changed, 12 insertions(+), 153 deletions(-) delete mode 100644 firebase.json diff --git a/README.md b/README.md index 4219068..5a2cc2a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,6 @@ Flutter Portfolio – by [@AladdineDev](https://github.com/AladdineDev) [![Flutter 3](https://img.shields.io/badge/Flutter-3.16-02569b.svg?style=flat-square&logo=flutter&logoColor=13b9fd)](https://flutter.dev/) [![Dart 3](https://img.shields.io/badge/Dart-3.2-0175c2.svg?style=flat-square&logo=dart&logoColor=13b9fd)](https://dart.dev/) -[![Firebase](https://img.shields.io/badge/Firebase--ffcc30.svg?style=flat-square&logo=firebase)](https://firebase.google.com/) ## [Live Preview](https://aladdine.dev) 👀 @@ -35,7 +34,6 @@ These are the main packages used in the app: - [Easy Localization](https://pub.dev/packages/easy_localization) for... easy localization - [Intl](https://pub.dev/packages/intl) for date formatting - [Shared Preferences](https://pub.dev/packages/shared_preferences) for persistent storage (used to store theme state) -- [Firebase Core](https://pub.dev/packages/firebase_core) and [Firebase Core Desktop](https://pub.dev/packages/firebase_core_desktop) to connect to a firebase app (used for hosting) See the [`pubspec.yaml`](pubspec.yaml) file for the complete list diff --git a/assets/translations/en.json b/assets/translations/en.json index 9c6d772..9801166 100644 --- a/assets/translations/en.json +++ b/assets/translations/en.json @@ -117,8 +117,7 @@ "screenshotPath": "assets/images/portfolio.png", "technologies": [ "Flutter", - "Dart", - "Firebase" + "Dart" ], "links": [ { diff --git a/assets/translations/fr.json b/assets/translations/fr.json index e6c1c9a..2780177 100644 --- a/assets/translations/fr.json +++ b/assets/translations/fr.json @@ -117,8 +117,7 @@ "screenshotPath": "assets/images/portfolio.png", "technologies": [ "Flutter", - "Dart", - "Firebase" + "Dart" ], "links": [ { diff --git a/firebase.json b/firebase.json deleted file mode 100644 index 6603732..0000000 --- a/firebase.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "hosting": { - "public": "build/web", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ], - "rewrites": [ - { - "source": "**", - "destination": "/index.html" - } - ] - } -} diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist index 9625e10..7c56964 100644 --- a/ios/Flutter/AppFrameworkInfo.plist +++ b/ios/Flutter/AppFrameworkInfo.plist @@ -21,6 +21,6 @@ CFBundleVersion 1.0 MinimumOSVersion - 11.0 + 12.0 diff --git a/ios/Podfile b/ios/Podfile index fdcc671..d97f17e 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -# platform :ios, '11.0' +# platform :ios, '12.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/ios/Podfile.lock b/ios/Podfile.lock index cc8a6c3..4c2ad57 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1,27 +1,10 @@ PODS: - - Firebase/CoreOnly (10.15.0): - - FirebaseCore (= 10.15.0) - - firebase_core (2.17.0): - - Firebase/CoreOnly (= 10.15.0) - - Flutter - - FirebaseCore (10.15.0): - - FirebaseCoreInternal (~> 10.0) - - GoogleUtilities/Environment (~> 7.8) - - GoogleUtilities/Logger (~> 7.8) - - FirebaseCoreInternal (10.16.0): - - "GoogleUtilities/NSData+zlib (~> 7.8)" - Flutter (1.0.0) - flutter_native_splash (0.0.1): - Flutter - - GoogleUtilities/Environment (7.11.5): - - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/Logger (7.11.5): - - GoogleUtilities/Environment - - "GoogleUtilities/NSData+zlib (7.11.5)" - path_provider_foundation (0.0.1): - Flutter - FlutterMacOS - - PromisesObjC (2.3.1) - shared_preferences_foundation (0.0.1): - Flutter - FlutterMacOS @@ -29,24 +12,13 @@ PODS: - Flutter DEPENDENCIES: - - firebase_core (from `.symlinks/plugins/firebase_core/ios`) - Flutter (from `Flutter`) - flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`) - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`) -SPEC REPOS: - trunk: - - Firebase - - FirebaseCore - - FirebaseCoreInternal - - GoogleUtilities - - PromisesObjC - EXTERNAL SOURCES: - firebase_core: - :path: ".symlinks/plugins/firebase_core/ios" Flutter: :path: Flutter flutter_native_splash: @@ -59,18 +31,12 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/url_launcher_ios/ios" SPEC CHECKSUMS: - Firebase: 66043bd4579e5b73811f96829c694c7af8d67435 - firebase_core: 28e84c2a4fcf6a50ef83f47b145ded8c1fa331e4 - FirebaseCore: 2cec518b43635f96afe7ac3a9c513e47558abd2e - FirebaseCoreInternal: 26233f705cc4531236818a07ac84d20c333e505a - Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 + Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 flutter_native_splash: 52501b97d1c0a5f898d687f1646226c1f93c56ef - GoogleUtilities: 13e2c67ede716b8741c7989e26893d151b2b2084 path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 - PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126 - url_launcher_ios: 68d46cc9766d0c41dbdc884310529557e3cd7a86 + url_launcher_ios: bf5ce03e0e2088bad9cc378ea97fa0ed5b49673b -PODFILE CHECKSUM: 70d9d25280d0dd177a5f637cdb0f0b0b12c6a189 +PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796 -COCOAPODS: 1.12.1 +COCOAPODS: 1.14.3 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index a6d8a63..3a85d61 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -455,7 +455,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -583,7 +583,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -632,7 +632,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/lib/main.dart b/lib/main.dart index 3ab1cef..5ac88c0 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,20 +1,15 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; -import 'package:firebase_core/firebase_core.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:portfolio/src/app.dart'; import 'package:portfolio/src/localization/app_localizations.dart'; import 'package:url_strategy/url_strategy.dart'; -import 'firebase_options.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); EasyLocalization.logger.enableBuildModes = []; await EasyLocalization.ensureInitialized(); - await Firebase.initializeApp( - options: DefaultFirebaseOptions.currentPlatform, - ); setPathUrlStrategy(); GoogleFonts.config.allowRuntimeFetching = false; await GoogleFonts.pendingFonts([GoogleFonts.nunito()]); diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index e015257..b19945c 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -5,13 +5,11 @@ import FlutterMacOS import Foundation -import firebase_core import path_provider_foundation import shared_preferences_foundation import url_launcher_macos func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { - FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) diff --git a/macos/Podfile.lock b/macos/Podfile.lock index c4fa24a..5bb3a48 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -1,25 +1,8 @@ PODS: - - Firebase/CoreOnly (10.15.0): - - FirebaseCore (= 10.15.0) - - firebase_core (2.17.0): - - Firebase/CoreOnly (~> 10.15.0) - - FlutterMacOS - - FirebaseCore (10.15.0): - - FirebaseCoreInternal (~> 10.0) - - GoogleUtilities/Environment (~> 7.8) - - GoogleUtilities/Logger (~> 7.8) - - FirebaseCoreInternal (10.16.0): - - "GoogleUtilities/NSData+zlib (~> 7.8)" - FlutterMacOS (1.0.0) - - GoogleUtilities/Environment (7.11.5): - - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/Logger (7.11.5): - - GoogleUtilities/Environment - - "GoogleUtilities/NSData+zlib (7.11.5)" - path_provider_foundation (0.0.1): - Flutter - FlutterMacOS - - PromisesObjC (2.3.1) - shared_preferences_foundation (0.0.1): - Flutter - FlutterMacOS @@ -27,23 +10,12 @@ PODS: - FlutterMacOS DEPENDENCIES: - - firebase_core (from `Flutter/ephemeral/.symlinks/plugins/firebase_core/macos`) - FlutterMacOS (from `Flutter/ephemeral`) - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) - shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`) - url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`) -SPEC REPOS: - trunk: - - Firebase - - FirebaseCore - - FirebaseCoreInternal - - GoogleUtilities - - PromisesObjC - EXTERNAL SOURCES: - firebase_core: - :path: Flutter/ephemeral/.symlinks/plugins/firebase_core/macos FlutterMacOS: :path: Flutter/ephemeral path_provider_foundation: @@ -54,17 +26,11 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos SPEC CHECKSUMS: - Firebase: 66043bd4579e5b73811f96829c694c7af8d67435 - firebase_core: 4d1711af1e10f9907f468e04f995c59f60bdc710 - FirebaseCore: 2cec518b43635f96afe7ac3a9c513e47558abd2e - FirebaseCoreInternal: 26233f705cc4531236818a07ac84d20c333e505a FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 - GoogleUtilities: 13e2c67ede716b8741c7989e26893d151b2b2084 path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 - PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126 url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95 PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367 -COCOAPODS: 1.12.1 +COCOAPODS: 1.14.3 diff --git a/pubspec.lock b/pubspec.lock index 6c4cced..7fa9078 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -281,46 +281,6 @@ packages: url: "https://pub.dev" source: hosted version: "7.0.0" - firebase_core: - dependency: "direct main" - description: - name: firebase_core - sha256: "95580fa07c8ca3072a2bb1fecd792616a33f8683477d25b7d29d3a6a399e6ece" - url: "https://pub.dev" - source: hosted - version: "2.17.0" - firebase_core_dart: - dependency: transitive - description: - name: firebase_core_dart - sha256: ccb96c29ae686f43ad80f8f0893717361b7959a88b276c5e2c3627d12a9f1de8 - url: "https://pub.dev" - source: hosted - version: "1.0.1" - firebase_core_desktop: - dependency: "direct main" - description: - name: firebase_core_desktop - sha256: "5bb8ba325739c82efe0535f758afb0613a104c50e3ac5c6ecb6de2657cebb4ed" - url: "https://pub.dev" - source: hosted - version: "1.0.2" - firebase_core_platform_interface: - dependency: transitive - description: - name: firebase_core_platform_interface - sha256: b63e3be6c96ef5c33bdec1aab23c91eb00696f6452f0519401d640938c94cba2 - url: "https://pub.dev" - source: hosted - version: "4.8.0" - firebase_core_web: - dependency: transitive - description: - name: firebase_core_web - sha256: e8c408923cd3a25bd342c576a114f2126769cd1a57106a4edeaa67ea4a84e962 - url: "https://pub.dev" - source: hosted - version: "2.8.0" fixnum: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 3406019..2d84759 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -19,8 +19,6 @@ dependencies: flutter_hooks: ^0.20.3 collection: ^1.18.0 url_launcher: ^6.2.1 - firebase_core: ^2.17.0 - firebase_core_desktop: ^1.0.2 url_strategy: ^0.2.0 intl: ^0.18.1 easy_localization: ^3.0.3 diff --git a/windows/flutter/generated_plugin_registrant.cc b/windows/flutter/generated_plugin_registrant.cc index ec8e8d4..4f78848 100644 --- a/windows/flutter/generated_plugin_registrant.cc +++ b/windows/flutter/generated_plugin_registrant.cc @@ -6,12 +6,9 @@ #include "generated_plugin_registrant.h" -#include #include void RegisterPlugins(flutter::PluginRegistry* registry) { - FirebaseCorePluginCApiRegisterWithRegistrar( - registry->GetRegistrarForPlugin("FirebaseCorePluginCApi")); UrlLauncherWindowsRegisterWithRegistrar( registry->GetRegistrarForPlugin("UrlLauncherWindows")); } diff --git a/windows/flutter/generated_plugins.cmake b/windows/flutter/generated_plugins.cmake index 02d26c3..88b22e5 100644 --- a/windows/flutter/generated_plugins.cmake +++ b/windows/flutter/generated_plugins.cmake @@ -3,7 +3,6 @@ # list(APPEND FLUTTER_PLUGIN_LIST - firebase_core url_launcher_windows )