From 8a9fb1d55c0050af36561683fb285f9f6adb768b Mon Sep 17 00:00:00 2001 From: Sergey Penkovsky Date: Wed, 28 Apr 2021 09:30:32 +0300 Subject: [PATCH] updated libs, fixed warnings --- analysis_options.yaml | 1 + example/pubspec.yaml | 1 + lib/binding.dart | 24 ++++++++++++------------ lib/dart_di.dart | 24 ++++++++++++------------ lib/di.dart | 25 +++++++++++++------------ lib/factory.dart | 24 ++++++++++++------------ lib/module.dart | 24 ++++++++++++------------ lib/scope.dart | 24 ++++++++++++------------ pubspec.yaml | 6 ++++-- 9 files changed, 79 insertions(+), 74 deletions(-) create mode 100644 analysis_options.yaml diff --git a/ analysis_options.yaml b/ analysis_options.yaml new file mode 100644 index 0000000..d63af85 --- /dev/null +++ b/ analysis_options.yaml @@ -0,0 +1 @@ +include: package:effective_dart/analysis_options.yaml \ No newline at end of file diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 30950cf..1f99490 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -2,6 +2,7 @@ name: example version: 1.0.0 author: "Sergey Penkovsky " homepage: localhost +publish_to: none environment: sdk: ">=2.12.0 <3.0.0" diff --git a/lib/binding.dart b/lib/binding.dart index 49e4501..edc668d 100644 --- a/lib/binding.dart +++ b/lib/binding.dart @@ -1,15 +1,15 @@ -/** - * Copyright 2021 Sergey Penkovsky - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +/// +/// Copyright 2021 Sergey Penkovsky +/// Licensed under the Apache License, Version 2.0 (the "License"); +/// you may not use this file except in compliance with the License. +/// You may obtain a copy of the License at +/// http://www.apache.org/licenses/LICENSE-2.0 +/// Unless required by applicable law or agreed to in writing, software +/// distributed under the License is distributed on an "AS IS" BASIS, +/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +/// See the License for the specific language governing permissions and +/// limitations under the License. +/// enum Mode { SIMPLE, INSTANCE, PROVIDER_INSTANCE } diff --git a/lib/dart_di.dart b/lib/dart_di.dart index 031c34b..a3268e4 100644 --- a/lib/dart_di.dart +++ b/lib/dart_di.dart @@ -1,15 +1,15 @@ -/** - * Copyright 2021 Sergey Penkovsky - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +/// +/// Copyright 2021 Sergey Penkovsky +/// Licensed under the Apache License, Version 2.0 (the "License"); +/// you may not use this file except in compliance with the License. +/// You may obtain a copy of the License at +/// http://www.apache.org/licenses/LICENSE-2.0 +/// Unless required by applicable law or agreed to in writing, software +/// distributed under the License is distributed on an "AS IS" BASIS, +/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +/// See the License for the specific language governing permissions and +/// limitations under the License. +/// library dart_di; diff --git a/lib/di.dart b/lib/di.dart index 883072a..a14e640 100644 --- a/lib/di.dart +++ b/lib/di.dart @@ -1,15 +1,16 @@ -/** - * Copyright 2021 Sergey Penkovsky - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +/// +/// Copyright 2021 Sergey Penkovsky +/// Licensed under the Apache License, Version 2.0 (the "License"); +/// you may not use this file except in compliance with the License. +/// You may obtain a copy of the License at +/// http://www.apache.org/licenses/LICENSE-2.0 +/// Unless required by applicable law or agreed to in writing, software +/// distributed under the License is distributed on an "AS IS" BASIS, +/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +/// See the License for the specific language governing permissions and +/// limitations under the License. +/// + import 'package:cherrypick/scope.dart'; Scope? _rootScope = null; diff --git a/lib/factory.dart b/lib/factory.dart index c9af53f..5c093c4 100644 --- a/lib/factory.dart +++ b/lib/factory.dart @@ -1,15 +1,15 @@ -/** - * Copyright 2021 Sergey Penkovsky - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +/// +/// Copyright 2021 Sergey Penkovsky +/// Licensed under the Apache License, Version 2.0 (the "License"); +/// you may not use this file except in compliance with the License. +/// You may obtain a copy of the License at +/// http://www.apache.org/licenses/LICENSE-2.0 +/// Unless required by applicable law or agreed to in writing, software +/// distributed under the License is distributed on an "AS IS" BASIS, +/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +/// See the License for the specific language governing permissions and +/// limitations under the License. +/// import 'package:cherrypick/scope.dart'; diff --git a/lib/module.dart b/lib/module.dart index a976d7d..8f44b73 100644 --- a/lib/module.dart +++ b/lib/module.dart @@ -1,15 +1,15 @@ -/** - * Copyright 2021 Sergey Penkovsky - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +/// +/// Copyright 2021 Sergey Penkovsky +/// Licensed under the Apache License, Version 2.0 (the "License"); +/// you may not use this file except in compliance with the License. +/// You may obtain a copy of the License at +/// http://www.apache.org/licenses/LICENSE-2.0 +/// Unless required by applicable law or agreed to in writing, software +/// distributed under the License is distributed on an "AS IS" BASIS, +/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +/// See the License for the specific language governing permissions and +/// limitations under the License. +/// import 'dart:collection'; diff --git a/lib/scope.dart b/lib/scope.dart index c5d5f40..460993c 100644 --- a/lib/scope.dart +++ b/lib/scope.dart @@ -1,15 +1,15 @@ -/** - * Copyright 2021 Sergey Penkovsky - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +/// +/// Copyright 2021 Sergey Penkovsky +/// Licensed under the Apache License, Version 2.0 (the "License"); +/// you may not use this file except in compliance with the License. +/// You may obtain a copy of the License at +/// http://www.apache.org/licenses/LICENSE-2.0 +/// Unless required by applicable law or agreed to in writing, software +/// distributed under the License is distributed on an "AS IS" BASIS, +/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +/// See the License for the specific language governing permissions and +/// limitations under the License. +/// import 'dart:collection'; diff --git a/pubspec.yaml b/pubspec.yaml index 43c0e0c..03b6b73 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,6 +13,8 @@ dependencies: meta: ^1.3.0 dev_dependencies: - test: ^1.16.8 + effective_dart: ^1.3.1 - mockito: ^5.0.3 + test: ^1.17.2 + + mockito: ^5.0.6