breautek commented on issue #1619:
URL:
https://github.com/apache/cordova-android/issues/1619#issuecomment-1677174248
> But PluginManager has this code to prevent problems with Lambda
(@breautek):
>
> ```
> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
> this.pluginMap.forEach((s, plugin) -> {
> if (plugin != null) {
> plugin.onMessage(id, data);
> }
> });
> } else {
> for (CordovaPlugin plugin : this.pluginMap.values()) {
> if (plugin != null) {
> Object obj = plugin.onMessage(id, data);
> if (obj != null) {
> return obj;
> }
> }
> }
> }
> ```
>
> We use cordova-android 11 with `<preference name="android-minSdkVersion"
value="21" />` Some time it works on 21 API (debug version from AS) sometimes
crashes (cordova build debug with signature)...
cordova-android@12 has the check removed to simplify the codebase so it only
has the lambda usage. Cordova-android@11 has the SDK version check to support
both.
This is getting off-topic now so I'm locking the thread.
TL;DR; is don't use a minimum SDK less than 24 on cordova-android@12.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]