incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shazron <shaz...@gmail.com>
Subject Re: Standardize exec identifiers
Date Mon, 16 Apr 2012 18:23:04 GMT
+1
(yet another Cordova.plist upgrade ;)

On Mon, Apr 16, 2012 at 11:15 AM, Filip Maj <fil@adobe.com> wrote:
> Yeh we already did it with the Network API so +1 from me as well.
>
> On 4/16/12 11:00 AM, "Joe Bowser" <bowserj@gmail.com> wrote:
>
>>+1
>>
>>On Mon, Apr 16, 2012 at 10:56 AM, Jesse <purplecabbage@gmail.com> wrote:
>>
>>> If possible, can we avoid using spaces in plugin identifiers?  I expect
>>>at
>>> some point we will be standardizing deeper into native.
>>> ex. from iOS cordova-js build
>>>
>>> DebugConsole.prototype.log = function(message, maxDepth) {
>>>    if (this.logLevel <= DebugConsole.INFO_LEVEL)
>>>        exec(null, null, 'Debug Console', 'log',
>>>            [ this.processMessage(message, maxDepth), { logLevel: 'INFO'
>>>} ]
>>>        );
>>>    else
>>>        this.winConsole.log(message);
>>> };
>>>
>>>
>>>
>>> WP7 has a similar concept for console.log, but the above code will be
>>> difficult to maintain cross-platform because of the space in the
>>> identifier.
>>>
>>> The above code, would however work without modification on WP7 IF the
>>>exec
>>> call was using 'DebugConsole'
>>>
>>> namespace WP7CordovaClassLib.Cordova.Commands { public class
>>>DebugConsole :
>>> BaseCommand { public void log(string msg){ Debug.WriteLine("Log:" +
>>>msg); }
>>> public void error(string msg){ Debug.WriteLine("Error:" + msg); } public
>>> void warn(string msg){ Debug.WriteLine("Warn:" + msg); } } }
>>>
>

Mime
View raw message