/********* de-core-plugin.m Cordova Plugin Implementation *******/
#import <Cordova/CDV.h>
#import <DEUtility/DEUtils.h>
#import "DECorePlugin.h"
@implementation DECorePlugin
- (void)coolMethod:(CDVInvokedUrlCommand*)command
{
CDVPluginResult* pluginResult = nil;
NSString* echo = [command.arguments objectAtIndex:0];
if (echo != nil && [echo length] > 0) {
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:echo];
} else {
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR];
}
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
+ (NSDictionary*)appConfiguration
{
return [DEUtils dictionaryFromMainBundleXML:@"config" ofType:@"xml"];
}
@end