You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2021/07/30 07:26:11 UTC

[GitHub] [cordova] j3k0 opened a new issue #295: plugin.xml with platform version filters

j3k0 opened a new issue #295:
URL: https://github.com/apache/cordova/issues/295


   About apache/cordova-android#580, I have a higher level concern about handling deprecation as a plugin author.
   
   It's ok to allow breaking changes in Cordova for the sake of progress, but the following small change in `plugin.xml` structure would give plugin authors flexibility to support multiple cordova versions.
   
   Has it been ever considered to allow multiple `<platform>` tags with version filters?
   
   Short demo of what I mean in a plugin description file:
   
   ```xml
   <plugin ...>
     <platform type="android" version="<8.0.0">
       ...
       <source-file src="src/android/ILib.aidl" target-dir="src/com/android/vending/billing" />
       ...
     </platform>
     <platform type="android" version=">=8.0.0">
       ...
       <lib-file src="src/android/ILib.aidl" />
       ...
     </platform>
     <platform type="android" version="*">
       ... common stuff ...
     </platform>
   </plugin>
   ```
   
   It's probably not specific to `cordova-android` though, where should such an idea be discussed?


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

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



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