From 3bb370bee10801aae22b17abbe67829f9d98c896 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 25 Mar 2022 20:41:32 +1100 Subject: [PATCH] API v34 required for plugin support --- android/app/build.gradle | 4 ++-- lib/api.dart | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) 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: *