2015-11-26 01:44:58 +08:00
function _ _export ( m ) {
for ( var p in m ) if ( ! exports . hasOwnProperty ( p ) ) exports [ p ] = m [ p ] ;
}
2015-11-30 06:30:15 +08:00
var DEVICE _READY _TIMEOUT = 2000 ;
_ _export ( require ( './plugins/actionsheet' ) ) ;
2015-11-26 01:44:58 +08:00
_ _export ( require ( './plugins/camera' ) ) ;
2015-11-29 06:17:04 +08:00
_ _export ( require ( './plugins/statusbar' ) ) ;
2015-11-29 06:24:38 +08:00
_ _export ( require ( './plugins/toast' ) ) ;
2015-11-30 06:30:15 +08:00
var didFireReady = false ;
window . addEventListener ( 'deviceready' , function ( ) {
didFireReady = true ;
} ) ;
setTimeout ( function ( ) {
if ( ! didFireReady ) {
console . warn ( 'Native: deviceready did not fire within ' + DEVICE _READY _TIMEOUT + 'ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.' ) ;
}
} , DEVICE _READY _TIMEOUT ) ;