Targeting minimal Android API level from Kotlin JVM project


#1

Hello,

I had a Kotlin library that I used in a server application (JRE 8) but now I need to use it on an android app with a specific minSdkVersion, let assume minSdkVersion:15. How can I insure that my lib is compatible ?
Is there any compiler options to set to insure Android compliance ?
My library is built with Maven and for the moment I have set some properties:

<properties>
<kotlin.version>1.2.71</kotlin.version>
<maven.compiler>3.5.1</maven.compiler>
<kotlin.compiler.jvmTarget>1.6</kotlin.compiler.jvmTarget>
<maven-compiler-plugin.source>1.7</maven-compiler-plugin.source>
<maven-compiler-plugin.target>1.7</maven-compiler-plugin.target>
</properties>

But I’m sure if it’s the enough ?