Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

@juliocbcotta
Copy link
Contributor

Description

This PR :

  • Updates AGP and Gradle versions.
  • Splits WebViewActivity and the plugin class to improve separation of concerns.

The separation of classes and files provides encapsulation for constants used in the WebViewActivity.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See [Contributor Guide]).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the [Flutter Style Guide].
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy].
  • I updated CHANGELOG.md to add a description of the change.
  • I signed the [CLA].
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

@juliocbcotta juliocbcotta requested a review from mklim as a code owner August 1, 2019 00:21
@mklim mklim self-assigned this Aug 1, 2019
Copy link
Contributor

@mklim mklim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this up!

Basic changes look good, just have a couple minor nits.

@@ -1,3 +1,8 @@
## 5.1.1+1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This should be 5.1.2 here and in pubspec.yaml. Pubspec changes its versioning scheme depending on if a package is above or below 1.0.0. For below it's 0.major.minor+patch, but for above it's major.minor.patch.

https://dart.dev/tools/pub/versioning#semantic-versions

/* Launches WebView activity */
public class WebViewActivity extends Activity {

public static String ACTION_CLOSE = "close action";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Some Javadoc explaining what this constant is used for would be useful. https://google.github.io/styleguide/javaguide.html#s7.3-javadoc-where-required

I didn't realize spaces were supported here. Neat.

@mklim mklim added the in review label Aug 1, 2019
Copy link
Contributor

@mklim mklim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks again!

@mklim mklim merged commit b120e92 into flutter:master Aug 2, 2019
mithun-mondal pushed a commit to bKash-developer/archived_plugins that referenced this pull request Aug 6, 2019
This PR :
- Updates AGP and Gradle versions.
- Splits WebViewActivity and the plugin class to improve separation of concerns.

The separation of classes and files provides encapsulation for constants used in the WebViewActivity.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants