Jim Clermonts
Jim Clermonts

Reputation: 2650

Print the compileSdkVersion and targetSdkVersion runtime of android app

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

Answers (1)

Nathan Meade
Nathan Meade

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

Related Questions