I have things still happily using IMAP, in fact gmail on my iPhone is still showing IMAP-like folders, further more the gmail help still shows the IMAP configuration procedure[1].
[1]. https://support.google.com/mail/answer/7126229?hl=en
Email discontinued support for importing emails from IMAP sources in Gmail itself. That's what I was thinking of.