refactor compile plugin, only android platform implemented.