[connectivity, battery, android_alarm_manager] v2 support#2613
[connectivity, battery, android_alarm_manager] v2 support#2613GaryQian merged 14 commits intoflutter:masterfrom
Conversation
bkonyi
left a comment
There was a problem hiding this comment.
Alarm manager changes LGTM
| @@ -3,7 +3,7 @@ | |||
| import io.flutter.app.FlutterApplication; | |||
There was a problem hiding this comment.
Is the entire Application.java file still necessary in V2 embedding?
There was a problem hiding this comment.
The README says that V2 should handle this via reflection. Is it safe to just delete this file?
There was a problem hiding this comment.
@bkonyi my read is that this file is still needed (since we have one application for both the (new)FlutterActivity and the EmbeddingV1Activity.java). So this file looks fine to me.
|
Since the Android Alarm Manager plugin now supports only Flutter >= 1.12.13+hotfix.5, should we remove examples of inclusion via the V1 embedding? It looks like we could:
<application android:name="io.flutter.app.FlutterApplication" >
<activity
android:name="io.flutter.plugins.androidalarmmanagerexample.EmbeddingV1Activity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize"
android:exported="true">
</activity>
If you think these tasks can be done I'd be happy to open a PR. |
Description
Embedder V2 support connectivity, battery, and android alarm manager plugins
Related Issues
flutter/flutter#47153
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?