Skip to content

Commit

Permalink
Merge pull request #6712 from garymathews/parity
Browse files Browse the repository at this point in the history
[TIMOB-18683] Ignore platform specific APIs from Total API count
  • Loading branch information
ingo committed Mar 12, 2015
2 parents c39732d + 5df17c0 commit a511910
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apidoc/lib/parity_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,14 @@ exports.exportData = function exportHTML(apis) {
updateCoverage(rv.coverage, event.platforms);
}
}

// Update return object
rv.proxies.push(proxy);
rv.totalAPIs += api.properties.length + api.methods.length + api.events.length + 1;
// Skip platform specific proxies from api count
if (!className.contains('iOS') && !className.contains('iPhone') &&
!className.contains('iPad') && !className.contains('Android') &&
!className.contains('Tizen')) {
rv.totalAPIs += api.properties.length + api.methods.length + api.events.length + 1;
}

if (!pseudo) {
updateCoverage(rv.coverage, api.platforms);
Expand Down

0 comments on commit a511910

Please sign in to comment.