Created
February 23, 2012 14:28
-
-
Save purdrew/1893077 to your computer and use it in GitHub Desktop.
Cordova proxy definitions. Used when implementation is defined in JS as opposed to native.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxies: { | |
Contacts: { | |
actions: { | |
search: { | |
path: 'cordova/proxies/blackberry/contact_search' | |
}, | |
save: { | |
path: 'cordova/proxies/blackberry/contact_save' | |
} | |
} | |
}, | |
DirectoryEntry: { | |
path: 'cordova/proxies/blackberry/DirectoryEntry' | |
} | |
} |
Yeah, was following the object-y pattern used by the platform.objects. 'path' is the module to load. Maybe just:
proxies: {
"Contacts.search": "cordova/proxies/blackberry/Contacts.search",
"Contacts.save": "cordova/proxies/blackberry/Contacts.save",
"DirectoryEntry": "cordova/proxies/blackberry/DirectoryEntry"
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure what the 'path' points to, but would prefer to see less object-y configs, and more string-y configs: