phonegap / build

This is the public repository for PhoneGap Build source and bug tracking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gap:config-file not working

pastet89 opened this issue · comments

No matter what I try I cannot get the gap:config-file to work. The build compiles without errors, but there are no changes in the AndroidManifest.xml.

This is my code:

   <gap:config-file platform="android" parent="/application">
        <meta-data android:name="google_analytics_adid_collection_enabled" android:value="false" />
    </gap:config-file>  

I tried also:

  1. Putting it into the <platform name="android"> node and out of it.
  2. Tried: parent="/application", parent="/manifest/application"

@andersborgabiro Thanks, however, it didn't work for me either. I spent few hours trying all combinations I could think of, tried both eidt-config and config-file, various Xpath values, inside and outside the Android platform node, nothing works for me.

I've only used edit-config for iOS, so I don't have a good example. It no doubt works there.
Do you use cli-8.0.0?

No, I use cli-7.0.1 and I build online through build.phonegap.com.

Any reason for doing that? cli-7.0.1 is very old. I use PGB too.