Skip to content

Commit

Permalink
chore: removed ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Jan 31, 2017
1 parent 7d3f2fa commit b41bd62
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions hooks/lib/android/androidManifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,28 +239,28 @@
// return launchActivityIndex
// }

function isLaunchActivity (activity) {
var intentFilters = activity['intent-filter']
var isLauncher = false
// function isLaunchActivity (activity) {
// var intentFilters = activity['intent-filter']
// var isLauncher = false

if (intentFilters == null || intentFilters.length === 0) {
return false
}
// if (intentFilters == null || intentFilters.length === 0) {
// return false
// }

isLauncher = intentFilters.some(function (intentFilter) {
var action = intentFilter['action']
var category = intentFilter['category']
// isLauncher = intentFilters.some(function (intentFilter) {
// var action = intentFilter['action']
// var category = intentFilter['category']

if (action == null || action.length !== 1 || category == null || category.length !== 1) {
return false
}
// if (action == null || action.length !== 1 || category == null || category.length !== 1) {
// return false
// }

var isMainAction = action[0]['$']['android:name'] === 'android.intent.action.MAIN'
var isLauncherCategory = category[0]['$']['android:name'] === 'android.intent.category.LAUNCHER'
// var isMainAction = action[0]['$']['android:name'] === 'android.intent.action.MAIN'
// var isLauncherCategory = category[0]['$']['android:name'] === 'android.intent.category.LAUNCHER'

return isMainAction && isLauncherCategory
})
// return isMainAction && isLauncherCategory
// })

return isLauncher
}
// return isLauncher
// }
})()

0 comments on commit b41bd62

Please sign in to comment.