Skip to content

Commit

Permalink
chore: Enable Custom Lint for util package and Update fvm-config-acti…
Browse files Browse the repository at this point in the history
…on to v3
  • Loading branch information
riscait committed Oct 1, 2024
1 parent 8f0d427 commit 3a06d0d
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 44 deletions.
20 changes: 0 additions & 20 deletions .github/actions/setup_flutter/action.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/deploy-ios-production-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Flutter
uses: ./.github/actions/setup_flutter
- name: Setup Flutter with FVM
uses: kuhnroyal/flutter-fvm-config-action/setup@v3

- name: Deploy iOS app
uses: ./.github/actions/deploy_ios_app
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-ios-staging-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Flutter
uses: ./.github/actions/setup_flutter
- name: Setup Flutter with FVM
uses: kuhnroyal/flutter-fvm-config-action/setup@v3

- name: Deploy iOS app
uses: ./.github/actions/deploy_ios_app
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/flutter-app-code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Flutter
- name: Setup Flutter with FVM
id: setup-flutter
uses: ./.github/actions/setup_flutter
uses: kuhnroyal/flutter-fvm-config-action/setup@v3

- name: Prepare Melos
run: echo "MELOS_SDK_PATH=${{ steps.setup-flutter.outputs.flutter-path }}" >> "$GITHUB_ENV"
run: echo "MELOS_SDK_PATH=${{ steps.setup-flutter.outputs.CACHE-PATH }}" >> "$GITHUB_ENV"

- name: Install Melos
uses: bluefireteam/melos-action@v3
Expand All @@ -78,9 +78,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Flutter
- name: Setup Flutter with FVM
id: setup-flutter
uses: ./.github/actions/setup_flutter
uses: kuhnroyal/flutter-fvm-config-action/setup@v3

- name: Prepare Melos
run: echo "MELOS_SDK_PATH=${{ steps.setup-flutter.outputs.flutter-path }}" >> "$GITHUB_ENV"
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/pod-install-for-dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,9 @@ jobs:
echo "directory_exists=false" >> "$GITHUB_ENV"
fi
- name: Parse Flutter version
- name: Setup Flutter with FVM
if: env.directory_exists == 'true'
id: fvm
uses: kuhnroyal/flutter-fvm-config-action@v2

- name: Install Flutter
if: env.directory_exists == 'true'
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm.outputs.FLUTTER_CHANNEL }}
cache: true
uses: kuhnroyal/flutter-fvm-config-action/setup@v3

- name: Flutter pub get
if: env.directory_exists == 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-production-android-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Flutter
uses: ./.github/actions/setup_flutter
- name: Setup Flutter with FVM
uses: kuhnroyal/flutter-fvm-config-action/setup@v3

- name: Upload android app
uses: ./.github/actions/upload_android_app
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-staging-android-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Flutter
uses: ./.github/actions/setup_flutter
- name: Setup Flutter with FVM
uses: kuhnroyal/flutter-fvm-config-action/setup@v3

- name: Upload android app
uses: ./.github/actions/upload_android_app
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ unlinked_spec.ds

# macOS
**/macos/Flutter/GeneratedPluginRegistrant.swift
**/macos/Flutter/ephemeral

# Web related
lib/generated_plugin_registrant.dart
Expand Down
3 changes: 3 additions & 0 deletions packages/util/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
include: package:altive_lints/altive_lints.yaml
analyzer:
plugins:
- custom_lint
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class ColorConverter implements JsonConverter<Color, int> {
const ColorConverter();

@override
// ignore: avoid_hardcoded_color
Color fromJson(int json) => Color(json);

@override
Expand Down
1 change: 1 addition & 0 deletions packages/util/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ dependencies:

dev_dependencies:
altive_lints: ^1.12.0
custom_lint: ^0.6.7
flutter_test:
sdk: flutter

0 comments on commit 3a06d0d

Please sign in to comment.