cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shazron <...@git.apache.org>
Subject [GitHub] cordova-ios pull request #234: CB-9825 cocoapod integration for plugins
Date Tue, 05 Jul 2016 04:01:44 GMT
Github user shazron commented on a diff in the pull request:

    https://github.com/apache/cordova-ios/pull/234#discussion_r69504742
  
    --- Diff: bin/templates/scripts/cordova/lib/plugman/pluginHandlers.js ---
    @@ -66,17 +66,19 @@ var handlers = {
             install:function(obj, plugin, project, options) {
                 var src = obj.src,
                     custom = obj.custom;
    -
                 if (!custom) {
                     var keepFrameworks = keep_these_frameworks;
     
    -                if (keepFrameworks.indexOf(src) < 0) {
    -                    project.xcode.addFramework(src, {weak: obj.weak});
    -                    project.frameworks[src] = (project.frameworks[src] || 0) + 1;
    +                if (keepFrameworks.indexOf(src) < 0) { 
    +                    if (obj.type === 'podspec') {
    +                        //podspec handled in Api.js
    +                    } else {
    +                        project.frameworks[src] = (project.frameworks[src] || 0) + 1;
    --- End diff --
    
    not your code, but dislike code like this that tries to be clever although I know the
meaning is "increment by 1. set to zero first if it doesn't exist"


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


Mime
View raw message