From e8a28f24103d05110d80e1a59a2d2738ae31c315 Mon Sep 17 00:00:00 2001
From: ijunaid <mjunaid.akram@yahoo.com>
Date: Thu, 7 Nov 2024 16:47:34 +0500
Subject: [PATCH] iOS send 1/0 instead for nonfatal key

---
 .../crash_reporting_tests/200_handled_crashes_test.dart   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/example/integration_test/crash_reporting_tests/200_handled_crashes_test.dart b/example/integration_test/crash_reporting_tests/200_handled_crashes_test.dart
index ba7fa7e8..1a726d55 100644
--- a/example/integration_test/crash_reporting_tests/200_handled_crashes_test.dart
+++ b/example/integration_test/crash_reporting_tests/200_handled_crashes_test.dart
@@ -86,20 +86,20 @@ void main() {
         expect((crash['_error'] as String).contains(exceptionName), true);
         expect(crash['_custom'], segmentation);
         expect(crash['_logs'], crashLogs);
-        expect(crash['_nonfatal'], 'true');
+        expect(crash['_nonfatal'], Platform.isIOS ? 1 : 'true');
       } else if (i == 2) {
         expect((crash['_error'] as String).contains(exceptionName), true);
         expect(crash['_custom'], segmentation);
         expect(crash['_logs'], crashLogs);
-        expect(crash['_nonfatal'], 'false');
+        expect(crash['_nonfatal'], Platform.isIOS ? 0 : 'false');
       } else if (i == 3) {
         expect((crash['_error'] as String).contains('IntegerDivisionByZeroException'), true);
         expect(crash['_logs'], crashLogs);
-        expect(crash['_nonfatal'], 'true');
+        expect(crash['_nonfatal'], Platform.isIOS ? 1 : 'true');
       } else if (i == 4) {
         expect((crash['_error'] as String).contains('IntegerDivisionByZeroException'), true);
         expect(crash['_logs'], crashLogs);
-        expect(crash['_nonfatal'], 'false');
+        expect(crash['_nonfatal'], Platform.isIOS ? 0 : 'false');
       } else if (i == 5) {
         expect((crash['_error'] as String).contains(throwAsyncErrorString), true);
         expect(crash['_logs'], crashLogs);