From a10a371cbbbe2166687c9f05633d64c98866f07b Mon Sep 17 00:00:00 2001 From: Talwinder Kaur Date: Wed, 6 Nov 2024 01:38:37 -0500 Subject: [PATCH] chore(app): Update to latest gradle and java version. Replace qr scanning library Signed-off-by: Talwinder Kaur --- .github/workflows/build.yml | 6 +- demo/app/android/app/build.gradle | 15 +- .../android/app/src/debug/AndroidManifest.xml | 3 +- .../android/app/src/main/AndroidManifest.xml | 3 +- .../app/src/profile/AndroidManifest.xml | 3 +- demo/app/android/build.gradle | 13 +- demo/app/android/gradle.properties | 6 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- demo/app/ios/Podfile.lock | 90 ---------- demo/app/ios/Runner/Info.plist | 4 +- demo/app/lib/views/credential_details.dart | 2 +- demo/app/lib/views/credential_shared.dart | 1 + demo/app/lib/views/scanner.dart | 46 ++--- demo/app/lib/widgets/common_title_appbar.dart | 3 +- demo/app/pubspec.lock | 158 ++++++++++++------ demo/app/pubspec.yaml | 19 ++- 16 files changed, 172 insertions(+), 202 deletions(-) delete mode 100644 demo/app/ios/Podfile.lock diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f8ae54a..a324402d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -239,7 +239,7 @@ jobs: uses: flutter-actions/setup-flutter@v2 with: channel: stable - version: 3.10.6 + version: 3.19.5 - name: Install flutter app dependencies run: make install-flutter-dependencies - name: Run iOS Simulator @@ -320,12 +320,12 @@ jobs: - uses: actions/setup-java@v3 with: distribution: 'zulu' - java-version: '17' + java-version: '21' - name: Setup Flutter SDK uses: flutter-actions/setup-flutter@v2 with: channel: stable - version: 3.10.6 + version: 3.19.5 - name: Install flutter app dependencies run: make install-flutter-dependencies - name: Build APK in Debug mode diff --git a/demo/app/android/app/build.gradle b/demo/app/android/app/build.gradle index 5714417a..086e8465 100644 --- a/demo/app/android/app/build.gradle +++ b/demo/app/android/app/build.gradle @@ -36,9 +36,10 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { compileSdkVersion 34 - ndkVersion flutter.ndkVersion + ndkVersion "25.1.8937393" compileOptions { + coreLibraryDesugaringEnabled true sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } @@ -56,11 +57,10 @@ android { applicationId "dev.trustbloc.wallet" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. - minSdkVersion 22 + minSdkVersion 24 targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } @@ -71,12 +71,20 @@ android { signingConfig signingConfigs.debug } + debug { + // fix Failed to transform firebase-auth-22.3.1.aar + minifyEnabled false + multiDexEnabled true + signingConfig signingConfigs.debug + } + buildTypes.each { it.buildConfigField 'String', 'INITIATE_ISSUANCE_URL', '"' + INITIATE_ISSUANCE_URL + '"' it.buildConfigField 'String', 'INITIATE_VERIFICATION_URL', '"' + INITIATE_VERIFICATION_URL + '"' it.buildConfigField 'String', 'INITIATE_ISSUANCE_URLS_AUTH_CODE_FLOW', '"' + INITIATE_ISSUANCE_URLS_AUTH_CODE_FLOW + '"' } } + namespace 'dev.trustbloc.wallet' } flutter { @@ -101,4 +109,5 @@ dependencies { androidTestImplementation "androidx.test:runner:1.2.0" androidTestUtil "androidx.test:orchestrator:1.4.2" implementation 'com.squareup.okhttp3:okhttp:4.9.0' + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.0' } diff --git a/demo/app/android/app/src/debug/AndroidManifest.xml b/demo/app/android/app/src/debug/AndroidManifest.xml index ab8ccc67..07a02050 100644 --- a/demo/app/android/app/src/debug/AndroidManifest.xml +++ b/demo/app/android/app/src/debug/AndroidManifest.xml @@ -5,7 +5,8 @@ --> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://schemas.android.com/apk/res/android "> - + - +