Skip to content

Commit

Permalink
merged with upstream. Added recommended changes to color face PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mav committed Mar 14, 2024
2 parents 2e39884 + 7e75dc9 commit e7d5061
Show file tree
Hide file tree
Showing 6 changed files with 190 additions and 73 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Flutter CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container:
image: ghcr.io/cirruslabs/flutter:stable

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Flutter pub get
run: flutter pub get

- name: Activate dart_code_metrics
run: flutter pub global activate dart_code_metrics

- name: Run code metrics
run: flutter pub global run dart_code_metrics:metrics lib -r codeclimate > gh-code-quality-report.json

- name: Upload code quality report
uses: actions/upload-artifact@v2
with:
name: code-quality-report
path: gh-code-quality-report.json

analyze:
name: Analyze
runs-on: ubuntu-latest
container:
image: ghcr.io/cirruslabs/flutter:stable

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Flutter pub get
run: flutter pub get

- name: Run Dart analyze
run: dart analyze --fatal-infos

format:
name: Format
runs-on: ubuntu-latest
container:
image: ghcr.io/cirruslabs/flutter:stable

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Flutter pub get
run: flutter pub get

- name: Run Dart format
run: dart format . -o none --set-exit-if-changed
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# 1.0.0 (Not Released)
- More precise gesture control (https://github.com/arnovanliere/object_3d/pull/2).

# 0.0.1 (October 23, 2022)
Initial release.

19 changes: 19 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
include: package:flutter_lints/flutter.yaml

analyzer:
exclude:
# workaround for https://github.com/dart-lang/sdk/issues/42910
- 'example/**'

linter:
# https://dart-lang.github.io/linter/lints/index.html.
rules:
prefer_single_quotes: true
require_trailing_commas: true
prefer_final_locals: true
prefer_final_in_for_each: true
use_build_context_synchronously: true
always_declare_return_types: true
always_specify_types: false
omit_local_variable_types: true
avoid_types_on_closure_parameters: true
27 changes: 16 additions & 11 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ packages:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
url: "https://pub.dev"
source: hosted
version: "1.2.1"
version: "1.3.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.16.0"
version: "1.18.0"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -24,16 +26,18 @@ packages:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
url: "https://pub.dev"
source: hosted
version: "0.1.5"
version: "0.8.0"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
url: "https://pub.dev"
source: hosted
version: "1.8.0"
version: "1.11.0"
object_3d:
dependency: "direct main"
description:
Expand All @@ -50,9 +54,10 @@ packages:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.1.4"
sdks:
dart: ">=2.18.2 <3.0.0"
dart: ">=3.2.0-0 <4.0.0"
flutter: ">=1.17.0"
Loading

0 comments on commit e7d5061

Please sign in to comment.