Skip to content

Commit

Permalink
v2.1 Flutter - Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisMik committed Dec 6, 2024
1 parent db8202f commit cb7ad84
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 134 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/flutter-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ jobs:
run: flutter analyze --no-fatal-infos --no-fatal-warnings
working-directory: binding/flutter

- name: Copy Demo Assets
run: ./copy_assets.sh
working-directory: demo/flutter

- name: Run Demo Analyzer
run: flutter analyze --no-fatal-infos --no-fatal-warnings
working-directory: demo/flutter

177 changes: 58 additions & 119 deletions binding/flutter/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,66 +5,51 @@ packages:
dependency: transitive
description:
name: async
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.11.0"
version: "2.9.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
version: "2.1.0"
characters:
dependency: transitive
description:
name: characters
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.2.1"
clock:
dependency: transitive
description:
name: clock
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.1"
collection:
dependency: transitive
description:
name: collection
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.18.0"
version: "1.16.0"
fake_async:
dependency: transitive
description:
name: fake_async
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.1"
ffi:
dependency: transitive
description:
name: ffi
sha256: "35d0f481d939de0d640b3db9a7aa36a52cd22054a798a73b4f50bdad5ce12678"
url: "https://pub.dev"
source: hosted
version: "1.1.2"
file:
dependency: transitive
description:
name: file
sha256: "9fd2163d866769f60f4df8ac1dc59f52498d810c356fe78022e383dd3c57c0e1"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "6.1.0"
version: "2.0.2"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -79,122 +64,93 @@ packages:
dependency: "direct dev"
description:
name: lints
sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
matcher:
dependency: transitive
description:
name: matcher
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.16"
version: "0.12.12"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.0"
version: "0.1.5"
meta:
dependency: transitive
description:
name: meta
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0"
version: "1.8.0"
path:
dependency: transitive
description:
name: path
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.3"
version: "1.8.2"
path_provider:
dependency: "direct main"
description:
name: path_provider
sha256: e92dee4d38a9044605cb3fb253e9b46eb9375dfcad4515d0379b44ac90797568
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.9"
version: "2.1.0"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
sha256: "32bbab16092df3bedab89ed9f2c1cfaedf25d96a5036f62f16d5e372890d068c"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.13"
path_provider_ios:
version: "2.1.0"
path_provider_foundation:
dependency: transitive
description:
name: path_provider_ios
sha256: "943b76e54056386432cdc2731cb303e2f580346b61a1fc73819721767be72309"
url: "https://pub.dev"
name: path_provider_foundation
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
version: "2.3.0"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
sha256: "1e109f4df28bd95eab71e323008b53d19c4d633bc1ab05b577518773474e9621"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.5"
path_provider_macos:
dependency: transitive
description:
name: path_provider_macos
sha256: eb58b896ea3a504f0b0fa7870646bda6935a6f752b2a54df33f97070dacca8d4
url: "https://pub.dev"
source: hosted
version: "2.0.0"
version: "2.2.0"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
sha256: c2af5a8a6369992d915f8933dfc23172071001359d17896e83db8be57db8a397
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
version: "2.1.0"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
sha256: "366ad4e3541ea707f859e7148d4d5aba67d589d7936cee04a05c464a277eeb27"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.5"
version: "2.2.0"
platform:
dependency: transitive
description:
name: platform
sha256: ebc79f16b5f6b609aad4a5e63447d4795d16f7adee46e93ed03200848c006735
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0"
version: "3.1.1"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
sha256: c2c49e16d42fd6983eb55e44b7f197fdf16b4da7aab7f8e1d21da307cad3fb02
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
process:
dependency: transitive
description:
name: process
sha256: dc3c073b5bc0db4e0f3dbc6b69f8e9cf2f336dafb3db996242ebdacf94c295dd
url: "https://pub.dev"
source: hosted
version: "4.2.1"
version: "2.1.5"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -204,82 +160,65 @@ packages:
dependency: transitive
description:
name: source_span
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0"
version: "1.9.0"
stack_trace:
dependency: transitive
description:
name: stack_trace
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.11.1"
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.1.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.1"
test_api:
dependency: transitive
description:
name: test_api
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.1"
version: "0.4.12"
vector_math:
dependency: transitive
description:
name: vector_math
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
web:
dependency: transitive
description:
name: web
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev"
source: hosted
version: "0.3.0"
version: "2.1.2"
win32:
dependency: transitive
description:
name: win32
sha256: c0ee29e0f6e4ee5a63983aae753640adc15017b34e50424f8b45063426e19c5b
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.5"
version: "4.1.4"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
sha256: "0186b3f2d66be9a12b0295bddcf8b6f8c0b0cc2f85c6287344e2a6366bc28457"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0"
version: "1.0.2"
sdks:
dart: ">=3.2.0-194.0.dev <4.0.0"
flutter: ">=2.8.1"
dart: ">=2.18.0 <3.0.0"
flutter: ">=3.3.0"
2 changes: 0 additions & 2 deletions demo/flutter/integration_test/app_test.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import 'dart:convert';
import 'dart:io';
import 'dart:math';
import 'dart:typed_data';

import 'package:flutter/services.dart' show rootBundle;
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:path_provider/path_provider.dart';

import 'package:cheetah_flutter/cheetah.dart';
import 'package:cheetah_flutter/cheetah_error.dart';
Expand Down
8 changes: 0 additions & 8 deletions demo/flutter/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:cheetah_demo/cheetah_manager.dart';
import 'package:cheetah_flutter/cheetah_error.dart';
Expand Down Expand Up @@ -52,13 +51,6 @@ class _MyAppState extends State<MyApp> {
}

Future<void> initCheetah() async {
String platform = Platform.isAndroid
? "android"
: Platform.isIOS
? "ios"
: throw CheetahRuntimeException(
"This demo supports iOS and Android only.");

String language = "";
try {
final paramsString =
Expand Down

0 comments on commit cb7ad84

Please sign in to comment.