ing csv import
This commit is contained in:
@@ -6,7 +6,8 @@ plugins {
|
||||
|
||||
android {
|
||||
namespace = "com.example.myapp"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
// file_picker / flutter_plugin_android_lifecycle require API 36+.
|
||||
compileSdk = 36
|
||||
ndkVersion = flutter.ndkVersion
|
||||
|
||||
compileOptions {
|
||||
|
||||
@@ -15,8 +15,25 @@ subprojects {
|
||||
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
|
||||
project.layout.buildDirectory.value(newSubprojectBuildDir)
|
||||
}
|
||||
|
||||
// Force plugins (e.g. file_picker) onto compileSdk 36 so they satisfy
|
||||
// flutter_plugin_android_lifecycle AAR metadata checks.
|
||||
subprojects {
|
||||
project.evaluationDependsOn(":app")
|
||||
afterEvaluate {
|
||||
val android = extensions.findByName("android") ?: return@afterEvaluate
|
||||
for (name in listOf("setCompileSdk", "setCompileSdkVersion")) {
|
||||
try {
|
||||
android.javaClass
|
||||
.getMethod(name, Int::class.javaPrimitiveType)
|
||||
.invoke(android, 36)
|
||||
break
|
||||
} catch (_: NoSuchMethodException) {
|
||||
// try next
|
||||
} catch (_: Exception) {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register<Delete>("clean") {
|
||||
|
||||
Reference in New Issue
Block a user