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