gradle issue fix
parent
93a645691a
commit
1198f541b5
@ -1,6 +1,6 @@
|
|||||||
#Mon May 18 15:37:56 AST 2026
|
#Wed Jul 02 15:26:33 AST 2025
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@ -1,29 +1,203 @@
|
|||||||
|
//pluginManagement {
|
||||||
|
// def flutterSdkPath = {
|
||||||
|
// def properties = new Properties()
|
||||||
|
// file("local.properties").withInputStream { properties.load(it) }
|
||||||
|
// def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||||
|
// assert flutterSdkPath != null : "flutter.sdk not set in local.properties"
|
||||||
|
// return flutterSdkPath
|
||||||
|
// }()
|
||||||
|
//
|
||||||
|
// includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
||||||
|
//
|
||||||
|
// repositories {
|
||||||
|
// google()
|
||||||
|
// mavenCentral()
|
||||||
|
// gradlePluginPortal()
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// plugins {
|
||||||
|
// id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||||
|
// id "com.android.application" version "8.1.0" apply false
|
||||||
|
// id "org.jetbrains.kotlin.android" version "2.1.10" apply false
|
||||||
|
// id "com.google.gms.google-services" version "4.4.2" apply false
|
||||||
|
// id "com.google.firebase.crashlytics" version "3.0.3" apply false
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//dependencyResolutionManagement {
|
||||||
|
// repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
|
//
|
||||||
|
// repositories {
|
||||||
|
// google()
|
||||||
|
// mavenCentral()
|
||||||
|
// flatDir {
|
||||||
|
// dirs 'libs'
|
||||||
|
// }
|
||||||
|
// maven {
|
||||||
|
// url 'https://developer.huawei.com/repo/'
|
||||||
|
// }
|
||||||
|
// maven {
|
||||||
|
// url "https://artifactory.ess-dev.com/artifactory/gradle-dev-local"
|
||||||
|
// }
|
||||||
|
// maven {
|
||||||
|
// url 'https://api.mapbox.com/downloads/v2/releases/maven'
|
||||||
|
//
|
||||||
|
// credentials {
|
||||||
|
// username = 'mapbox'
|
||||||
|
// password = "sk.eyJ1IjoicndhaWQiLCJhIjoiY2x6NWo0bTMzMWZodzJrcGZpemYzc3Z4dSJ9.uSSZuwNSGCcCdPAiORECmg"
|
||||||
|
// if (password == null || password == "") {
|
||||||
|
// throw new GradleException("MAPBOX_DOWNLOADS_TOKEN isn't set. Set it to the project properties or to the environment variables.")
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// authentication {
|
||||||
|
// basic(BasicAuthentication)
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//// Load local properties
|
||||||
|
//def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
|
||||||
|
//def properties = new Properties()
|
||||||
|
//assert localPropertiesFile.exists()
|
||||||
|
//localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
|
||||||
|
//
|
||||||
|
//// Get Flutter SDK path
|
||||||
|
//def flutterSdkPath = properties.getProperty('flutter.sdk')
|
||||||
|
//assert flutterSdkPath != null : "flutter.sdk not set in local.properties"
|
||||||
|
//
|
||||||
|
//// Get vital-sign-engine path
|
||||||
|
//def vitalSignEnginePath = properties.getProperty('vital.sign.engine.path')
|
||||||
|
//assert vitalSignEnginePath != null : "vital.sign.engine.path not set in local.properties"
|
||||||
|
//
|
||||||
|
//// Include modules
|
||||||
|
//include ':app'
|
||||||
|
////project(':vital-sign-engine').projectDir = file(vitalSignEnginePath)
|
||||||
|
//// ':vital-sign-engine'
|
||||||
|
|
||||||
|
|
||||||
|
//include ':app'
|
||||||
|
//
|
||||||
|
//def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
|
||||||
|
//
|
||||||
|
//def plugins = new Properties()
|
||||||
|
//def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
|
||||||
|
//if (pluginsFile.exists()) {
|
||||||
|
// pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
|
||||||
|
//}
|
||||||
|
//
|
||||||
|
//plugins.each { name, path ->
|
||||||
|
// def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
|
||||||
|
// include ":$name"
|
||||||
|
// project(":$name").projectDir = pluginDirectory
|
||||||
|
//}
|
||||||
|
|
||||||
|
//// Load local properties
|
||||||
|
//def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
|
||||||
|
//def properties = new Properties()
|
||||||
|
//assert localPropertiesFile.exists()
|
||||||
|
//localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
|
||||||
|
//
|
||||||
|
//// Get Flutter SDK path
|
||||||
|
//def flutterSdkPath = properties.getProperty('flutter.sdk')
|
||||||
|
//assert flutterSdkPath != null : "flutter.sdk not set in local.properties"
|
||||||
|
//
|
||||||
|
//// Get vital-sign-engine path
|
||||||
|
//def vitalSignEnginePath = properties.getProperty('vital.sign.engine.path')
|
||||||
|
//assert vitalSignEnginePath != null : "vital.sign.engine.path not set in local.properties"
|
||||||
|
//
|
||||||
|
|
||||||
pluginManagement {
|
pluginManagement {
|
||||||
def flutterSdkPath = {
|
def flutterSdkPath = {
|
||||||
def properties = new java.util.Properties()
|
def properties = new Properties()
|
||||||
file("local.properties").withInputStream { properties.load(it) }
|
file("local.properties").withInputStream { properties.load(it) }
|
||||||
def sdk = properties.getProperty("flutter.sdk")
|
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||||
assert sdk != null : "flutter.sdk not set in local.properties"
|
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
||||||
return sdk
|
return flutterSdkPath
|
||||||
}()
|
}()
|
||||||
|
|
||||||
includeBuild("${flutterSdkPath}/packages/flutter_tools/gradle")
|
|
||||||
|
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
||||||
|
|
||||||
|
// Get vital-sign-engine path
|
||||||
|
// def vitalSignEngine = {
|
||||||
|
// def properties = new Properties()
|
||||||
|
// file("local.properties").withInputStream { properties.load(it) }
|
||||||
|
// def vitalSignEnginePath = properties.getProperty("vital.sign.engine.path")
|
||||||
|
// assert vitalSignEnginePath != null, "vital.sign.engine.path not set in local.properties"
|
||||||
|
// return vitalSignEnginePath
|
||||||
|
// }()
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
maven { url 'https://developer.huawei.com/repo/' }
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
maven { url = uri("https://developer.huawei.com/repo/") }
|
}
|
||||||
|
|
||||||
|
resolutionStrategy {
|
||||||
|
eachPlugin {
|
||||||
|
if (requested.id.id == "com.huawei.agconnect") {
|
||||||
|
useModule("com.huawei.agconnect:agcp:1.9.1.304")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencyResolutionManagement {
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
gradlePluginPortal()
|
||||||
|
flatDir {
|
||||||
|
dirs 'libs'
|
||||||
|
}
|
||||||
|
maven {
|
||||||
|
url 'https://developer.huawei.com/repo/'
|
||||||
|
}
|
||||||
|
maven {
|
||||||
|
url "https://artifactory.ess-dev.com/artifactory/gradle-dev-local"
|
||||||
|
}
|
||||||
|
maven {
|
||||||
|
url 'https://api.mapbox.com/downloads/v2/releases/maven'
|
||||||
|
credentials {
|
||||||
|
username = 'mapbox'
|
||||||
|
password = "sk.eyJ1IjoicndhaWQiLCJhIjoiY2x6NWo0bTMzMWZodzJrcGZpemYzc3Z4dSJ9.uSSZuwNSGCcCdPAiORECmg"
|
||||||
|
if (password == null || password == "") {
|
||||||
|
throw new GradleException("MAPBOX_DOWNLOADS_TOKEN isn't set. Set it to the project properties or to the environment variables.")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
authentication {
|
||||||
|
basic(BasicAuthentication)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||||
id "com.android.application" version "8.9.1" apply false
|
id "com.android.application" version '8.11.0' apply false
|
||||||
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
|
id("org.jetbrains.kotlin.android") version "2.2.0" apply false
|
||||||
id "com.google.gms.google-services" version "4.4.2" apply false
|
id("com.google.gms.google-services") version "4.4.3" apply false
|
||||||
|
id("com.google.firebase.crashlytics") version "3.0.4" apply false
|
||||||
|
id('org.gradle.toolchains.foojay-resolver-convention') version '0.9.0' apply false
|
||||||
|
id "com.huawei.agconnect" version "1.9.1.304" apply false
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
include ':app'
|
include ":app"
|
||||||
include ':vital-sign-engine'
|
|
||||||
project(':vital-sign-engine').projectDir = new java.io.File('/Users/mohamedmekawy/Documents/Work/DiplomaticQuarter_3.16/packages/vital_sign_camera/android/libs')
|
//// Add the following to include vitalSignEngine as a module
|
||||||
|
//def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
|
||||||
|
//def properties = new Properties()
|
||||||
|
//assert localPropertiesFile.exists()
|
||||||
|
//localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
|
||||||
|
//def vitalSignEnginePath = properties.getProperty('vital.sign.engine.path')
|
||||||
|
//assert vitalSignEnginePath != null : "vital.sign.engine.path not set in local.properties"
|
||||||
|
//
|
||||||
|
//include ':vitalSignEngine'
|
||||||
|
//project(':vitalSignEngine').projectDir = file(vitalSignEnginePath)
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 28 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 79 KiB |
Loading…
Reference in New Issue