-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[android_intent] Android Code Inspection and Clean up #3043
Conversation
(packageName != null | ||
&& component != null | ||
&& !TextUtils.isEmpty(packageName) | ||
&& !TextUtils.isEmpty(component)) | ||
? new ComponentName(packageName, component) | ||
: null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I would find this easier to read as a regular declaration followed by an if statement. This seems like a lot of logic for a ternary.
bundle.putStringArrayList(key, (ArrayList<String>) value); | ||
} else if (isStringKeyedMap(value)) { | ||
bundle.putBundle(key, convertArguments((Map<String, ?>) value)); | ||
} else if (integers(value) != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think I prefer the old name of these - I'm a bit surprised to see a function named integers
or strings
or map
.
I also wonder if we can just somehow avoid traversing the array twice and creating the object twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but needs to have merge conflict(s) fixed up.
/cc @xster FYI as well here
If it passes pre-submit then you're good |
@dnfield |
* master: [in_app_purchase] Android Code Inspection and Clean up (flutter#3120) Android Code Inspection and Clean up (flutter#3117) [in_app_purchase] Fix finishing purchases upon payment cancellation (flutter#3106) [google_maps_flutter_web] Fix convert.dart issues (flutter#3093) [multiple] Opt-out tests of null-safety (flutter#3113) [webview_flutter] add public documentation. (flutter#3114) in_app_purchase: started supported null as a parameter for the sandbox arguement (flutter#3110) [connectivity] Android Code Inspection and Clean up (flutter#3051) [android_intent] Android Code Inspection and Clean up (flutter#3043) Remove `io.flutter.embedded_views_preview` from README [google_maps_flutter] Fix headline in the readme (flutter#3100) [webview_flutter] Add new entrypoint that uses hybrid composition on Android (flutter#3067) [google_maps_flutter] Out of developers preview, bump to 1.0.0 (flutter#3091) [url_launcher_web] Move third_party under src. (flutter#3080) [plugin_platform_interface] Fix homepage in pubspec.yaml (flutter#3088) [connectivity_for_web] Fix homepage in pubspec.yaml (flutter#3089) [in_app_purchase] Update typo in example main.dart (flutter#3073)
Description
Handle deprecation & unchecked warning as error
Avoiding uses or overrides a deprecated API in FlutterBackgroundExecutor.java
Related Issues
flutter/flutter#65970
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.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?