How to initialize the driver so it can be used by all classes

I just saw this: Switch between Android Driver and iOS Driver in a single test (Appium)