diff --git a/.github/workflows/analyze-test.yaml b/.github/workflows/analyze-test.yaml index 31e487ab4..126334813 100644 --- a/.github/workflows/analyze-test.yaml +++ b/.github/workflows/analyze-test.yaml @@ -9,7 +9,7 @@ on: name: Analyze and test env: - FLUTTER_VERSION: 3.38.9 + FLUTTER_VERSION: 3.47.9 jobs: discover-tests: diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e684a7bfa..ffb640cf6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,7 +6,7 @@ on: name: Build dev binaries env: - FLUTTER_VERSION: 3.38.9 + FLUTTER_VERSION: 3.47.9 XCODE_VERSION: 26.2 jobs: diff --git a/.github/workflows/html-display.yaml b/.github/workflows/html-display.yaml index e70c4d64b..9b465d47f 100644 --- a/.github/workflows/html-display.yaml +++ b/.github/workflows/html-display.yaml @@ -11,7 +11,7 @@ permissions: contents: read env: - FLUTTER_VERSION: 3.38.9 + FLUTTER_VERSION: 3.47.9 jobs: # Chrome suite tagged `display`: every HTML email fixture rendered through diff --git a/.github/workflows/image-sentry.yaml b/.github/workflows/image-sentry.yaml index ba809d2ce..9eb6e2f96 100644 --- a/.github/workflows/image-sentry.yaml +++ b/.github/workflows/image-sentry.yaml @@ -78,7 +78,7 @@ jobs: secrets: | sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }} build-args: | - FLUTTER_VERSION=3.38.9 + FLUTTER_VERSION=3.47.9 SENTRY_UPLOAD=1 SENTRY_ORG=${{ secrets.SENTRY_ORG }} SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }} diff --git a/.github/workflows/ios-native-test.yaml b/.github/workflows/ios-native-test.yaml index fdfc0220c..13e76886a 100644 --- a/.github/workflows/ios-native-test.yaml +++ b/.github/workflows/ios-native-test.yaml @@ -17,7 +17,7 @@ concurrency: cancel-in-progress: true env: - FLUTTER_VERSION: 3.38.9 + FLUTTER_VERSION: 3.47.9 XCODE_VERSION: 26.2 jobs: diff --git a/.github/workflows/memory-leak-check.yaml b/.github/workflows/memory-leak-check.yaml index 1a7d88624..697ab85f0 100644 --- a/.github/workflows/memory-leak-check.yaml +++ b/.github/workflows/memory-leak-check.yaml @@ -38,7 +38,7 @@ concurrency: cancel-in-progress: ${{ github.event_name == 'pull_request' }} env: - FLUTTER_VERSION: 3.38.9 + FLUTTER_VERSION: 3.47.9 permissions: contents: read diff --git a/.github/workflows/patrol-integration-test.yaml b/.github/workflows/patrol-integration-test.yaml index 17a289250..db28802df 100644 --- a/.github/workflows/patrol-integration-test.yaml +++ b/.github/workflows/patrol-integration-test.yaml @@ -7,7 +7,7 @@ on: env: JAVA_VERSION: 17 - FLUTTER_VERSION: 3.38.9 + FLUTTER_VERSION: 3.47.9 API_LEVEL: 30 TARGET: default ARCH: x86_64 diff --git a/.github/workflows/release-web-manual.yaml b/.github/workflows/release-web-manual.yaml index ee81bcc5a..a71ed7fd6 100644 --- a/.github/workflows/release-web-manual.yaml +++ b/.github/workflows/release-web-manual.yaml @@ -115,8 +115,8 @@ jobs: type=gha secrets: | sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }} + # No FLUTTER_VERSION: each tag builds with its own Dockerfile default (old base images lack newer tags). build-args: | - FLUTTER_VERSION=3.38.9 SENTRY_UPLOAD=1 SENTRY_ORG=${{ secrets.SENTRY_ORG }} SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e9bf94435..f6f5bfbef 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,7 +6,7 @@ on: name: Release env: - FLUTTER_VERSION: 3.38.9 + FLUTTER_VERSION: 3.47.9 XCODE_VERSION: 26.2 permissions: diff --git a/.github/workflows/reusable-web-integration-test.yaml b/.github/workflows/reusable-web-integration-test.yaml index 2f2b71f86..b98b7f2c3 100644 --- a/.github/workflows/reusable-web-integration-test.yaml +++ b/.github/workflows/reusable-web-integration-test.yaml @@ -8,7 +8,7 @@ on: workflow_call: env: - FLUTTER_VERSION: 3.38.9 + FLUTTER_VERSION: 3.47.9 permissions: contents: read diff --git a/Dockerfile b/Dockerfile index 45438afbf..302dc0edb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,13 @@ -ARG FLUTTER_VERSION=3.38.9 +ARG FLUTTER_VERSION=3.47.9 -# the digest wins over the tag: update FLUTTER_VERSION and the digest together -FROM --platform=amd64 ghcr.io/instrumentisto/flutter:${FLUTTER_VERSION}@sha256:7d227ac458bbb5aca38ada779dc0bf983ad24deae8d2ef3ebf5b779915d1547d AS build-env +# instrumentisto/flutter is archived; gmeligio/flutter-web tracks Flutter stable. +# Digest pins linux/amd64 and wins over the tag. To bump: change FLUTTER_VERSION +# here, in .github/workflows/*.yaml and Jenkinsfile*, then take the amd64 digest from +# `docker buildx imagetools inspect ghcr.io/gmeligio/flutter-web:`. +FROM --platform=amd64 ghcr.io/gmeligio/flutter-web:${FLUTTER_VERSION}@sha256:8af1fcd0a7f7e84580f30d7f915f44237bb7a032bd8f4e3135a64fbec1ce1756 AS build-env + +# Base image SHELL enables -x, which would print SENTRY_AUTH_TOKEN in build logs. +SHELL ["/bin/bash", "-eo", "pipefail", "-c"] ARG SENTRY_ORG ARG SENTRY_PROJECT @@ -10,8 +16,13 @@ ARG SENTRY_RELEASE ARG VCS_REF ARG GITHUB_SHA +# Image defaults to user flutter; root only to chown the WORKDIR, which Docker creates as root. +USER root WORKDIR /app -COPY . . +COPY --chown=flutter:flutter . . +RUN chown flutter:flutter /app + +USER flutter ENV GITHUB_SHA=$GITHUB_SHA \ SENTRY_ORG=$SENTRY_ORG \ @@ -23,7 +34,7 @@ ENV GITHUB_SHA=$GITHUB_SHA \ # values are recorded in the image provenance attestation pushed to public registries. # Release builds set SENTRY_UPLOAD so a missing secret fails instead of caching a skip. ARG SENTRY_UPLOAD= -RUN --mount=type=secret,id=sentry_auth_token \ +RUN --mount=type=secret,id=sentry_auth_token,uid=1001 \ sentry_auth_token="$(cat /run/secrets/sentry_auth_token 2>/dev/null || true)" && \ if [ -n "${SENTRY_UPLOAD}" ] && [ -z "$sentry_auth_token" ]; then \ echo "SENTRY_UPLOAD is set but the sentry_auth_token secret is empty" >&2; exit 1; \ diff --git a/Jenkinsfile b/Jenkinsfile index dbc4bedb5..613208347 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -72,12 +72,20 @@ pipeline { } environment { - FLUTTER_VERSION = '3.38.9' + FLUTTER_VERSION = '3.47.9' + FLUTTER_ROOT = "/opt/flutter-${FLUTTER_VERSION}" + PATH = "${FLUTTER_ROOT}/bin:${env.PATH}" WEB_WORKERS = '4' PR_IMAGE_CPU_QUOTA = '100000' } stages { + stage('Check Flutter version') { + steps { + sh './scripts/ci-assert-flutter-version.sh' + } + } + stage('Run web tests and build PR image') { steps { script { diff --git a/JenkinsfileMobile b/JenkinsfileMobile index f6f93dd3a..bbb1655ed 100644 --- a/JenkinsfileMobile +++ b/JenkinsfileMobile @@ -10,13 +10,21 @@ pipeline { } environment { - FLUTTER_VERSION = '3.38.9' + FLUTTER_VERSION = '3.47.9' + FLUTTER_ROOT = "/opt/flutter-${FLUTTER_VERSION}" + PATH = "${FLUTTER_ROOT}/bin:${env.PATH}" FIREBASE_PROJECT_ID = 'twake-195010' RESULTS_BUCKET="flutter-test-results" PREBUILD_SKIP_WEB = '1' } stages { + stage('Check Flutter version') { + steps { + sh './scripts/ci-assert-flutter-version.sh' + } + } + stage('Prebuild') { steps { sh './scripts/prebuild.sh' diff --git a/analysis_options.yaml b/analysis_options.yaml index 3bb0de4be..4730c8234 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -10,8 +10,12 @@ include: package:flutter_lints/flutter.yaml analyzer: - plugins: - - riverpod_lint + exclude: + - build/** + - android/** + - ios/** + - web/** + - lib/l10n/messages_*.dart linter: rules: diff --git a/android/gradle.properties b/android/gradle.properties index 506f17cbf..8d689ea52 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -8,3 +8,7 @@ android.defaults.buildfeatures.buildconfig=true android.nonTransitiveRClass=false android.nonFinalResIds=false kotlin.jvm.target.validation.mode = IGNORE +# This builtInKotlin flag was added automatically by Flutter migrator +android.builtInKotlin=false +# This newDsl flag was added automatically by Flutter migrator +android.newDsl=false diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 8f3239ab6..a8aaadc85 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip +# Flutter 3.47 requires Gradle >= 8.14.0 (flutter_tools DependencyVersionChecker). +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip diff --git a/android/settings.gradle b/android/settings.gradle index ecf44623a..718cefba1 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -19,7 +19,9 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version '8.12.1' apply false - id "org.jetbrains.kotlin.android" version "2.2.0" apply false + // Flutter 3.47 requires KGP >= 2.2.20; use 2.3.20 so KGP stays in the + // documented AGP 8.12 compatibility range (Kotlin 2.3 ↔ AGP 8.2.2–8.13). + id "org.jetbrains.kotlin.android" version "2.3.20" apply false id "com.google.gms.google-services" version "4.3.10" apply false } diff --git a/contact/analysis_options.yaml b/contact/analysis_options.yaml index 0f32754d3..b4b5dfa79 100644 --- a/contact/analysis_options.yaml +++ b/contact/analysis_options.yaml @@ -7,6 +7,9 @@ # The following line activates a set of recommended lints for Flutter apps, # packages, and plugins designed to encourage good coding practices. +analyzer: + exclude: + - build/** include: package:flutter_lints/flutter.yaml linter: diff --git a/contact/pubspec.yaml b/contact/pubspec.yaml index d56d221d2..761b1f9fb 100644 --- a/contact/pubspec.yaml +++ b/contact/pubspec.yaml @@ -7,7 +7,7 @@ resolution: workspace version: 1.0.0+1 environment: - sdk: ">=3.9.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: diff --git a/core/analysis_options.yaml b/core/analysis_options.yaml index 86e04bf28..8b126e92e 100644 --- a/core/analysis_options.yaml +++ b/core/analysis_options.yaml @@ -7,6 +7,9 @@ # The following line activates a set of recommended lints for Flutter apps, # packages, and plugins designed to encourage good coding practices. +analyzer: + exclude: + - build/** include: package:flutter_lints/flutter.yaml linter: diff --git a/core/lib/presentation/views/button/tmail_button_widget.dart b/core/lib/presentation/views/button/tmail_button_widget.dart index 931c5b08e..a0c1cc472 100644 --- a/core/lib/presentation/views/button/tmail_button_widget.dart +++ b/core/lib/presentation/views/button/tmail_button_widget.dart @@ -87,7 +87,7 @@ class TMailButtonWidget extends StatelessWidget { factory TMailButtonWidget.fromIcon({ required String icon, - final Key? key, + Key? key, OnTapActionCallback? onTapActionCallback, OnTapActionAtPositionCallback? onTapActionAtPositionCallback, OnLongPressActionCallback? onLongPressActionCallback, @@ -144,7 +144,7 @@ class TMailButtonWidget extends StatelessWidget { factory TMailButtonWidget.fromText({ required String text, - final Key? key, + Key? key, OnTapActionCallback? onTapActionCallback, OnTapActionAtPositionCallback? onTapActionAtPositionCallback, OnLongPressActionCallback? onLongPressActionCallback, diff --git a/core/lib/presentation/views/quick_search/quick_search_suggestion_list.dart b/core/lib/presentation/views/quick_search/quick_search_suggestion_list.dart index e58a90842..3dc752f3c 100644 --- a/core/lib/presentation/views/quick_search/quick_search_suggestion_list.dart +++ b/core/lib/presentation/views/quick_search/quick_search_suggestion_list.dart @@ -315,7 +315,7 @@ class QuickSearchSuggestionListState ); } else if (_animationController != null) { animationChild = SizeTransition( - axisAlignment: -1.0, + alignment: AlignmentDirectional.topStart, sizeFactor: CurvedAnimation( parent: _animationController!, curve: Curves.fastOutSlowIn, diff --git a/core/lib/utils/application_manager.dart b/core/lib/utils/application_manager.dart index fbb924541..26f2361e7 100644 --- a/core/lib/utils/application_manager.dart +++ b/core/lib/utils/application_manager.dart @@ -96,11 +96,11 @@ class ApplicationManager { Future getUserAgent() async { try { if (PlatformInfo.isWeb) { - return _getWebUserAgent(); + return await _getWebUserAgent(); } if (PlatformInfo.isMobile) { - return _getMobileUserAgent(); + return await _getMobileUserAgent(); } return ''; diff --git a/core/lib/utils/sentry/sentry_initializer.dart b/core/lib/utils/sentry/sentry_initializer.dart index 92331fe18..6ee7b024f 100644 --- a/core/lib/utils/sentry/sentry_initializer.dart +++ b/core/lib/utils/sentry/sentry_initializer.dart @@ -66,6 +66,8 @@ class SentryInitializer { options.release = config.release; options.dist = config.dist; options.tracesSampleRate = config.tracesSampleRate; + // profilesSampleRate is still experimental in sentry_flutter. + // ignore: experimental_member_use options.profilesSampleRate = config.profilesSampleRate; // Session Replay bypasses beforeSend and sentry_flutter 9.8.0 has no // supported API to stop recording and discard its buffer when a user opts diff --git a/core/pubspec.yaml b/core/pubspec.yaml index 33333325d..b35d59d60 100644 --- a/core/pubspec.yaml +++ b/core/pubspec.yaml @@ -22,7 +22,7 @@ resolution: workspace version: 1.0.0+1 environment: - sdk: ">=3.10.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: @@ -41,7 +41,7 @@ dependencies: linagora_design_flutter: ### Dependencies from pub.dev ### - cupertino_icons: 1.0.6 + cupertino_icons: 1.0.8 flutter_svg: 2.1.0 @@ -53,7 +53,7 @@ dependencies: built_collection: 5.1.1 - html: 0.15.3 + html: 0.15.6 get: 4.6.6 @@ -61,7 +61,7 @@ dependencies: flutter_inappwebview: 6.1.0 - url_launcher: 6.3.1 + url_launcher: 6.3.2 universal_html: 2.2.4 @@ -83,7 +83,7 @@ dependencies: collection: 1.19.1 - intl: 0.20.2 + intl: 0.20.3 flutter_typeahead: 5.0.2 @@ -109,9 +109,9 @@ dependencies: flutter_dotenv: 5.0.2 - sentry_flutter: 9.8.0 + sentry_flutter: 9.10.0 - sentry_dio: 9.8.0 + sentry_dio: 9.10.0 flutter_hsvcolor_picker: 1.5.1 diff --git a/core/test/utils/html_pipeline_registry.dart b/core/test/utils/html_pipeline_registry.dart index 3a91991c2..37011bd72 100644 --- a/core/test/utils/html_pipeline_registry.dart +++ b/core/test/utils/html_pipeline_registry.dart @@ -94,27 +94,27 @@ List htmlPipelineRegistry() => [ /// Pipelines that feed the composer: replies, drafts and signatures. List _composerPipelines() => [ - HtmlPipelineRow( + const HtmlPipelineRow( name: 'forReplyForwardEmail', create: TransformConfiguration.forReplyForwardEmail, trust: HtmlPipelineTrust.sanitized, wiring: HtmlPipelineWiring.passesThrough, - rules: const HtmlPipelineRules(composer: true), + rules: HtmlPipelineRules(composer: true), ), - HtmlPipelineRow( + const HtmlPipelineRow( name: 'forReplyForwardEmptyEmail', create: TransformConfiguration.forReplyForwardEmptyEmail, trust: HtmlPipelineTrust.raw, wiring: HtmlPipelineWiring.sanitizes, - rules: const HtmlPipelineRules(composer: true), + rules: HtmlPipelineRules(composer: true), allowsContentEditable: true, ), - HtmlPipelineRow( + const HtmlPipelineRow( name: 'forDraftsEmail', create: TransformConfiguration.forDraftsEmail, trust: HtmlPipelineTrust.raw, wiring: HtmlPipelineWiring.sanitizes, - rules: const HtmlPipelineRules(displayOn: [DisplayViewer.drafts]), + rules: HtmlPipelineRules(displayOn: [DisplayViewer.drafts]), ), HtmlPipelineRow( name: 'forEditDraftsEmail-vm', @@ -136,44 +136,44 @@ List _composerPipelines() => [ setPlatform: () => PlatformInfo.isTestingForWeb = true, allowsContentEditable: true, ), - HtmlPipelineRow( + const HtmlPipelineRow( name: 'forSignatureIdentity', create: TransformConfiguration.forSignatureIdentity, trust: HtmlPipelineTrust.user, wiring: HtmlPipelineWiring.sanitizes, - rules: const HtmlPipelineRules( + rules: HtmlPipelineRules( displayOn: [DisplayViewer.signatureNative, DisplayViewer.signatureWeb], ), ), - HtmlPipelineRow( + const HtmlPipelineRow( name: 'forComposerSignature', create: TransformConfiguration.forComposerSignature, trust: HtmlPipelineTrust.user, wiring: HtmlPipelineWiring.sanitizes, - rules: const HtmlPipelineRules(composer: true), + rules: HtmlPipelineRules(composer: true), allowsContentEditable: true, ), ]; /// Pipelines that show a received email or attachment. List _readingPipelines() => [ - HtmlPipelineRow( + const HtmlPipelineRow( name: 'forPreviewEmailOnWeb', create: TransformConfiguration.forPreviewEmailOnWeb, trust: HtmlPipelineTrust.raw, wiring: HtmlPipelineWiring.sanitizes, - rules: const HtmlPipelineRules( + rules: HtmlPipelineRules( displayOn: [DisplayViewer.web], preservation: true, ), allowsContentEditable: true, ), - HtmlPipelineRow( + const HtmlPipelineRow( name: 'forPreviewEmail', create: TransformConfiguration.forPreviewEmail, trust: HtmlPipelineTrust.raw, wiring: HtmlPipelineWiring.sanitizes, - rules: const HtmlPipelineRules( + rules: HtmlPipelineRules( displayOn: [DisplayViewer.native, DisplayViewer.ios], preservation: true, ), @@ -199,12 +199,12 @@ List _readingPipelines() => [ setPlatform: () => PlatformInfo.isTestingForWeb = true, allowsContentEditable: true, ), - HtmlPipelineRow( + const HtmlPipelineRow( name: 'forPlainTextEmail', create: TransformConfiguration.forPlainTextEmail, trust: HtmlPipelineTrust.raw, wiring: HtmlPipelineWiring.sanitizes, - rules: const HtmlPipelineRules( + rules: HtmlPipelineRules( displayOn: [DisplayViewer.native, DisplayViewer.web, DisplayViewer.ios], preservation: true, ), @@ -217,38 +217,38 @@ List _readingPipelines() => [ wiring: HtmlPipelineWiring.sanitizes, rules: const HtmlPipelineRules(preservation: true), ), - HtmlPipelineRow( + const HtmlPipelineRow( name: 'forAttachmentPreview', create: TransformConfiguration.forAttachmentPreview, trust: HtmlPipelineTrust.raw, wiring: HtmlPipelineWiring.sanitizes, - rules: const HtmlPipelineRules(displayOn: [DisplayViewer.attachment]), + rules: HtmlPipelineRules(displayOn: [DisplayViewer.attachment]), ), ]; /// Restore, print and calendar pipelines. List _otherPipelines() => [ - HtmlPipelineRow( + const HtmlPipelineRow( name: 'forRestoreEmail', create: TransformConfiguration.forRestoreEmail, trust: HtmlPipelineTrust.raw, wiring: HtmlPipelineWiring.sanitizes, - rules: const HtmlPipelineRules(composer: true), + rules: HtmlPipelineRules(composer: true), allowsContentEditable: true, ), - HtmlPipelineRow( + const HtmlPipelineRow( name: 'forPrintEmail', create: TransformConfiguration.forPrintEmail, trust: HtmlPipelineTrust.sanitized, wiring: HtmlPipelineWiring.stripsStyles, - rules: const HtmlPipelineRules(displayOn: [DisplayViewer.print]), + rules: HtmlPipelineRules(displayOn: [DisplayViewer.print]), ), - HtmlPipelineRow( + const HtmlPipelineRow( name: 'forCalendarEvent', create: TransformConfiguration.forCalendarEvent, trust: HtmlPipelineTrust.raw, wiring: HtmlPipelineWiring.sanitizes, - rules: const HtmlPipelineRules( + rules: HtmlPipelineRules( displayOn: [DisplayViewer.calendarNative, DisplayViewer.calendarWeb], ), ), diff --git a/cozy/analysis_options.yaml b/cozy/analysis_options.yaml index f9b303465..801d885f9 100644 --- a/cozy/analysis_options.yaml +++ b/cozy/analysis_options.yaml @@ -1 +1,4 @@ +analyzer: + exclude: + - build/** include: package:flutter_lints/flutter.yaml diff --git a/cozy/pubspec.yaml b/cozy/pubspec.yaml index b2181ba5c..a7d121e5f 100644 --- a/cozy/pubspec.yaml +++ b/cozy/pubspec.yaml @@ -7,7 +7,7 @@ resolution: workspace version: 0.1.0 environment: - sdk: ">=3.9.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: diff --git a/email_recovery/analysis_options.yaml b/email_recovery/analysis_options.yaml index 195df9775..3b7136d23 100644 --- a/email_recovery/analysis_options.yaml +++ b/email_recovery/analysis_options.yaml @@ -7,6 +7,9 @@ # The following line activates a set of recommended lints for Flutter apps, # packages, and plugins designed to encourage good coding practices. +analyzer: + exclude: + - build/** include: package:flutter_lints/flutter.yaml linter: diff --git a/email_recovery/pubspec.yaml b/email_recovery/pubspec.yaml index be955fa23..b136b5e6f 100644 --- a/email_recovery/pubspec.yaml +++ b/email_recovery/pubspec.yaml @@ -7,7 +7,7 @@ resolution: workspace version: 1.0.0+1 environment: - sdk: ">=3.9.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: diff --git a/fcm/analysis_options.yaml b/fcm/analysis_options.yaml index 0f32754d3..b4b5dfa79 100644 --- a/fcm/analysis_options.yaml +++ b/fcm/analysis_options.yaml @@ -7,6 +7,9 @@ # The following line activates a set of recommended lints for Flutter apps, # packages, and plugins designed to encourage good coding practices. +analyzer: + exclude: + - build/** include: package:flutter_lints/flutter.yaml linter: diff --git a/fcm/pubspec.yaml b/fcm/pubspec.yaml index 1f155e14a..c6952c138 100644 --- a/fcm/pubspec.yaml +++ b/fcm/pubspec.yaml @@ -7,7 +7,7 @@ resolution: workspace version: 1.0.0+1 environment: - sdk: ">=3.9.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: diff --git a/forward/analysis_options.yaml b/forward/analysis_options.yaml index 0f32754d3..b4b5dfa79 100644 --- a/forward/analysis_options.yaml +++ b/forward/analysis_options.yaml @@ -7,6 +7,9 @@ # The following line activates a set of recommended lints for Flutter apps, # packages, and plugins designed to encourage good coding practices. +analyzer: + exclude: + - build/** include: package:flutter_lints/flutter.yaml linter: diff --git a/forward/pubspec.yaml b/forward/pubspec.yaml index 0c54991b6..03305d308 100644 --- a/forward/pubspec.yaml +++ b/forward/pubspec.yaml @@ -7,7 +7,7 @@ resolution: workspace version: 1.0.0+1 environment: - sdk: ">=3.9.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: diff --git a/integration_test/base/test_base.dart b/integration_test/base/test_base.dart index e46f4118c..3334b443c 100644 --- a/integration_test/base/test_base.dart +++ b/integration_test/base/test_base.dart @@ -65,7 +65,7 @@ class TestBase { } try { final scenario = scenarioBuilder($, createRobotFactory($)); - await setupTest(scenario, envOverrides: envOverrides); + await setupTest($, scenario, envOverrides: envOverrides); await scenario.execute(); } catch (_) { dumpFailureState($); @@ -76,6 +76,7 @@ class TestBase { } Future setupTest( + PatrolIntegrationTester $, BaseScenario scenario, { Map envOverrides = const {}, }) async { @@ -89,7 +90,14 @@ class TestBase { runApp(const TMailApp()); final originalOnError = FlutterError.onError!; + var stateDumped = false; FlutterError.onError = (FlutterErrorDetails details) { + logFlutterErrorDetails(details); + // One dump per test: the first error carries the UI state that caused the rest. + if (!stateDumped) { + stateDumped = true; + dumpFailureState($); + } originalOnError(details); }; } diff --git a/integration_test/utils/failure_diagnostics.dart b/integration_test/utils/failure_diagnostics.dart index ab71e694e..666b67427 100644 --- a/integration_test/utils/failure_diagnostics.dart +++ b/integration_test/utils/failure_diagnostics.dart @@ -17,6 +17,19 @@ void _printLines(String text, {int? maxLines}) { } } +// The web console forwarder keeps only the first line of a message; print the whole error. +void logFlutterErrorDetails(FlutterErrorDetails details) { + try { + debugPrintSynchronously( + '[FLUTTER ERROR] ${details.exceptionAsString()} ' + 'library=${details.library} context=${details.context?.toDescription()}', + ); + _printLines(details.stack?.toString() ?? 'no stack'); + } catch (e) { + debugPrintSynchronously('[FLUTTER ERROR] log failed: $e'); + } +} + // debugPrint, not dart:developer log: the latter is not written to Android logcat. void dumpFailureState(PatrolIntegrationTester $) { try { diff --git a/ios/Podfile b/ios/Podfile index 27009b03f..77b0c203a 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -40,14 +40,6 @@ end target 'TwakeMailNSE' do use_frameworks! - # Must use HybridSDK subspec at the same version as sentry_flutter requires. - # sentry_flutter 9.8.0 depends on Sentry/HybridSDK (= 8.56.2). - # Using plain `pod 'Sentry'` (Core) causes a version conflict and missing PrivateSentrySDKOnly errors. - # - # UPGRADE NOTE: When bumping sentry_flutter, update this version to match the new - # Sentry/HybridSDK constraint declared in Podfile.lock under DEPENDENCIES. - # Verify with: grep 'Sentry/HybridSDK' ios/Podfile.lock - pod 'Sentry/HybridSDK', '8.56.2' end post_install do |installer| diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 673e2cf4e..6648613bc 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -3,65 +3,19 @@ PODS: - Flutter - app_settings (5.1.1): - Flutter - - AppAuth (2.0.0): - - AppAuth/Core (= 2.0.0) - - AppAuth/ExternalUserAgent (= 2.0.0) - - AppAuth/Core (2.0.0) - - AppAuth/ExternalUserAgent (2.0.0): - - AppAuth/Core - CocoaAsyncSocket (7.6.5) - connectivity_plus (0.0.1): - Flutter - ReachabilitySwift - contacts_service (0.2.2): - Flutter - - device_info_plus (0.0.1): - - Flutter - external_app_launcher (0.0.1): - Flutter - external_path (2.0.1): - Flutter - - file_picker_darwin (1.0.0): - - Flutter - - FlutterMacOS - - Firebase/CoreOnly (12.12.0): - - FirebaseCore (~> 12.12.0) - - Firebase/Messaging (12.12.0): - - Firebase/CoreOnly - - FirebaseMessaging (~> 12.12.0) - - firebase_core (4.8.0): - - Firebase/CoreOnly (= 12.12.0) - - Flutter - - firebase_messaging (16.2.1): - - Firebase/Messaging (= 12.12.0) - - firebase_core - - Flutter - - FirebaseCore (12.12.1): - - FirebaseCoreInternal (~> 12.12.0) - - GoogleUtilities/Environment (~> 8.1) - - GoogleUtilities/Logger (~> 8.1) - - FirebaseCoreInternal (12.12.0): - - "GoogleUtilities/NSData+zlib (~> 8.1)" - - FirebaseInstallations (12.12.0): - - FirebaseCore (~> 12.12.0) - - GoogleUtilities/Environment (~> 8.1) - - GoogleUtilities/UserDefaults (~> 8.1) - - PromisesObjC (~> 2.4) - - FirebaseMessaging (12.12.0): - - FirebaseCore (~> 12.12.0) - - FirebaseInstallations (~> 12.12.0) - - GoogleDataTransport (~> 10.1) - - GoogleUtilities/AppDelegateSwizzler (~> 8.1) - - GoogleUtilities/Environment (~> 8.1) - - GoogleUtilities/Reachability (~> 8.1) - - GoogleUtilities/UserDefaults (~> 8.1) - - nanopb (~> 3.30910.0) - fk_user_agent (2.0.0): - Flutter - Flutter (1.0.0) - - flutter_appauth (0.0.1): - - AppAuth (= 2.0.0) - - Flutter - flutter_charset_detector_darwin (0.0.1): - Flutter - FlutterMacOS @@ -86,50 +40,21 @@ PODS: - Flutter - flutter_localization (0.0.1): - Flutter - - flutter_native_splash (0.0.1): - - Flutter - flutter_secure_storage (6.0.0): - Flutter - flutter_web_auth_2 (3.0.0): - Flutter - - GoogleDataTransport (10.1.0): - - nanopb (~> 3.30910.0) - - PromisesObjC (~> 2.4) - - GoogleUtilities/AppDelegateSwizzler (8.1.0): - - GoogleUtilities/Environment - - GoogleUtilities/Logger - - GoogleUtilities/Network - - GoogleUtilities/Privacy - - GoogleUtilities/Environment (8.1.0): - - GoogleUtilities/Privacy - - GoogleUtilities/Logger (8.1.0): - - GoogleUtilities/Environment - - GoogleUtilities/Privacy - - GoogleUtilities/Network (8.1.0): - - GoogleUtilities/Logger - - "GoogleUtilities/NSData+zlib" - - GoogleUtilities/Privacy - - GoogleUtilities/Reachability - - "GoogleUtilities/NSData+zlib (8.1.0)": - - GoogleUtilities/Privacy - - GoogleUtilities/Privacy (8.1.0) - - GoogleUtilities/Reachability (8.1.0): - - GoogleUtilities/Logger - - GoogleUtilities/Privacy - - GoogleUtilities/UserDefaults (8.1.0): - - GoogleUtilities/Logger - - GoogleUtilities/Privacy - - libwebp (1.5.0): - - libwebp/demux (= 1.5.0) - - libwebp/mux (= 1.5.0) - - libwebp/sharpyuv (= 1.5.0) - - libwebp/webp (= 1.5.0) - - libwebp/demux (1.5.0): + - libwebp (1.6.0): + - libwebp/demux (= 1.6.0) + - libwebp/mux (= 1.6.0) + - libwebp/sharpyuv (= 1.6.0) + - libwebp/webp (= 1.6.0) + - libwebp/demux (1.6.0): - libwebp/webp - - libwebp/mux (1.5.0): + - libwebp/mux (1.6.0): - libwebp/demux - - libwebp/sharpyuv (1.5.0) - - libwebp/webp (1.5.0): + - libwebp/sharpyuv (1.6.0) + - libwebp/webp (1.6.0): - libwebp/sharpyuv - lottie-ios (4.4.3) - lottie_native (0.0.1): @@ -138,38 +63,19 @@ PODS: - Mantle (2.2.0): - Mantle/extobjc (= 2.2.0) - Mantle/extobjc (2.2.0) - - nanopb (3.30910.0): - - nanopb/decode (= 3.30910.0) - - nanopb/encode (= 3.30910.0) - - nanopb/decode (3.30910.0) - - nanopb/encode (3.30910.0) - - objective_c (0.0.1): - - Flutter - open_file_ios (1.0.3): - Flutter - OrderedSet (6.0.3) - - package_info_plus (0.4.5): - - Flutter - - path_provider_foundation (0.0.1): - - Flutter - - FlutterMacOS - patrol (0.0.1): - CocoaAsyncSocket (~> 7.6) - Flutter - FlutterMacOS - - pdfrx (0.0.6): - - Flutter - - FlutterMacOS - permission_handler_apple (9.3.0): - Flutter - - photo_manager (3.12.0): - - Flutter - - FlutterMacOS - pointer_interceptor_ios (0.0.1): - Flutter - printing (1.0.0): - Flutter - - PromisesObjC (2.4.0) - ReachabilitySwift (5.2.4) - receive_sharing_intent (1.8.1): - Flutter @@ -179,36 +85,19 @@ PODS: - SDWebImageWebPCoder (0.15.0): - libwebp (~> 1.0) - SDWebImage/Core (~> 5.17) - - Sentry/HybridSDK (8.56.2) - - sentry_flutter (9.8.0): - - Flutter - - FlutterMacOS - - Sentry/HybridSDK (= 8.56.2) - - share_plus (0.0.1): - - Flutter - - shared_preferences_foundation (0.0.1): - - Flutter - - FlutterMacOS - super_dns_client (0.0.1): - Flutter - UniversalDetector2 (2.0.1) - - url_launcher_ios (0.0.1): - - Flutter DEPENDENCIES: - app_links (from `.symlinks/plugins/app_links/ios`) - app_settings (from `.symlinks/plugins/app_settings/ios`) - connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`) - contacts_service (from `.symlinks/plugins/contacts_service/ios`) - - device_info_plus (from `.symlinks/plugins/device_info_plus/ios`) - external_app_launcher (from `.symlinks/plugins/external_app_launcher/ios`) - external_path (from `.symlinks/plugins/external_path/ios`) - - file_picker_darwin (from `.symlinks/plugins/file_picker_darwin/darwin`) - - firebase_core (from `.symlinks/plugins/firebase_core/ios`) - - firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`) - fk_user_agent (from `.symlinks/plugins/fk_user_agent/ios`) - Flutter (from `Flutter`) - - flutter_appauth (from `.symlinks/plugins/flutter_appauth/ios`) - flutter_charset_detector_darwin (from `.symlinks/plugins/flutter_charset_detector_darwin/darwin`) - flutter_file_dialog (from `.symlinks/plugins/flutter_file_dialog/ios`) - flutter_image_compress_common (from `.symlinks/plugins/flutter_image_compress_common/ios`) @@ -216,49 +105,27 @@ DEPENDENCIES: - flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`) - flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`) - flutter_localization (from `.symlinks/plugins/flutter_localization/ios`) - - flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`) - flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`) - flutter_web_auth_2 (from `.symlinks/plugins/flutter_web_auth_2/ios`) - lottie_native (from `.symlinks/plugins/lottie_native/ios`) - - objective_c (from `.symlinks/plugins/objective_c/ios`) - open_file_ios (from `.symlinks/plugins/open_file_ios/ios`) - - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) - - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) - patrol (from `.symlinks/plugins/patrol/darwin`) - - pdfrx (from `.symlinks/plugins/pdfrx/darwin`) - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) - - photo_manager (from `.symlinks/plugins/photo_manager/darwin`) - pointer_interceptor_ios (from `.symlinks/plugins/pointer_interceptor_ios/ios`) - printing (from `.symlinks/plugins/printing/ios`) - receive_sharing_intent (from `.symlinks/plugins/receive_sharing_intent/ios`) - - Sentry/HybridSDK (= 8.56.2) - - sentry_flutter (from `.symlinks/plugins/sentry_flutter/ios`) - - share_plus (from `.symlinks/plugins/share_plus/ios`) - - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) - super_dns_client (from `.symlinks/plugins/super_dns_client/ios`) - - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`) SPEC REPOS: trunk: - - AppAuth - CocoaAsyncSocket - - Firebase - - FirebaseCore - - FirebaseCoreInternal - - FirebaseInstallations - - FirebaseMessaging - - GoogleDataTransport - - GoogleUtilities - libwebp - lottie-ios - Mantle - - nanopb - OrderedSet - - PromisesObjC - ReachabilitySwift - SDWebImage - SDWebImageWebPCoder - - Sentry - UniversalDetector2 EXTERNAL SOURCES: @@ -270,24 +137,14 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/connectivity_plus/ios" contacts_service: :path: ".symlinks/plugins/contacts_service/ios" - device_info_plus: - :path: ".symlinks/plugins/device_info_plus/ios" external_app_launcher: :path: ".symlinks/plugins/external_app_launcher/ios" external_path: :path: ".symlinks/plugins/external_path/ios" - file_picker_darwin: - :path: ".symlinks/plugins/file_picker_darwin/darwin" - firebase_core: - :path: ".symlinks/plugins/firebase_core/ios" - firebase_messaging: - :path: ".symlinks/plugins/firebase_messaging/ios" fk_user_agent: :path: ".symlinks/plugins/fk_user_agent/ios" Flutter: :path: Flutter - flutter_appauth: - :path: ".symlinks/plugins/flutter_appauth/ios" flutter_charset_detector_darwin: :path: ".symlinks/plugins/flutter_charset_detector_darwin/darwin" flutter_file_dialog: @@ -302,68 +159,37 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/flutter_local_notifications/ios" flutter_localization: :path: ".symlinks/plugins/flutter_localization/ios" - flutter_native_splash: - :path: ".symlinks/plugins/flutter_native_splash/ios" flutter_secure_storage: :path: ".symlinks/plugins/flutter_secure_storage/ios" flutter_web_auth_2: :path: ".symlinks/plugins/flutter_web_auth_2/ios" lottie_native: :path: ".symlinks/plugins/lottie_native/ios" - objective_c: - :path: ".symlinks/plugins/objective_c/ios" open_file_ios: :path: ".symlinks/plugins/open_file_ios/ios" - package_info_plus: - :path: ".symlinks/plugins/package_info_plus/ios" - path_provider_foundation: - :path: ".symlinks/plugins/path_provider_foundation/darwin" patrol: :path: ".symlinks/plugins/patrol/darwin" - pdfrx: - :path: ".symlinks/plugins/pdfrx/darwin" permission_handler_apple: :path: ".symlinks/plugins/permission_handler_apple/ios" - photo_manager: - :path: ".symlinks/plugins/photo_manager/darwin" pointer_interceptor_ios: :path: ".symlinks/plugins/pointer_interceptor_ios/ios" printing: :path: ".symlinks/plugins/printing/ios" receive_sharing_intent: :path: ".symlinks/plugins/receive_sharing_intent/ios" - sentry_flutter: - :path: ".symlinks/plugins/sentry_flutter/ios" - share_plus: - :path: ".symlinks/plugins/share_plus/ios" - shared_preferences_foundation: - :path: ".symlinks/plugins/shared_preferences_foundation/darwin" super_dns_client: :path: ".symlinks/plugins/super_dns_client/ios" - url_launcher_ios: - :path: ".symlinks/plugins/url_launcher_ios/ios" SPEC CHECKSUMS: app_links: 3da4c36b46cac3bf24eb897f1a6ce80bda109874 app_settings: 3507c575c2b18a462c99948f61d5de21d4420999 - AppAuth: 1c1a8afa7e12f2ec3a294d9882dfa5ab7d3cb063 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 connectivity_plus: 4d5101c5877bedcda6cd1ccb825307911667d6b0 contacts_service: 7c2ed10147f55891576c6a582f431e385d8de92d - device_info_plus: 21fcca2080fbcd348be798aa36c3e5ed849eefbe external_app_launcher: 3411245965270a74040a3de17e27bd02b8abb905 external_path: fd37c654b69a1336e33a2403f48383ae6100e443 - file_picker_darwin: 4c2b9a50ea44cb3b071381ea0cf48591bdd80251 - Firebase: aa154fee4e9b8eac17aa42344988865b3e857d33 - firebase_core: 552ed6765e96441f2af83b46ec42fa30126f3c88 - firebase_messaging: 15a0e132bcef6c0e19052222d9401174903bed42 - FirebaseCore: 86241206e656f5c80c995e370e6c975913b9b284 - FirebaseCoreInternal: 7c12fc3011d889085e765e317d7b9fd1cef97af9 - FirebaseInstallations: 4e6e162aa4abaaeeeb01dd00179dfc5ad9c2194e - FirebaseMessaging: 341004946fa7ffc741344b20f1b667514fc93e31 fk_user_agent: 137145b086229251761678fe034da53753f4ce59 - Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467 - flutter_appauth: d4abcf54856e5d8ba82ed7646ffc83245d4aa448 + Flutter: 71a624a5bc0c04062bf19101d501e466baf2fb47 flutter_charset_detector_darwin: 14f055ebeed6896144cc96b046749df51127a0a3 flutter_file_dialog: ca8d7fbd1772d4f0c2777b4ab20a7787ef4e7dd8 flutter_image_compress_common: 1697a328fd72bfb335507c6bca1a65fa5ad87df1 @@ -371,40 +197,25 @@ SPEC CHECKSUMS: flutter_keyboard_visibility: 4625131e43015dbbe759d9b20daaf77e0e3f6619 flutter_local_notifications: ad39620c743ea4c15127860f4b5641649a988100 flutter_localization: 72299fb6cb4e51cae587bd953ed0b958040b71e6 - flutter_native_splash: 9e672d3818957718ee006a491730c09deeecace9 flutter_secure_storage: 2c2ff13db9e0a5647389bff88b0ecac56e3f3418 flutter_web_auth_2: 5c8d9dcd7848b5a9efb086d24e7a9adcae979c80 - GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7 - GoogleUtilities: 00c88b9a86066ef77f0da2fab05f65d7768ed8e1 - libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8 + libwebp: af5937a13536ef73f3784d69cc342b98961acf33 lottie-ios: fcb5e73e17ba4c983140b7d21095c834b3087418 lottie_native: c2e590a297861fc32a0188cf8dab39aa97f86d81 Mantle: c5aa8794a29a022dfbbfc9799af95f477a69b62d - nanopb: fad817b59e0457d11a5dfbde799381cd727c1275 - objective_c: 89e720c30d716b036faf9c9684022048eee1eee2 open_file_ios: 46184d802ee7959203f6392abcfa0dd49fdb5be0 OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94 - package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499 - path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564 patrol: cea8074f183a2a4232d0ebd10569ae05149ada42 - pdfrx: 310e84d01e06fd2af26e16507a0e48c27e99195c permission_handler_apple: 4ed2196e43d0651e8ff7ca3483a069d469701f2d - photo_manager: c303e4476f6c220274119f0212a7753e45edd4a2 pointer_interceptor_ios: 6c19a55ea369c3f64424c9a95441e2b0e8beb8f3 printing: 54ff03f28fe9ba3aa93358afb80a8595a071dd07 - PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47 ReachabilitySwift: 32793e867593cfc1177f5d16491e3a197d2fccda receive_sharing_intent: 222384f00ffe7e952bbfabaa9e3967cb87e5fe00 SDWebImage: e9fc87c1aab89a8ab1bbd74eba378c6f53be8abf SDWebImageWebPCoder: 0e06e365080397465cc73a7a9b472d8a3bd0f377 - Sentry: b53951377b78e21a734f5dc8318e333dbfc682d7 - sentry_flutter: 4c33648b7e83310aa1fdb1b10c5491027d9643f0 - share_plus: 50da8cb520a8f0f65671c6c6a99b3617ed10a58a - shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7 super_dns_client: 03e8ebf4df47d1335d1027299f8d2365b7a7bb59 UniversalDetector2: 7c9ffd935cf050eeb19edf7e90f6febe3743a1af - url_launcher_ios: 694010445543906933d732453a59da0a173ae33d -PODFILE CHECKSUM: 639565dd16e195fbe1f4882bf8f552747be00660 +PODFILE CHECKSUM: 28c1f693e7c33c042769039cc9adcedbc07b5a9b -COCOAPODS: 1.16.2 +COCOAPODS: 1.17.0 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 1fc4242fa..d27d0e056 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + A15E00010000000000000001 /* Sentry in Frameworks */ = {isa = PBXBuildFile; productRef = A15E00020000000000000002 /* Sentry */; }; 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; @@ -80,6 +81,7 @@ F5E7D88D2B3878580009BB8A /* AuthenticationInterceptor.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5E7D88C2B3878580009BB8A /* AuthenticationInterceptor.swift */; }; F5EFC07D2B328B9F00829056 /* TwakeLogger.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5EFC07C2B328B9F00829056 /* TwakeLogger.swift */; }; F5EFC07E2B328B9F00829056 /* TwakeLogger.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5EFC07C2B328B9F00829056 /* TwakeLogger.swift */; }; + 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -210,6 +212,7 @@ F5E7D8872B38775C0009BB8A /* TokenRefreshManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TokenRefreshManager.swift; sourceTree = ""; }; F5E7D88C2B3878580009BB8A /* AuthenticationInterceptor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AuthenticationInterceptor.swift; sourceTree = ""; }; F5EFC07C2B328B9F00829056 /* TwakeLogger.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TwakeLogger.swift; sourceTree = ""; }; + 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = FlutterGeneratedPluginSwiftPackage; path = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -217,6 +220,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */, CDFECA8C54311B749F044831 /* Pods_Runner.framework in Frameworks */, F5CFE0352B335322005A90A9 /* BuildFile in Frameworks */, ); @@ -243,6 +247,7 @@ files = ( F5630C812B2CEBC0003CC0FD /* KeychainAccess in Frameworks */, F53D1E632B2DE80200051FD0 /* Alamofire in Frameworks */, + A15E00010000000000000001 /* Sentry in Frameworks */, B561AD69C2BE6DF40BF29406 /* Pods_TwakeMailNSE.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -263,6 +268,7 @@ 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( + 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */, 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 9740EEB21CF90195004384FC /* Debug.xcconfig */, 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, @@ -535,6 +541,9 @@ /* Begin PBXNativeTarget section */ 97C146ED1CF9000F007C117D /* Runner */ = { + packageProductDependencies = ( + 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */, + ); isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( @@ -613,6 +622,7 @@ packageProductDependencies = ( F5630C802B2CEBC0003CC0FD /* KeychainAccess */, F53D1E622B2DE80200051FD0 /* Alamofire */, + A15E00020000000000000002 /* Sentry */, ); productName = TwakeMailNSE; productReference = F5D4EA002B2ABF090090DDFC /* TwakeMailNSE.appex */; @@ -657,8 +667,10 @@ ); mainGroup = 97C146E51CF9000F007C117D; packageReferences = ( + 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */, F5630C7F2B2CEBC0003CC0FD /* XCRemoteSwiftPackageReference "KeychainAccess" */, F53D1E612B2DE80200051FD0 /* XCRemoteSwiftPackageReference "Alamofire" */, + A15E00030000000000000003 /* XCRemoteSwiftPackageReference "sentry-cocoa" */, ); productRefGroup = 97C146EF1CF9000F007C117D /* Products */; projectDirPath = ""; @@ -1402,7 +1414,6 @@ ENABLE_USER_SCRIPT_SANDBOXING = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", - "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Sentry", "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/flutter_local_notifications", "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/receive_sharing_intent", ); @@ -1413,11 +1424,6 @@ MARKETING_VERSION = 1.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; - OTHER_LDFLAGS = ( - "$(inherited)", - "-framework", - Sentry, - ); PRODUCT_BUNDLE_IDENTIFIER = com.linagora.ios.teammail.TwakeMailTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1452,7 +1458,6 @@ ENABLE_USER_SCRIPT_SANDBOXING = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", - "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Sentry", "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/flutter_local_notifications", "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/receive_sharing_intent", ); @@ -1462,11 +1467,6 @@ LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MARKETING_VERSION = 1.0; MTL_FAST_MATH = YES; - OTHER_LDFLAGS = ( - "$(inherited)", - "-framework", - Sentry, - ); PRODUCT_BUNDLE_IDENTIFIER = com.linagora.ios.teammail.TwakeMailTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1499,7 +1499,6 @@ ENABLE_USER_SCRIPT_SANDBOXING = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", - "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Sentry", "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/flutter_local_notifications", "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/receive_sharing_intent", ); @@ -1509,11 +1508,6 @@ LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MARKETING_VERSION = 1.0; MTL_FAST_MATH = YES; - OTHER_LDFLAGS = ( - "$(inherited)", - "-framework", - Sentry, - ); PRODUCT_BUNDLE_IDENTIFIER = com.linagora.ios.teammail.TwakeMailTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1736,6 +1730,14 @@ kind = branch; }; }; + A15E00030000000000000003 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/getsentry/sentry-cocoa"; + requirement = { + kind = exactVersion; + version = 8.56.2; + }; + }; /* End XCRemoteSwiftPackageReference section */ /* Begin XCSwiftPackageProductDependency section */ @@ -1749,7 +1751,22 @@ package = F5630C7F2B2CEBC0003CC0FD /* XCRemoteSwiftPackageReference "KeychainAccess" */; productName = KeychainAccess; }; + 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */ = { + isa = XCSwiftPackageProductDependency; + productName = FlutterGeneratedPluginSwiftPackage; + }; + A15E00020000000000000002 /* Sentry */ = { + isa = XCSwiftPackageProductDependency; + package = A15E00030000000000000003 /* XCRemoteSwiftPackageReference "sentry-cocoa" */; + productName = Sentry; + }; /* End XCSwiftPackageProductDependency section */ +/* Begin XCLocalSwiftPackageReference section */ + 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = { + isa = XCLocalSwiftPackageReference; + relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; + }; +/* End XCLocalSwiftPackageReference section */ }; rootObject = 97C146E61CF9000F007C117D /* Project object */; } diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 70b7faba4..78843e837 100644 --- a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -1,5 +1,14 @@ { "pins" : [ + { + "identity" : "abseil-cpp-binary", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/abseil-cpp-binary.git", + "state" : { + "revision" : "bbe8b69694d7873315fd3a4ad41efe043e1c07c5", + "version" : "1.2024072200.0" + } + }, { "identity" : "alamofire", "kind" : "remoteSourceControl", @@ -9,6 +18,96 @@ "version" : "5.8.1" } }, + { + "identity" : "app-check", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/app-check.git", + "state" : { + "revision" : "97f7d74dd0e8f3d0fe5fc75cc8957aa73bdc948a", + "version" : "11.3.2" + } + }, + { + "identity" : "appauth-ios", + "kind" : "remoteSourceControl", + "location" : "https://github.com/openid/AppAuth-iOS", + "state" : { + "revision" : "145104f5ea9d58ae21b60add007c33c1cc0c948e", + "version" : "2.0.0" + } + }, + { + "identity" : "firebase-ios-sdk", + "kind" : "remoteSourceControl", + "location" : "https://github.com/firebase/firebase-ios-sdk", + "state" : { + "revision" : "42cf1417c51c5e3bfbae5d3ab89b778f8fdc4bb8", + "version" : "12.19.3" + } + }, + { + "identity" : "google-ads-on-device-conversion-ios-sdk", + "kind" : "remoteSourceControl", + "location" : "https://github.com/googleads/google-ads-on-device-conversion-ios-sdk", + "state" : { + "revision" : "0208e2681ec81f8a9c81084696f60fcce26cb7ee", + "version" : "3.7.0" + } + }, + { + "identity" : "googleappmeasurement", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/GoogleAppMeasurement.git", + "state" : { + "revision" : "b8455dd2ff55cc269fda7a4f9eac6c1e3588c53f", + "version" : "12.19.2" + } + }, + { + "identity" : "googledatatransport", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/GoogleDataTransport.git", + "state" : { + "revision" : "ba3358d3c3dbae8ef230b58a46b97ad65e84e974", + "version" : "10.1.1" + } + }, + { + "identity" : "googleutilities", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/GoogleUtilities.git", + "state" : { + "revision" : "5459ee5603def3db0fe14ca522185f42c48d978e", + "version" : "8.1.5" + } + }, + { + "identity" : "grpc-binary", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/grpc-binary.git", + "state" : { + "revision" : "75b31c842f664a0f46a2e590a570e370249fd8f6", + "version" : "1.69.1" + } + }, + { + "identity" : "gtm-session-fetcher", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/gtm-session-fetcher.git", + "state" : { + "revision" : "724a52eea6329b7e12d3ad8300d76ca9f3895fcc", + "version" : "5.3.1" + } + }, + { + "identity" : "interop-ios-for-google-sdks", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/interop-ios-for-google-sdks.git", + "state" : { + "revision" : "040d087ac2267d2ddd4cca36c757d1c6a05fdbfe", + "version" : "101.0.0" + } + }, { "identity" : "keychainaccess", "kind" : "remoteSourceControl", @@ -17,6 +116,42 @@ "branch" : "master", "revision" : "e0c7eebc5a4465a3c4680764f26b7a61f567cdaf" } + }, + { + "identity" : "leveldb", + "kind" : "remoteSourceControl", + "location" : "https://github.com/firebase/leveldb.git", + "state" : { + "revision" : "a0bc79961d7be727d258d33d5a6b2f1023270ba1", + "version" : "1.22.5" + } + }, + { + "identity" : "nanopb", + "kind" : "remoteSourceControl", + "location" : "https://github.com/firebase/nanopb.git", + "state" : { + "revision" : "3851d94a41890dea16dc3db34caf60e585cb4163", + "version" : "2.30910.1" + } + }, + { + "identity" : "promises", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/promises.git", + "state" : { + "revision" : "f4a19a3c313dc2616c70bb49d29a799fb16be837", + "version" : "2.4.1" + } + }, + { + "identity" : "sentry-cocoa", + "kind" : "remoteSourceControl", + "location" : "https://github.com/getsentry/sentry-cocoa", + "state" : { + "revision" : "9e193ac0b71760603aa666bad7e9e303dd7031a8", + "version" : "8.56.2" + } } ], "version" : 2 diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 67880a9de..15508a4c8 100644 --- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -5,6 +5,24 @@ + + + + + + + + + + =3.9.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: diff --git a/lib/features/composer/presentation/composer_controller.dart b/lib/features/composer/presentation/composer_controller.dart index af2edf470..c85cfb945 100644 --- a/lib/features/composer/presentation/composer_controller.dart +++ b/lib/features/composer/presentation/composer_controller.dart @@ -1938,7 +1938,7 @@ class ComposerController extends BaseController final resultState = await _transformHtmlEmailContentInteractor .execute(signature, TransformConfiguration.forComposerSignature()) .last; - return resultState.fold( + return resultState.fold( (failure) => _noSignatureInserted('sanitizing failed: $failure'), (success) { if (success is! TransformHtmlEmailContentSuccess) { diff --git a/lib/features/email/presentation/widgets/pdf_viewer/password_aware_pdf_previewer.dart b/lib/features/email/presentation/widgets/pdf_viewer/password_aware_pdf_previewer.dart index 9594fa162..e8dc2fa26 100644 --- a/lib/features/email/presentation/widgets/pdf_viewer/password_aware_pdf_previewer.dart +++ b/lib/features/email/presentation/widgets/pdf_viewer/password_aware_pdf_previewer.dart @@ -120,7 +120,7 @@ class _PasswordAwarePdfDocument extends PdfPreviewer { return PdfViewer.data( bytes, - sourceName: upstreamViewer.documentRef.sourceName, + sourceName: upstreamViewer.documentRef.key.sourceName, passwordProvider: passwordProvider, controller: upstreamViewer.controller, params: upstreamViewer.params, diff --git a/lib/features/mailbox_dashboard/presentation/providers/empty_folder_provider.dart b/lib/features/mailbox_dashboard/presentation/providers/empty_folder_provider.dart index 463d6e253..2f08c1d11 100644 --- a/lib/features/mailbox_dashboard/presentation/providers/empty_folder_provider.dart +++ b/lib/features/mailbox_dashboard/presentation/providers/empty_folder_provider.dart @@ -183,7 +183,7 @@ class EmptyFolderNotifier extends _$EmptyFolderNotifier { .last; if (result == null) return _ClearEmailFailure(); - return result.fold( + return result.fold<_ClearEmailResult>( (failure) => _ClearEmailFailure( exception: failure is FeatureFailure ? failure.exception : null, ), @@ -227,7 +227,7 @@ class EmptyFolderNotifier extends _$EmptyFolderNotifier { .last; if (result == null) return _ClearEmailFailure(); - return result.fold( + return result.fold<_ClearEmailResult>( (failure) => _ClearEmailFailure( exception: failure is FeatureFailure ? failure.exception : null, ), @@ -255,7 +255,7 @@ class EmptyFolderNotifier extends _$EmptyFolderNotifier { .last; if (result == null) return _SubfoldersDeleteFailed(); - return result.fold( + return result.fold<_SubfoldersResult>( (failure) => _SubfoldersDeleteFailed( exception: failure is FeatureFailure ? failure.exception : null, ), diff --git a/model/analysis_options.yaml b/model/analysis_options.yaml index 0f32754d3..b4b5dfa79 100644 --- a/model/analysis_options.yaml +++ b/model/analysis_options.yaml @@ -7,6 +7,9 @@ # The following line activates a set of recommended lints for Flutter apps, # packages, and plugins designed to encourage good coding practices. +analyzer: + exclude: + - build/** include: package:flutter_lints/flutter.yaml linter: diff --git a/model/pubspec.yaml b/model/pubspec.yaml index f5d5981a1..f75c4f752 100644 --- a/model/pubspec.yaml +++ b/model/pubspec.yaml @@ -23,7 +23,7 @@ resolution: workspace version: 1.0.0+1 environment: - sdk: ">=3.10.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: @@ -36,13 +36,13 @@ dependencies: jmap_dart_client: ### Dependencies from pub.dev ### - cupertino_icons: 1.0.6 + cupertino_icons: 1.0.8 equatable: 2.0.5 quiver: 3.2.1 - intl: 0.20.2 + intl: 0.20.3 uri: 1.0.0 diff --git a/pubspec.lock b/pubspec.lock index 902d9c48b..43c616c61 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -109,10 +109,10 @@ packages: dependency: transitive description: name: archive - sha256: "2fde1607386ab523f7a36bb3e7edb43bd58e6edaf2ffb29d8a6d578b297fdbbd" + sha256: de5ac590b8155e4e676088d714bd41ea620449a6adc0f7950c5073874b287ddb url: "https://pub.dev" source: hosted - version: "4.0.7" + version: "4.6.0" args: dependency: transitive description: @@ -229,10 +229,10 @@ packages: dependency: transitive description: name: characters - sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.4.1" charcode: dependency: transitive description: @@ -273,6 +273,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.2" + code_assets: + dependency: transitive + description: + name: code_assets + sha256: "828110d598123b5ea96c00c9f3c72105bf79f8ee36c20a39b26209ade421ec57" + url: "https://pub.dev" + source: hosted + version: "2.1.0" code_builder: dependency: transitive description: @@ -326,10 +334,10 @@ packages: dependency: transitive description: name: coverage - sha256: "802bd084fb82e55df091ec8ad1553a7331b61c08251eef19a508b6f3f3a9858d" + sha256: "956a3de0725ca232ad353565a8290d3357592bf4250f6f298a185e2d949c5d3d" url: "https://pub.dev" source: hosted - version: "1.13.1" + version: "1.15.1" cross_file: dependency: "direct main" description: @@ -342,26 +350,26 @@ packages: dependency: transitive description: name: crypto - sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855" + sha256: e3626ae6270383c9e3a549f34c9e4cd26c09ae6a9adaab2bf4737a00340efdc4 url: "https://pub.dev" source: hosted - version: "3.0.6" + version: "3.0.8" csslib: dependency: transitive description: name: csslib - sha256: "831883fb353c8bdc1d71979e5b342c7d88acfbc643113c14ae51e2442ea0f20f" + sha256: "09bad715f418841f976c77db72d5398dc1253c21fb9c0c7f0b0b985860b2d58e" url: "https://pub.dev" source: hosted - version: "0.17.3" + version: "1.0.2" cupertino_icons: dependency: "direct main" description: name: cupertino_icons - sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 url: "https://pub.dev" source: hosted - version: "1.0.6" + version: "1.0.8" cupertino_progress_bar: dependency: transitive description: @@ -386,14 +394,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.4" - dart_pubspec_licenses: - dependency: transitive - description: - name: dart_pubspec_licenses - sha256: "23ddb78ff9204d08e3109ced67cd3c6c6a066f581b0edf5ee092fc3e1127f4ea" - url: "https://pub.dev" - source: hosted - version: "3.0.4" dart_style: dependency: "direct overridden" description: @@ -516,13 +516,14 @@ packages: source: git version: "0.1.6" enough_platform_widgets: - dependency: transitive + dependency: "direct overridden" description: - name: enough_platform_widgets - sha256: c0defcb43452ba5df1058567fd6b920bf49f3fb6e6c57ee822a091f084cdee5f - url: "https://pub.dev" - source: hosted - version: "1.0.0" + path: "." + ref: "1843df56aa78236e4eb3483e3b1a9447855fbd20" + resolved-ref: "1843df56aa78236e4eb3483e3b1a9447855fbd20" + url: "https://github.com/Enough-Software/enough_platform_widgets.git" + source: git + version: "1.1.2" equatable: dependency: "direct main" description: @@ -1051,18 +1052,18 @@ packages: dependency: "direct dev" description: name: flutter_native_splash - sha256: e301ae206ff0fb09b67d3716009c6c28c2da57a0ad164827b178421bb9d601f7 + sha256: "9db4b80b044e9af17cc4b1272137fc7ace0054d879ef8210a76adc34aaf4cdff" url: "https://pub.dev" source: hosted - version: "2.2.18" + version: "2.4.8" flutter_platform_widgets: dependency: transitive description: name: flutter_platform_widgets - sha256: "4970c211af1dad0a161e6379d04de2cace80283da0439f2f87d31a541f9b2b84" + sha256: "22a86564cb6cc0b93637c813ca91b0b1f61c2681a31e0f9d77590c1fa9f12020" url: "https://pub.dev" source: hosted - version: "6.0.2" + version: "9.0.0" flutter_portal: dependency: "direct main" description: @@ -1289,14 +1290,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.11.2" + hooks: + dependency: transitive + description: + name: hooks + sha256: eaac480a35ec0814146c2c48d96aaa829e0e44a7662c88ae84c9edf4bc35651f + url: "https://pub.dev" + source: hosted + version: "2.2.0" html: dependency: "direct main" description: name: html - sha256: "58e3491f7bf0b6a4ea5110c0c688877460d1a6366731155c4a4580e7ded773e8" + sha256: "6d1264f2dffa1b1101c25a91dff0dc2daee4c18e87cd8538729773c073dbf602" url: "https://pub.dev" source: hosted - version: "0.15.3" + version: "0.15.6" html_editor_enhanced: dependency: "direct main" description: @@ -1350,10 +1359,10 @@ packages: dependency: transitive description: name: image - sha256: "4e973fcf4caae1a4be2fa0a13157aa38a8f9cb049db6529aa00b4d71abc4d928" + sha256: "89ed75b2f8231fe676808c5564f9590d728024ded7ac782a7ed8474f1c95b72a" url: "https://pub.dev" source: hosted - version: "4.5.4" + version: "4.12.0" infinite_listview: dependency: transitive description: @@ -1382,10 +1391,10 @@ packages: dependency: "direct main" description: name: intl - sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" + sha256: "1ca20c894b1717686a2319b8548763d812bc0aabdac580420a44c5178c57a867" url: "https://pub.dev" source: hosted - version: "0.20.2" + version: "0.20.3" intl_generator: dependency: "direct main" description: @@ -1505,10 +1514,10 @@ packages: dependency: transitive description: name: logging - sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.3.0" lottie: dependency: transitive description: @@ -1537,18 +1546,18 @@ packages: dependency: transitive description: name: matcher - sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd" url: "https://pub.dev" source: hosted - version: "0.12.17" + version: "0.12.20" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b" url: "https://pub.dev" source: hosted - version: "0.11.1" + version: "0.13.0" meta: dependency: "direct overridden" description: @@ -1613,14 +1622,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.2" - objective_c: - dependency: transitive - description: - name: objective_c - sha256: "64e35e1e2e79da4e83f2ace3bf4e5437cef523f46c7db2eba9a1419c49573790" - url: "https://pub.dev" - source: hosted - version: "8.0.0" open_file: dependency: "direct main" description: @@ -1817,10 +1818,10 @@ packages: dependency: transitive description: name: pdf - sha256: "28eacad99bffcce2e05bba24e50153890ad0255294f4dd78a17075a2ba5c8416" + sha256: "6e40827f370d196e97c6611724d923a3d86c431ce8e2ce1e59edd03a67a1a6e6" url: "https://pub.dev" source: hosted - version: "3.11.3" + version: "3.13.1" pdf_widget_wrapper: dependency: transitive description: @@ -1829,22 +1830,38 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.4" + pdfium_dart: + dependency: transitive + description: + name: pdfium_dart + sha256: "86e95c66b09f3245b95c4924f2edce8d4f7c9786876e5c5ee8e36b104a94bbb0" + url: "https://pub.dev" + source: hosted + version: "0.2.5" + pdfium_flutter: + dependency: transitive + description: + name: pdfium_flutter + sha256: "0b115c0917aef9cf6bb9c4d47d0efc61d97f44844cd76287c921f997c26cf15d" + url: "https://pub.dev" + source: hosted + version: "0.2.3" pdfrx: dependency: "direct main" description: name: pdfrx - sha256: "7925ac63d7394ac85da084a88b4948b130f865fdf06a419fb8cc139724e1757e" + sha256: "85a87117ae6358e0ef2cc90d4db9f5e689eabbd7f19ab98c97164584d0be4a4a" url: "https://pub.dev" source: hosted - version: "2.1.5" + version: "2.4.8" pdfrx_engine: dependency: transitive description: name: pdfrx_engine - sha256: "3f3553fa4618a376ebd452feb087015bbff8b79d1295d99077fb9ae34726dedc" + sha256: "4399846809a75aed03881d8b8a19e5e70addd4b46b22fd94a0effd8859258f07" url: "https://pub.dev" source: hosted - version: "0.1.13" + version: "0.4.7" percent_indicator: dependency: "direct main" description: @@ -2025,10 +2042,10 @@ packages: dependency: transitive description: name: pub_semver - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + sha256: "261236774e8b1d69cfc6b9eabbc96c40f25e7a2d6b171f3385d4f65d5734fb24" url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.2.1" pubspec_parse: dependency: transitive description: @@ -2070,6 +2087,14 @@ packages: url: "https://github.com/linagora/receive_sharing_intent.git" source: git version: "1.8.1" + record_use: + dependency: transitive + description: + name: record_use + sha256: "1cb8564af8d43b464294411db9217f5ec04891c6f22ee2c32d73ae05e88a6bd2" + url: "https://pub.dev" + source: hosted + version: "1.1.1" rich_text_composer: dependency: "direct main" description: @@ -2123,10 +2148,10 @@ packages: dependency: "direct main" description: name: rxdart - sha256: "0c7c0cedd93788d996e33041ffecda924cc54389199cde4e6a34b440f50044cb" + sha256: "5c3004a4a8dbb94bd4bf5412a4def4acdaa12e12f269737a5751369e12d1a962" url: "https://pub.dev" source: hosted - version: "0.27.7" + version: "0.28.0" sanitize_html: dependency: transitive description: @@ -2140,10 +2165,10 @@ packages: dependency: transitive description: name: sentry - sha256: "10a0bc25f5f21468e3beeae44e561825aaa02cdc6829438e73b9b64658ff88d9" + sha256: fa14b2177d2cd4489ec78817ec4e52affe1be9f595718de970a5e4ed2bccc530 url: "https://pub.dev" source: hosted - version: "9.8.0" + version: "9.10.0" sentry_dart_plugin: dependency: "direct dev" description: @@ -2156,18 +2181,18 @@ packages: dependency: "direct main" description: name: sentry_dio - sha256: bee438fd790c534da77f0a6c9cd04c54c818184b8a54bbe7d916489c8aad56a0 + sha256: ec8f00568ebf4e2de9313b94a81e1010b4bc46883cf4fb00308a7cd8e2eeace7 url: "https://pub.dev" source: hosted - version: "9.8.0" + version: "9.10.0" sentry_flutter: dependency: "direct main" description: name: sentry_flutter - sha256: aafbf41c63c98a30b17bdbf3313424d5102db62b08735c44bff810f277e786a5 + sha256: "00d168260c9be3777e4f1c9ca7a2e4f2c48566926ec22a64bbacae5a94ff72a3" url: "https://pub.dev" source: hosted - version: "9.8.0" + version: "9.10.0" share_plus: dependency: "direct main" description: @@ -2450,26 +2475,26 @@ packages: dependency: transitive description: name: test - sha256: "75906bf273541b676716d1ca7627a17e4c4070a3a16272b7a3dc7da3b9f3f6b7" + sha256: ca578dc12bb8b2f40b67b7d3bd2fac4f31c01a6ff7130a14e2597b919934507f url: "https://pub.dev" source: hosted - version: "1.26.3" + version: "1.31.1" test_api: dependency: transitive description: name: test_api - sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 + sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11" url: "https://pub.dev" source: hosted - version: "0.7.7" + version: "0.7.12" test_core: dependency: transitive description: name: test_core - sha256: "0cc24b5ff94b38d2ae73e1eb43cc302b77964fbf67abad1e296025b78deb53d0" + sha256: d2e98ec12998368dc59ddd47ab709f2cd55acd6b66dc7db764455a44082f4bc5 url: "https://pub.dev" source: hosted - version: "0.6.12" + version: "0.6.18" textfield_tags: dependency: "direct main" description: @@ -2523,10 +2548,10 @@ packages: dependency: transitive description: name: universal_io - sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad" + sha256: f63cbc48103236abf48e345e07a03ce5757ea86285ed313a6a032596ed9301e2 url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.3.1" uri: dependency: "direct main" description: @@ -2539,10 +2564,10 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603" + sha256: f6a7e5c4835bb4e3026a04793a4199ca2d14c739ec378fdfe23fc8075d0439f8 url: "https://pub.dev" source: hosted - version: "6.3.1" + version: "6.3.2" url_launcher_android: dependency: transitive description: @@ -2643,10 +2668,10 @@ packages: dependency: transitive description: name: vector_math - sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + sha256: fa49e1674cb84acb900141714e6c6e1f9ae099827c24d141430ff6819db4e1bc url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.4.4" visibility_detector: dependency: transitive description: @@ -2755,18 +2780,18 @@ packages: dependency: "direct dev" description: name: xml - sha256: "971043b3a0d3da28727e40ed3e0b5d18b742fa5a68665cca88e74b7876d5e025" + sha256: "67f0aff7be013d107995e9b75bf4e7f2c3ef2dfdb2c8e68024bba0a7fd5756a4" url: "https://pub.dev" source: hosted - version: "6.6.1" + version: "7.0.1" yaml: dependency: transitive description: name: yaml - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + sha256: f67cdd8e07d3c6329146aaef1ba043542b3134c12489f553ca9a7435d1068aea url: "https://pub.dev" source: hosted - version: "3.1.2" + version: "3.1.4" yaml_edit: dependency: transitive description: @@ -2784,5 +2809,5 @@ packages: source: hosted version: "2.1.0" sdks: - dart: ">=3.10.0 <4.0.0" - flutter: ">=3.38.1" + dart: ">=3.13.0 <4.0.0" + flutter: ">=3.41.0" diff --git a/pubspec.yaml b/pubspec.yaml index 505b5f21b..dd0da6a80 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -32,7 +32,7 @@ workspace: version: 0.41.3 environment: - sdk: ">=3.10.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: @@ -124,7 +124,9 @@ dependencies: external_app_launcher: 4.0.3 - cupertino_icons: 1.0.6 + # Pinned enough_platform_widgets (see dependency_overrides) pulls + # flutter_platform_widgets 9.0.0, which needs cupertino_icons ^1.0.8. + cupertino_icons: 1.0.8 get: 4.6.6 @@ -168,7 +170,7 @@ dependencies: pointer_interceptor: 0.10.1+2 - rxdart: 0.27.7 + rxdart: 0.28.0 connectivity_plus: 4.0.0 @@ -190,7 +192,7 @@ dependencies: async: 2.13.0 - html: 0.15.3 + html: 0.15.6 custom_pop_up_menu: 1.2.4 @@ -198,7 +200,7 @@ dependencies: json_annotation: ^4.9.0 - url_launcher: 6.3.1 + url_launcher: 6.3.2 firebase_core: 4.8.0 @@ -218,7 +220,7 @@ dependencies: flutter_appauth_platform_interface: 9.0.0 - intl: 0.20.2 + intl: 0.20.3 flutter_typeahead: 5.0.2 @@ -275,15 +277,15 @@ dependencies: url: https://github.com/linagora/twake-previewer-flutter.git ref: main - pdfrx: 2.1.5 + pdfrx: 2.4.8 lottie_native: 0.1.2 flutter_custom_tab_bar: 1.2.1 - sentry_flutter: 9.8.0 + sentry_flutter: 9.10.0 - sentry_dio: 9.8.0 + sentry_dio: 9.10.0 flutter_riverpod: ^3.3.1 @@ -305,11 +307,11 @@ dev_dependencies: flutter_lints: 2.0.1 - flutter_native_splash: 2.2.18 + flutter_native_splash: 2.4.8 flutter_launcher_icons: 0.12.0 - xml: 6.6.1 + xml: 7.0.1 json_serializable: ^6.11.3 @@ -370,6 +372,13 @@ dependency_overrides: # but super_dns_client 0.3.8 pins ^2.4.4. freezed_annotation is annotation-only # (no behavioral difference between 2.x and 3.x) so overriding is safe. freezed_annotation: ^3.0.0 + # linagora/enough_html_editor pulls enough_platform_widgets; pub 1.1.2 breaks on + # Flutter 3.47 (bool? autofocus). Pin upstream 1843df5 (v1.1.2 + `?? false` fix). + # Remove once pub.dev has enough_platform_widgets > 1.1.2. + enough_platform_widgets: + git: + url: https://github.com/Enough-Software/enough_platform_widgets.git + ref: 1843df56aa78236e4eb3483e3b1a9447855fbd20 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/rule_filter/analysis_options.yaml b/rule_filter/analysis_options.yaml index 195df9775..3b7136d23 100644 --- a/rule_filter/analysis_options.yaml +++ b/rule_filter/analysis_options.yaml @@ -7,6 +7,9 @@ # The following line activates a set of recommended lints for Flutter apps, # packages, and plugins designed to encourage good coding practices. +analyzer: + exclude: + - build/** include: package:flutter_lints/flutter.yaml linter: diff --git a/rule_filter/pubspec.yaml b/rule_filter/pubspec.yaml index 0cbca008b..44eb6f3ce 100644 --- a/rule_filter/pubspec.yaml +++ b/rule_filter/pubspec.yaml @@ -7,7 +7,7 @@ resolution: workspace version: 1.0.0+1 environment: - sdk: ">=3.9.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: diff --git a/scribe/pubspec.yaml b/scribe/pubspec.yaml index 6b2306c93..f8096b7cb 100644 --- a/scribe/pubspec.yaml +++ b/scribe/pubspec.yaml @@ -6,7 +6,7 @@ publish_to: "none" resolution: workspace environment: - sdk: ">=3.9.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: @@ -33,7 +33,7 @@ dependencies: pointer_interceptor: 0.10.1+2 - intl: 0.20.2 + intl: 0.20.3 lottie: 3.3.1 diff --git a/scripts/ci-assert-flutter-version.sh b/scripts/ci-assert-flutter-version.sh new file mode 100755 index 000000000..7b8bea8e3 --- /dev/null +++ b/scripts/ci-assert-flutter-version.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# The Jenkins PATH prefix points at /opt/flutter-$FLUTTER_VERSION/bin. A missing +# directory is skipped, so the agent SDK would run instead. Fail before prebuild. +set -eu + +expected="${FLUTTER_VERSION:?FLUTTER_VERSION is required}" +if ! command -v flutter >/dev/null 2>&1; then + echo "Flutter ${expected} is required (FLUTTER_ROOT=${FLUTTER_ROOT:-unset}). flutter is not on PATH." >&2 + exit 1 +fi + +output="$(flutter --version 2>&1 || true)" +actual="$(printf '%s\n' "$output" | awk '$1=="Flutter" { print $2; exit }')" +if [ "$actual" != "$expected" ]; then + echo "Flutter ${expected} is required (FLUTTER_ROOT=${FLUTTER_ROOT:-unset}). Found: ${actual:-unparsed}" >&2 + printf '%s\n' "$output" >&2 + exit 1 +fi + +echo "Flutter ${actual}" diff --git a/scripts/prebuild.sh b/scripts/prebuild.sh index f5f96898b..60f674143 100755 --- a/scripts/prebuild.sh +++ b/scripts/prebuild.sh @@ -4,6 +4,11 @@ set -e echo "Prebuild started..." prebuild_started=$SECONDS +# Flutter 3.47 SwiftPM plugin copy uses rsync, which can't create this parent after `flutter clean` on macOS. +if [ "$(uname -s)" = "Darwin" ]; then + mkdir -p build/ios/SourcePackages +fi + # Single pub get resolves the entire workspace (Dart pub workspaces) step_started=$SECONDS flutter pub get > /dev/null diff --git a/scripts/qa-environment/Dockerfile.android b/scripts/qa-environment/Dockerfile.android index 2d8bc5a5e..b4bd85d6d 100644 --- a/scripts/qa-environment/Dockerfile.android +++ b/scripts/qa-environment/Dockerfile.android @@ -1,26 +1,36 @@ # Release APK of the Android app for build.sh --mobile-version, at /tmail-qa.apk of the image. The # release key is not available here: the build is signed with a key generated in the image. The # caches survive the builds. -ARG FLUTTER_VERSION=3.38.9 +ARG FLUTTER_VERSION=3.47.9 -FROM --platform=amd64 ghcr.io/instrumentisto/flutter:${FLUTTER_VERSION} AS build-env +# instrumentisto/flutter is archived and has no 3.47.9 tag; gmeligio tracks current stable. +# Digest pins the linux/amd64 manifest (digest wins over the tag). +FROM --platform=amd64 ghcr.io/gmeligio/flutter-android:${FLUTTER_VERSION}@sha256:e7691a1786814ed319c6e3e411b9416e1162a49f7af33fee7cfedf2c38e40ee3 AS build-env +# Image defaults to user flutter; root only for COPY ownership and keystore setup. +USER root WORKDIR /app -COPY . . +COPY --chown=flutter:flutter . . # local.properties and key.properties of the checkout would point at the host's SDK and key RUN rm -f android/local.properties android/key.properties && \ - keytool -genkeypair -keystore /root/qa.keystore -storepass android -alias qa -keypass android \ + keytool -genkeypair -keystore /home/flutter/qa.keystore -storepass android -alias qa -keypass android \ -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Twake QA,O=Linagora,C=FR" 2>/dev/null && \ - printf 'storeFile=/root/qa.keystore\nstorePassword=android\nkeyAlias=qa\nkeyPassword=android\n' \ - > android/key.properties + printf 'storeFile=/home/flutter/qa.keystore\nstorePassword=android\nkeyAlias=qa\nkeyPassword=android\n' \ + > android/key.properties && \ + chown flutter:flutter /app /home/flutter/qa.keystore android/key.properties -RUN --mount=type=cache,target=/root/.pub-cache \ - --mount=type=cache,target=/root/.gradle \ - --mount=type=cache,target=/opt/android-sdk-linux/ndk \ +USER flutter + +# gmeligio images use uid/gid 1001 for the flutter user; fresh cache mounts +# are root-owned 0755 otherwise, so pub get / gradle fail as flutter. +# Do not cache-mount the NDK path: an empty mount would hide the image's +# preinstalled NDK and force a large re-download on first build. +RUN --mount=type=cache,uid=1001,gid=1001,target=/home/flutter/.pub-cache \ + --mount=type=cache,uid=1001,gid=1001,target=/home/flutter/.gradle \ ./scripts/prebuild.sh && \ flutter build apk --release && \ - mkdir /out && cp build/app/outputs/flutter-apk/app-release.apk /out/tmail-qa.apk + mkdir /home/flutter/out && cp build/app/outputs/flutter-apk/app-release.apk /home/flutter/out/tmail-qa.apk FROM scratch -COPY --from=build-env /out/tmail-qa.apk / +COPY --from=build-env /home/flutter/out/tmail-qa.apk / diff --git a/scripts/qa-environment/build.sh b/scripts/qa-environment/build.sh index 594d4593c..cf9fb8865 100755 --- a/scripts/qa-environment/build.sh +++ b/scripts/qa-environment/build.sh @@ -28,5 +28,5 @@ if [ "$MOBILE" = true ]; then DOCKER_BUILDKIT=1 docker build --network host -t tmail-mobile-qa-apk \ -f "$SCRIPT_DIR/Dockerfile.android" "$REPO_DIR" else - docker build --network host -t tmail-web-qa -f "$REPO_DIR/Dockerfile" "$REPO_DIR" + DOCKER_BUILDKIT=1 docker build --network host -t tmail-web-qa -f "$REPO_DIR/Dockerfile" "$REPO_DIR" fi diff --git a/scripts/test_ci_assert_flutter_version.py b/scripts/test_ci_assert_flutter_version.py new file mode 100644 index 000000000..7c999a1e9 --- /dev/null +++ b/scripts/test_ci_assert_flutter_version.py @@ -0,0 +1,64 @@ +#!/usr/bin/env python3 +"""The Jenkins Flutter check accepts only FLUTTER_VERSION.""" +import os +import stat +import subprocess +import tempfile +import unittest + +ROOT = os.path.join(os.path.dirname(__file__), "..") +SCRIPT = os.path.join(ROOT, "scripts", "ci-assert-flutter-version.sh") + + +def _flutter(body: str) -> str: + directory = tempfile.mkdtemp() + path = os.path.join(directory, "flutter") + with open(path, "w", encoding="utf-8") as handle: + handle.write("#!/bin/sh\n" + body + "\n") + os.chmod(path, os.stat(path).st_mode | stat.S_IEXEC) + return directory + + +def _run(path, version="3.47.9"): + env = os.environ.copy() + env["FLUTTER_VERSION"] = version + env["FLUTTER_ROOT"] = "/opt/flutter-" + version + env["PATH"] = path + os.pathsep + "/usr/bin:/bin" + return subprocess.run( + ["bash", SCRIPT], + env=env, + text=True, + capture_output=True, + ) + + +class AssertFlutterVersionTest(unittest.TestCase): + def test_accepts_the_required_version(self): + path = _flutter('echo "Flutter 3.47.9 • channel stable"') + result = _run(path) + self.assertEqual(result.returncode, 0, result.stderr) + self.assertIn("Flutter 3.47.9", result.stdout) + + def test_accepts_version_after_a_startup_banner(self): + path = _flutter( + 'echo "Waiting for another flutter command to release the startup lock..."\n' + 'echo "Flutter 3.47.9 • channel stable"' + ) + result = _run(path) + self.assertEqual(result.returncode, 0, result.stderr) + self.assertIn("Flutter 3.47.9", result.stdout) + + def test_rejects_a_different_version(self): + path = _flutter('echo "Flutter 3.38.9 • channel stable"') + result = _run(path) + self.assertNotEqual(result.returncode, 0) + self.assertIn("Found: 3.38.9", result.stderr) + + def test_rejects_a_missing_flutter(self): + result = _run("/tmp/no-such-flutter-bin") + self.assertNotEqual(result.returncode, 0) + self.assertIn("not on PATH", result.stderr) + + +if __name__ == "__main__": + unittest.main() diff --git a/server_settings/pubspec.yaml b/server_settings/pubspec.yaml index 6eb90dd8e..40b1edf9c 100644 --- a/server_settings/pubspec.yaml +++ b/server_settings/pubspec.yaml @@ -6,7 +6,7 @@ publish_to: "none" resolution: workspace environment: - sdk: ">=3.9.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: diff --git a/test/features/composer/presentation/extensions/get_header_email_quoted_test.dart b/test/features/composer/presentation/extensions/get_header_email_quoted_test.dart index 78241670d..ef0cd445d 100644 --- a/test/features/composer/presentation/extensions/get_header_email_quoted_test.dart +++ b/test/features/composer/presentation/extensions/get_header_email_quoted_test.dart @@ -83,7 +83,8 @@ void _replyTests() { expect( header, - 'On Sep 25, 2026 at 3:56 PM, ' + // Flutter 3.47 / ICU uses U+202F (narrow no-break space) before AM/PM. + 'On Sep 25, 2026 at 3:56\u202FPM, ' 'Test BTELLIER <btellier@example.com> wrote:', ); }); @@ -149,9 +150,10 @@ void _forwardTests() { expect( header, + // Flutter 3.47 / ICU uses U+202F (narrow no-break space) before AM/PM. '------- Forwarded message -------
' 'Subject: Hello
' - 'Date: Sep 25, 2026 at 3:56 PM
' + 'Date: Sep 25, 2026 at 3:56\u202FPM
' 'From: Test BTELLIER <btellier@example.com>
', ); }); diff --git a/test/features/email/presentation/widgets/pdf_viewer/pdf_viewer_test.dart b/test/features/email/presentation/widgets/pdf_viewer/pdf_viewer_test.dart index 45c40925b..9aec6e041 100644 --- a/test/features/email/presentation/widgets/pdf_viewer/pdf_viewer_test.dart +++ b/test/features/email/presentation/widgets/pdf_viewer/pdf_viewer_test.dart @@ -145,7 +145,7 @@ void main() { expect(pdfViewer.documentRef.passwordProvider, isNotNull); expect(pdfViewer.documentRef.firstAttemptByEmptyPassword, isTrue); - expect(pdfViewer.documentRef.sourceName, 'report.pdf'); + expect(pdfViewer.documentRef.key.sourceName, 'report.pdf'); }, ); @@ -156,8 +156,10 @@ void main() { expect(pdfViewer.controller, isNotNull); expect(pdfViewer.params.panAxis, PanAxis.vertical); - expect(pdfViewer.params.minScale, 1); - expect(pdfViewer.params.maxScale, 4); + final sizing = pdfViewer.params.getSizeDelegateProvider() + as PdfViewerSizeDelegateProviderLegacy; + expect(sizing.minScale, 1); + expect(sizing.maxScale, 4); expect(pdfViewer.params.layoutPages, isNotNull); expect(pdfViewer.params.onViewerReady, isNotNull); expect(pdfViewer.params.errorBannerBuilder, isNotNull); diff --git a/test/features/upload/presentation/dialog/drive_oversize_upload_dialog_presenter_test.dart b/test/features/upload/presentation/dialog/drive_oversize_upload_dialog_presenter_test.dart index 8bc251914..91bfd09f3 100644 --- a/test/features/upload/presentation/dialog/drive_oversize_upload_dialog_presenter_test.dart +++ b/test/features/upload/presentation/dialog/drive_oversize_upload_dialog_presenter_test.dart @@ -83,7 +83,7 @@ void main() { final appLocalizations = AppLocalizations.of(tester.element(_dialogView)); expect( tester.getSemantics(find.byType(LinagoraFileTransferSurface)), - containsSemantics( + isSemantics( label: appLocalizations.attachingFileTitle, scopesRoute: true, namesRoute: true, diff --git a/tmail-mcp/marionette/marionette_composer_extensions.dart b/tmail-mcp/marionette/marionette_composer_extensions.dart index dbb6fe58d..434f3a28b 100644 --- a/tmail-mcp/marionette/marionette_composer_extensions.dart +++ b/tmail-mcp/marionette/marionette_composer_extensions.dart @@ -1,4 +1,3 @@ -import 'package:flutter/foundation.dart'; import 'package:marionette_flutter/marionette_flutter.dart'; import 'composer/composer_body_driver.dart'; @@ -19,7 +18,8 @@ void registerComposerExtensions(ComposerBodyDriver driver) { ); } -@visibleForTesting +// Called from registerComposerExtensions and from tmail-mcp/test (not under +// package-root test/), so these stay public without @visibleForTesting. Future handleSetBody( ComposerBodyDriver driver, Map params, @@ -29,7 +29,6 @@ Future handleSetBody( return _toExtensionResult(await driver.setBody(text)); } -@visibleForTesting Future handleGetBody( ComposerBodyDriver driver, ) async { diff --git a/tmail-mcp/marionette/marionette_mcp_binding.dart b/tmail-mcp/marionette/marionette_mcp_binding.dart index faad76640..c2e216865 100644 --- a/tmail-mcp/marionette/marionette_mcp_binding.dart +++ b/tmail-mcp/marionette/marionette_mcp_binding.dart @@ -51,7 +51,8 @@ class MarionetteMcpBinding extends McpAppBinding { registerComposerExtensions(createComposerBodyDriver()); } - @visibleForTesting + // Used by MarionetteBinding and by tmail-mcp/test (not under package-root + // test/), so this stays callable without @visibleForTesting. static String? extractTMailText(Element element) { final widget = element.widget; if (widget is TMailButtonWidget) { diff --git a/workplace/pubspec.yaml b/workplace/pubspec.yaml index 9623d6122..df9c26c71 100644 --- a/workplace/pubspec.yaml +++ b/workplace/pubspec.yaml @@ -7,7 +7,7 @@ resolution: workspace version: 0.1.0 environment: - sdk: ">=3.9.0 <4.0.0" + sdk: ">=3.13.0 <4.0.0" dependencies: flutter: