diff --git a/android/app/build.gradle b/android/app/build.gradle index b4181680..6b6b83a7 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -32,7 +32,7 @@ if (keystorePropertiesFile.exists()) { } android { - compileSdkVersion 30 + compileSdkVersion 31 sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -49,7 +49,7 @@ android { defaultConfig { applicationId "inventree.inventree_app" minSdkVersion 25 - targetSdkVersion 30 + targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" diff --git a/lib/api.dart b/lib/api.dart index 5343937e..45b2b119 100644 --- a/lib/api.dart +++ b/lib/api.dart @@ -256,6 +256,11 @@ class InvenTreeAPI { return apiVersion >= 14; } + // True plugin support requires API v34 or newer + bool supportPlugins() { + return apiVersion >= 34; + } + /* * Connect to the remote InvenTree server: *