I have some library in github that want to be more user friendly. For being more user friendly i want to check compatibility with my lib and main-app in compile-time.
This is how problem came: I have updated my lib for android Oreo and if user set targetSdkVersion to 27 it will be fine. Problem is when user set his app target to 27 but use my old lib version. This cause crash in my lib.
For checking compatibility of main app, i have to check targetSdkVersion of main app from my library. Is that possible? or is there any other way to force lib-user-app to meet my dependencies not just by documents?