You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "breautek (via GitHub)" <gi...@apache.org> on 2023/08/14 11:47:08 UTC

[GitHub] [cordova-android] breautek commented on issue #1619: cordova-android@12 app crashing and not install issu

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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org