From 680731c755f35fe74ea61a6dd4e031ef3c6ccb28 Mon Sep 17 00:00:00 2001 From: Ali Dinc Date: Fri, 14 Jan 2022 16:22:42 +0300 Subject: [PATCH] firebase_core added, analytics edited, some files edited --- .gitignore | 3 + android/app/build.gradle | 5 +- .../{cirlce_hwa.png => circle_hwa.png} | Bin android/build.gradle | 3 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- lib/core/constants/app/app_constants.dart | 6 +- .../init/analytics/analytics_manager.dart | 41 ++- .../init/navigation/navigation_route.dart | 28 +- lib/main.dart | 12 +- .../splash/viewmodel/device_and_cahe.dart | 5 +- module/all_of_template/pubspec.lock | 16 +- module/architecture_widgets/pubspec.lock | 321 ++++-------------- pubspec.lock | 78 ++--- pubspec.yaml | 92 ++--- 14 files changed, 195 insertions(+), 417 deletions(-) rename android/app/src/main/res/drawable/{cirlce_hwa.png => circle_hwa.png} (100%) diff --git a/.gitignore b/.gitignore index f3c2053..e67db2b 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,6 @@ app.*.map.json # Exceptions to above rules. !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages + +# google-services +android/app/google-services.json \ No newline at end of file diff --git a/android/app/build.gradle b/android/app/build.gradle index c214f9e..ab1298c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -24,6 +24,7 @@ if (flutterVersionName == null) { apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" +apply plugin: 'com.google.gms.google-services' def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file('key.properties') @@ -45,7 +46,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.hwa.fluttermvvmtemplate" - minSdkVersion 16 + minSdkVersion 19 targetSdkVersion 29 versionCode flutterVersionCode.toInteger() versionName flutterVersionName @@ -73,4 +74,6 @@ flutter { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation platform('com.google.firebase:firebase-bom:29.0.3') + implementation 'com.google.firebase:firebase-analytics' } diff --git a/android/app/src/main/res/drawable/cirlce_hwa.png b/android/app/src/main/res/drawable/circle_hwa.png similarity index 100% rename from android/app/src/main/res/drawable/cirlce_hwa.png rename to android/app/src/main/res/drawable/circle_hwa.png diff --git a/android/build.gradle b/android/build.gradle index 3100ad2..7b77fc7 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -6,8 +6,9 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.5.0' + classpath 'com.android.tools.build:gradle:4.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath 'com.google.gms:google-services:4.3.10' } } diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 296b146..90f271d 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip diff --git a/lib/core/constants/app/app_constants.dart b/lib/core/constants/app/app_constants.dart index 935bcbb..044dc60 100644 --- a/lib/core/constants/app/app_constants.dart +++ b/lib/core/constants/app/app_constants.dart @@ -1,8 +1,12 @@ class ApplicationConstants { + static const COMPANY_NAME = 'HWA'; + + // production'da olmadığımız sürece çalışmasını istemediğimiz fonksiyonlar için kullanacağız + static const TEST_MODE = true; + static const LANG_ASSET_PATH = 'asset/lang'; static const IPAD_NAME = 'IPAD'; static const FONT_FAMILY = 'POPPINS'; - static const COMPANY_NAME = 'HWA'; static const EMAIL_REGIEX = r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}\$'; diff --git a/lib/core/init/analytics/analytics_manager.dart b/lib/core/init/analytics/analytics_manager.dart index bbf6f35..10d7fcb 100644 --- a/lib/core/init/analytics/analytics_manager.dart +++ b/lib/core/init/analytics/analytics_manager.dart @@ -1,26 +1,37 @@ import 'package:firebase_analytics/firebase_analytics.dart'; -import 'package:firebase_analytics/observer.dart'; +import 'package:flutter/material.dart'; +import 'package:fluttermvvmtemplate/core/constants/app/app_constants.dart'; -class AnalytcisManager{ +class AnalytcisManager { static final AnalytcisManager _instance = AnalytcisManager._init(); static AnalytcisManager get instance => _instance; - AnalytcisManager._init(); + AnalytcisManager._init() { + init(); + } + + static final _analytics = FirebaseAnalytics.instance; - static final _analytics = FirebaseAnalytics(); + final List observer = + ApplicationConstants.TEST_MODE ? [] : [FirebaseAnalyticsObserver(analytics: _analytics)]; - final observer = FirebaseAnalyticsObserver(analytics: _analytics); + // Firebase e her zaman veri göndermek istemeyebiliriz. + // Örneğin inapppurchase yapacağımızda ApplicationConstants.TEST_MODE false olursa + // gerçekten ödeme yapılmış gibi ücret bilgisi yansır. + // Bu istenmeyen bir durumdur, gerçek verileri manipüle eder.. + Future init() async { + await _analytics.setAnalyticsCollectionEnabled(ApplicationConstants.TEST_MODE ? false : true); + } Future customEvent(String name) async { //her şey yapılabilir - await observer.analytics.logEvent(name: name); + await _analytics.logEvent(name: name); } //USER ANALYTICS //kayıt sırasında user ıd yi almak için - Future setUserAnalytics( - { String userID, String name, String value}) async { - await _analytics.setUserId(userID); - + Future setUserAnalytics({String? userID, String? name, String? value}) async { + await _analytics.setUserId(id: userID); + //kullanıcılara rol vermek için kullanılabilir (ADMİN-KULLANICI-PREMIUMS VS VS) //bunu yapacaksak öncelikle //firebase consola git @@ -31,15 +42,15 @@ class AnalytcisManager{ //dimension name ya raporda gözükecek olan başlığı yaz //descriptiona ufak bi açıklamasını yaz if (name != null && value != null) { - await observer.analytics.setUserProperty(name: name, value: value); + await _analytics.setUserProperty(name: name, value: value); } } Future userLogin(String signUpMethod) async { - await _analytics.logLogin(loginMethod: signUpMethod); -} + await _analytics.logLogin(loginMethod: signUpMethod); + } Future userSignUp(String signUpMethod) async { - await observer.analytics.logSignUp(signUpMethod: signUpMethod); + await _analytics.logSignUp(signUpMethod: signUpMethod); } -} \ No newline at end of file +} diff --git a/lib/core/init/navigation/navigation_route.dart b/lib/core/init/navigation/navigation_route.dart index 2286216..b74b539 100644 --- a/lib/core/init/navigation/navigation_route.dart +++ b/lib/core/init/navigation/navigation_route.dart @@ -20,29 +20,26 @@ class NavigationRoute { Route generateRoute(RouteSettings args) { switch (args.name) { case NavigationConstants.DEFAULT: - return normalNavigate(SplashView()); + return normalNavigate(SplashView(), NavigationConstants.DEFAULT); case NavigationConstants.TEST_VIEW: - firebase-analytics - return normalNavigate(TestsView(),NavigationConstants.TEST_VIEW); - - return normalNavigate(TestsView()); + return normalNavigate(TestsView(), NavigationConstants.TEST_VIEW); case NavigationConstants.BUY_VIEW: - return normalNavigate(BuyView()); + return normalNavigate(BuyView(), NavigationConstants.BUY_VIEW); case NavigationConstants.ON_BOARD: - return normalNavigate(OnBoardView()); + return normalNavigate(OnBoardView(), NavigationConstants.ON_BOARD); case NavigationConstants.SETTINGS_WEB_VIEW: if (args.arguments is SettingsDynamicModel) { - return normalNavigate(SettingsDynamicView( - model: args.arguments as SettingsDynamicModel, - )); + return normalNavigate( + SettingsDynamicView(model: args.arguments as SettingsDynamicModel), + NavigationConstants.SETTINGS_WEB_VIEW, + ); } throw NavigateException(args.arguments); -master default: return MaterialPageRoute( builder: (context) => NotFoundNavigationWidget(), @@ -50,11 +47,10 @@ master } } - MaterialPageRoute normalNavigate(Widget widget,String pageName) { + MaterialPageRoute normalNavigate(Widget widget, String pageName) { return MaterialPageRoute( - builder: (context) => widget, - //analytciste görülecek olan sayfa ismi için pageName veriyoruz - settings: RouteSettings(name: pageName) - ); + builder: (context) => widget, + //analytciste görülecek olan sayfa ismi için pageName veriyoruz + settings: RouteSettings(name: pageName)); } } diff --git a/lib/main.dart b/lib/main.dart index e0b1203..da9c0ab 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,20 +1,15 @@ import 'package:easy_localization/easy_localization.dart'; +import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; -firebase-analytics -import 'package:fluttermvvmtemplate/core/init/analytics/analytics_manager.dart'; - -import 'package:kartal/kartal.dart'; -master import 'package:provider/provider.dart'; import 'core/constants/app/app_constants.dart'; -import 'core/init/cache/locale_manager.dart'; +import 'core/init/analytics/analytics_manager.dart'; import 'core/init/lang/language_manager.dart'; import 'core/init/navigation/navigation_route.dart'; import 'core/init/navigation/navigation_service.dart'; import 'core/init/notifier/provider_list.dart'; import 'core/init/notifier/theme_notifer.dart'; -import 'view/home/burger/view/burgers_view.dart'; Future main() async { await _init(); @@ -32,6 +27,7 @@ Future main() async { Future _init() async { WidgetsFlutterBinding.ensureInitialized(); await EasyLocalization.ensureInitialized(); + await Firebase.initializeApp(); } class MyApp extends StatelessWidget { @@ -45,7 +41,7 @@ class MyApp extends StatelessWidget { locale: context.locale, onGenerateRoute: NavigationRoute.instance.generateRoute, navigatorKey: NavigationService.instance.navigatorKey, - navigatorObservers: [AnalytcisManager.instance.observer], + navigatorObservers: AnalytcisManager.instance.observer, ); } } diff --git a/lib/view/authenticate/splash/viewmodel/device_and_cahe.dart b/lib/view/authenticate/splash/viewmodel/device_and_cahe.dart index 3a611dc..21df3c1 100644 --- a/lib/view/authenticate/splash/viewmodel/device_and_cahe.dart +++ b/lib/view/authenticate/splash/viewmodel/device_and_cahe.dart @@ -4,12 +4,9 @@ import '../../../../core/init/cache/locale_manager.dart'; mixin DeviceAndCache { Future deviceandCacheInit() async { - if (DeviceUtility.instance == null) { - return; - } await Future.wait([ LocaleManager.prefrencesInit(), - DeviceUtility.instance!.initPackageInfo() + DeviceUtility.instance.initPackageInfo(), ]); } } diff --git a/module/all_of_template/pubspec.lock b/module/all_of_template/pubspec.lock index c6c7885..b1c6d44 100644 --- a/module/all_of_template/pubspec.lock +++ b/module/all_of_template/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.6.1" + version: "2.8.2" boolean_selector: dependency: transitive description: @@ -21,14 +21,14 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.0" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" clock: dependency: transitive description: @@ -106,14 +106,14 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.10" + version: "0.12.11" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" mime: dependency: transitive description: @@ -202,7 +202,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.3.0" + version: "0.4.3" typed_data: dependency: transitive description: @@ -258,7 +258,7 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.1.1" sdks: - dart: ">=2.12.0 <3.0.0" + dart: ">=2.14.0 <3.0.0" flutter: ">=2.0.0" diff --git a/module/architecture_widgets/pubspec.lock b/module/architecture_widgets/pubspec.lock index 8d7ad06..a6f474c 100644 --- a/module/architecture_widgets/pubspec.lock +++ b/module/architecture_widgets/pubspec.lock @@ -1,20 +1,13 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: - _fe_analyzer_shared: + all_of_template: dependency: transitive description: - name: _fe_analyzer_shared - url: "https://pub.dartlang.org" - source: hosted - version: "22.0.0" - analyzer: - dependency: transitive - description: - name: analyzer - url: "https://pub.dartlang.org" - source: hosted - version: "1.7.1" + path: "../all_of_template" + relative: true + source: path + version: "0.0.1" animations: dependency: transitive description: @@ -22,6 +15,15 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.0.1" + architecture_theme: + dependency: transitive + description: + path: "." + ref: HEAD + resolved-ref: "642ea0031325d1d5fa7d1ce2c328b35892639a52" + url: "https://github.com/VB10/architecture_theme.git" + source: git + version: "0.0.1" archive: dependency: transitive description: @@ -42,7 +44,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.6.1" + version: "2.8.2" auto_size_text: dependency: transitive description: @@ -57,62 +59,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.0" - build: - dependency: transitive - description: - name: build - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.3" - build_config: - dependency: transitive - description: - name: build_config - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.7" - build_daemon: - dependency: transitive - description: - name: build_daemon - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.10" - build_resolvers: - dependency: transitive - description: - name: build_resolvers - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.4" - build_runner: - dependency: transitive - description: - name: build_runner - url: "https://pub.dartlang.org" - source: hosted - version: "1.12.2" - build_runner_core: - dependency: transitive - description: - name: build_runner_core - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.12" - built_collection: - dependency: transitive - description: - name: built_collection - url: "https://pub.dartlang.org" - source: hosted - version: "5.1.0" - built_value: - dependency: transitive - description: - name: built_value - url: "https://pub.dartlang.org" - source: hosted - version: "8.1.1" cached_network_image: dependency: transitive description: @@ -126,28 +72,14 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.0" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" - checked_yaml: - dependency: transitive - description: - name: checked_yaml - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - cli_util: - dependency: transitive - description: - name: cli_util - url: "https://pub.dartlang.org" - source: hosted - version: "0.3.3" + version: "1.3.1" clock: dependency: transitive description: @@ -155,13 +87,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.1.0" - code_builder: - dependency: transitive - description: - name: code_builder - url: "https://pub.dartlang.org" - source: hosted - version: "3.7.0" collection: dependency: transitive description: @@ -169,13 +94,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.15.0" - convert: - dependency: transitive - description: - name: convert - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.1" crypto: dependency: transitive description: @@ -190,13 +108,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.0.3" - dart_style: - dependency: transitive - description: - name: dart_style - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" device_info: dependency: transitive description: @@ -253,13 +164,48 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "6.1.2" - fixnum: + firebase_analytics: dependency: transitive description: - name: fixnum + name: firebase_analytics url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "9.0.5" + firebase_analytics_platform_interface: + dependency: transitive + description: + name: firebase_analytics_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.4" + firebase_analytics_web: + dependency: transitive + description: + name: firebase_analytics_web + url: "https://pub.dartlang.org" + source: hosted + version: "0.4.0+5" + firebase_core: + dependency: transitive + description: + name: firebase_core + url: "https://pub.dartlang.org" + source: hosted + version: "1.11.0" + firebase_core_platform_interface: + dependency: transitive + description: + name: firebase_core_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "4.2.3" + firebase_core_web: + dependency: transitive + description: + name: firebase_core_web + url: "https://pub.dartlang.org" + source: hosted + version: "1.5.3" flutter: dependency: "direct main" description: flutter @@ -322,20 +268,6 @@ packages: relative: true source: path version: "0.0.9" - glob: - dependency: transitive - description: - name: glob - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - graphs: - dependency: transitive - description: - name: graphs - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" http: dependency: transitive description: @@ -343,13 +275,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.13.3" - http_multi_server: - dependency: transitive - description: - name: http_multi_server - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.1" http_parser: dependency: transitive description: @@ -364,13 +289,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.17.0" - io: - dependency: transitive - description: - name: io - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.3" js: dependency: transitive description: @@ -378,20 +296,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.6.3" - json_annotation: - dependency: transitive - description: - name: json_annotation - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.1" - json_serializable: - dependency: transitive - description: - name: json_serializable - url: "https://pub.dartlang.org" - source: hosted - version: "4.1.3" kartal: dependency: transitive description: @@ -406,13 +310,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.0.0" - logging: - dependency: transitive - description: - name: logging - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" lottie: dependency: transitive description: @@ -433,14 +330,14 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.10" + version: "0.12.11" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" mime: dependency: transitive description: @@ -455,20 +352,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.0.1" - mobx_codegen: - dependency: transitive - description: - name: mobx_codegen - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1+3" - mockito: - dependency: transitive - description: - name: mockito - url: "https://pub.dartlang.org" - source: hosted - version: "5.0.7" nested: dependency: transitive description: @@ -483,13 +366,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.0.0+1" - package_config: - dependency: transitive - description: - name: package_config - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0" package_info: dependency: transitive description: @@ -581,13 +457,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.0.1" - pool: - dependency: transitive - description: - name: pool - url: "https://pub.dartlang.org" - source: hosted - version: "1.5.0" process: dependency: transitive description: @@ -602,20 +471,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "5.0.0" - pub_semver: - dependency: transitive - description: - name: pub_semver - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0" - pubspec_parse: - dependency: transitive - description: - name: pubspec_parse - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" rxdart: dependency: transitive description: @@ -679,20 +534,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.0.0" - shelf: - dependency: transitive - description: - name: shelf - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.0" - shelf_web_socket: - dependency: transitive - description: - name: shelf_web_socket - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" shimmer: dependency: transitive description: @@ -705,13 +546,6 @@ packages: description: flutter source: sdk version: "0.0.99" - source_gen: - dependency: transitive - description: - name: source_gen - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.2" source_span: dependency: transitive description: @@ -747,13 +581,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.0" - stream_transform: - dependency: transitive - description: - name: stream_transform - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0" string_scanner: dependency: transitive description: @@ -781,14 +608,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.3.0" - timing: - dependency: transitive - description: - name: timing - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" + version: "0.4.3" typed_data: dependency: transitive description: @@ -851,7 +671,7 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.1.1" vexana: dependency: transitive description: @@ -859,20 +679,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.2.1" - watcher: - dependency: transitive - description: - name: watcher - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" - web_socket_channel: - dependency: transitive - description: - name: web_socket_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" webview_flutter: dependency: transitive description: @@ -901,13 +707,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "5.1.2" - yaml: - dependency: transitive - description: - name: yaml - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.0" sdks: - dart: ">=2.13.0 <3.0.0" + dart: ">=2.14.0 <3.0.0" flutter: ">=2.0.0" diff --git a/pubspec.lock b/pubspec.lock index 42b2865..7be11d6 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -65,7 +65,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.6.1" + version: "2.8.2" auto_size_text: dependency: "direct main" description: @@ -109,7 +109,7 @@ packages: source: hosted version: "2.0.0" build_runner: - dependency: "direct main" + dependency: "direct dev" description: name: build_runner url: "https://pub.dartlang.org" @@ -149,14 +149,14 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.0" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" checked_yaml: dependency: transitive description: @@ -184,7 +184,7 @@ packages: name: code_builder url: "https://pub.dartlang.org" source: hosted - version: "3.5.0" + version: "3.7.0" collection: dependency: transitive description: @@ -247,7 +247,14 @@ packages: name: easy_localization url: "https://pub.dartlang.org" source: hosted - version: "2.3.3+1" + version: "3.0.0" + easy_logger: + dependency: transitive + description: + name: easy_logger + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.2" fake_async: dependency: transitive description: @@ -269,55 +276,48 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "6.1.0" - firebase: - dependency: transitive - description: - name: firebase - url: "https://pub.dartlang.org" - source: hosted - version: "7.3.3" firebase_analytics: dependency: "direct main" description: name: firebase_analytics url: "https://pub.dartlang.org" source: hosted - version: "7.0.1" + version: "9.0.5" firebase_analytics_platform_interface: dependency: transitive description: name: firebase_analytics_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "3.0.4" firebase_analytics_web: dependency: transitive description: name: firebase_analytics_web url: "https://pub.dartlang.org" source: hosted - version: "0.1.1" + version: "0.4.0+5" firebase_core: - dependency: transitive + dependency: "direct main" description: name: firebase_core url: "https://pub.dartlang.org" source: hosted - version: "0.7.0" + version: "1.11.0" firebase_core_platform_interface: dependency: transitive description: name: firebase_core_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "3.0.1" + version: "4.2.3" firebase_core_web: dependency: transitive description: name: firebase_core_web url: "https://pub.dartlang.org" source: hosted - version: "0.2.1+3" + version: "1.5.3" fixnum: dependency: transitive description: @@ -444,14 +444,14 @@ packages: source: hosted version: "0.6.3" json_annotation: - dependency: "direct main" + dependency: "direct dev" description: name: json_annotation url: "https://pub.dartlang.org" source: hosted version: "4.0.1" json_serializable: - dependency: "direct main" + dependency: "direct dev" description: name: json_serializable url: "https://pub.dartlang.org" @@ -498,14 +498,14 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.10" + version: "0.12.11" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" mime: dependency: transitive description: @@ -521,40 +521,26 @@ packages: source: hosted version: "2.0.1" mobx_codegen: - dependency: "direct main" + dependency: "direct dev" description: name: mobx_codegen url: "https://pub.dartlang.org" source: hosted version: "2.0.1+3" mockito: - dependency: "direct main" + dependency: "direct dev" description: name: mockito url: "https://pub.dartlang.org" source: hosted - version: "4.1.1+1" + version: "5.0.7" nested: dependency: transitive description: name: nested url: "https://pub.dartlang.org" source: hosted - version: "0.0.4" - node_interop: - dependency: transitive - description: - name: node_interop - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - node_io: - dependency: transitive - description: - name: node_io - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" + version: "1.0.0" octo_image: dependency: transitive description: @@ -633,7 +619,7 @@ packages: source: hosted version: "2.0.0" pedantic: - dependency: "direct main" + dependency: "direct dev" description: name: pedantic url: "https://pub.dartlang.org" @@ -867,7 +853,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.3.0" + version: "0.4.3" timing: dependency: transitive description: @@ -937,7 +923,7 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.1.1" vexana: dependency: "direct main" description: @@ -995,5 +981,5 @@ packages: source: hosted version: "3.1.0" sdks: - dart: ">=2.12.0 <3.0.0" + dart: ">=2.14.0 <3.0.0" flutter: ">=1.24.0-10.2.pre" diff --git a/pubspec.yaml b/pubspec.yaml index 305ef51..9c9604e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,20 +1,8 @@ name: fluttermvvmtemplate -description: A new Flutter project. +description: A Flutter template project for everyone. -# The following line prevents the package from being accidentally published to -# pub.dev using `pub publish`. This is preferred for private packages. -publish_to: none # Remove this line if you wish to publish to pub.dev +publish_to: none -# The following defines the version and build number for your application. -# A version number is three numbers separated by dots, like 1.2.43 -# followed by an optional build number separated by a +. -# Both the version and the builder number may be overridden in flutter -# build by specifying --build-name and --build-number, respectively. -# In Android, build-name is used as versionName while build-number used as versionCode. -# Read more about Android versioning at https://developer.android.com/studio/publish/versioning -# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. -# Read more about iOS versioning at -# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html version: 0.0.9 environment: @@ -23,36 +11,40 @@ environment: dependencies: flutter: sdk: flutter - animations: ^2.0.0 - auto_size_text: ^3.0.0-nullsafety.0 - build_runner: ^1.10.0 - cached_network_image: ^3.0.0-nullsafety - cupertino_icons: ^1.0.2 + + # state management + flutter_mobx: ^2.0.0 + mobx: ^2.0.1 + provider: ^5.0.0 + + # network # dio: ^4.0.0-prev3 - # vexana has a package + vexana: ^2.2.0 + + # database + shared_preferences: ^2.0.5 + + # language easy_localization: ^3.0.0 - firebase-analytics + + # firebase + firebase_core: ^1.11.0 firebase_analytics: any - flutter_mobx: ^2.0.0-nullsafety.3 + + # core utilities + kartal: ^2.1.0 + logger: ^1.0.0 + webview_flutter: ^2.0.4 - flutter_mobx: ^2.0.0 + # ui utilities + animations: ^2.0.0 + auto_size_text: ^3.0.0-nullsafety.0 + cached_network_image: ^3.0.0-nullsafety + cupertino_icons: ^1.0.2 flutter_rating_bar: ^4.0.0 - master flutter_svg: ^0.21.0-nullsafety.0 - json_annotation: ^4.0.1 - json_serializable: ^4.1.0 - kartal: ^2.1.0 - mobx: ^2.0.1 - mobx_codegen: ^2.0.1+3 - mockito: any - pedantic: ^1.11.0 - provider: ^5.0.0 lottie: ^1.0.1 - shared_preferences: ^2.0.5 shimmer: ^2.0.0-nullsafety.0 - vexana: ^2.2.0 - webview_flutter: ^2.0.4 - logger: ^1.0.0 architecture_theme: git: https://github.com/VB10/architecture_theme.git @@ -60,33 +52,23 @@ dependencies: path: module/architecture_widgets all_of_template: path: module/all_of_template + dev_dependencies: flutter_test: sdk: flutter -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec -# The following section is specific to Flutter. + build_runner: ^1.10.0 + json_annotation: ^4.0.1 + json_serializable: ^4.1.0 + mobx_codegen: ^2.0.1+3 + mockito: any + pedantic: ^1.11.0 + flutter: - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. uses-material-design: true - # To add assets to your application, add an assets section, like this: assets: - asset/lang/ - asset/svg/ - asset/image/ - - asset/lottie/ - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware. - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages + - asset/lottie/ \ No newline at end of file