From 33bea2527097e1782d0992e8aa33d5c9a3f7b42d Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Thu, 6 Oct 2022 16:51:32 +0200 Subject: [PATCH] updated dev_packages --- .../.gitignore | 34 ++ .../CHANGELOG.md | 3 + .../LICENSE | 201 +++++++++ .../README.md | 1 + .../pubspec.lock | 320 -------------- .../pubspec.yaml | 2 +- dev_packages/generators/.gitignore | 34 ++ dev_packages/test_gen/analysis_options.yaml | 11 - dev_packages/test_gen/lib/src/main.dart | 6 - .../test_gen/lib/src/test/test_class_2.dart | 10 - dev_packages/test_gen/lib/src/types/main.dart | 2 - .../test_gen/lib/src/types/test_class.dart | 186 -------- .../test_gen/lib/src/types/test_enum.dart | 160 ------- dev_packages/test_gen/lib/test_gen.dart | 10 - dev_packages/test_gen/pubspec.lock | 415 ------------------ dev_packages/test_gen/pubspec.yaml | 20 - 16 files changed, 274 insertions(+), 1141 deletions(-) create mode 100755 dev_packages/flutter_inappwebview_internal_annotations/.gitignore create mode 100755 dev_packages/flutter_inappwebview_internal_annotations/CHANGELOG.md create mode 100755 dev_packages/flutter_inappwebview_internal_annotations/LICENSE create mode 100644 dev_packages/flutter_inappwebview_internal_annotations/README.md delete mode 100644 dev_packages/flutter_inappwebview_internal_annotations/pubspec.lock create mode 100755 dev_packages/generators/.gitignore delete mode 100644 dev_packages/test_gen/analysis_options.yaml delete mode 100644 dev_packages/test_gen/lib/src/main.dart delete mode 100644 dev_packages/test_gen/lib/src/test/test_class_2.dart delete mode 100644 dev_packages/test_gen/lib/src/types/main.dart delete mode 100644 dev_packages/test_gen/lib/src/types/test_class.dart delete mode 100644 dev_packages/test_gen/lib/src/types/test_enum.dart delete mode 100644 dev_packages/test_gen/lib/test_gen.dart delete mode 100644 dev_packages/test_gen/pubspec.lock delete mode 100755 dev_packages/test_gen/pubspec.yaml diff --git a/dev_packages/flutter_inappwebview_internal_annotations/.gitignore b/dev_packages/flutter_inappwebview_internal_annotations/.gitignore new file mode 100755 index 00000000..cac25594 --- /dev/null +++ b/dev_packages/flutter_inappwebview_internal_annotations/.gitignore @@ -0,0 +1,34 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. +/pubspec.lock +**/doc/api/ +.dart_tool/ +.packages +build/ +.fvm/ + +flutter_driver_tests.log +tool/chromedriver +tool/chromedriver.* \ No newline at end of file diff --git a/dev_packages/flutter_inappwebview_internal_annotations/CHANGELOG.md b/dev_packages/flutter_inappwebview_internal_annotations/CHANGELOG.md new file mode 100755 index 00000000..35771889 --- /dev/null +++ b/dev_packages/flutter_inappwebview_internal_annotations/CHANGELOG.md @@ -0,0 +1,3 @@ +## 1.0.0 + +Initial release. \ No newline at end of file diff --git a/dev_packages/flutter_inappwebview_internal_annotations/LICENSE b/dev_packages/flutter_inappwebview_internal_annotations/LICENSE new file mode 100755 index 00000000..4dada16d --- /dev/null +++ b/dev_packages/flutter_inappwebview_internal_annotations/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2022 Lorenzo Pichilli + + 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. diff --git a/dev_packages/flutter_inappwebview_internal_annotations/README.md b/dev_packages/flutter_inappwebview_internal_annotations/README.md new file mode 100644 index 00000000..2576dc56 --- /dev/null +++ b/dev_packages/flutter_inappwebview_internal_annotations/README.md @@ -0,0 +1 @@ +Internal annotations used by the generator of [flutter_inappwebview](https://github.com/pichillilorenzo/flutter_inappwebview) plugin. \ No newline at end of file diff --git a/dev_packages/flutter_inappwebview_internal_annotations/pubspec.lock b/dev_packages/flutter_inappwebview_internal_annotations/pubspec.lock deleted file mode 100644 index 6f6fc33f..00000000 --- a/dev_packages/flutter_inappwebview_internal_annotations/pubspec.lock +++ /dev/null @@ -1,320 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _fe_analyzer_shared: - dependency: transitive - description: - name: _fe_analyzer_shared - url: "https://pub.dartlang.org" - source: hosted - version: "49.0.0" - analyzer: - dependency: transitive - description: - name: analyzer - url: "https://pub.dartlang.org" - source: hosted - version: "5.1.0" - args: - dependency: transitive - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "2.3.1" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.9.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.15.0" - convert: - dependency: transitive - description: - name: convert - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.2" - coverage: - dependency: transitive - description: - name: coverage - url: "https://pub.dartlang.org" - source: hosted - version: "1.6.1" - crypto: - dependency: transitive - description: - name: crypto - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.2" - file: - dependency: transitive - description: - name: file - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.4" - frontend_server_client: - dependency: transitive - description: - name: frontend_server_client - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.0" - glob: - dependency: transitive - description: - name: glob - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - http_multi_server: - dependency: transitive - description: - name: http_multi_server - url: "https://pub.dartlang.org" - source: hosted - version: "3.2.1" - http_parser: - dependency: transitive - description: - name: http_parser - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.1" - io: - dependency: transitive - description: - name: io - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.3" - js: - dependency: transitive - description: - name: js - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.4" - logging: - dependency: transitive - description: - name: logging - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.2" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.12" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.7.0" - mime: - dependency: transitive - description: - name: mime - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" - node_preamble: - dependency: transitive - description: - name: node_preamble - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - package_config: - dependency: transitive - description: - name: package_config - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.1" - pool: - dependency: transitive - description: - name: pool - url: "https://pub.dartlang.org" - source: hosted - version: "1.5.0" - pub_semver: - dependency: transitive - description: - name: pub_semver - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.1" - shelf: - dependency: transitive - description: - name: shelf - url: "https://pub.dartlang.org" - source: hosted - version: "1.4.0" - shelf_packages_handler: - dependency: transitive - description: - name: shelf_packages_handler - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.1" - shelf_static: - dependency: transitive - description: - name: shelf_static - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - shelf_web_socket: - dependency: transitive - description: - name: shelf_web_socket - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.2" - source_map_stack_trace: - dependency: transitive - description: - name: source_map_stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - source_maps: - dependency: transitive - description: - name: source_maps - url: "https://pub.dartlang.org" - source: hosted - version: "0.10.10" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.1" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.0" - test: - dependency: "direct dev" - description: - name: test - url: "https://pub.dartlang.org" - source: hosted - version: "1.21.6" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.14" - test_core: - dependency: transitive - description: - name: test_core - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.18" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.0" - vm_service: - dependency: transitive - description: - name: vm_service - url: "https://pub.dartlang.org" - source: hosted - version: "9.4.0" - watcher: - dependency: transitive - description: - name: watcher - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" - web_socket_channel: - dependency: transitive - description: - name: web_socket_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.0" - webkit_inspection_protocol: - dependency: transitive - description: - name: webkit_inspection_protocol - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.0" - yaml: - dependency: transitive - description: - name: yaml - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.1" -sdks: - dart: ">=2.18.0 <3.0.0" diff --git a/dev_packages/flutter_inappwebview_internal_annotations/pubspec.yaml b/dev_packages/flutter_inappwebview_internal_annotations/pubspec.yaml index 1da06c6d..c074d9a6 100755 --- a/dev_packages/flutter_inappwebview_internal_annotations/pubspec.yaml +++ b/dev_packages/flutter_inappwebview_internal_annotations/pubspec.yaml @@ -1,5 +1,5 @@ name: flutter_inappwebview_internal_annotations -description: A Flutter plugin that allows you to add an inline webview, to use an headless webview, and to open an in-app browser window. +description: Internal annotations used by the generator of flutter_inappwebview plugin version: 1.0.0 homepage: https://github.com/pichillilorenzo/flutter_inappwebview diff --git a/dev_packages/generators/.gitignore b/dev_packages/generators/.gitignore new file mode 100755 index 00000000..cac25594 --- /dev/null +++ b/dev_packages/generators/.gitignore @@ -0,0 +1,34 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. +/pubspec.lock +**/doc/api/ +.dart_tool/ +.packages +build/ +.fvm/ + +flutter_driver_tests.log +tool/chromedriver +tool/chromedriver.* \ No newline at end of file diff --git a/dev_packages/test_gen/analysis_options.yaml b/dev_packages/test_gen/analysis_options.yaml deleted file mode 100644 index fb01cf49..00000000 --- a/dev_packages/test_gen/analysis_options.yaml +++ /dev/null @@ -1,11 +0,0 @@ -include: package:lints/recommended.yaml - -linter: - rules: - constant_identifier_names: ignore - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options -analyzer: - errors: - deprecated_member_use_from_same_package: ignore \ No newline at end of file diff --git a/dev_packages/test_gen/lib/src/main.dart b/dev_packages/test_gen/lib/src/main.dart deleted file mode 100644 index 98e44e7f..00000000 --- a/dev_packages/test_gen/lib/src/main.dart +++ /dev/null @@ -1,6 +0,0 @@ -import 'package:test_gen/src/types/main.dart'; -import 'package:test_gen/src/types/test_enum.dart'; - -void main() { - TestClass test = TestClass(test1: "test1", test2: TestClass2(test1: ""), actionModeMenuItem: ActionModeMenuItem.MENU_ITEM_NONE); -} \ No newline at end of file diff --git a/dev_packages/test_gen/lib/src/test/test_class_2.dart b/dev_packages/test_gen/lib/src/test/test_class_2.dart deleted file mode 100644 index bdf55255..00000000 --- a/dev_packages/test_gen/lib/src/test/test_class_2.dart +++ /dev/null @@ -1,10 +0,0 @@ -import 'package:flutter_inappwebview_internal_annotations/flutter_inappwebview_internal_annotations.dart'; - -part 'test_class_2.g.dart'; - -@ExchangeableObject() -class TestClass2_ { - String test1; - - TestClass2_({required this.test1}); -} \ No newline at end of file diff --git a/dev_packages/test_gen/lib/src/types/main.dart b/dev_packages/test_gen/lib/src/types/main.dart deleted file mode 100644 index d4476ef7..00000000 --- a/dev_packages/test_gen/lib/src/types/main.dart +++ /dev/null @@ -1,2 +0,0 @@ -export 'test_class.dart' show TestClass; -export '../test/test_class_2.dart' show TestClass2; \ No newline at end of file diff --git a/dev_packages/test_gen/lib/src/types/test_class.dart b/dev_packages/test_gen/lib/src/types/test_class.dart deleted file mode 100644 index a34064fb..00000000 --- a/dev_packages/test_gen/lib/src/types/test_class.dart +++ /dev/null @@ -1,186 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:flutter_inappwebview_internal_annotations/flutter_inappwebview_internal_annotations.dart'; -import '../test/test_class_2.dart'; -import 'test_enum.dart'; - -part 'test_class.g.dart'; - -///Custom docs -// @ExchangeableObject() -@SupportedPlatforms(platforms: [ - AndroidPlatform( - apiName: "TestClass", - available: "24", - note: "[test1] is always `null`." - ), - IOSPlatform( - apiName: "TestClass", - available: "15.0", - note: "[test2] is always `null`." - ), - WebPlatform(), -]) -class TestClass_ extends TestClass3_ { - ///Docs 1 - String test1; - ///Docs 2 - List test2; - - List? colors; - - Function? onLoad; - - ///Docs 3 - @SupportedPlatforms(platforms: [ - AndroidPlatform( - apiName: "WebSettings.setDisabledActionModeMenuItems", - apiUrl: "https://developer.android.com/reference/android/webkit/WebSettings#setDisabledActionModeMenuItems(int)", - available: "24" - ) - ]) - List actionModeMenuItem; - - @ExchangeableObjectProperty( - serializer: Util.serializeTest, - deserializer: Util.deserializeTest - ) - int test = 0; - - DateTime? validNotAfterDate; - - TestClass_({required String asd, this.test1 = "asdasd", required this.test2, - this.actionModeMenuItem = const [ActionModeMenuItem_.MENU_ITEM_NONE]}) : super(asd: asd); - -} - -@ExchangeableObject() -class TestClass3_ { - String asd; - - Function? onLoad; - TestClass3_({required this.asd}); -} - -///Class that represents the navigation request used by the [WebView.onCreateWindow] event. -@ExchangeableObject() -class CreateWindowAction_ extends NavigationAction_ { - ///The window id. Used by [WebView] to create a new WebView. - int windowId; - - ///Use [isDialog] instead. - @Deprecated("Use isDialog instead") - bool? androidIsDialog; - - ///Indicates if the new window should be a dialog, rather than a full-size window. - @SupportedPlatforms( - platforms: [ - AndroidPlatform() - ] - ) - bool? isDialog; - - CreateWindowAction_( - {required this.windowId, - @Deprecated('Use isDialog instead') - this.androidIsDialog, - this.isDialog, - required bool isForMainFrame, - @Deprecated('Use hasGesture instead') - bool? androidHasGesture, - @Deprecated('Use isRedirect instead') - bool? androidIsRedirect, - bool? hasGesture, - bool? isRedirect, - @Deprecated('Use navigationType instead') - // ignore: deprecated_member_use_from_same_package - TestClass3_? iosWKNavigationType, - TestClass3_? navigationType}) : super( - isForMainFrame: isForMainFrame, - hasGesture: hasGesture, - isRedirect: isRedirect, - navigationType: navigationType - ); -} - -///An object that contains information about an action that causes navigation to occur. -@ExchangeableObject() -class NavigationAction_ { - ///Indicates whether the request was made for the main frame. - /// - ///**NOTE for Android**: If the request is associated to the [WebView.onCreateWindow] event, this is always `true`. - ///Also, on Android < 21, this is always `true`. - bool isForMainFrame; - - ///Use [hasGesture] instead. - @Deprecated('Use hasGesture instead') - bool? androidHasGesture; - - ///Gets whether a gesture (such as a click) was associated with the request. - ///For security reasons in certain situations this method may return `false` even though - ///the sequence of events which caused the request to be created was initiated by a user - ///gesture. - @SupportedPlatforms( - platforms: [ - AndroidPlatform( - available: "21", - apiName: "WebResourceRequest.hasGesture", - apiUrl: "https://developer.android.com/reference/android/webkit/WebResourceRequest#hasGesture()", - note: "On Android < 21, this is always `false`" - ) - ] - ) - bool? hasGesture; - - ///Use [isRedirect] instead. - @Deprecated('Use isRedirect instead') - bool? androidIsRedirect; - - ///Gets whether the request was a result of a server-side redirect. - /// - ///**NOTE**: If the request is associated to the [WebView.onCreateWindow] event, this is always `false`. - ///Also, on Android < 21, this is always `false`. - @SupportedPlatforms( - platforms: [ - AndroidPlatform( - available: "21", - apiName: "WebResourceRequest.isRedirect", - apiUrl: "https://developer.android.com/reference/android/webkit/WebResourceRequest#isRedirect()" - ) - ] - ) - bool? isRedirect; - - ///Use [navigationType] instead. - @Deprecated("Use navigationType instead") - TestClass3_? iosWKNavigationType; - - ///The type of action triggering the navigation. - /// - ///**NOTE**: available only on iOS. - TestClass3_? navigationType; - - ///A value indicating whether the web content used a download attribute to indicate that this should be downloaded. - /// - ///**NOTE**: available only on iOS. - bool? shouldPerformDownload; - - NavigationAction_( - {required this.isForMainFrame, - @Deprecated('Use hasGesture instead') this.androidHasGesture, - this.hasGesture, - @Deprecated('Use isRedirect instead') this.androidIsRedirect, - this.isRedirect, - @Deprecated("Use navigationType instead") this.iosWKNavigationType, - this.navigationType, - this.shouldPerformDownload}); -} - -class Util { - static String serializeTest(int source) { - return source.toString(); - } - - static int deserializeTest(String source) { - return int.parse(source); - } -} \ No newline at end of file diff --git a/dev_packages/test_gen/lib/src/types/test_enum.dart b/dev_packages/test_gen/lib/src/types/test_enum.dart deleted file mode 100644 index 5a4ec50e..00000000 --- a/dev_packages/test_gen/lib/src/types/test_enum.dart +++ /dev/null @@ -1,160 +0,0 @@ -import 'package:flutter_inappwebview_internal_annotations/flutter_inappwebview_internal_annotations.dart'; -import 'package:flutter/foundation.dart'; - -part 'test_enum.g.dart'; - -typedef myInt = int; - -///Docs -@ExchangeableEnum( - bitwiseOrOperator: true -) -@EnumSupportedPlatforms(platforms: [ - EnumAndroidPlatform( - apiName: "TestClass", - available: "24", - note: "[test1] is always `null`." - ), - EnumIOSPlatform( - apiName: "TestClass", - available: "15.0", - note: "[test2] is always `null`." - ), - EnumWebPlatform(), -]) -class ActionModeMenuItem_ { - final int _value; - const ActionModeMenuItem_._internal(this._value); - - ///No menu items should be disabled. - static const MENU_ITEM_NONE = const ActionModeMenuItem_._internal(0); - - ///Disable menu item "Share". - static const MENU_ITEM_SHARE = const ActionModeMenuItem_._internal(1); - - ///Disable menu item "Web Search". - static const MENU_ITEM_WEB_SEARCH = const ActionModeMenuItem_._internal(2); - - ///Disable all the action mode menu items for text processing. - @EnumSupportedPlatforms(platforms: [ - EnumAndroidPlatform( - apiName: "TestClass", - available: "24", - note: "[test1] is always `null`." - ), - EnumIOSPlatform( - apiName: "TestClass", - available: "15.0", - note: "[test2] is always `null`." - ), - EnumWebPlatform(), - ]) - static const MENU_ITEM_PROCESS_TEXT = const ActionModeMenuItem_._internal(4); -} - - -typedef myString = String; - -@ExchangeableEnum() -///Class that represents a type of resource used to ask user's permission. -class PermissionResourceType_ { - final String _value; - final dynamic _nativeValue = null; - const PermissionResourceType_._internal(this._value); - - ///Resource belongs to audio capture device, like microphone. - @EnumSupportedPlatforms(platforms: [ - EnumAndroidPlatform( - apiName: "PermissionRequest.RESOURCE_AUDIO_CAPTURE", - apiUrl: "https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_AUDIO_CAPTURE", - value: 'android.webkit.resource.AUDIO_CAPTURE' - ), - EnumIOSPlatform( - available: "15.0", - apiName: "WKMediaCaptureType.microphone", - apiUrl: "https://developer.apple.com/documentation/webkit/wkmediacapturetype/microphone", - value: 1 - ), - EnumMacOSPlatform( - available: "15.0", - apiName: "WKMediaCaptureType.microphone", - apiUrl: "https://developer.apple.com/documentation/webkit/wkmediacapturetype/microphone", - value: 1 - ), - ]) - static const MICROPHONE = PermissionResourceType_._internal('MICROPHONE'); - - ///Resource will allow sysex messages to be sent to or received from MIDI devices. - ///These messages are privileged operations, e.g. modifying sound libraries and sampling data, or even updating the MIDI device's firmware. - ///Permission may be requested for this resource in API levels 21 and above, if the Android device has been updated to WebView 45 or above. - @EnumSupportedPlatforms(platforms: [ - EnumAndroidPlatform( - apiName: "PermissionRequest.RESOURCE_MIDI_SYSEX", - apiUrl: "https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_MIDI_SYSEX", - value: 'android.webkit.resource.RESOURCE_MIDI_SYSEX' - ) - ]) - static const MIDI_SYSEX = PermissionResourceType_._internal('MIDI_SYSEX'); - - ///Resource belongs to protected media identifier. After the user grants this resource, the origin can use EME APIs to generate the license requests. - @EnumSupportedPlatforms(platforms: [ - EnumAndroidPlatform( - apiName: "PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID", - apiUrl: "https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_PROTECTED_MEDIA_ID", - value: 'android.webkit.resource.PROTECTED_MEDIA_ID' - ) - ]) - static const PROTECTED_MEDIA_ID = PermissionResourceType_._internal('PROTECTED_MEDIA_ID'); - - ///Resource belongs to video capture device, like camera. - @EnumSupportedPlatforms(platforms: [ - EnumAndroidPlatform( - apiName: "PermissionRequest.RESOURCE_VIDEO_CAPTURE", - apiUrl: "https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_VIDEO_CAPTURE", - value: 'android.webkit.resource.VIDEO_CAPTURE' - ), - EnumIOSPlatform( - available: "15.0", - apiName: "WKMediaCaptureType.camera", - apiUrl: "https://developer.apple.com/documentation/webkit/wkmediacapturetype/camera", - value: 0 - ), - EnumMacOSPlatform( - available: "15.0", - apiName: "WKMediaCaptureType.camera", - apiUrl: "https://developer.apple.com/documentation/webkit/wkmediacapturetype/camera", - value: 0 - ), - ]) - static const CAMERA = PermissionResourceType_._internal('CAMERA'); - - ///A media device or devices that can capture audio and video. - @EnumSupportedPlatforms(platforms: [ - EnumIOSPlatform( - available: "15.0", - apiName: "WKMediaCaptureType.cameraAndMicrophone", - apiUrl: "https://developer.apple.com/documentation/webkit/wkmediacapturetype/cameraandmicrophone", - value: 2 - ), - EnumMacOSPlatform( - available: "15.0", - apiName: "WKMediaCaptureType.cameraAndMicrophone", - apiUrl: "https://developer.apple.com/documentation/webkit/wkmediacapturetype/cameraandmicrophone", - value: 2 - ), - ]) - static const CAMERA_AND_MICROPHONE = PermissionResourceType_._internal('CAMERA_AND_MICROPHONE'); - - ///Resource belongs to the device’s orientation and motion. - @EnumSupportedPlatforms(platforms: [ - EnumIOSPlatform( - available: "15.0", - value: 'deviceOrientationAndMotion' - ), - EnumMacOSPlatform( - available: "15.0", - value: 'deviceOrientationAndMotion' - ), - ]) - static const DEVICE_ORIENTATION_AND_MOTION = PermissionResourceType_._internal('DEVICE_ORIENTATION_AND_MOTION'); -} diff --git a/dev_packages/test_gen/lib/test_gen.dart b/dev_packages/test_gen/lib/test_gen.dart deleted file mode 100644 index 549b678c..00000000 --- a/dev_packages/test_gen/lib/test_gen.dart +++ /dev/null @@ -1,10 +0,0 @@ -library test_gen; - -import 'package:test_gen/src/types/test_class.dart'; -import 'package:test_gen/src/test/test_class_2.dart'; -import 'package:test_gen/src/types/test_enum.dart'; - -void main() { - TestClass a = TestClass(test1: "test1", test2: TestClass2(test1: "test2"), actionModeMenuItem: ActionModeMenuItem.MENU_ITEM_NONE); - a.toMap(); -} \ No newline at end of file diff --git a/dev_packages/test_gen/pubspec.lock b/dev_packages/test_gen/pubspec.lock deleted file mode 100644 index 3475a3e7..00000000 --- a/dev_packages/test_gen/pubspec.lock +++ /dev/null @@ -1,415 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _fe_analyzer_shared: - dependency: transitive - description: - name: _fe_analyzer_shared - url: "https://pub.dartlang.org" - source: hosted - version: "49.0.0" - analyzer: - dependency: transitive - description: - name: analyzer - url: "https://pub.dartlang.org" - source: hosted - version: "5.1.0" - args: - dependency: transitive - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "2.3.1" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.9.0" - build: - dependency: transitive - description: - name: build - url: "https://pub.dartlang.org" - source: hosted - version: "2.3.1" - build_config: - dependency: transitive - description: - name: build_config - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.0" - build_daemon: - dependency: transitive - description: - name: build_daemon - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.0" - build_resolvers: - dependency: transitive - description: - name: build_resolvers - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.10" - build_runner: - dependency: "direct dev" - description: - name: build_runner - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.1" - build_runner_core: - dependency: transitive - description: - name: build_runner_core - url: "https://pub.dartlang.org" - source: hosted - version: "7.2.4" - built_collection: - dependency: transitive - description: - name: built_collection - url: "https://pub.dartlang.org" - source: hosted - version: "5.1.1" - built_value: - dependency: transitive - description: - name: built_value - url: "https://pub.dartlang.org" - source: hosted - version: "8.4.1" - characters: - dependency: transitive - description: - name: characters - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - checked_yaml: - dependency: transitive - description: - name: checked_yaml - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - code_builder: - dependency: transitive - description: - name: code_builder - url: "https://pub.dartlang.org" - source: hosted - version: "4.3.0" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.16.0" - convert: - dependency: transitive - description: - name: convert - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.2" - crypto: - dependency: transitive - description: - name: crypto - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.2" - dart_style: - dependency: transitive - description: - name: dart_style - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.4" - file: - dependency: transitive - description: - name: file - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.4" - fixnum: - dependency: transitive - description: - name: fixnum - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_inappwebview_internal_annotations: - dependency: "direct main" - description: - path: "../flutter_inappwebview_internal_annotations" - relative: true - source: path - version: "1.0.0" - frontend_server_client: - dependency: transitive - description: - name: frontend_server_client - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.3" - generators: - dependency: "direct dev" - description: - path: "../generators" - relative: true - source: path - version: "1.0.0" - glob: - dependency: transitive - description: - name: glob - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - graphs: - dependency: transitive - description: - name: graphs - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - http_multi_server: - dependency: transitive - description: - name: http_multi_server - url: "https://pub.dartlang.org" - source: hosted - version: "3.2.1" - http_parser: - dependency: transitive - description: - name: http_parser - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.1" - io: - dependency: transitive - description: - name: io - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.3" - js: - dependency: transitive - description: - name: js - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.4" - json_annotation: - dependency: transitive - description: - name: json_annotation - url: "https://pub.dartlang.org" - source: hosted - version: "4.7.0" - lints: - dependency: "direct dev" - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" - logging: - dependency: transitive - description: - name: logging - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.2" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.12" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.5" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0" - mime: - dependency: transitive - description: - name: mime - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.2" - package_config: - dependency: transitive - description: - name: package_config - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.2" - pool: - dependency: transitive - description: - name: pool - url: "https://pub.dartlang.org" - source: hosted - version: "1.5.1" - pub_semver: - dependency: transitive - description: - name: pub_semver - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.1" - pubspec_parse: - dependency: transitive - description: - name: pubspec_parse - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - shelf: - dependency: transitive - description: - name: shelf - url: "https://pub.dartlang.org" - source: hosted - version: "1.4.0" - shelf_web_socket: - dependency: transitive - description: - name: shelf_web_socket - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.2" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_gen: - dependency: transitive - description: - name: source_gen - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.5" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.1" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.1" - stream_transform: - dependency: transitive - description: - name: stream_transform - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - timing: - dependency: transitive - description: - name: timing - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.2" - watcher: - dependency: transitive - description: - name: watcher - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" - web_socket_channel: - dependency: transitive - description: - name: web_socket_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.0" - yaml: - dependency: transitive - description: - name: yaml - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.1" -sdks: - dart: ">=2.17.0 <3.0.0" - flutter: ">=2.5.0" diff --git a/dev_packages/test_gen/pubspec.yaml b/dev_packages/test_gen/pubspec.yaml deleted file mode 100755 index 3b11705e..00000000 --- a/dev_packages/test_gen/pubspec.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: test_gen -version: 1.0.0 - -publish_to: none - -environment: - sdk: ">=2.14.0 <3.0.0" - flutter: ">=2.5.0" - -dependencies: - flutter: - sdk: flutter - flutter_inappwebview_internal_annotations: - path: ../flutter_inappwebview_internal_annotations/ - -dev_dependencies: - build_runner: ^2.2.1 - generators: - path: ../generators/ - lints: ^1.0.1 \ No newline at end of file