Skip to content

Commit

Permalink
chore(flutter_app_packager): Move app_package_maker source to flutter…
Browse files Browse the repository at this point in the history
…_app_packager
  • Loading branch information
lijy91 committed Apr 16, 2024
1 parent 640b31d commit 7f0ceab
Show file tree
Hide file tree
Showing 58 changed files with 366 additions and 615 deletions.
128 changes: 65 additions & 63 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,114 +1,107 @@
include: package:lints/recommended.yaml

linter:
rules:
## Error Rules
- always_use_package_imports
# - avoid_dynamic_calls
- avoid_empty_else
# - avoid_print
- avoid_relative_lib_imports
# - avoid_returning_null_for_future
# - avoid_slow_async_io
# - avoid_type_to_string
- avoid_types_as_parameter_names
# - avoid_web_libraries_in_flutter
# - cancel_subscriptions
# - close_sinks
# - collection_methods_unrelated_type
# - comment_references
- control_flow_in_finally
# - diagnostic_describe_all_properties
# - discarded_futures
- empty_statements
- hash_and_equals
# - invariant_booleans
- iterable_contains_unrelated_type
- list_remove_unrelated_type
# - literal_only_boolean_expressions
# - no_adjacent_strings_in_list
- no_duplicate_case_values
# - no_logic_in_create_state
# - prefer_relative_imports
- prefer_void_to_null
# - test_types_in_equals
# - throw_in_finally
# - unnecessary_statements
- unrelated_type_equality_checks
# - unsafe_html
# - use_build_context_synchronously
# - use_key_in_widget_constructors
- valid_regexps
## Style rules
# - always_declare_return_types
# - always_put_control_body_on_new_line
# - always_put_required_named_parameters_first
# - always_specify_types
- always_use_package_imports
- annotate_overrides
# - annotate_redeclares
# - avoid_annotating_with_dynamic
# - avoid_as
# - avoid_bool_literals_in_conditional_expressions
# - avoid_catches_without_on_clauses
# - avoid_catching_errors
# - avoid_classes_with_only_static_members
# - avoid_double_and_int_checks
# - avoid_dynamic_calls
- avoid_empty_else
# - avoid_equals_and_hash_code_on_mutable_classes
# - avoid_escaping_inner_quotes
# - avoid_field_initializers_in_const_classes
# - avoid_final_parameters
- avoid_final_parameters
- avoid_function_literals_in_foreach_calls
# - avoid_implementing_value_types
- avoid_init_to_null
# - avoid_js_rounded_ints
# - avoid_multiple_declarations_per_line
- avoid_null_checks_in_equality_operators
# - avoid_positional_boolean_parameters
# - avoid_print
# - avoid_private_typedef_functions
# - avoid_redundant_argument_values
- avoid_relative_lib_imports
- avoid_renaming_method_parameters
- avoid_return_types_on_setters
# - avoid_returning_null
- avoid_returning_null_for_void
# - avoid_returning_this
# - avoid_setters_without_getters
- avoid_shadowing_type_parameters
- avoid_single_cascade_in_expression_statements
# - avoid_slow_async_io
# - avoid_type_to_string
- avoid_types_as_parameter_names
# - avoid_types_on_closure_parameters
# - avoid_unnecessary_containers
- avoid_unnecessary_containers
# - avoid_unused_constructor_parameters
# - avoid_void_async
- avoid_void_async
- avoid_web_libraries_in_flutter
- await_only_futures
- camel_case_extensions
- camel_case_types
# - cancel_subscriptions
# - cascade_invocations
# - cast_nullable_to_non_nullable
# - combinators_ordering
# - close_sinks
# - collection_methods_unrelated_type
- combinators_ordering
# - comment_references
# - conditional_uri_does_not_exist
# - constant_identifier_names
- control_flow_in_finally
- curly_braces_in_flow_control_structures
# - dangling_library_doc_comments
- depend_on_referenced_packages
# - deprecated_consistency
# - deprecated_member_use_from_same_package
# - diagnostic_describe_all_properties
- directives_ordering
# - discarded_futures
# - do_not_use_environment
- empty_catches
- empty_constructor_bodies
# - enable_null_safety
- empty_statements
- eol_at_end_of_file
- exhaustive_cases
- file_names
- flutter_style_todos
- hash_and_equals
- implementation_imports
# - implicit_call_tearoffs
# - implicit_reopen
# - invalid_case_patterns
# - join_return_with_assignment
# - leading_newlines_in_multiline_strings
# - library_annotations
- library_names
- library_prefixes
- library_private_types_in_public_api
# - lines_longer_than_80_chars
# - literal_only_boolean_expressions
# - matching_super_parameters
# - missing_code_block_language_in_doc_comment
# - missing_whitespace_between_adjacent_strings
# - no_adjacent_strings_in_list
# - no_default_cases
- no_duplicate_case_values
- no_leading_underscores_for_library_prefixes
- no_leading_underscores_for_local_identifiers
# - no_literal_bool_comparisons
- no_logic_in_create_state
# - no_runtimeType_toString
# - no_self_assignments
# - no_wildcard_variable_uses
- non_constant_identifier_names
# - noop_primitive_operations
- null_check_on_nullable_type_parameter
Expand All @@ -118,18 +111,18 @@ linter:
# - only_throw_errors
- overridden_fields
# - package_api_docs
- package_names
- package_prefixed_library_names
# - parameter_assignments
- prefer_adjacent_string_concatenation
# - prefer_asserts_in_initializer_lists
# - prefer_asserts_with_message
# - prefer_bool_in_asserts
- prefer_collection_literals
- prefer_conditional_assignment
# - prefer_const_constructors
# - prefer_const_constructors_in_immutables
# - prefer_const_declarations
# - prefer_const_literals_to_create_immutables
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
# - prefer_constructors_over_static_methods
- prefer_contains
# - prefer_double_quotes
Expand All @@ -155,24 +148,31 @@ linter:
# - prefer_mixin
- prefer_null_aware_method_calls
- prefer_null_aware_operators
# - prefer_relative_imports
- prefer_single_quotes
- prefer_spread_collections
- prefer_typing_uninitialized_variables
- prefer_void_to_null
- provide_deprecation_message
# - public_member_api_docs
- recursive_getters
# - require_trailing_commas
# - sized_box_for_whitespace
- require_trailing_commas
# - secure_pubspec_urls
- sized_box_for_whitespace
# - sized_box_shrink_expand
- slash_for_doc_comments
# - sort_child_properties_last
- sort_child_properties_last
- sort_constructors_first
- sort_pub_dependencies
- sort_unnamed_constructors_first
# - super_goes_last
# - test_types_in_equals
# - throw_in_finally
# - tighten_type_of_initializing_formals
# - type_annotate_public_apis
- type_init_formals
# - type_literal_in_constant_pattern
# - unawaited_futures
# - unintended_html_in_doc_comment
# - unnecessary_await_in_return
- unnecessary_brace_in_string_interps
# - unnecessary_breaks
Expand All @@ -183,6 +183,7 @@ linter:
# - unnecessary_lambdas
- unnecessary_late
# - unnecessary_library_directive
# - unnecessary_library_name
- unnecessary_new
- unnecessary_null_aware_assignments
# - unnecessary_null_aware_operator_on_extension_on_nullable
Expand All @@ -192,18 +193,23 @@ linter:
- unnecessary_overrides
# - unnecessary_parenthesis
# - unnecessary_raw_strings
# - unnecessary_statements
- unnecessary_string_escapes
- unnecessary_string_interpolations
- unnecessary_this
# - unnecessary_to_list_in_spreads
# - unreachable_from_main
# - use_colored_box
# - use_decorated_box
- unrelated_type_equality_checks
# - unsafe_html
- use_build_context_synchronously
- use_colored_box
- use_decorated_box
# - use_enums
# - use_full_hex_values_for_flutter_colors
- use_full_hex_values_for_flutter_colors
- use_function_type_syntax_for_parameters
# - use_if_null_to_convert_nulls_to_bools
# - use_is_even_rather_than_modulo
- use_key_in_widget_constructors
# - use_late_for_private_fields_and_variables
# - use_named_constants
# - use_raw_strings
Expand All @@ -214,9 +220,5 @@ linter:
# - use_super_parameters
# - use_test_throws_matchers
# - use_to_and_as_if_applicable
- void_checks
## Pub rules
- depend_on_referenced_packages
- package_names
# - secure_pubspec_urls
- sort_pub_dependencies
- valid_regexps
# - void_checks
50 changes: 13 additions & 37 deletions examples/hello_world/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,30 +75,6 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
leak_tracker:
dependency: transitive
description:
name: leak_tracker
sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa"
url: "https://pub.dev"
source: hosted
version: "10.0.0"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
url: "https://pub.dev"
source: hosted
version: "2.0.1"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
url: "https://pub.dev"
source: hosted
version: "2.0.1"
lints:
dependency: transitive
description:
Expand All @@ -111,34 +87,34 @@ packages:
dependency: transitive
description:
name: matcher
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
url: "https://pub.dev"
source: hosted
version: "0.12.16+1"
version: "0.12.16"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
url: "https://pub.dev"
source: hosted
version: "0.8.0"
version: "0.5.0"
meta:
dependency: transitive
description:
name: meta
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.10.0"
path:
dependency: transitive
description:
name: path
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
url: "https://pub.dev"
source: hosted
version: "1.9.0"
version: "1.8.3"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -200,13 +176,13 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
vm_service:
web:
dependency: transitive
description:
name: vm_service
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
name: web
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev"
source: hosted
version: "13.0.0"
version: "0.3.0"
sdks:
dart: ">=3.2.0-0 <4.0.0"
dart: ">=3.2.0-194.0.dev <4.0.0"
4 changes: 0 additions & 4 deletions packages/app_package_maker/.gitignore

This file was deleted.

Loading

0 comments on commit 7f0ceab

Please sign in to comment.