You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by fujunwei <gi...@git.apache.org> on 2015/07/24 03:05:33 UTC

[GitHub] cordova-lib pull request: CB-9162 - Default Variables

Github user fujunwei commented on a diff in the pull request:

    https://github.com/apache/cordova-lib/pull/247#discussion_r35388232
  
    --- Diff: cordova-lib/spec-plugman/plugins/org.test.defaultvariables/plugin.xml ---
    @@ -0,0 +1,16 @@
    +<?xml version="1.0" encoding="UTF-8"?>
    +
    +<plugin xmlns="http://cordova.apache.org/ns/plugins/1.0"
    +    xmlns:android="http://schemas.android.com/apk/res/android"
    +    id="org.test.defaultvariables"
    +    version="3.0.0">
    +
    +    <name>Use Default Variables</name>
    +
    +    <!-- android -->
    +    <platform name="android">
    +            <preference name="ENABLE_LOG" default="yes" />
    +            <preference name="API_KEY" />
    +    </platform>
    --- End diff --
    
    I only found the default `ENABLE_LOG` in `cordova/plugins/android.json`, but there is no similar preference `<preference name="ENABLE_LOG" value="yes" />` in config.xml, how to use the Default variable.


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