From 0dbbee9f3b1568ae1d1a88dbd02b571d9af03db4 Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Fri, 5 Dec 2025 13:58:51 +0000 Subject: [PATCH 01/16] Add code coverage --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++-- android/build.gradle | 12 +++++++++--- example/android/app/build.gradle | 2 +- scripts/ios_unit_tests.sh | 6 +++++- 4 files changed, 41 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae1bbc73..a1e9589e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,12 +61,21 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - name: Install lcov + run: sudo apt-get update && sudo apt-get install -y lcov - name: Get dependencies run: flutter pub get - name: Run all tests run: flutter test --reporter=expanded --coverage - name: Check coverage run: dart scripts/check_coverage.dart coverage/lcov.info + - name: Generate HTML report + run: genhtml coverage/lcov.info -o coverage/html + - name: Upload coverage report + uses: actions/upload-artifact@v4 + with: + name: flutter-coverage-report + path: coverage/html test-android: name: Test Android @@ -98,9 +107,14 @@ jobs: - name: Validate Gradle working-directory: ./example/android run: dart ../../scripts/check_gradle_version.dart - - name: Run all tests + - name: Run all tests and coverage working-directory: ./example/android - run: ./gradlew :usercentrics_sdk:test + run: ./gradlew :usercentrics_sdk:koverHtmlReport + - name: Upload coverage report + uses: actions/upload-artifact@v4 + with: + name: android-coverage-report + path: example/build/usercentrics_sdk/reports/kover/html test-ios: name: Test iOS @@ -115,6 +129,8 @@ jobs: xcode-version: '14.2' - name: Checkout code uses: actions/checkout@v4 + - name: Install Slather + run: gem install slather - name: Setup Flutter uses: subosito/flutter-action@v2 with: @@ -128,6 +144,14 @@ jobs: - name: Run all tests working-directory: ./example/ios run: ../../scripts/ios_unit_tests.sh + - name: Generate HTML report + working-directory: ./example/ios + run: slather coverage --html --scheme Runner --workspace Runner.xcworkspace --output-directory html_report + - name: Upload coverage report + uses: actions/upload-artifact@v4 + with: + name: ios-coverage-report + path: example/ios/html_report build-android: name: Build Android Example diff --git a/android/build.gradle b/android/build.gradle index 5aedae62..8eeaf42b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,18 +1,19 @@ -def usercentrics_version = "2.24.1" +def usercentrics_version = "2.22.2" group 'com.usercentrics.sdk.flutter' version usercentrics_version buildscript { - ext.kotlin_version = '1.9.24' + ext.kotlin_version = '1.8.0' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:8.3.2' + classpath 'com.android.tools.build:gradle:7.1.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "org.jetbrains.kotlinx:kover-gradle-plugin:0.7.6" } } @@ -25,6 +26,7 @@ rootProject.allprojects { apply plugin: 'com.android.library' apply plugin: 'kotlin-android' +apply plugin: 'org.jetbrains.kotlinx.kover' android { namespace "com.usercentrics.sdk" @@ -48,6 +50,10 @@ android { minSdkVersion 16 consumerProguardFile "proguard-rules.pro" } + + testOptions { + unitTests.returnDefaultValues = true + } } dependencies { diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 896a28a5..212b7edc 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -46,7 +46,7 @@ android { defaultConfig { applicationId "com.usercentrics.sdk.flutter_example" - minSdkVersion 21 // webview_flutter requirement + minSdkVersion flutter.minSdkVersion // webview_flutter requirement targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/scripts/ios_unit_tests.sh b/scripts/ios_unit_tests.sh index 838508e6..6844b9ab 100755 --- a/scripts/ios_unit_tests.sh +++ b/scripts/ios_unit_tests.sh @@ -1,5 +1,9 @@ #!/bin/sh -xe +rm -rf TestResults.xcresult + xcodebuild test -workspace 'Runner.xcworkspace' \ -scheme 'Runner' \ - -destination 'platform=iOS Simulator,name=iPhone 14 Pro' + -destination 'platform=iOS Simulator,name=iPhone 14 Pro' \ + -enableCodeCoverage YES \ + -resultBundlePath TestResults From 6a27164d33ff2bcd6abe00b67d78e47f9ef158ac Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Sun, 7 Dec 2025 13:02:32 +0000 Subject: [PATCH 02/16] Add code coverage --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1e9589e..e3f96e09 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -146,7 +146,7 @@ jobs: run: ../../scripts/ios_unit_tests.sh - name: Generate HTML report working-directory: ./example/ios - run: slather coverage --html --scheme Runner --workspace Runner.xcworkspace --output-directory html_report + run: slather coverage --html --scheme Runner --workspace Runner.xcworkspace --output-directory html_report Runner.xcodeproj - name: Upload coverage report uses: actions/upload-artifact@v4 with: From e38c0e63b7c2d62703aef39078679ad965413277 Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Mon, 8 Dec 2025 10:55:50 +0000 Subject: [PATCH 03/16] Add code coverage --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3f96e09..fd29158b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,7 +109,7 @@ jobs: run: dart ../../scripts/check_gradle_version.dart - name: Run all tests and coverage working-directory: ./example/android - run: ./gradlew :usercentrics_sdk:koverHtmlReport + run: ./gradlew :usercentrics_sdk:testDebugUnitTest :usercentrics_sdk:koverHtmlReport - name: Upload coverage report uses: actions/upload-artifact@v4 with: @@ -146,7 +146,7 @@ jobs: run: ../../scripts/ios_unit_tests.sh - name: Generate HTML report working-directory: ./example/ios - run: slather coverage --html --scheme Runner --workspace Runner.xcworkspace --output-directory html_report Runner.xcodeproj + run: slather coverage --html --scheme Runner --workspace Runner.xcworkspace --output-directory html_report --source-directory ../../ios Runner.xcodeproj - name: Upload coverage report uses: actions/upload-artifact@v4 with: From 875888134eea3f9f236c30af0df59b5961e81c98 Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Mon, 8 Dec 2025 11:23:27 +0000 Subject: [PATCH 04/16] Add code coverage --- .github/workflows/ci.yml | 8 +++++++- android/build.gradle | 14 ++++++++++++++ example/ios/.slather.yml | 11 +++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 example/ios/.slather.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd29158b..dccb7739 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,6 +110,9 @@ jobs: - name: Run all tests and coverage working-directory: ./example/android run: ./gradlew :usercentrics_sdk:testDebugUnitTest :usercentrics_sdk:koverHtmlReport + - name: List coverage files + working-directory: ./example + run: find build -name "*.html" -o -name "index.html" | head -20 - name: Upload coverage report uses: actions/upload-artifact@v4 with: @@ -144,9 +147,12 @@ jobs: - name: Run all tests working-directory: ./example/ios run: ../../scripts/ios_unit_tests.sh + - name: List test results + working-directory: ./example/ios + run: ls -la TestResults.xcresult || echo "No test results found" - name: Generate HTML report working-directory: ./example/ios - run: slather coverage --html --scheme Runner --workspace Runner.xcworkspace --output-directory html_report --source-directory ../../ios Runner.xcodeproj + run: slather coverage --html - name: Upload coverage report uses: actions/upload-artifact@v4 with: diff --git a/android/build.gradle b/android/build.gradle index c0cafb66..cc921a66 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -28,6 +28,20 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'org.jetbrains.kotlinx.kover' +kover { + reports { + filters { + excludes { + classes( + '*BuildConfig', + '*.R', + '*.R$*' + ) + } + } + } +} + android { namespace "com.usercentrics.sdk" diff --git a/example/ios/.slather.yml b/example/ios/.slather.yml new file mode 100644 index 00000000..124c7405 --- /dev/null +++ b/example/ios/.slather.yml @@ -0,0 +1,11 @@ +coverage_service: cobertura_xml +xcodeproj: Runner.xcodeproj +workspace: Runner.xcworkspace +scheme: Runner +source_directory: ../../ios +output_directory: html_report +ignore: + - Pods/* + - ../**/*/Tests/* + - ../**/*/Test/* + From 0b354e64f5630a730429cbf66ef83efe02dc9cd9 Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Mon, 8 Dec 2025 11:58:04 +0000 Subject: [PATCH 05/16] Add code coverage --- .github/workflows/ci.yml | 4 ++-- android/build.gradle | 14 -------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dccb7739..84e6adaa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,7 +109,7 @@ jobs: run: dart ../../scripts/check_gradle_version.dart - name: Run all tests and coverage working-directory: ./example/android - run: ./gradlew :usercentrics_sdk:testDebugUnitTest :usercentrics_sdk:koverHtmlReport + run: ./gradlew :usercentrics_sdk:testDebugUnitTest :usercentrics_sdk:koverHtmlReportDebug --stacktrace - name: List coverage files working-directory: ./example run: find build -name "*.html" -o -name "index.html" | head -20 @@ -117,7 +117,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: android-coverage-report - path: example/build/usercentrics_sdk/reports/kover/html + path: example/build/usercentrics_sdk/reports/kover/htmlDebug test-ios: name: Test iOS diff --git a/android/build.gradle b/android/build.gradle index cc921a66..c0cafb66 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -28,20 +28,6 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'org.jetbrains.kotlinx.kover' -kover { - reports { - filters { - excludes { - classes( - '*BuildConfig', - '*.R', - '*.R$*' - ) - } - } - } -} - android { namespace "com.usercentrics.sdk" From dd578eedbe4a70b58d19bd9935c0636281c1b4c1 Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Mon, 8 Dec 2025 12:24:11 +0000 Subject: [PATCH 06/16] Add code coverage --- .github/workflows/ci.yml | 8 ++++---- example/ios/.slather.yml | 11 ----------- 2 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 example/ios/.slather.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84e6adaa..053a5364 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,7 +109,7 @@ jobs: run: dart ../../scripts/check_gradle_version.dart - name: Run all tests and coverage working-directory: ./example/android - run: ./gradlew :usercentrics_sdk:testDebugUnitTest :usercentrics_sdk:koverHtmlReportDebug --stacktrace + run: ./gradlew :usercentrics_sdk:testDebugUnitTest :usercentrics_sdk:koverHtmlReportDebug - name: List coverage files working-directory: ./example run: find build -name "*.html" -o -name "index.html" | head -20 @@ -132,8 +132,8 @@ jobs: xcode-version: '14.2' - name: Checkout code uses: actions/checkout@v4 - - name: Install Slather - run: gem install slather + - name: Install xcov + run: gem install xcov - name: Setup Flutter uses: subosito/flutter-action@v2 with: @@ -152,7 +152,7 @@ jobs: run: ls -la TestResults.xcresult || echo "No test results found" - name: Generate HTML report working-directory: ./example/ios - run: slather coverage --html + run: xcov --scheme Runner --workspace Runner.xcworkspace --output_directory html_report --include_targets usercentrics_sdk.framework - name: Upload coverage report uses: actions/upload-artifact@v4 with: diff --git a/example/ios/.slather.yml b/example/ios/.slather.yml deleted file mode 100644 index 124c7405..00000000 --- a/example/ios/.slather.yml +++ /dev/null @@ -1,11 +0,0 @@ -coverage_service: cobertura_xml -xcodeproj: Runner.xcodeproj -workspace: Runner.xcworkspace -scheme: Runner -source_directory: ../../ios -output_directory: html_report -ignore: - - Pods/* - - ../**/*/Tests/* - - ../**/*/Test/* - From 57778b5289ba747619601ae977b7e0974c761d9d Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Mon, 8 Dec 2025 13:18:26 +0000 Subject: [PATCH 07/16] Add code coverage --- .github/workflows/ci.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 053a5364..d49f4db9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -132,8 +132,8 @@ jobs: xcode-version: '14.2' - name: Checkout code uses: actions/checkout@v4 - - name: Install xcov - run: gem install xcov + - name: Install slather + run: gem install slather - name: Setup Flutter uses: subosito/flutter-action@v2 with: @@ -147,12 +147,17 @@ jobs: - name: Run all tests working-directory: ./example/ios run: ../../scripts/ios_unit_tests.sh - - name: List test results + - name: Generate coverage report working-directory: ./example/ios - run: ls -la TestResults.xcresult || echo "No test results found" - - name: Generate HTML report - working-directory: ./example/ios - run: xcov --scheme Runner --workspace Runner.xcworkspace --output_directory html_report --include_targets usercentrics_sdk.framework + run: | + slather coverage \ + --html \ + --output-directory html_report \ + --scheme Runner \ + --workspace Runner.xcworkspace \ + --binary-basename usercentrics_sdk \ + --source-directory ../../ios/Classes \ + Runner.xcodeproj - name: Upload coverage report uses: actions/upload-artifact@v4 with: From 85b6c272c53e2fc5db54d56899b3ccc0015c3cc1 Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Mon, 8 Dec 2025 14:08:16 +0000 Subject: [PATCH 08/16] Add code coverage --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d49f4db9..ef3702b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,14 +122,14 @@ jobs: test-ios: name: Test iOS needs: [ lint, format, pub-dry-run ] - runs-on: macos-13 + runs-on: macos-latest timeout-minutes: 20 steps: - name: Setup code uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '14.2' + xcode-version: 'latest-stable' - name: Checkout code uses: actions/checkout@v4 - name: Install slather @@ -183,14 +183,14 @@ jobs: build-ios: name: Build iOS Example needs: [ lint, format, pub-dry-run ] - runs-on: macos-13 + runs-on: macos-latest timeout-minutes: 20 steps: - name: Setup code uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '14.2' + xcode-version: 'latest-stable' - name: Checkout code uses: actions/checkout@v4 - name: Setup Flutter From 9c4c6226526481d7634e4c4006b0620bed71623f Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Mon, 8 Dec 2025 14:47:59 +0000 Subject: [PATCH 09/16] Add code coverage --- scripts/ios_unit_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ios_unit_tests.sh b/scripts/ios_unit_tests.sh index 6844b9ab..0f717659 100755 --- a/scripts/ios_unit_tests.sh +++ b/scripts/ios_unit_tests.sh @@ -4,6 +4,6 @@ rm -rf TestResults.xcresult xcodebuild test -workspace 'Runner.xcworkspace' \ -scheme 'Runner' \ - -destination 'platform=iOS Simulator,name=iPhone 14 Pro' \ + -destination 'platform=iOS Simulator,name=iPhone 16 Pro' \ -enableCodeCoverage YES \ -resultBundlePath TestResults From d038eab645546cb0525aa6dc76d258979e570cf9 Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Mon, 8 Dec 2025 15:29:36 +0000 Subject: [PATCH 10/16] Add code coverage --- .github/workflows/ci.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef3702b9..0f5f3177 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -132,8 +132,6 @@ jobs: xcode-version: 'latest-stable' - name: Checkout code uses: actions/checkout@v4 - - name: Install slather - run: gem install slather - name: Setup Flutter uses: subosito/flutter-action@v2 with: @@ -147,22 +145,9 @@ jobs: - name: Run all tests working-directory: ./example/ios run: ../../scripts/ios_unit_tests.sh - - name: Generate coverage report + - name: Show coverage report working-directory: ./example/ios - run: | - slather coverage \ - --html \ - --output-directory html_report \ - --scheme Runner \ - --workspace Runner.xcworkspace \ - --binary-basename usercentrics_sdk \ - --source-directory ../../ios/Classes \ - Runner.xcodeproj - - name: Upload coverage report - uses: actions/upload-artifact@v4 - with: - name: ios-coverage-report - path: example/ios/html_report + run: xcrun xccov view --report TestResults.xcresult build-android: name: Build Android Example From e592d39159b882b15ac9b0ebeaeb810b43747b48 Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Mon, 8 Dec 2025 15:45:11 +0000 Subject: [PATCH 11/16] Add code coverage --- example/android/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 212b7edc..896a28a5 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -46,7 +46,7 @@ android { defaultConfig { applicationId "com.usercentrics.sdk.flutter_example" - minSdkVersion flutter.minSdkVersion // webview_flutter requirement + minSdkVersion 21 // webview_flutter requirement targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName From 9b38b99a960119343ab443ac00eff96f9cc28edc Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Tue, 9 Dec 2025 20:13:32 +0000 Subject: [PATCH 12/16] Add code coverage --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f5f3177..5c86fec5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,14 +122,14 @@ jobs: test-ios: name: Test iOS needs: [ lint, format, pub-dry-run ] - runs-on: macos-latest + runs-on: macos-15 timeout-minutes: 20 steps: - name: Setup code uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: 'latest-stable' + xcode-version: '16.1' - name: Checkout code uses: actions/checkout@v4 - name: Setup Flutter @@ -168,14 +168,14 @@ jobs: build-ios: name: Build iOS Example needs: [ lint, format, pub-dry-run ] - runs-on: macos-latest + runs-on: macos-15 timeout-minutes: 20 steps: - name: Setup code uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: 'latest-stable' + xcode-version: '16.1' - name: Checkout code uses: actions/checkout@v4 - name: Setup Flutter From 8d2feb821de9f1285ea9df48a76f818091d380a0 Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Tue, 9 Dec 2025 20:50:50 +0000 Subject: [PATCH 13/16] Add code coverage --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c86fec5..b00c49ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,7 +129,7 @@ jobs: - name: Setup code uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '16.1' + xcode-version: '16.2' - name: Checkout code uses: actions/checkout@v4 - name: Setup Flutter @@ -175,7 +175,7 @@ jobs: - name: Setup code uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '16.1' + xcode-version: '16.2' - name: Checkout code uses: actions/checkout@v4 - name: Setup Flutter From 63c2a52112004b2089fad1fa81d6341f1a41161f Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Tue, 9 Dec 2025 20:58:46 +0000 Subject: [PATCH 14/16] Add code coverage --- .github/workflows/ci.yml | 8 ++++---- scripts/ios_unit_tests.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b00c49ca..5f094407 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,14 +122,14 @@ jobs: test-ios: name: Test iOS needs: [ lint, format, pub-dry-run ] - runs-on: macos-15 + runs-on: macos-14 timeout-minutes: 20 steps: - name: Setup code uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '16.2' + xcode-version: '15.4' - name: Checkout code uses: actions/checkout@v4 - name: Setup Flutter @@ -168,14 +168,14 @@ jobs: build-ios: name: Build iOS Example needs: [ lint, format, pub-dry-run ] - runs-on: macos-15 + runs-on: macos-14 timeout-minutes: 20 steps: - name: Setup code uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '16.2' + xcode-version: '15.4' - name: Checkout code uses: actions/checkout@v4 - name: Setup Flutter diff --git a/scripts/ios_unit_tests.sh b/scripts/ios_unit_tests.sh index 0f717659..5ef7da96 100755 --- a/scripts/ios_unit_tests.sh +++ b/scripts/ios_unit_tests.sh @@ -4,6 +4,6 @@ rm -rf TestResults.xcresult xcodebuild test -workspace 'Runner.xcworkspace' \ -scheme 'Runner' \ - -destination 'platform=iOS Simulator,name=iPhone 16 Pro' \ + -destination 'platform=iOS Simulator,name=iPhone 15 Pro' \ -enableCodeCoverage YES \ -resultBundlePath TestResults From 836a5b1eb8c34a57b51be8e814731520b6c23101 Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Wed, 10 Dec 2025 19:55:22 +0000 Subject: [PATCH 15/16] Add code coverage --- android/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index c0cafb66..4c9933ed 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -51,9 +51,9 @@ android { consumerProguardFile "proguard-rules.pro" } - testOptions { - unitTests.returnDefaultValues = true - } +// testOptions { +// unitTests.returnDefaultValues = true +// } } dependencies { From defcad79d8ac4d8209c2e96b6d2cbcef4348c085 Mon Sep 17 00:00:00 2001 From: "andrei.smirennikov" Date: Wed, 10 Dec 2025 20:35:18 +0000 Subject: [PATCH 16/16] Add code coverage --- android/build.gradle | 4 ---- 1 file changed, 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 4c9933ed..a9376c4d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -50,10 +50,6 @@ android { minSdkVersion 16 consumerProguardFile "proguard-rules.pro" } - -// testOptions { -// unitTests.returnDefaultValues = true -// } } dependencies {