mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-31 13:25:40 +00:00 
			
		
		
		
	API v34 required for plugin support
This commit is contained in:
		| @@ -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" | ||||
|   | ||||
| @@ -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: | ||||
|    * | ||||
|   | ||||
		Reference in New Issue
	
	Block a user