contactabbas
contactabbas

Reputation: 832

after_compile hook not getting called for "cordova run"

"cordova --help" states that "run ... Run project (including prepare && compile)". What I understand is that calling "cordova run android" calls prepare and compile processes. It indeed calls.

However, it only calls the "prepare" related hooks (before_prepare and after_prepare) and doesn't call compile related hooks (before_compile & after_compile). IF I call "cordova compile" specifically, the hooks are getting called and executed correctly. Any help?

I am using cordova 4.2.0. My hooks are written in node.js and reside in "/hooks" directory.

Upvotes: 4

Views: 2965

Answers (1)

contactabbas
contactabbas

Reputation: 832

Just found out that this is a bug as reported here

Upvotes: 6

Related Questions