Skip to content

Commit

Permalink
feat(common): update packages in yaml (#33)
Browse files Browse the repository at this point in the history
* feat(common): update packages in yaml

* fix(common): changed flutter format command

* fix(common): changed flutter format command

* fix: update pub dependencies.

Signed-off-by: Tushar Sharma <[email protected]>

---------

Signed-off-by: Tushar Sharma <[email protected]>
Co-authored-by: Tushar Sharma <[email protected]>
  • Loading branch information
Khushboo1702 and TusharFA authored Jan 4, 2024
1 parent 4a90e9b commit 668b358
Show file tree
Hide file tree
Showing 7 changed files with 839 additions and 594 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: Test
# events but only for the master branch
on:
push:
branches: [ main, develop ]
branches: [main, develop]
pull_request:
branches: [ main, develop ]
branches: [main, develop]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -28,24 +28,24 @@ jobs:
java-version: 1.8
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: "stable"

- name: "Activate remove_from_coverage package"
run: flutter pub global activate remove_from_coverage

- name: 'Flutter Doctor'
- name: "Flutter Doctor"
run: flutter doctor -v

- name: 'Flutter Pub Get'
- name: "Flutter Pub Get"
run: flutter pub get

- name: 'Flutter Format Check'
run: flutter format --set-exit-if-changed --dry-run .
- name: "Flutter Format Check"
run: dart format --set-exit-if-changed -o none .

- name: 'Run Test(s)'
- name: "Run Test(s)"
run: flutter test --coverage

- name: 'Remove ignored files from coverage'
- name: "Remove ignored files from coverage"
run: |
remove_from_coverage -f coverage/lcov.info -r '\.g\.dart$' -r '\.freezed\.dart$'
Expand Down
4 changes: 4 additions & 0 deletions example/linux/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@

#include "generated_plugin_registrant.h"

#include <file_selector_linux/file_selector_plugin.h>
#include <url_launcher_linux/url_launcher_plugin.h>

void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
Expand Down
1 change: 1 addition & 0 deletions example/linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#

list(APPEND FLUTTER_PLUGIN_LIST
file_selector_linux
url_launcher_linux
)

Expand Down
2 changes: 2 additions & 0 deletions example/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import FlutterMacOS
import Foundation

import device_info_plus
import file_selector_macos
import firebase_analytics
import firebase_core
import firebase_crashlytics
Expand All @@ -19,6 +20,7 @@ import url_launcher_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin"))
FLTFirebaseAnalyticsPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAnalyticsPlugin"))
FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
FLTFirebaseCrashlyticsPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCrashlyticsPlugin"))
Expand Down
Loading

0 comments on commit 668b358

Please sign in to comment.