Combine IOS and Android automation in the same project

I had an old version of Appium where I created a dedicated driver for each Android or IOS, and pass it to my object via the constructor.
In this class I’ve defined ( For all driver types) Final Android driver and found the element for each os platform in the following way:
@AndroidFindBy
@iOSXCUITFindBy

I’ve noticed that after upgrading to the latest Appium version it doesn’t work that way anymore,
Can anyone help me with this?

it continue works same in Appium 2.0. Problem somewhere in your code…