From 6af484ebc9932d3875ff2c39a9395ac20e7e6e36 Mon Sep 17 00:00:00 2001 From: FaizHashmiCS22 Date: Tue, 12 Nov 2024 08:37:53 +0300 Subject: [PATCH] Appointmnent FLow testing --- android/app/build.gradle | 4 +++ android/build.gradle | 17 ++++++++-- .../gradle/wrapper/gradle-wrapper.properties | 5 +-- android/settings.gradle | 31 ++++++++++++++----- pubspec.yaml | 2 +- 5 files changed, 45 insertions(+), 14 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 3f54788..c05be18 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -28,9 +28,11 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { + namespace = "com.cloud.solutions.mowater.ksa.customer" compileSdkVersion 34 compileOptions { + coreLibraryDesugaringEnabled true sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } @@ -50,6 +52,7 @@ android { targetSdkVersion 33 versionCode flutterVersionCode.toInteger() versionName flutterVersionName + multiDexEnabled true } buildTypes { @@ -68,6 +71,7 @@ flutter { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation platform('com.google.firebase:firebase-bom:33.1.2') + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2' // implementation 'com.google.firebase:firebase-analytics' } diff --git a/android/build.gradle b/android/build.gradle index d7a7530..9c9c726 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,3 +1,4 @@ + buildscript { ext.kotlin_version = '1.8.0' repositories { @@ -6,10 +7,9 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.4.2' + classpath 'com.android.tools.build:gradle:8.7.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.google.gms:google-services:4.4.2' - } } @@ -19,8 +19,19 @@ allprojects { google() mavenCentral() } -} + subprojects { + afterEvaluate { project -> + if (project.hasProperty('android')) { + project.android { + if (namespace == null) { + namespace project.group + } + } + } + } + } +} rootProject.buildDir = '../build' subprojects { diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 53d5a7c..09523c0 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,7 @@ -#Fri Jun 23 08:50:38 CEST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip +networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip diff --git a/android/settings.gradle b/android/settings.gradle index 44e62bc..f86bddf 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1,11 +1,26 @@ -include ':app' +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 + }() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -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" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version '8.7.0' apply false + id "org.jetbrains.kotlin.android" version "1.8.22" apply false + +} + +include ":app" \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 501dc8d..1739bcf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -36,7 +36,7 @@ dependencies: cupertino_icons: ^1.0.2 mc_common_app: - path: /Volumes/Data/Projects/Flutter/car_common_app + path: D:\Development\car_common_app dev_dependencies: flutter_test: