-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[connectivity, battery, android_alarm_manager] v2 support #2613
Conversation
bkonyi
left a comment
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.
Alarm manager changes LGTM
| @@ -1,9 +1,9 @@ | |||
| package io.flutter.plugins.androidalarmmanagerexample; | |||
|
|
|||
| import io.flutter.app.FlutterApplication; | |||
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.
Is the entire Application.java file still necessary in V2 embedding?
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.
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
xster
left a comment
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
|
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?