2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00

API v34 required for plugin support

This commit is contained in:
Oliver Walters 2022-03-25 20:41:32 +11:00
parent 2834423684
commit 3bb370bee1
2 changed files with 7 additions and 2 deletions

View File

@ -32,7 +32,7 @@ if (keystorePropertiesFile.exists()) {
} }
android { android {
compileSdkVersion 30 compileSdkVersion 31
sourceSets { sourceSets {
main.java.srcDirs += 'src/main/kotlin' main.java.srcDirs += 'src/main/kotlin'
@ -49,7 +49,7 @@ android {
defaultConfig { defaultConfig {
applicationId "inventree.inventree_app" applicationId "inventree.inventree_app"
minSdkVersion 25 minSdkVersion 25
targetSdkVersion 30 targetSdkVersion 31
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

View File

@ -256,6 +256,11 @@ class InvenTreeAPI {
return apiVersion >= 14; return apiVersion >= 14;
} }
// True plugin support requires API v34 or newer
bool supportPlugins() {
return apiVersion >= 34;
}
/* /*
* Connect to the remote InvenTree server: * Connect to the remote InvenTree server:
* *