build: added toolchain resolver plugin
This commit is contained in:
parent
8446cb1d3e
commit
8ad540d605
3 changed files with 28 additions and 11 deletions
|
@ -7,6 +7,8 @@ All notable changes to this project will be documented in this file.
|
|||
### Changed
|
||||
|
||||
- upgraded Flutter to stable v3.13.1
|
||||
- building without FFmpeg `neon` libs
|
||||
- building with gradle toolchain resolver plugin
|
||||
|
||||
## <a id="v1.9.1"></a>[v1.9.1] - 2023-08-22
|
||||
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
include ':app'
|
||||
|
||||
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
|
||||
def properties = new Properties()
|
||||
|
||||
assert localPropertiesFile.exists()
|
||||
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
|
||||
|
||||
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
||||
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
|
26
android/settings.gradle.kts
Normal file
26
android/settings.gradle.kts
Normal file
|
@ -0,0 +1,26 @@
|
|||
pluginManagement {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("org.gradle.toolchains.foojay-resolver-convention") version ("0.4.0")
|
||||
}
|
||||
|
||||
include(":app")
|
||||
|
||||
val localPropertiesFile = File(rootProject.projectDir, "local.properties")
|
||||
val properties = java.util.Properties()
|
||||
|
||||
assert(localPropertiesFile.exists())
|
||||
localPropertiesFile.reader(Charsets.UTF_8).also { reader -> properties.load(reader) }
|
||||
|
||||
val flutterSdkPath: String? = properties.getProperty("flutter.sdk")
|
||||
assert(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
|
||||
|
||||
apply {
|
||||
from("$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle")
|
||||
}
|
Loading…
Reference in a new issue