onesignal GCM is deprecated

Hi,

I’ve this warning on android devices,
W/OneSignal: GCM Library detected, please upgrade to Firebase FCM library as GCM is deprecated!

How exactly to upgrade onesignal to use FCM?

Thank you