From 6b84f0ad2e6abad04b063a380d76bc348157b82c Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Mon, 22 Jun 2020 17:48:32 +0200 Subject: [PATCH] updated github template --- .github/FUNDING.yml | 2 +- .github/ISSUE_TEMPLATE/BUG_REPORT.md | 30 ++++++++++++++++++++++------ .github/autolabeler.yml | 8 ++++++++ .github/no-response.yml | 9 +++++++++ README.md | 3 +-- flutter_inappwebview.iml | 1 + 6 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 .github/autolabeler.yml create mode 100644 .github/no-response.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 70fac823..9c81ed7b 100755 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,7 +1,7 @@ # These are supported funding model platforms github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: lorenzo_pichilli # Replace with a single Patreon username +patreon: # Replace with a single Patreon username open_collective: # Replace with a single Open Collective username ko_fi: # Replace with a single Ko-fi username tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.md b/.github/ISSUE_TEMPLATE/BUG_REPORT.md index 816a79d2..a965ca59 100755 --- a/.github/ISSUE_TEMPLATE/BUG_REPORT.md +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.md @@ -1,17 +1,33 @@ --- name: Bug report about: Something is crashing or not working as intended +labels: bug --- + + +- [x] I have read the [README](https://github.com/pichillilorenzo/flutter_inappwebview/blob/master/README.md) +- [x] I have already searched for the same problem +- [x] I have read and done the setup for Android: [IMPORTANT Note for Android and iOS](https://github.com/pichillilorenzo/flutter_inappwebview#important-note-for-android-and-ios) and [IMPORTANT Note for Android](https://github.com/pichillilorenzo/flutter_inappwebview#important-note-for-android) +- [x] I have read and done the setup for iOS: [IMPORTANT Note for Android and iOS](https://github.com/pichillilorenzo/flutter_inappwebview#important-note-for-android-and-ios) and [IMPORTANT Note for iOS](https://github.com/pichillilorenzo/flutter_inappwebview#important-note-for-ios) +- [x] I have ran the sample app and it does not work there + ## Environment -**Flutter version:** -**Plugin version:** -**Android version:** -**iOS version:** -**Xcode version:** -**Device information:** +| Technology | Version | +| -------------------- | ------------- | +| Flutter version | | +| Plugin version | | +| Android version | | +| iOS version | | +| Xcode version | | +| Device information | | ## Description @@ -21,6 +37,8 @@ about: Something is crashing or not working as intended ## Steps to reproduce + + 1. This 2. Than that 3. Then diff --git a/.github/autolabeler.yml b/.github/autolabeler.yml new file mode 100644 index 00000000..bcd2f4b8 --- /dev/null +++ b/.github/autolabeler.yml @@ -0,0 +1,8 @@ +# Configuration for probot-auto-labeler - https://github.com/probot/autolabeler + +# label: file | path +android: ["/android", "*.kt", "*.java", "*gradle*", "AndroidManifest.xml"] +iOS: ["/ios", "*.swift", "*.h", "*.m", "*.xcodeproj", "*.xcworkspace", "*.plist", "*.storyboard", "*.xcconfig", Podfile*"] +flutter/dart: ["/lib", "*.dart"] +documentation: ["*.md"] +legal: ["LICENSE*", "NOTICES*"] diff --git a/.github/no-response.yml b/.github/no-response.yml new file mode 100644 index 00000000..29aa524d --- /dev/null +++ b/.github/no-response.yml @@ -0,0 +1,9 @@ +# Configuration for probot-no-response - https://github.com/probot/no-response + +# Number of days of inactivity before an Issue is closed for lack of response +daysUntilClose: 7 +# Label requiring a response +responseRequiredLabel: answered +# Comment to post when closing an Issue for lack of response. Set to `false` to disable +closeComment: > + This issue has been automatically closed because it was marked as "answered", and there wasn't any recent activity on this issue. diff --git a/README.md b/README.md index 764bbc60..5caa7172 100755 --- a/README.md +++ b/README.md @@ -5,7 +5,6 @@ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](/LICENSE) [![Donate to this project using Paypal](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.me/LorenzoPichilli) -[![Donate to this project using Patreon](https://img.shields.io/badge/patreon-donate-yellow.svg)](https://www.patreon.com/bePatron?u=9269604) A Flutter plugin that allows you to add an inline webview, to use an headless webview, and to open an in-app browser window. @@ -474,7 +473,7 @@ This event will be dispatched as soon as the platform (Android or iOS) is ready ``` `window.flutter_inappwebview.callHandler` returns a JavaScript [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) -that can be used to get the json result returned by `JavaScriptHandlerCallback. +that can be used to get the json result returned by `JavaScriptHandlerCallback`. In this case, simply return data that you want to send and it will be automatically json encoded using `jsonEncode` from the `dart:convert` library. So, on the JavaScript side, to get data coming from the Dart side, you will use: diff --git a/flutter_inappwebview.iml b/flutter_inappwebview.iml index 111d60ac..c8905c93 100755 --- a/flutter_inappwebview.iml +++ b/flutter_inappwebview.iml @@ -26,6 +26,7 @@ +