Make Xcode use an aar file

I'm working on a message filter extension for iOS and I am kind of stuck. I would like to make some verification on message, but the code is written in Java/Android in an aar file.

From my research, I tried to place the file into Build Phases -> New Copy Files Phases and place the file there or in Project-> General -> Development Assets, but no change.

Also I tried to place the aar file into a folder named libs and implement it using gradle and the build.gradle file, but I get the next warning: " Could not find method compile() /implementation() for arguments [{name= 'placeholder', ext= 'aar'}]"

Is there any way of using that file into Xcode? Thank you in advance.

Make Xcode use an aar file
 
 
Q