Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active September 22, 2017 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjunichi/f5ffa87a258df08c5f4e5d771d8f7622 to your computer and use it in GitHub Desktop.
Save kjunichi/f5ffa87a258df08c5f4e5d771d8f7622 to your computer and use it in GitHub Desktop.
Cordovaメモ

cordovaなアプリを作る第一歩

cordova create AppDirPath com.hoge.foo.App AppName

AndroidやiOSのどれ向けにするか

cordova platform add android

ネイティブ拡張したプラグインの仕組み

Makefile的な物をプラグインに含めることは可能だが、Android版は バイナリが必須。cordovaのプラグイン追加時や利用時にプラグイン中のソースが ビルドされることはない

プラグインから別のプラグインを直接呼ぶには

jsを経由せずに直接呼ぶには

Android

iOS

プラグインの依存を書くには

<dependency id="cordova-plugin-add-swift-support" version="1.4.0"/>

Link

関連投稿

関連記事

関連

アクセス解析タグ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment