Hello everyone, is there any way to access a kotli...
# android
k
Hello everyone, is there any way to access a kotlin file that have a class and implement a interface in the internal storage or even get it from web and use it inside the application after the application was compiled. This kotlin file is a add-on to application.
m
If by "a kotlin file", you mean "a file containing Kotlin source code", then the answer is no AFAIK -- the Kotlin compiler does not run on Android, unless they added support for it when I was not looking. If by "a kotlin file" you mean "a JAR containing compiled Kotlin source code", then the answer is no -- Android at runtime cannot use JARs. If by "a kotlin file" you mean "a DEX file converted from a JAR containing compiled Kotlin source code", then the answer is yes, but you may want to talk to an attorney first. Doing this goes against the terms of service for the Play Store (and perhaps for other app distribution channels), because it is very difficult to do this securely.
k
thanks for answering my question