Differentiate between generated code for API and Android