migrate deps sync script from jnrain-android