Reputation: 2650
I'm having a cordova outsystems android app and I want to make sure it's running the compileSdkVersion and targetSdkVersion that I've set. Is it possible to print it out runtime in android code (not javascript)?
Upvotes: 1
Views: 292
Reputation: 90
Getting the targetSdkVersion is simple:
val targetSdkVersion = application.applicationInfo.targetSdkVersion
Getting the compileSdkVersion is more complex, there are answers posted here: How to get compileSdkVersion in my custom gradle plugin
Upvotes: 1