filmaj/medic — pull request #37 by kruyvanna (2013-03-13 07:08:04+00:00)
Title: Feature/no hardcode

Hi,

I Wanna make adding new platform easier by removing hard-code value and add them libraries.js

So it will looks like this:
```javascript
module.exports = {
platforms:['cordova-android', 'cordova-blackberry','cordova-ios'],
'cordova-android':{
'git': 'https://git-wip-us.apache.org/repos/asf/cordova-android.git',
'path': path.join(__dirname, 'lib', 'cordova-android'),
'output': path.join(__dirname, 'temp', 'android')
},
'cordova-blackberry':{
'git': 'https://git-wip-us.apache.org/repos/asf/cordova-blackberry.git',
'path': path.join(__dirname, 'lib', 'cordova-blackberry'),
'output': path.join(__dirname, 'temp', 'blackberry')
},
'cordova-ios':{
'git': 'https://git-wip-us.apache.org/repos/asf/cordova-ios.git',
'path': path.join(__dirname, 'lib', 'cordova-ios'),
'output': path.join(__dirname, 'temp', 'ios')
},
'test':{
'path': path.join(__dirname, 'lib', 'test'),
'output': path.join(__dirname, 'temp', 'test')
},
first_tested_commit:{
'cordova-android':'538e90f23aaeebe4cc08ad87d17d0ab2dde6185d',
'cordova-ios':'6e60c222f8194bb43de6b52c5ea9ff84cc92e040'
}
};
```

You need to update the couch db as well by prefixing all platform value with 'cordova-'
Ex:
```javascript
"views": {
"cordova-android": {
"map": "function(doc){if (doc.platform == 'cordova-android' && doc.mobilespec) {emit(doc.sha, {\"total\":doc.mobilespec.total,\"passed\":(doc.mobilespec.total - doc.mobilespec.failed),\"version\":doc.version,\"model\":doc.model,\"fails\":doc.mobilespec.failures});}}"
},
"cordova-blackberry": {
"map": "function(doc){if (doc.platform == 'cordova-blackberry' && doc.mobilespec) {emit(doc.sha, {\"total\":doc.mobilespec.total,\"passed\":(doc.mobilespec.total - doc.mobilespec.failed),\"version\":doc.version,\"model\":doc.model,\"fails\":doc.mobilespec.failures});}}"
},
"cordova-ios": {
"map": "function(doc){if (doc.platform == 'cordova-ios' && doc.mobilespec) {emit(doc.sha, {\"total\":doc.mobilespec.total,\"passed\":(doc.mobilespec.total - doc.mobilespec.failed),\"version\":doc.version,\"model\":doc.model,\"fails\":doc.mobilespec.failures});}}"
}
```