You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2013/11/27 01:55:00 UTC
git commit: CB-5238 fixing typo and updating tests
Updated Branches:
refs/heads/frameworks 1f8133f15 -> f6171761b
CB-5238 fixing typo and updating tests
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/f6171761
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/f6171761
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/f6171761
Branch: refs/heads/frameworks
Commit: f6171761b9c660cf00c41effe146f36813cc520e
Parents: 1f8133f
Author: Anis Kadri <an...@apache.org>
Authored: Tue Nov 26 16:55:07 2013 -0800
Committer: Anis Kadri <an...@apache.org>
Committed: Tue Nov 26 16:55:07 2013 -0800
----------------------------------------------------------------------
spec/platforms/ios.spec.js | 2 +-
spec/projects/ios-config-xml/SampleApp.xcodeproj/project.pbxproj | 2 --
src/install.js | 4 ++--
src/platforms/ios.js | 2 +-
4 files changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/f6171761/spec/platforms/ios.spec.js
----------------------------------------------------------------------
diff --git a/spec/platforms/ios.spec.js b/spec/platforms/ios.spec.js
index 07b24f6..2346c5c 100644
--- a/spec/platforms/ios.spec.js
+++ b/spec/platforms/ios.spec.js
@@ -272,7 +272,7 @@ describe('ios project handler', function() {
var spy = spyOn(shell, 'cp');
ios['framework'].install(frameworks[0], dummyplugin, temp, proj_files);
expect(spy).toHaveBeenCalledWith('-R', path.join(dummyplugin, 'src', 'ios', 'Custom.framework'),
- path.join(temp, 'Custom.framework'));
+ temp);
});
});
});
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/f6171761/spec/projects/ios-config-xml/SampleApp.xcodeproj/project.pbxproj
----------------------------------------------------------------------
diff --git a/spec/projects/ios-config-xml/SampleApp.xcodeproj/project.pbxproj b/spec/projects/ios-config-xml/SampleApp.xcodeproj/project.pbxproj
index a4d87f9..60f478f 100644
--- a/spec/projects/ios-config-xml/SampleApp.xcodeproj/project.pbxproj
+++ b/spec/projects/ios-config-xml/SampleApp.xcodeproj/project.pbxproj
@@ -421,7 +421,6 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = YES;
COPY_PHASE_STRIP = NO;
- FRAMEWORK_SEARCH_PATHS = /Users/Shared/PhoneGap/Frameworks;
GCC_DYNAMIC_NO_PIC = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "ChildApp/ChildApp-Prefix.pch";
@@ -449,7 +448,6 @@
ALWAYS_SEARCH_USER_PATHS = YES;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- FRAMEWORK_SEARCH_PATHS = /Users/Shared/PhoneGap/Frameworks;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "ChildApp/ChildApp-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = "PHONEGAP_FRAMEWORK=YES";
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/f6171761/src/install.js
----------------------------------------------------------------------
diff --git a/src/install.js b/src/install.js
index f91034a..37bd2b8 100644
--- a/src/install.js
+++ b/src/install.js
@@ -344,10 +344,10 @@ function handleInstall(actions, plugin_id, plugin_et, platform, project_dir, plu
var sourceFiles = platformTag.findall('./source-file'),
headerFiles = platformTag.findall('./header-file'),
resourceFiles = platformTag.findall('./resource-file'),
- frameworkFiles = platformTag.findall('./framework-file[@custom="true"]'), // CB-5238 adding only custom frameworks
+ frameworkFiles = platformTag.findall('./framework[@custom="true"]'), // CB-5238 adding only custom frameworks
libFiles = platformTag.findall('./lib-file');
assets = assets.concat(platformTag.findall('./asset'));
-
+
// queue up native stuff
sourceFiles && sourceFiles.forEach(function(source) {
actions.push(actions.createAction(handler["source-file"].install, [source, plugin_dir, project_dir, plugin_id], handler["source-file"].uninstall, [source, project_dir, plugin_id]));
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/f6171761/src/platforms/ios.js
----------------------------------------------------------------------
diff --git a/src/platforms/ios.js b/src/platforms/ios.js
index be2b4da..550f973 100644
--- a/src/platforms/ios.js
+++ b/src/platforms/ios.js
@@ -124,7 +124,7 @@ module.exports = {
if (!custom) throw new Error('cannot add non custom frameworks.');
if (!fs.existsSync(srcFile)) throw new Error('cannot find "' + srcFile + '" ios <framework>');
if (fs.existsSync(destFile)) throw new Error('target destination "' + destFile + '" already exists');
- shell.cp('-R', srcFile, destFile);
+ shell.cp('-R', srcFile, project_dir); // frameworks are directories
project.xcode.addFramework(destFile, {customFramework: true});
},
uninstall:function(framework_el, project_dir, project) {