-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(android): support for minimizeApp #743
feat(android): support for minimizeApp #743
Conversation
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.
Made a few code change requests, can you resolve them?
Thanks for the PR!
app/ios/Plugin/AppPlugin.m
Outdated
@@ -9,4 +9,5 @@ | |||
CAP_PLUGIN_METHOD(getLaunchUrl, CAPPluginReturnPromise); | |||
CAP_PLUGIN_METHOD(getState, CAPPluginReturnPromise); | |||
CAP_PLUGIN_METHOD(removeAllListeners, CAPPluginReturnNone); | |||
CAP_PLUGIN_METHOD(minimizeApp, CAPPluginReturnNone); |
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 return type should be CAPPluginReturnPromise
since in the types you said it returns Promise<void>;
app/src/definitions.ts
Outdated
/** | ||
* Minimizes application | ||
*/ | ||
minimizeApp(): Promise<void>; |
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.
Can you move it up before all the listener related functions?
Also, can mention that the feature is only available for Android?
app/ios/Plugin/AppPlugin.m
Outdated
@@ -9,4 +9,5 @@ | |||
CAP_PLUGIN_METHOD(getLaunchUrl, CAPPluginReturnPromise); | |||
CAP_PLUGIN_METHOD(getState, CAPPluginReturnPromise); | |||
CAP_PLUGIN_METHOD(removeAllListeners, CAPPluginReturnNone); | |||
CAP_PLUGIN_METHOD(minimizeApp, CAPPluginReturnNone); |
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 return type should be CAPPluginReturnPromise
since in the types you said it returns Promise<void>;
Thanks for review. Added changes. |
Not all comments are addressed, and you have removed a few android test classes, can you address the missing comments and put those classes back? |
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.
I've updated my comments with the things that are still missing.
And also the test java classes that were removed should be put back
Hm. Looks like fmt script removed classes. I will address all comments. I'm sorry that I missed these things |
did some minor changes on texts, but other than that looks good, thanks! |
I think it makes sense if this small feature will be part of app plugin.
closes #130