Commit 02b73210f5c9ac88286f43fe0c0bf279ef69bd18
1 parent
76ac9bef
add cordova plugins
Showing
2 changed files
with
7 additions
and
452 deletions
src/js/cordova_plugins.js deleted
100644 → 0
| 1 | -cordova.define('cordova/plugin_list', function(require, exports, module) { | |
| 2 | -module.exports = [ | |
| 3 | - { | |
| 4 | - "file": "plugins/cn.jpush.phonegap.JPushPlugin/www/JPushPlugin.js", | |
| 5 | - "id": "cn.jpush.phonegap.JPushPlugin.JPushPlugin", | |
| 6 | - "clobbers": [ | |
| 7 | - "jPushPlugin" | |
| 8 | - ] | |
| 9 | - }, | |
| 10 | - { | |
| 11 | - "file": "plugins/com.gaoxiaobang.comment/www/Mcomment.js", | |
| 12 | - "id": "com.gaoxiaobang.comment.MCommentPlugin", | |
| 13 | - "clobbers": [ | |
| 14 | - "cordova.plugins.Comment" | |
| 15 | - ] | |
| 16 | - }, | |
| 17 | - { | |
| 18 | - "file": "plugins/com.gaoxiaobang.download/www/MDownload.js", | |
| 19 | - "id": "com.gaoxiaobang.download.MDownloadPlugin", | |
| 20 | - "clobbers": [ | |
| 21 | - "cordova.plugins.MDownloadPlugin" | |
| 22 | - ] | |
| 23 | - }, | |
| 24 | - { | |
| 25 | - "file": "plugins/com.gaoxiaobang.sharedpreferences/www/MPreferences.js", | |
| 26 | - "id": "com.gaoxiaobang.sharedpreferences.Preferences", | |
| 27 | - "clobbers": [ | |
| 28 | - "cordova.plugins.Preferences" | |
| 29 | - ] | |
| 30 | - }, | |
| 31 | - { | |
| 32 | - "file": "plugins/com.gaoxiaobang.update/www/Mupdate.js", | |
| 33 | - "id": "com.gaoxiaobang.update.MUpdatePlugin", | |
| 34 | - "clobbers": [ | |
| 35 | - "cordova.plugins.MUpdatePlugin" | |
| 36 | - ] | |
| 37 | - }, | |
| 38 | - { | |
| 39 | - "file": "plugins/cordova-plugin-app-version/www/AppVersionPlugin.js", | |
| 40 | - "id": "cordova-plugin-app-version.AppVersionPlugin", | |
| 41 | - "clobbers": [ | |
| 42 | - "cordova.getAppVersion" | |
| 43 | - ] | |
| 44 | - }, | |
| 45 | - { | |
| 46 | - "file": "plugins/cordova-plugin-device/www/device.js", | |
| 47 | - "id": "cordova-plugin-device.device", | |
| 48 | - "clobbers": [ | |
| 49 | - "device" | |
| 50 | - ] | |
| 51 | - }, | |
| 52 | - { | |
| 53 | - "file": "plugins/cordova-plugin-dialogs/www/notification.js", | |
| 54 | - "id": "cordova-plugin-dialogs.notification", | |
| 55 | - "merges": [ | |
| 56 | - "navigator.notification" | |
| 57 | - ] | |
| 58 | - }, | |
| 59 | - { | |
| 60 | - "file": "plugins/cordova-plugin-dialogs/www/android/notification.js", | |
| 61 | - "id": "cordova-plugin-dialogs.notification_android", | |
| 62 | - "merges": [ | |
| 63 | - "navigator.notification" | |
| 64 | - ] | |
| 65 | - }, | |
| 66 | - { | |
| 67 | - "file": "plugins/cordova-plugin-file/www/DirectoryEntry.js", | |
| 68 | - "id": "cordova-plugin-file.DirectoryEntry", | |
| 69 | - "clobbers": [ | |
| 70 | - "window.DirectoryEntry" | |
| 71 | - ] | |
| 72 | - }, | |
| 73 | - { | |
| 74 | - "file": "plugins/cordova-plugin-file/www/DirectoryReader.js", | |
| 75 | - "id": "cordova-plugin-file.DirectoryReader", | |
| 76 | - "clobbers": [ | |
| 77 | - "window.DirectoryReader" | |
| 78 | - ] | |
| 79 | - }, | |
| 80 | - { | |
| 81 | - "file": "plugins/cordova-plugin-file/www/Entry.js", | |
| 82 | - "id": "cordova-plugin-file.Entry", | |
| 83 | - "clobbers": [ | |
| 84 | - "window.Entry" | |
| 85 | - ] | |
| 86 | - }, | |
| 87 | - { | |
| 88 | - "file": "plugins/cordova-plugin-file/www/File.js", | |
| 89 | - "id": "cordova-plugin-file.File", | |
| 90 | - "clobbers": [ | |
| 91 | - "window.File" | |
| 92 | - ] | |
| 93 | - }, | |
| 94 | - { | |
| 95 | - "file": "plugins/cordova-plugin-file/www/FileEntry.js", | |
| 96 | - "id": "cordova-plugin-file.FileEntry", | |
| 97 | - "clobbers": [ | |
| 98 | - "window.FileEntry" | |
| 99 | - ] | |
| 100 | - }, | |
| 101 | - { | |
| 102 | - "file": "plugins/cordova-plugin-file/www/FileError.js", | |
| 103 | - "id": "cordova-plugin-file.FileError", | |
| 104 | - "clobbers": [ | |
| 105 | - "window.FileError" | |
| 106 | - ] | |
| 107 | - }, | |
| 108 | - { | |
| 109 | - "file": "plugins/cordova-plugin-file/www/FileReader.js", | |
| 110 | - "id": "cordova-plugin-file.FileReader", | |
| 111 | - "clobbers": [ | |
| 112 | - "window.FileReader" | |
| 113 | - ] | |
| 114 | - }, | |
| 115 | - { | |
| 116 | - "file": "plugins/cordova-plugin-file/www/FileSystem.js", | |
| 117 | - "id": "cordova-plugin-file.FileSystem", | |
| 118 | - "clobbers": [ | |
| 119 | - "window.FileSystem" | |
| 120 | - ] | |
| 121 | - }, | |
| 122 | - { | |
| 123 | - "file": "plugins/cordova-plugin-file/www/FileUploadOptions.js", | |
| 124 | - "id": "cordova-plugin-file.FileUploadOptions", | |
| 125 | - "clobbers": [ | |
| 126 | - "window.FileUploadOptions" | |
| 127 | - ] | |
| 128 | - }, | |
| 129 | - { | |
| 130 | - "file": "plugins/cordova-plugin-file/www/FileUploadResult.js", | |
| 131 | - "id": "cordova-plugin-file.FileUploadResult", | |
| 132 | - "clobbers": [ | |
| 133 | - "window.FileUploadResult" | |
| 134 | - ] | |
| 135 | - }, | |
| 136 | - { | |
| 137 | - "file": "plugins/cordova-plugin-file/www/FileWriter.js", | |
| 138 | - "id": "cordova-plugin-file.FileWriter", | |
| 139 | - "clobbers": [ | |
| 140 | - "window.FileWriter" | |
| 141 | - ] | |
| 142 | - }, | |
| 143 | - { | |
| 144 | - "file": "plugins/cordova-plugin-file/www/Flags.js", | |
| 145 | - "id": "cordova-plugin-file.Flags", | |
| 146 | - "clobbers": [ | |
| 147 | - "window.Flags" | |
| 148 | - ] | |
| 149 | - }, | |
| 150 | - { | |
| 151 | - "file": "plugins/cordova-plugin-file/www/LocalFileSystem.js", | |
| 152 | - "id": "cordova-plugin-file.LocalFileSystem", | |
| 153 | - "clobbers": [ | |
| 154 | - "window.LocalFileSystem" | |
| 155 | - ], | |
| 156 | - "merges": [ | |
| 157 | - "window" | |
| 158 | - ] | |
| 159 | - }, | |
| 160 | - { | |
| 161 | - "file": "plugins/cordova-plugin-file/www/Metadata.js", | |
| 162 | - "id": "cordova-plugin-file.Metadata", | |
| 163 | - "clobbers": [ | |
| 164 | - "window.Metadata" | |
| 165 | - ] | |
| 166 | - }, | |
| 167 | - { | |
| 168 | - "file": "plugins/cordova-plugin-file/www/ProgressEvent.js", | |
| 169 | - "id": "cordova-plugin-file.ProgressEvent", | |
| 170 | - "clobbers": [ | |
| 171 | - "window.ProgressEvent" | |
| 172 | - ] | |
| 173 | - }, | |
| 174 | - { | |
| 175 | - "file": "plugins/cordova-plugin-file/www/fileSystems.js", | |
| 176 | - "id": "cordova-plugin-file.fileSystems" | |
| 177 | - }, | |
| 178 | - { | |
| 179 | - "file": "plugins/cordova-plugin-file/www/requestFileSystem.js", | |
| 180 | - "id": "cordova-plugin-file.requestFileSystem", | |
| 181 | - "clobbers": [ | |
| 182 | - "window.requestFileSystem" | |
| 183 | - ] | |
| 184 | - }, | |
| 185 | - { | |
| 186 | - "file": "plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js", | |
| 187 | - "id": "cordova-plugin-file.resolveLocalFileSystemURI", | |
| 188 | - "merges": [ | |
| 189 | - "window" | |
| 190 | - ] | |
| 191 | - }, | |
| 192 | - { | |
| 193 | - "file": "plugins/cordova-plugin-file/www/browser/isChrome.js", | |
| 194 | - "id": "cordova-plugin-file.isChrome", | |
| 195 | - "runs": true | |
| 196 | - }, | |
| 197 | - { | |
| 198 | - "file": "plugins/cordova-plugin-file/www/android/FileSystem.js", | |
| 199 | - "id": "cordova-plugin-file.androidFileSystem", | |
| 200 | - "merges": [ | |
| 201 | - "FileSystem" | |
| 202 | - ] | |
| 203 | - }, | |
| 204 | - { | |
| 205 | - "file": "plugins/cordova-plugin-file/www/fileSystems-roots.js", | |
| 206 | - "id": "cordova-plugin-file.fileSystems-roots", | |
| 207 | - "runs": true | |
| 208 | - }, | |
| 209 | - { | |
| 210 | - "file": "plugins/cordova-plugin-file/www/fileSystemPaths.js", | |
| 211 | - "id": "cordova-plugin-file.fileSystemPaths", | |
| 212 | - "merges": [ | |
| 213 | - "cordova" | |
| 214 | - ], | |
| 215 | - "runs": true | |
| 216 | - }, | |
| 217 | - { | |
| 218 | - "file": "plugins/cordova-plugin-file-transfer/www/FileTransferError.js", | |
| 219 | - "id": "cordova-plugin-file-transfer.FileTransferError", | |
| 220 | - "clobbers": [ | |
| 221 | - "window.FileTransferError" | |
| 222 | - ] | |
| 223 | - }, | |
| 224 | - { | |
| 225 | - "file": "plugins/cordova-plugin-file-transfer/www/FileTransfer.js", | |
| 226 | - "id": "cordova-plugin-file-transfer.FileTransfer", | |
| 227 | - "clobbers": [ | |
| 228 | - "window.FileTransfer" | |
| 229 | - ] | |
| 230 | - }, | |
| 231 | - { | |
| 232 | - "file": "plugins/cordova-plugin-inappbrowser/www/inappbrowser.js", | |
| 233 | - "id": "cordova-plugin-inappbrowser.inappbrowser", | |
| 234 | - "clobbers": [ | |
| 235 | - "cordova.InAppBrowser.open", | |
| 236 | - "window.open" | |
| 237 | - ] | |
| 238 | - }, | |
| 239 | - { | |
| 240 | - "file": "plugins/cordova-plugin-network-information/www/network.js", | |
| 241 | - "id": "cordova-plugin-network-information.network", | |
| 242 | - "clobbers": [ | |
| 243 | - "navigator.connection", | |
| 244 | - "navigator.network.connection" | |
| 245 | - ] | |
| 246 | - }, | |
| 247 | - { | |
| 248 | - "file": "plugins/cordova-plugin-network-information/www/Connection.js", | |
| 249 | - "id": "cordova-plugin-network-information.Connection", | |
| 250 | - "clobbers": [ | |
| 251 | - "Connection" | |
| 252 | - ] | |
| 253 | - }, | |
| 254 | - { | |
| 255 | - "file": "plugins/cordova-plugin-statusbar/www/statusbar.js", | |
| 256 | - "id": "cordova-plugin-statusbar.statusbar", | |
| 257 | - "clobbers": [ | |
| 258 | - "window.StatusBar" | |
| 259 | - ] | |
| 260 | - }, | |
| 261 | - { | |
| 262 | - "file": "plugins/cordova-plugin-x-toast/www/Toast.js", | |
| 263 | - "id": "cordova-plugin-x-toast.Toast", | |
| 264 | - "clobbers": [ | |
| 265 | - "window.plugins.toast" | |
| 266 | - ] | |
| 267 | - }, | |
| 268 | - { | |
| 269 | - "file": "plugins/cordova-plugin-x-toast/test/tests.js", | |
| 270 | - "id": "cordova-plugin-x-toast.tests" | |
| 271 | - }, | |
| 272 | - { | |
| 273 | - "file": "plugins/cordova-sqlite-storage/www/SQLitePlugin.js", | |
| 274 | - "id": "cordova-sqlite-storage.SQLitePlugin", | |
| 275 | - "clobbers": [ | |
| 276 | - "SQLitePlugin" | |
| 277 | - ] | |
| 278 | - }, | |
| 279 | - { | |
| 280 | - "file": "plugins/ionic-plugin-keyboard/www/android/keyboard.js", | |
| 281 | - "id": "ionic-plugin-keyboard.keyboard", | |
| 282 | - "clobbers": [ | |
| 283 | - "cordova.plugins.Keyboard" | |
| 284 | - ], | |
| 285 | - "runs": true | |
| 286 | - }, | |
| 287 | - { | |
| 288 | - "file": "plugins/org.pbernasconi.progressindicator/www/progressIndicator.js", | |
| 289 | - "id": "org.pbernasconi.progressindicator.ProgressIndicator", | |
| 290 | - "clobbers": [ | |
| 291 | - "ProgressIndicator" | |
| 292 | - ] | |
| 293 | - }, | |
| 294 | - { | |
| 295 | - "file": "plugins/com.gaoxiaobang.live/www/MLive.js", | |
| 296 | - "id": "com.gaoxiaobang.live.MLivePlugin", | |
| 297 | - "clobbers": [ | |
| 298 | - "cordova.plugins.Live" | |
| 299 | - ] | |
| 300 | - }, | |
| 301 | - { | |
| 302 | - "file": "plugins/com.gaoxiaobang.network/www/Mnetwork.js", | |
| 303 | - "id": "com.gaoxiaobang.network.MnetworkPlugin", | |
| 304 | - "clobbers": [ | |
| 305 | - "cordova.plugins.Network" | |
| 306 | - ] | |
| 307 | - }, | |
| 308 | - { | |
| 309 | - "file": "plugins/com.gaoxiaobang.imagecache/www/Mimage.js", | |
| 310 | - "id": "com.gaoxiaobang.imagecache.MimageCachePlugin", | |
| 311 | - "clobbers": [ | |
| 312 | - "cordova.plugins.image" | |
| 313 | - ] | |
| 314 | - }, | |
| 315 | - { | |
| 316 | - "file": "plugins/com.telerik.plugins.nativepagetransitions/www/NativePageTransitions.js", | |
| 317 | - "id": "com.telerik.plugins.nativepagetransitions.NativePageTransitions", | |
| 318 | - "clobbers": [ | |
| 319 | - "window.plugins.nativepagetransitions" | |
| 320 | - ] | |
| 321 | - }, | |
| 322 | - { | |
| 323 | - "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js", | |
| 324 | - "id": "cordova-plugin-splashscreen.SplashScreen", | |
| 325 | - "clobbers": [ | |
| 326 | - "navigator.splashscreen" | |
| 327 | - ] | |
| 328 | - }, | |
| 329 | - { | |
| 330 | - "file": "plugins/com.gaoxiaobang.location/www/MLocation.js", | |
| 331 | - "id": "com.gaoxiaobang.location.MLocationPlugin", | |
| 332 | - "clobbers": [ | |
| 333 | - "cordova.plugins.MLocation" | |
| 334 | - ] | |
| 335 | - }, | |
| 336 | - { | |
| 337 | - "file": "plugins/com.gaoxiaobang.record/www/MRecord.js", | |
| 338 | - "id": "com.gaoxiaobang.record.MRecordPlugin", | |
| 339 | - "clobbers": [ | |
| 340 | - "cordova.plugins.MRecord" | |
| 341 | - ] | |
| 342 | - }, | |
| 343 | - { | |
| 344 | - "file": "plugins/com.gaoxiaobang.paly/www/Mplay.js", | |
| 345 | - "id": "com.gaoxiaobang.paly.MPlayPlugin", | |
| 346 | - "clobbers": [ | |
| 347 | - "cordova.plugins.MPlayPlugin" | |
| 348 | - ] | |
| 349 | - }, | |
| 350 | - { | |
| 351 | - "file": "plugins/com.gaoxiaobang.keyboards/www/MKeyboards.js", | |
| 352 | - "id": "com.gaoxiaobang.keyboards.MKeyboardsPlugin", | |
| 353 | - "clobbers": [ | |
| 354 | - "cordova.plugins.image" | |
| 355 | - ] | |
| 356 | - }, | |
| 357 | - { | |
| 358 | - "file": "plugins/com.gaoxiaobang.qrcode/www/QRcode.js", | |
| 359 | - "id": "com.gaoxiaobang.qrcode.MQRcodePlugin", | |
| 360 | - "clobbers": [ | |
| 361 | - "cordova.plugins.MQRcodePlugin" | |
| 362 | - ] | |
| 363 | - }, | |
| 364 | - { | |
| 365 | - "file": "plugins/com.gaoxiaobang.share/www/Share.js", | |
| 366 | - "id": "com.gaoxiaobang.share.MSharePlugin", | |
| 367 | - "clobbers": [ | |
| 368 | - "cordova.plugins.MSharePlugin" | |
| 369 | - ] | |
| 370 | - }, | |
| 371 | - { | |
| 372 | - "id": "com.gaoxiaobang.browser.MBrowserPlugin", | |
| 373 | - "file": "plugins/com.gaoxiaobang.browser/www/MBrowser.js", | |
| 374 | - "pluginId": "com.gaoxiaobang.browser", | |
| 375 | - "clobbers": [ | |
| 376 | - "cordova.plugins.MBrowserPlugin" | |
| 377 | - ] | |
| 378 | - }, | |
| 379 | - { | |
| 380 | - "file": "plugins/Umeng/www/Umeng.js", | |
| 381 | - "id": "Umeng.Umeng", | |
| 382 | - "clobbers": [ | |
| 383 | - "MobclickAgent" | |
| 384 | - ] | |
| 385 | - }, | |
| 386 | - { | |
| 387 | - "file": "plugins/com.gaoxiaobang.online/www/Online.js", | |
| 388 | - "id": "com.gaoxiaobang.online.MOnlinePlugin", | |
| 389 | - "clobbers": [ | |
| 390 | - "cordova.plugins.MOnlinePlugin" | |
| 391 | - ] | |
| 392 | - }, | |
| 393 | - { | |
| 394 | - "file": "plugins/com.gaoxiaobang.headimage.www/Headimage.js", | |
| 395 | - "id": "com.gaoxiaobang.headimage.MHeadImagePlugin", | |
| 396 | - "clobbers": [ | |
| 397 | - "cordova.plugins.MHeadImagePlugin" | |
| 398 | - ] | |
| 399 | - }, | |
| 400 | - { | |
| 401 | - "file": "plugins/com.gaoxiaobang.article/www/Article.js", | |
| 402 | - "id": "com.gaoxiaobang.article.ArticlePlugin", | |
| 403 | - "clobbers": [ | |
| 404 | - "cordova.plugins.ArticlePlugin" | |
| 405 | - ] | |
| 406 | - } | |
| 407 | - | |
| 408 | -]; | |
| 409 | -module.exports.metadata = | |
| 410 | -// TOP OF METADATA | |
| 411 | -{ | |
| 412 | - "cn.jpush.phonegap.JPushPlugin": "2.1.0", | |
| 413 | - "com.gaoxiaobang.comment": "0.0.1", | |
| 414 | - "com.gaoxiaobang.download": "0.0.1", | |
| 415 | - "com.gaoxiaobang.sharedpreferences": "0.0.1", | |
| 416 | - "com.gaoxiaobang.update": "0.0.1", | |
| 417 | - "cordova-plugin-app-version": "0.1.8", | |
| 418 | - "cordova-plugin-console": "1.0.2", | |
| 419 | - "cordova-plugin-crosswalk-webview": "1.6.1", | |
| 420 | - "cordova-plugin-device": "1.1.1", | |
| 421 | - "cordova-plugin-dialogs": "1.2.0", | |
| 422 | - "cordova-plugin-file": "4.1.1", | |
| 423 | - "cordova-plugin-file-transfer": "1.5.0", | |
| 424 | - "cordova-plugin-inappbrowser": "1.2.1", | |
| 425 | - "cordova-plugin-network-information": "1.2.0", | |
| 426 | - "cordova-plugin-statusbar": "2.1.1", | |
| 427 | - "cordova-plugin-whitelist": "1.2.2", | |
| 428 | - "cordova-plugin-x-toast": "2.4.2", | |
| 429 | - "cordova-sqlite-storage": "0.8.4-dev", | |
| 430 | - "ionic-plugin-keyboard": "1.0.8", | |
| 431 | - "org.pbernasconi.progressindicator": "1.1.0", | |
| 432 | - "com.gaoxiaobang.live": "0.0.1", | |
| 433 | - "com.gaoxiaobang.network": "0.0.1", | |
| 434 | - "com.gaoxiaobang.imagecache": "0.0.1", | |
| 435 | - "com.telerik.plugins.nativepagetransitions": "0.6.4", | |
| 436 | - "cordova-plugin-splashscreen": "3.2.2", | |
| 437 | - "com.gaoxiaobang.location": "0.0.1", | |
| 438 | - "com.gaoxiaobang.record": "0.0.1", | |
| 439 | - "com.gaoxiaobang.paly": "0.0.1", | |
| 440 | - "com.gaoxiaobang.keyboards": "0.0.1", | |
| 441 | - "com.gaoxiaobang.qrcode": "0.0.1", | |
| 442 | - "com.gaoxiaobang.share": "0.0.1", | |
| 443 | - "com.gaoxiaobang.online": "0.0.1", | |
| 444 | - "Umeng": "1.0.0", | |
| 445 | - "com.gaoxiaobang.headimage": "0.0.1", | |
| 446 | - "com.gaoxiaobang.article": "0.0.1" | |
| 447 | -}; | |
| 448 | -// BOTTOM OF METADATA | |
| 449 | -}); | |
| 450 | 0 | \ No newline at end of file |
src/player.html
| ... | ... | @@ -23,7 +23,8 @@ |
| 23 | 23 | // var gxb_api = "https://restful.gaoxiaobang.com" |
| 24 | 24 | </script> |
| 25 | 25 | <script src="js/cordova.js"></script> |
| 26 | - <script src="js/cordova_plugins.js"></script> | |
| 26 | + <!-- <script src="js/MBrowser.js"></script> --> | |
| 27 | + <!-- <script src="js/cordova_plugins.js"></script> --> | |
| 27 | 28 | <script src="js/jquery-1.7.1.js"></script> |
| 28 | 29 | <script src="js/bootstrap.js"></script> |
| 29 | 30 | |
| ... | ... | @@ -384,9 +385,12 @@ |
| 384 | 385 | $(function(){ |
| 385 | 386 | $('.back').click(function(){ |
| 386 | 387 | alert('plugins') |
| 387 | - alert(plugins) | |
| 388 | + alert(Plugins) | |
| 388 | 389 | var gobackData = {} |
| 389 | - plugins.MSharePlugin.goback() | |
| 390 | + document.addEventListener("deviceready", function(){ | |
| 391 | + Plugins.MSharePlugin.goback() | |
| 392 | + }, false) | |
| 393 | + | |
| 390 | 394 | |
| 391 | 395 | }) |
| 392 | 396 | $('.share').click(function(){ | ... | ... |