cordova-plugin-spec
cordova-plugin-spec copied to clipboard
pluginstall not copying files to directory
With the GAPlugin, the pluginstall command modifies the cordova.plist file etc, but does not copy the required files to the Plugins directory for ios project.
Plugins.xml file looks correct though:
<name>GAPlugin</name>
<asset src="www/GAPlugin.js" target="GAPlugin.js" />
<engines>
<engine name="cordova" version=">=2.0.0" />
</engines>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="plugins">
<plugin name="GAPlugin" value="com.adobe.plugins.GAPlugin"/>
</config-file>
<source-file src="src/android/GAPlugin.java"
target-dir="src/com/adobe/plugins" />
<source-file src="src/android/libGoogleAnalyticsV2.jar"
target-dir="libs" />
</platform>
<!-- ios -->
<platform name="ios">
<!-- Cordova < 2.3 -->
<plugins-plist key="GAPlugin" string="GAPlugin" />
<!-- Cordova >= 2.3 -->
<config-file target="config.xml" parent="plugins">
<plugin name="GAPlugin" value="GAPlugin"/>
</config-file>
<source-file src="src/ios/GAPlugin.m" />
<source-file src="src/ios/libGoogleAnalytics.a" />
<header-file src="src/ios/GAITransactionItem.h" />
<header-file src="src/ios/GAITransaction.h" />
<header-file src="src/ios/GAITracker.h" />
<header-file src="src/ios/GAITrackedViewController.h" />
<header-file src="src/ios/GAI.h" />
<header-file src="src/ios/GAPlugin.h" />
<framework src="libGoogleAnalytics.a" />
<framework src="CoreData.framework" />
<framework src="SystemConfiguration.framework" />
</platform>
(so all header files are not copied)