Create an aar instead of an apk

Replaced switch statements with if statements so the library compiles