pluginstall not copying files to directory #16

Open
Ayame opened this Issue May 23, 2013 · 0 comments

1 participant

@Ayame

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:

<?xml version="1.0" encoding="UTF-8"?>
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.adobe.plugins.GAPlugin"
version="2.0.1">

<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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment