Ionic v4 custom plugin

Does anybody have a tutorial on custom plugin for ionic v4, using v3 plugman method cannot use.