ソースコード・リーディング
続きです。 device.js device.js 37 function Device() { this.available = false; this.platform = null; this.version = null; this.uuid = null; this.cordova = null; this.model = null; this.manufacturer = null; var me = this; channel.onCordovaRe…
やっと本題です。(長かったのは読んでいたからという言い訳を・・・) cordovaのバージョンは4.2.0です。 まずJSファイルから読んでいきたいです。 device.jsが対象です。79行ぐらいですね。コードだけならもっと短いですね。 最初に個人的にAndroidが読む…
まずインストールと使い方でタイトルを組むべきだったと反省しています。 今回もソースコードを読んでいません。。。(;´∀`) まぁ、覚えているうちに使い方を書いておきたいのです。 pluginのインストール コマンドプロンプトで実行です。 cordova plugin a…
The Apache Software Foundation The Apache Software Foundation · GitHub ソースコード・リーディングを実践してみます。 今回はcordovaのプラグインのソースコードです。 cordova-plugin-device apache/cordova-plugin-device apache/cordova-plugin-devi…