From 5646caf575747752d6863b9b5f384114325d6b55 Mon Sep 17 00:00:00 2001 From: Ahmed alaa Date: Sun, 20 Oct 2024 16:06:50 +0300 Subject: [PATCH] refactor: make mono-repo --- .circleci/config.yml | 10 +- .gitignore | 5 +- .metadata | 10 - LICENSE | 21 - analysis_options.yaml | 5 +- e2e/Utils/CaptainTest.cs | 4 +- melos.yaml | 3 +- .../instabug/flutter/generated/ApmPigeon.java | 617 ---------- .../flutter/generated/BugReportingPigeon.java | 522 -------- .../generated/CrashReportingPigeon.java | 152 --- .../generated/FeatureRequestsPigeon.java | 121 -- .../flutter/generated/InstabugLogPigeon.java | 224 ---- .../flutter/generated/InstabugPigeon.java | 1071 ----------------- .../generated/InstabugPrivateViewPigeon.java | 89 -- .../flutter/generated/RepliesPigeon.java | 287 ----- .../generated/SessionReplayPigeon.java | 210 ---- .../flutter/generated/SurveysPigeon.java | 373 ------ .../Instabug-Flutter}/example/.gitignore | 0 .../Instabug-Flutter}/example/.metadata | 0 .../Instabug-Flutter}/example/README.md | 0 .../example/android/.gitignore | 0 .../example/android/app/build.gradle | 0 .../android/app/src/debug/AndroidManifest.xml | 0 .../android/app/src/main/AndroidManifest.xml | 0 .../InstabugExampleMethodCallHandler.kt | 0 .../example/InstabugSample/MainActivity.kt | 0 .../main/res/drawable/launch_background.xml | 0 .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../app/src/main/res/values/styles.xml | 0 .../main/res/xml/network_security_config.xml | 0 .../app/src/profile/AndroidManifest.xml | 0 .../example/android/build.gradle | 0 .../example/android/gradle.properties | 0 .../android/gradle/wrapper/gradle-wrapper.jar | Bin .../gradle/wrapper/gradle-wrapper.properties | 0 .../Instabug-Flutter}/example/android/gradlew | 0 .../example/android/gradlew.bat | 0 .../example/android/settings.gradle | 0 .../example/android/settings_aar.gradle | 0 .../Instabug-Flutter}/example/ios/.gitignore | 0 .../ios/Flutter/AppFrameworkInfo.plist | 0 .../example/ios/Flutter/Debug.xcconfig | 0 .../example/ios/Flutter/Release.xcconfig | 0 .../example/ios/InstabugTests/ApmApiTests.m | 0 .../ios/InstabugTests/ArgsRegistryTests.m | 0 .../ios/InstabugTests/BugReportingApiTests.m | 0 .../InstabugTests/CrashReportingApiTests.m | 0 .../InstabugTests/FeatureRequestsApiTests.m | 0 .../example/ios/InstabugTests/Info.plist | 0 .../ios/InstabugTests/InstabugApiTests.m | 0 .../ios/InstabugTests/InstabugLogApiTests.m | 0 .../ios/InstabugTests/RepliesApiTests.m | 0 .../ios/InstabugTests/SessionReplayApiTests.m | 0 .../ios/InstabugTests/SurveysApiTests.m | 0 .../example/ios/InstabugTests/Util/Apm+Test.h | 0 .../InstabugTests/Util/IBGCrashReporting+CP.h | 0 .../Util/IBGNetworkLogger+Test.h | 0 .../ios/InstabugTests/Util/IBGSurvey+Test.h | 0 .../ios/InstabugTests/Util/Instabug+Test.h | 0 .../Instabug-Flutter}/example/ios/Podfile | 0 .../example/ios/Podfile.lock | 0 .../ios/Runner.xcodeproj/project.pbxproj | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/WorkspaceSettings.xcsettings | 0 .../xcshareddata/xcschemes/Runner.xcscheme | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/WorkspaceSettings.xcsettings | 0 .../example/ios/Runner/AppDelegate.swift | 0 .../AppIcon.appiconset/Contents.json | 0 .../Icon-App-1024x1024@1x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@1x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@2x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@3x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@1x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@2x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@3x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@1x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@2x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@3x.png | Bin .../AppIcon.appiconset/Icon-App-60x60@2x.png | Bin .../AppIcon.appiconset/Icon-App-60x60@3x.png | Bin .../AppIcon.appiconset/Icon-App-76x76@1x.png | Bin .../AppIcon.appiconset/Icon-App-76x76@2x.png | Bin .../Icon-App-83.5x83.5@2x.png | Bin .../LaunchImage.imageset/Contents.json | 0 .../LaunchImage.imageset/LaunchImage.png | Bin .../LaunchImage.imageset/LaunchImage@2x.png | Bin .../LaunchImage.imageset/LaunchImage@3x.png | Bin .../LaunchImage.imageset/README.md | 0 .../Runner/Base.lproj/LaunchScreen.storyboard | 0 .../ios/Runner/Base.lproj/Main.storyboard | 0 .../example/ios/Runner/Info.plist | 0 .../Runner/InstabugExampleMethodCallHandler.h | 0 .../Runner/InstabugExampleMethodCallHandler.m | 0 .../ios/Runner/Runner-Bridging-Header.h | 0 .../Instabug-Flutter}/example/lib/main.dart | 0 .../example/lib/src/app_routes.dart | 0 .../src/components/fatal_crashes_content.dart | 0 .../lib/src/components/flows_content.dart | 0 .../lib/src/components/network_content.dart | 0 .../components/non_fatal_crashes_content.dart | 0 .../example/lib/src/components/page.dart | 0 .../lib/src/components/traces_content.dart | 0 ...stabug_flutter_example_method_channel.dart | 0 .../example/lib/src/screens/apm_page.dart | 0 .../example/lib/src/screens/complex_page.dart | 0 .../example/lib/src/screens/crashes_page.dart | 0 .../example/lib/src/screens/my_home_page.dart | 0 ...reen_capture_premature_extension_page.dart | 0 .../lib/src/screens/screen_loading_page.dart | 0 .../lib/src/widget/instabug_button.dart | 0 .../instabug_clipboard_icon_button.dart | 0 .../src/widget/instabug_clipboard_input.dart | 0 .../lib/src/widget/instabug_text_field.dart | 0 .../example/lib/src/widget/nested_view.dart | 0 .../example/lib/src/widget/section_title.dart | 0 .../Instabug-Flutter}/example/pubspec.lock | 8 +- .../Instabug-Flutter}/example/pubspec.yaml | 2 +- .../example/pubspec_overrides.yaml | 4 + .../example/test_driver/example.dart | 0 .../ios/Classes/Generated/ApmPigeon.h | 42 - .../ios/Classes/Generated/ApmPigeon.m | 416 ------- .../Classes/Generated/BugReportingPigeon.h | 47 - .../Classes/Generated/BugReportingPigeon.m | 383 ------ .../Classes/Generated/CrashReportingPigeon.h | 25 - .../Classes/Generated/CrashReportingPigeon.m | 97 -- .../Classes/Generated/FeatureRequestsPigeon.h | 24 - .../Classes/Generated/FeatureRequestsPigeon.m | 73 -- .../ios/Classes/Generated/InstabugLogPigeon.h | 28 - .../ios/Classes/Generated/InstabugLogPigeon.m | 148 --- .../ios/Classes/Generated/InstabugPigeon.h | 62 - .../ios/Classes/Generated/InstabugPigeon.m | 747 ------------ .../Generated/InstabugPrivateViewPigeon.h | 22 - .../Generated/InstabugPrivateViewPigeon.m | 52 - .../ios/Classes/Generated/RepliesPigeon.h | 37 - .../ios/Classes/Generated/RepliesPigeon.m | 192 --- .../Classes/Generated/SessionReplayPigeon.h | 27 - .../Classes/Generated/SessionReplayPigeon.m | 129 -- .../ios/Classes/Generated/SurveysPigeon.h | 41 - .../ios/Classes/Generated/SurveysPigeon.m | 259 ---- 146 files changed, 23 insertions(+), 6566 deletions(-) delete mode 100644 .metadata delete mode 100644 LICENSE delete mode 100644 packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/ApmPigeon.java delete mode 100644 packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/BugReportingPigeon.java delete mode 100644 packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/CrashReportingPigeon.java delete mode 100644 packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/FeatureRequestsPigeon.java delete mode 100644 packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/InstabugLogPigeon.java delete mode 100644 packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/InstabugPigeon.java delete mode 100644 packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/InstabugPrivateViewPigeon.java delete mode 100644 packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/RepliesPigeon.java delete mode 100644 packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/SessionReplayPigeon.java delete mode 100644 packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/SurveysPigeon.java rename {apps => packages/Instabug-Flutter}/example/.gitignore (100%) rename {apps => packages/Instabug-Flutter}/example/.metadata (100%) rename {apps => packages/Instabug-Flutter}/example/README.md (100%) rename {apps => packages/Instabug-Flutter}/example/android/.gitignore (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/build.gradle (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/debug/AndroidManifest.xml (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/main/AndroidManifest.xml (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/main/kotlin/com/example/InstabugSample/InstabugExampleMethodCallHandler.kt (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/main/kotlin/com/example/InstabugSample/MainActivity.kt (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/main/res/drawable/launch_background.xml (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/main/res/values/styles.xml (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/main/res/xml/network_security_config.xml (100%) rename {apps => packages/Instabug-Flutter}/example/android/app/src/profile/AndroidManifest.xml (100%) rename {apps => packages/Instabug-Flutter}/example/android/build.gradle (100%) rename {apps => packages/Instabug-Flutter}/example/android/gradle.properties (100%) rename {apps => packages/Instabug-Flutter}/example/android/gradle/wrapper/gradle-wrapper.jar (100%) rename {apps => packages/Instabug-Flutter}/example/android/gradle/wrapper/gradle-wrapper.properties (100%) rename {apps => packages/Instabug-Flutter}/example/android/gradlew (100%) rename {apps => packages/Instabug-Flutter}/example/android/gradlew.bat (100%) rename {apps => packages/Instabug-Flutter}/example/android/settings.gradle (100%) rename {apps => packages/Instabug-Flutter}/example/android/settings_aar.gradle (100%) rename {apps => packages/Instabug-Flutter}/example/ios/.gitignore (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Flutter/AppFrameworkInfo.plist (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Flutter/Debug.xcconfig (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Flutter/Release.xcconfig (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/ApmApiTests.m (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/ArgsRegistryTests.m (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/BugReportingApiTests.m (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/CrashReportingApiTests.m (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/FeatureRequestsApiTests.m (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/Info.plist (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/InstabugApiTests.m (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/InstabugLogApiTests.m (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/RepliesApiTests.m (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/SessionReplayApiTests.m (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/SurveysApiTests.m (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/Util/Apm+Test.h (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/Util/IBGCrashReporting+CP.h (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/Util/IBGNetworkLogger+Test.h (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/Util/IBGSurvey+Test.h (100%) rename {apps => packages/Instabug-Flutter}/example/ios/InstabugTests/Util/Instabug+Test.h (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Podfile (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Podfile.lock (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner.xcodeproj/project.pbxproj (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner.xcworkspace/contents.xcworkspacedata (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/AppDelegate.swift (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Base.lproj/LaunchScreen.storyboard (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Base.lproj/Main.storyboard (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Info.plist (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/InstabugExampleMethodCallHandler.h (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/InstabugExampleMethodCallHandler.m (100%) rename {apps => packages/Instabug-Flutter}/example/ios/Runner/Runner-Bridging-Header.h (100%) rename {apps => packages/Instabug-Flutter}/example/lib/main.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/app_routes.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/components/fatal_crashes_content.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/components/flows_content.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/components/network_content.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/components/non_fatal_crashes_content.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/components/page.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/components/traces_content.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/native/instabug_flutter_example_method_channel.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/screens/apm_page.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/screens/complex_page.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/screens/crashes_page.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/screens/my_home_page.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/screens/screen_capture_premature_extension_page.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/screens/screen_loading_page.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/widget/instabug_button.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/widget/instabug_clipboard_icon_button.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/widget/instabug_clipboard_input.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/widget/instabug_text_field.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/widget/nested_view.dart (100%) rename {apps => packages/Instabug-Flutter}/example/lib/src/widget/section_title.dart (100%) rename {apps => packages/Instabug-Flutter}/example/pubspec.lock (97%) rename {apps => packages/Instabug-Flutter}/example/pubspec.yaml (98%) create mode 100644 packages/Instabug-Flutter/example/pubspec_overrides.yaml rename {apps => packages/Instabug-Flutter}/example/test_driver/example.dart (100%) delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/ApmPigeon.h delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/ApmPigeon.m delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/BugReportingPigeon.h delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/BugReportingPigeon.m delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/CrashReportingPigeon.h delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/CrashReportingPigeon.m delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/FeatureRequestsPigeon.h delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/FeatureRequestsPigeon.m delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/InstabugLogPigeon.h delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/InstabugLogPigeon.m delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/InstabugPigeon.h delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/InstabugPigeon.m delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/InstabugPrivateViewPigeon.h delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/InstabugPrivateViewPigeon.m delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/RepliesPigeon.h delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/RepliesPigeon.m delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/SessionReplayPigeon.h delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/SessionReplayPigeon.m delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/SurveysPigeon.h delete mode 100644 packages/Instabug-Flutter/ios/Classes/Generated/SurveysPigeon.m diff --git a/.circleci/config.yml b/.circleci/config.yml index 91843e0e1..0d00e3517 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -44,7 +44,7 @@ commands: command: sudo gem install cocoapods - run: name: Install Pods - working_directory: apps/example/ios + working_directory: packages/Instabug-Flutter/example/ios command: pod install --repo-update setup_captain: parameters: @@ -230,7 +230,7 @@ jobs: - advanced-checkout/shallow-checkout - setup_flutter - android/run-tests: - working-directory: apps/example/android + working-directory: packages/Instabug-Flutter/example/android test-command: ./gradlew test e2e_android_captain: @@ -247,7 +247,7 @@ jobs: run-tests-working-directory: e2e additional-avd-args: --device 3 system-image: system-images;android-33;default;x86_64 - post-emulator-launch-assemble-command: cd apps/example && flutter build apk --debug + post-emulator-launch-assemble-command: cd packages/Instabug-Flutter/example && flutter build apk --debug test-command: dotnet test test_ios: @@ -261,7 +261,7 @@ jobs: - setup_ios - run: name: Build and run tests - working_directory: ~/project/apps/example/ios + working_directory: ~/project/packages/Instabug-Flutter/example/ios command: | xcodebuild -allowProvisioningUpdates \ -workspace Runner.xcworkspace \ @@ -282,7 +282,7 @@ jobs: - setup_ios - run: name: Build Example App - working_directory: apps/example + working_directory: packages/Instabug-Flutter/example command: flutter build ios --simulator - run: name: Run E2E Tests diff --git a/.gitignore b/.gitignore index 071964ca9..7f7d8f666 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ # Generated files *.mocks.dart *.g.dart -android/**/generated/ -ios/**/Generated/ +packages/**/android/**/generated/ +packages/**ios/**/Generated/ # Miscellaneous *.class @@ -84,3 +84,4 @@ android/gradlew.bat !**/ios/**/default.pbxuser !**/ios/**/default.perspectivev3 !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages +/packages/Instabug-Flutter/lib/src/generated/ diff --git a/.metadata b/.metadata deleted file mode 100644 index 24472f12f..000000000 --- a/.metadata +++ /dev/null @@ -1,10 +0,0 @@ -# This file tracks properties of this Flutter project. -# Used by Flutter tool to assess capabilities and perform upgrades etc. -# -# This file should be version controlled and should not be manually edited. - -version: - revision: "2663184aa79047d0a33a14a3b607954f8fdd8730" - channel: "stable" - -project_type: package diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 80d729766..000000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Instabug - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/analysis_options.yaml b/analysis_options.yaml index 8b44fecbd..4f1f095e4 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -2,8 +2,9 @@ include: package:lint/analysis_options_package.yaml analyzer: exclude: - - "apps/example/**" - - "**/*.g.dart" + - "packages/**/*.g.dart" + - "packages/**/example/**" + linter: rules: diff --git a/e2e/Utils/CaptainTest.cs b/e2e/Utils/CaptainTest.cs index d2121cbc7..909709ac6 100644 --- a/e2e/Utils/CaptainTest.cs +++ b/e2e/Utils/CaptainTest.cs @@ -7,10 +7,10 @@ public class CaptainTest : IDisposable { private static readonly CaptainConfig _config = new() { - AndroidApp = Path.GetFullPath("../../../../apps/example/build/app/outputs/flutter-apk/app-debug.apk"), + AndroidApp = Path.GetFullPath("../../../../packages/Instabug-Flutter/example/build/app/outputs/flutter-apk/app-debug.apk"), AndroidAppId = "com.instabug.flutter.example", AndroidVersion = "13", - IosApp = Path.GetFullPath("../../../../apps/example/build/ios/iphonesimulator/Runner.app"), + IosApp = Path.GetFullPath("../../../../packages/Instabug-Flutter/example/build/ios/iphonesimulator/Runner.app"), IosAppId = "com.instabug.InstabugSample", IosVersion = "17.2", IosDevice = "iPhone 15 Pro Max" diff --git a/melos.yaml b/melos.yaml index 495e76ac6..d934daf73 100644 --- a/melos.yaml +++ b/melos.yaml @@ -1,9 +1,8 @@ name: instabug_flutter_mono packages: - - apps/* - packages/* - + - packages/*/** scripts: dart_bootstrap: run: dart pub get diff --git a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/ApmPigeon.java b/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/ApmPigeon.java deleted file mode 100644 index 1dcad08c5..000000000 --- a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/ApmPigeon.java +++ /dev/null @@ -1,617 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -package com.instabug.flutter.generated; - -import android.util.Log; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import io.flutter.plugin.common.BasicMessageChannel; -import io.flutter.plugin.common.BinaryMessenger; -import io.flutter.plugin.common.MessageCodec; -import io.flutter.plugin.common.StandardMessageCodec; -import java.io.ByteArrayOutputStream; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Generated class from Pigeon. */ -@SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) -public class ApmPigeon { - - /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ - public static class FlutterError extends RuntimeException { - - /** The error code. */ - public final String code; - - /** The error details. Must be a datatype supported by the api codec. */ - public final Object details; - - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) - { - super(message); - this.code = code; - this.details = details; - } - } - - @NonNull - protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList(3); - if (exception instanceof FlutterError) { - FlutterError error = (FlutterError) exception; - errorList.add(error.code); - errorList.add(error.getMessage()); - errorList.add(error.details); - } else { - errorList.add(exception.toString()); - errorList.add(exception.getClass().getSimpleName()); - errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); - } - return errorList; - } - - public interface Result { - @SuppressWarnings("UnknownNullness") - void success(T result); - - void error(@NonNull Throwable error); - } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ - public interface ApmHostApi { - - void setEnabled(@NonNull Boolean isEnabled); - - void isEnabled(@NonNull Result result); - - void setScreenLoadingEnabled(@NonNull Boolean isEnabled); - - void isScreenLoadingEnabled(@NonNull Result result); - - void setColdAppLaunchEnabled(@NonNull Boolean isEnabled); - - void setAutoUITraceEnabled(@NonNull Boolean isEnabled); - - void startExecutionTrace(@NonNull String id, @NonNull String name, @NonNull Result result); - - void startFlow(@NonNull String name); - - void setFlowAttribute(@NonNull String name, @NonNull String key, @Nullable String value); - - void endFlow(@NonNull String name); - - void setExecutionTraceAttribute(@NonNull String id, @NonNull String key, @NonNull String value); - - void endExecutionTrace(@NonNull String id); - - void startUITrace(@NonNull String name); - - void endUITrace(); - - void endAppLaunch(); - - void networkLogAndroid(@NonNull Map data); - - void startCpUiTrace(@NonNull String screenName, @NonNull Long microTimeStamp, @NonNull Long traceId); - - void reportScreenLoadingCP(@NonNull Long startTimeStampMicro, @NonNull Long durationMicro, @NonNull Long uiTraceId); - - void endScreenLoadingCP(@NonNull Long timeStampMicro, @NonNull Long uiTraceId); - - void isEndScreenLoadingEnabled(@NonNull Result result); - - /** The codec used by ApmHostApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - /**Sets up an instance of `ApmHostApi` to handle messages through the `binaryMessenger`. */ - static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable ApmHostApi api) { - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.setEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.isEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - Result resultCallback = - new Result() { - public void success(Boolean result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.isEnabled(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.setScreenLoadingEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setScreenLoadingEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.isScreenLoadingEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - Result resultCallback = - new Result() { - public void success(Boolean result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.isScreenLoadingEnabled(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.setColdAppLaunchEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setColdAppLaunchEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.setAutoUITraceEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setAutoUITraceEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.startExecutionTrace", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String idArg = (String) args.get(0); - String nameArg = (String) args.get(1); - Result resultCallback = - new Result() { - public void success(String result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.startExecutionTrace(idArg, nameArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.startFlow", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String nameArg = (String) args.get(0); - try { - api.startFlow(nameArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.setFlowAttribute", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String nameArg = (String) args.get(0); - String keyArg = (String) args.get(1); - String valueArg = (String) args.get(2); - try { - api.setFlowAttribute(nameArg, keyArg, valueArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.endFlow", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String nameArg = (String) args.get(0); - try { - api.endFlow(nameArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.setExecutionTraceAttribute", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String idArg = (String) args.get(0); - String keyArg = (String) args.get(1); - String valueArg = (String) args.get(2); - try { - api.setExecutionTraceAttribute(idArg, keyArg, valueArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.endExecutionTrace", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String idArg = (String) args.get(0); - try { - api.endExecutionTrace(idArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.startUITrace", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String nameArg = (String) args.get(0); - try { - api.startUITrace(nameArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.endUITrace", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.endUITrace(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.endAppLaunch", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.endAppLaunch(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.networkLogAndroid", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Map dataArg = (Map) args.get(0); - try { - api.networkLogAndroid(dataArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.startCpUiTrace", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String screenNameArg = (String) args.get(0); - Number microTimeStampArg = (Number) args.get(1); - Number traceIdArg = (Number) args.get(2); - try { - api.startCpUiTrace(screenNameArg, (microTimeStampArg == null) ? null : microTimeStampArg.longValue(), (traceIdArg == null) ? null : traceIdArg.longValue()); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.reportScreenLoadingCP", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Number startTimeStampMicroArg = (Number) args.get(0); - Number durationMicroArg = (Number) args.get(1); - Number uiTraceIdArg = (Number) args.get(2); - try { - api.reportScreenLoadingCP((startTimeStampMicroArg == null) ? null : startTimeStampMicroArg.longValue(), (durationMicroArg == null) ? null : durationMicroArg.longValue(), (uiTraceIdArg == null) ? null : uiTraceIdArg.longValue()); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.endScreenLoadingCP", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Number timeStampMicroArg = (Number) args.get(0); - Number uiTraceIdArg = (Number) args.get(1); - try { - api.endScreenLoadingCP((timeStampMicroArg == null) ? null : timeStampMicroArg.longValue(), (uiTraceIdArg == null) ? null : uiTraceIdArg.longValue()); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.ApmHostApi.isEndScreenLoadingEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - Result resultCallback = - new Result() { - public void success(Boolean result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.isEndScreenLoadingEnabled(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - } - } -} diff --git a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/BugReportingPigeon.java b/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/BugReportingPigeon.java deleted file mode 100644 index 88f519a6c..000000000 --- a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/BugReportingPigeon.java +++ /dev/null @@ -1,522 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -package com.instabug.flutter.generated; - -import android.util.Log; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import io.flutter.plugin.common.BasicMessageChannel; -import io.flutter.plugin.common.BinaryMessenger; -import io.flutter.plugin.common.MessageCodec; -import io.flutter.plugin.common.StandardMessageCodec; -import java.io.ByteArrayOutputStream; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Generated class from Pigeon. */ -@SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) -public class BugReportingPigeon { - - /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ - public static class FlutterError extends RuntimeException { - - /** The error code. */ - public final String code; - - /** The error details. Must be a datatype supported by the api codec. */ - public final Object details; - - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) - { - super(message); - this.code = code; - this.details = details; - } - } - - @NonNull - protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList(3); - if (exception instanceof FlutterError) { - FlutterError error = (FlutterError) exception; - errorList.add(error.code); - errorList.add(error.getMessage()); - errorList.add(error.details); - } else { - errorList.add(exception.toString()); - errorList.add(exception.getClass().getSimpleName()); - errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); - } - return errorList; - } - /** Generated class from Pigeon that represents Flutter messages that can be called from Java. */ - public static class BugReportingFlutterApi { - private final @NonNull BinaryMessenger binaryMessenger; - - public BugReportingFlutterApi(@NonNull BinaryMessenger argBinaryMessenger) { - this.binaryMessenger = argBinaryMessenger; - } - - /** Public interface for sending reply. */ - @SuppressWarnings("UnknownNullness") - public interface Reply { - void reply(T reply); - } - /** The codec used by BugReportingFlutterApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - public void onSdkInvoke(@NonNull Reply callback) { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingFlutterApi.onSdkInvoke", getCodec()); - channel.send( - null, - channelReply -> callback.reply(null)); - } - public void onSdkDismiss(@NonNull String dismissTypeArg, @NonNull String reportTypeArg, @NonNull Reply callback) { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingFlutterApi.onSdkDismiss", getCodec()); - channel.send( - new ArrayList(Arrays.asList(dismissTypeArg, reportTypeArg)), - channelReply -> callback.reply(null)); - } - } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ - public interface BugReportingHostApi { - - void setEnabled(@NonNull Boolean isEnabled); - - void show(@NonNull String reportType, @NonNull List invocationOptions); - - void setInvocationEvents(@NonNull List events); - - void setReportTypes(@NonNull List types); - - void setExtendedBugReportMode(@NonNull String mode); - - void setInvocationOptions(@NonNull List options); - - void setFloatingButtonEdge(@NonNull String edge, @NonNull Long offset); - - void setVideoRecordingFloatingButtonPosition(@NonNull String position); - - void setShakingThresholdForiPhone(@NonNull Double threshold); - - void setShakingThresholdForiPad(@NonNull Double threshold); - - void setShakingThresholdForAndroid(@NonNull Long threshold); - - void setEnabledAttachmentTypes(@NonNull Boolean screenshot, @NonNull Boolean extraScreenshot, @NonNull Boolean galleryImage, @NonNull Boolean screenRecording); - - void bindOnInvokeCallback(); - - void bindOnDismissCallback(); - - void setDisclaimerText(@NonNull String text); - - void setCommentMinimumCharacterCount(@NonNull Long limit, @Nullable List reportTypes); - - /** The codec used by BugReportingHostApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - /**Sets up an instance of `BugReportingHostApi` to handle messages through the `binaryMessenger`. */ - static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable BugReportingHostApi api) { - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.show", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String reportTypeArg = (String) args.get(0); - List invocationOptionsArg = (List) args.get(1); - try { - api.show(reportTypeArg, invocationOptionsArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setInvocationEvents", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - List eventsArg = (List) args.get(0); - try { - api.setInvocationEvents(eventsArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setReportTypes", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - List typesArg = (List) args.get(0); - try { - api.setReportTypes(typesArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setExtendedBugReportMode", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String modeArg = (String) args.get(0); - try { - api.setExtendedBugReportMode(modeArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setInvocationOptions", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - List optionsArg = (List) args.get(0); - try { - api.setInvocationOptions(optionsArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setFloatingButtonEdge", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String edgeArg = (String) args.get(0); - Number offsetArg = (Number) args.get(1); - try { - api.setFloatingButtonEdge(edgeArg, (offsetArg == null) ? null : offsetArg.longValue()); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setVideoRecordingFloatingButtonPosition", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String positionArg = (String) args.get(0); - try { - api.setVideoRecordingFloatingButtonPosition(positionArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setShakingThresholdForiPhone", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Double thresholdArg = (Double) args.get(0); - try { - api.setShakingThresholdForiPhone(thresholdArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setShakingThresholdForiPad", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Double thresholdArg = (Double) args.get(0); - try { - api.setShakingThresholdForiPad(thresholdArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setShakingThresholdForAndroid", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Number thresholdArg = (Number) args.get(0); - try { - api.setShakingThresholdForAndroid((thresholdArg == null) ? null : thresholdArg.longValue()); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setEnabledAttachmentTypes", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean screenshotArg = (Boolean) args.get(0); - Boolean extraScreenshotArg = (Boolean) args.get(1); - Boolean galleryImageArg = (Boolean) args.get(2); - Boolean screenRecordingArg = (Boolean) args.get(3); - try { - api.setEnabledAttachmentTypes(screenshotArg, extraScreenshotArg, galleryImageArg, screenRecordingArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.bindOnInvokeCallback", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.bindOnInvokeCallback(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.bindOnDismissCallback", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.bindOnDismissCallback(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setDisclaimerText", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String textArg = (String) args.get(0); - try { - api.setDisclaimerText(textArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setCommentMinimumCharacterCount", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Number limitArg = (Number) args.get(0); - List reportTypesArg = (List) args.get(1); - try { - api.setCommentMinimumCharacterCount((limitArg == null) ? null : limitArg.longValue(), reportTypesArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - } - } -} diff --git a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/CrashReportingPigeon.java b/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/CrashReportingPigeon.java deleted file mode 100644 index 3994a6bb8..000000000 --- a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/CrashReportingPigeon.java +++ /dev/null @@ -1,152 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -package com.instabug.flutter.generated; - -import android.util.Log; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import io.flutter.plugin.common.BasicMessageChannel; -import io.flutter.plugin.common.BinaryMessenger; -import io.flutter.plugin.common.MessageCodec; -import io.flutter.plugin.common.StandardMessageCodec; -import java.io.ByteArrayOutputStream; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Generated class from Pigeon. */ -@SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) -public class CrashReportingPigeon { - - /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ - public static class FlutterError extends RuntimeException { - - /** The error code. */ - public final String code; - - /** The error details. Must be a datatype supported by the api codec. */ - public final Object details; - - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) - { - super(message); - this.code = code; - this.details = details; - } - } - - @NonNull - protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList(3); - if (exception instanceof FlutterError) { - FlutterError error = (FlutterError) exception; - errorList.add(error.code); - errorList.add(error.getMessage()); - errorList.add(error.details); - } else { - errorList.add(exception.toString()); - errorList.add(exception.getClass().getSimpleName()); - errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); - } - return errorList; - } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ - public interface CrashReportingHostApi { - - void setEnabled(@NonNull Boolean isEnabled); - - void send(@NonNull String jsonCrash, @NonNull Boolean isHandled); - - void sendNonFatalError(@NonNull String jsonCrash, @Nullable Map userAttributes, @Nullable String fingerprint, @NonNull String nonFatalExceptionLevel); - - /** The codec used by CrashReportingHostApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - /**Sets up an instance of `CrashReportingHostApi` to handle messages through the `binaryMessenger`. */ - static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable CrashReportingHostApi api) { - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.CrashReportingHostApi.setEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.CrashReportingHostApi.send", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String jsonCrashArg = (String) args.get(0); - Boolean isHandledArg = (Boolean) args.get(1); - try { - api.send(jsonCrashArg, isHandledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.CrashReportingHostApi.sendNonFatalError", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String jsonCrashArg = (String) args.get(0); - Map userAttributesArg = (Map) args.get(1); - String fingerprintArg = (String) args.get(2); - String nonFatalExceptionLevelArg = (String) args.get(3); - try { - api.sendNonFatalError(jsonCrashArg, userAttributesArg, fingerprintArg, nonFatalExceptionLevelArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - } - } -} diff --git a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/FeatureRequestsPigeon.java b/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/FeatureRequestsPigeon.java deleted file mode 100644 index 6afef5901..000000000 --- a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/FeatureRequestsPigeon.java +++ /dev/null @@ -1,121 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -package com.instabug.flutter.generated; - -import android.util.Log; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import io.flutter.plugin.common.BasicMessageChannel; -import io.flutter.plugin.common.BinaryMessenger; -import io.flutter.plugin.common.MessageCodec; -import io.flutter.plugin.common.StandardMessageCodec; -import java.io.ByteArrayOutputStream; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Generated class from Pigeon. */ -@SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) -public class FeatureRequestsPigeon { - - /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ - public static class FlutterError extends RuntimeException { - - /** The error code. */ - public final String code; - - /** The error details. Must be a datatype supported by the api codec. */ - public final Object details; - - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) - { - super(message); - this.code = code; - this.details = details; - } - } - - @NonNull - protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList(3); - if (exception instanceof FlutterError) { - FlutterError error = (FlutterError) exception; - errorList.add(error.code); - errorList.add(error.getMessage()); - errorList.add(error.details); - } else { - errorList.add(exception.toString()); - errorList.add(exception.getClass().getSimpleName()); - errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); - } - return errorList; - } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ - public interface FeatureRequestsHostApi { - - void show(); - - void setEmailFieldRequired(@NonNull Boolean isRequired, @NonNull List actionTypes); - - /** The codec used by FeatureRequestsHostApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - /**Sets up an instance of `FeatureRequestsHostApi` to handle messages through the `binaryMessenger`. */ - static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable FeatureRequestsHostApi api) { - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.FeatureRequestsHostApi.show", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.show(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.FeatureRequestsHostApi.setEmailFieldRequired", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isRequiredArg = (Boolean) args.get(0); - List actionTypesArg = (List) args.get(1); - try { - api.setEmailFieldRequired(isRequiredArg, actionTypesArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - } - } -} diff --git a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/InstabugLogPigeon.java b/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/InstabugLogPigeon.java deleted file mode 100644 index ba2a09cfd..000000000 --- a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/InstabugLogPigeon.java +++ /dev/null @@ -1,224 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -package com.instabug.flutter.generated; - -import android.util.Log; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import io.flutter.plugin.common.BasicMessageChannel; -import io.flutter.plugin.common.BinaryMessenger; -import io.flutter.plugin.common.MessageCodec; -import io.flutter.plugin.common.StandardMessageCodec; -import java.io.ByteArrayOutputStream; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Generated class from Pigeon. */ -@SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) -public class InstabugLogPigeon { - - /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ - public static class FlutterError extends RuntimeException { - - /** The error code. */ - public final String code; - - /** The error details. Must be a datatype supported by the api codec. */ - public final Object details; - - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) - { - super(message); - this.code = code; - this.details = details; - } - } - - @NonNull - protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList(3); - if (exception instanceof FlutterError) { - FlutterError error = (FlutterError) exception; - errorList.add(error.code); - errorList.add(error.getMessage()); - errorList.add(error.details); - } else { - errorList.add(exception.toString()); - errorList.add(exception.getClass().getSimpleName()); - errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); - } - return errorList; - } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ - public interface InstabugLogHostApi { - - void logVerbose(@NonNull String message); - - void logDebug(@NonNull String message); - - void logInfo(@NonNull String message); - - void logWarn(@NonNull String message); - - void logError(@NonNull String message); - - void clearAllLogs(); - - /** The codec used by InstabugLogHostApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - /**Sets up an instance of `InstabugLogHostApi` to handle messages through the `binaryMessenger`. */ - static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable InstabugLogHostApi api) { - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logVerbose", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String messageArg = (String) args.get(0); - try { - api.logVerbose(messageArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logDebug", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String messageArg = (String) args.get(0); - try { - api.logDebug(messageArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logInfo", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String messageArg = (String) args.get(0); - try { - api.logInfo(messageArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logWarn", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String messageArg = (String) args.get(0); - try { - api.logWarn(messageArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logError", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String messageArg = (String) args.get(0); - try { - api.logError(messageArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.clearAllLogs", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.clearAllLogs(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - } - } -} diff --git a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/InstabugPigeon.java b/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/InstabugPigeon.java deleted file mode 100644 index 1352651ed..000000000 --- a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/InstabugPigeon.java +++ /dev/null @@ -1,1071 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -package com.instabug.flutter.generated; - -import android.util.Log; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import io.flutter.plugin.common.BasicMessageChannel; -import io.flutter.plugin.common.BinaryMessenger; -import io.flutter.plugin.common.MessageCodec; -import io.flutter.plugin.common.StandardMessageCodec; -import java.io.ByteArrayOutputStream; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Generated class from Pigeon. */ -@SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) -public class InstabugPigeon { - - /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ - public static class FlutterError extends RuntimeException { - - /** The error code. */ - public final String code; - - /** The error details. Must be a datatype supported by the api codec. */ - public final Object details; - - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) - { - super(message); - this.code = code; - this.details = details; - } - } - - @NonNull - protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList(3); - if (exception instanceof FlutterError) { - FlutterError error = (FlutterError) exception; - errorList.add(error.code); - errorList.add(error.getMessage()); - errorList.add(error.details); - } else { - errorList.add(exception.toString()); - errorList.add(exception.getClass().getSimpleName()); - errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); - } - return errorList; - } - - public interface Result { - @SuppressWarnings("UnknownNullness") - void success(T result); - - void error(@NonNull Throwable error); - } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ - public interface InstabugHostApi { - - void setEnabled(@NonNull Boolean isEnabled); - - @NonNull - Boolean isEnabled(); - - @NonNull - Boolean isBuilt(); - - void init(@NonNull String token, @NonNull List invocationEvents, @NonNull String debugLogsLevel); - - void show(); - - void showWelcomeMessageWithMode(@NonNull String mode); - - void identifyUser(@NonNull String email, @Nullable String name, @Nullable String userId); - - void setUserData(@NonNull String data); - - void logUserEvent(@NonNull String name); - - void logOut(); - - void setLocale(@NonNull String locale); - - void setColorTheme(@NonNull String theme); - - void setWelcomeMessageMode(@NonNull String mode); - - void setPrimaryColor(@NonNull Long color); - - void setSessionProfilerEnabled(@NonNull Boolean enabled); - - void setValueForStringWithKey(@NonNull String value, @NonNull String key); - - void appendTags(@NonNull List tags); - - void resetTags(); - - void getTags(@NonNull Result> result); - - void addExperiments(@NonNull List experiments); - - void removeExperiments(@NonNull List experiments); - - void clearAllExperiments(); - - void addFeatureFlags(@NonNull Map featureFlagsMap); - - void removeFeatureFlags(@NonNull List featureFlags); - - void removeAllFeatureFlags(); - - void setUserAttribute(@NonNull String value, @NonNull String key); - - void removeUserAttribute(@NonNull String key); - - void getUserAttributeForKey(@NonNull String key, @NonNull Result result); - - void getUserAttributes(@NonNull Result> result); - - void setReproStepsConfig(@Nullable String bugMode, @Nullable String crashMode, @Nullable String sessionReplayMode); - - void reportScreenChange(@NonNull String screenName); - - void setCustomBrandingImage(@NonNull String light, @NonNull String dark); - - void setFont(@NonNull String font); - - void addFileAttachmentWithURL(@NonNull String filePath, @NonNull String fileName); - - void addFileAttachmentWithData(@NonNull byte[] data, @NonNull String fileName); - - void clearFileAttachments(); - - void networkLog(@NonNull Map data); - - void willRedirectToStore(); - - /** The codec used by InstabugHostApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - /**Sets up an instance of `InstabugHostApi` to handle messages through the `binaryMessenger`. */ - static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable InstabugHostApi api) { - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.isEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - Boolean output = api.isEnabled(); - wrapped.add(0, output); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.isBuilt", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - Boolean output = api.isBuilt(); - wrapped.add(0, output); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.init", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String tokenArg = (String) args.get(0); - List invocationEventsArg = (List) args.get(1); - String debugLogsLevelArg = (String) args.get(2); - try { - api.init(tokenArg, invocationEventsArg, debugLogsLevelArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.show", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.show(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.showWelcomeMessageWithMode", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String modeArg = (String) args.get(0); - try { - api.showWelcomeMessageWithMode(modeArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.identifyUser", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String emailArg = (String) args.get(0); - String nameArg = (String) args.get(1); - String userIdArg = (String) args.get(2); - try { - api.identifyUser(emailArg, nameArg, userIdArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setUserData", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String dataArg = (String) args.get(0); - try { - api.setUserData(dataArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.logUserEvent", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String nameArg = (String) args.get(0); - try { - api.logUserEvent(nameArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.logOut", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.logOut(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setLocale", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String localeArg = (String) args.get(0); - try { - api.setLocale(localeArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setColorTheme", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String themeArg = (String) args.get(0); - try { - api.setColorTheme(themeArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setWelcomeMessageMode", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String modeArg = (String) args.get(0); - try { - api.setWelcomeMessageMode(modeArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setPrimaryColor", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Number colorArg = (Number) args.get(0); - try { - api.setPrimaryColor((colorArg == null) ? null : colorArg.longValue()); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setSessionProfilerEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean enabledArg = (Boolean) args.get(0); - try { - api.setSessionProfilerEnabled(enabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setValueForStringWithKey", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String valueArg = (String) args.get(0); - String keyArg = (String) args.get(1); - try { - api.setValueForStringWithKey(valueArg, keyArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.appendTags", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - List tagsArg = (List) args.get(0); - try { - api.appendTags(tagsArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.resetTags", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.resetTags(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.getTags", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - Result> resultCallback = - new Result>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.getTags(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.addExperiments", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - List experimentsArg = (List) args.get(0); - try { - api.addExperiments(experimentsArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.removeExperiments", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - List experimentsArg = (List) args.get(0); - try { - api.removeExperiments(experimentsArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.clearAllExperiments", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.clearAllExperiments(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.addFeatureFlags", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Map featureFlagsMapArg = (Map) args.get(0); - try { - api.addFeatureFlags(featureFlagsMapArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.removeFeatureFlags", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - List featureFlagsArg = (List) args.get(0); - try { - api.removeFeatureFlags(featureFlagsArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.removeAllFeatureFlags", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.removeAllFeatureFlags(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setUserAttribute", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String valueArg = (String) args.get(0); - String keyArg = (String) args.get(1); - try { - api.setUserAttribute(valueArg, keyArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.removeUserAttribute", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String keyArg = (String) args.get(0); - try { - api.removeUserAttribute(keyArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.getUserAttributeForKey", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String keyArg = (String) args.get(0); - Result resultCallback = - new Result() { - public void success(String result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.getUserAttributeForKey(keyArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.getUserAttributes", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.getUserAttributes(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setReproStepsConfig", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String bugModeArg = (String) args.get(0); - String crashModeArg = (String) args.get(1); - String sessionReplayModeArg = (String) args.get(2); - try { - api.setReproStepsConfig(bugModeArg, crashModeArg, sessionReplayModeArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.reportScreenChange", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String screenNameArg = (String) args.get(0); - try { - api.reportScreenChange(screenNameArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setCustomBrandingImage", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String lightArg = (String) args.get(0); - String darkArg = (String) args.get(1); - try { - api.setCustomBrandingImage(lightArg, darkArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setFont", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String fontArg = (String) args.get(0); - try { - api.setFont(fontArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.addFileAttachmentWithURL", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String filePathArg = (String) args.get(0); - String fileNameArg = (String) args.get(1); - try { - api.addFileAttachmentWithURL(filePathArg, fileNameArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.addFileAttachmentWithData", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - byte[] dataArg = (byte[]) args.get(0); - String fileNameArg = (String) args.get(1); - try { - api.addFileAttachmentWithData(dataArg, fileNameArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.clearFileAttachments", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.clearFileAttachments(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.networkLog", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Map dataArg = (Map) args.get(0); - try { - api.networkLog(dataArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugHostApi.willRedirectToStore", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.willRedirectToStore(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - } - } -} diff --git a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/InstabugPrivateViewPigeon.java b/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/InstabugPrivateViewPigeon.java deleted file mode 100644 index 08417be9a..000000000 --- a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/InstabugPrivateViewPigeon.java +++ /dev/null @@ -1,89 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -package com.instabug.flutter.generated; - -import android.util.Log; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import io.flutter.plugin.common.BasicMessageChannel; -import io.flutter.plugin.common.BinaryMessenger; -import io.flutter.plugin.common.MessageCodec; -import io.flutter.plugin.common.StandardMessageCodec; -import java.io.ByteArrayOutputStream; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Generated class from Pigeon. */ -@SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) -public class InstabugPrivateViewPigeon { - - /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ - public static class FlutterError extends RuntimeException { - - /** The error code. */ - public final String code; - - /** The error details. Must be a datatype supported by the api codec. */ - public final Object details; - - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) - { - super(message); - this.code = code; - this.details = details; - } - } - - @NonNull - protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList(3); - if (exception instanceof FlutterError) { - FlutterError error = (FlutterError) exception; - errorList.add(error.code); - errorList.add(error.getMessage()); - errorList.add(error.details); - } else { - errorList.add(exception.toString()); - errorList.add(exception.getClass().getSimpleName()); - errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); - } - return errorList; - } - /** Generated class from Pigeon that represents Flutter messages that can be called from Java. */ - public static class InstabugPrivateViewApi { - private final @NonNull BinaryMessenger binaryMessenger; - - public InstabugPrivateViewApi(@NonNull BinaryMessenger argBinaryMessenger) { - this.binaryMessenger = argBinaryMessenger; - } - - /** Public interface for sending reply. */ - @SuppressWarnings("UnknownNullness") - public interface Reply { - void reply(T reply); - } - /** The codec used by InstabugPrivateViewApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - public void getPrivateViews(@NonNull Reply> callback) { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.InstabugPrivateViewApi.getPrivateViews", getCodec()); - channel.send( - null, - channelReply -> { - @SuppressWarnings("ConstantConditions") - List output = (List) channelReply; - callback.reply(output); - }); - } - } -} diff --git a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/RepliesPigeon.java b/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/RepliesPigeon.java deleted file mode 100644 index 3a22780c5..000000000 --- a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/RepliesPigeon.java +++ /dev/null @@ -1,287 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -package com.instabug.flutter.generated; - -import android.util.Log; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import io.flutter.plugin.common.BasicMessageChannel; -import io.flutter.plugin.common.BinaryMessenger; -import io.flutter.plugin.common.MessageCodec; -import io.flutter.plugin.common.StandardMessageCodec; -import java.io.ByteArrayOutputStream; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Generated class from Pigeon. */ -@SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) -public class RepliesPigeon { - - /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ - public static class FlutterError extends RuntimeException { - - /** The error code. */ - public final String code; - - /** The error details. Must be a datatype supported by the api codec. */ - public final Object details; - - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) - { - super(message); - this.code = code; - this.details = details; - } - } - - @NonNull - protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList(3); - if (exception instanceof FlutterError) { - FlutterError error = (FlutterError) exception; - errorList.add(error.code); - errorList.add(error.getMessage()); - errorList.add(error.details); - } else { - errorList.add(exception.toString()); - errorList.add(exception.getClass().getSimpleName()); - errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); - } - return errorList; - } - - public interface Result { - @SuppressWarnings("UnknownNullness") - void success(T result); - - void error(@NonNull Throwable error); - } - /** Generated class from Pigeon that represents Flutter messages that can be called from Java. */ - public static class RepliesFlutterApi { - private final @NonNull BinaryMessenger binaryMessenger; - - public RepliesFlutterApi(@NonNull BinaryMessenger argBinaryMessenger) { - this.binaryMessenger = argBinaryMessenger; - } - - /** Public interface for sending reply. */ - @SuppressWarnings("UnknownNullness") - public interface Reply { - void reply(T reply); - } - /** The codec used by RepliesFlutterApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - public void onNewReply(@NonNull Reply callback) { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.RepliesFlutterApi.onNewReply", getCodec()); - channel.send( - null, - channelReply -> callback.reply(null)); - } - } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ - public interface RepliesHostApi { - - void setEnabled(@NonNull Boolean isEnabled); - - void show(); - - void setInAppNotificationsEnabled(@NonNull Boolean isEnabled); - - void setInAppNotificationSound(@NonNull Boolean isEnabled); - - void getUnreadRepliesCount(@NonNull Result result); - - void hasChats(@NonNull Result result); - - void bindOnNewReplyCallback(); - - /** The codec used by RepliesHostApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - /**Sets up an instance of `RepliesHostApi` to handle messages through the `binaryMessenger`. */ - static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable RepliesHostApi api) { - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.RepliesHostApi.setEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.RepliesHostApi.show", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.show(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.RepliesHostApi.setInAppNotificationsEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setInAppNotificationsEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.RepliesHostApi.setInAppNotificationSound", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setInAppNotificationSound(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.RepliesHostApi.getUnreadRepliesCount", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - Result resultCallback = - new Result() { - public void success(Long result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.getUnreadRepliesCount(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.RepliesHostApi.hasChats", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - Result resultCallback = - new Result() { - public void success(Boolean result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.hasChats(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.RepliesHostApi.bindOnNewReplyCallback", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.bindOnNewReplyCallback(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - } - } -} diff --git a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/SessionReplayPigeon.java b/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/SessionReplayPigeon.java deleted file mode 100644 index 9b9a7b8eb..000000000 --- a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/SessionReplayPigeon.java +++ /dev/null @@ -1,210 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -package com.instabug.flutter.generated; - -import android.util.Log; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import io.flutter.plugin.common.BasicMessageChannel; -import io.flutter.plugin.common.BinaryMessenger; -import io.flutter.plugin.common.MessageCodec; -import io.flutter.plugin.common.StandardMessageCodec; -import java.io.ByteArrayOutputStream; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Generated class from Pigeon. */ -@SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) -public class SessionReplayPigeon { - - /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ - public static class FlutterError extends RuntimeException { - - /** The error code. */ - public final String code; - - /** The error details. Must be a datatype supported by the api codec. */ - public final Object details; - - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) - { - super(message); - this.code = code; - this.details = details; - } - } - - @NonNull - protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList(3); - if (exception instanceof FlutterError) { - FlutterError error = (FlutterError) exception; - errorList.add(error.code); - errorList.add(error.getMessage()); - errorList.add(error.details); - } else { - errorList.add(exception.toString()); - errorList.add(exception.getClass().getSimpleName()); - errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); - } - return errorList; - } - - public interface Result { - @SuppressWarnings("UnknownNullness") - void success(T result); - - void error(@NonNull Throwable error); - } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ - public interface SessionReplayHostApi { - - void setEnabled(@NonNull Boolean isEnabled); - - void setNetworkLogsEnabled(@NonNull Boolean isEnabled); - - void setInstabugLogsEnabled(@NonNull Boolean isEnabled); - - void setUserStepsEnabled(@NonNull Boolean isEnabled); - - void getSessionReplayLink(@NonNull Result result); - - /** The codec used by SessionReplayHostApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - /**Sets up an instance of `SessionReplayHostApi` to handle messages through the `binaryMessenger`. */ - static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable SessionReplayHostApi api) { - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.setEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.setNetworkLogsEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setNetworkLogsEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.setInstabugLogsEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setInstabugLogsEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.setUserStepsEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setUserStepsEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.getSessionReplayLink", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - Result resultCallback = - new Result() { - public void success(String result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.getSessionReplayLink(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - } - } -} diff --git a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/SurveysPigeon.java b/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/SurveysPigeon.java deleted file mode 100644 index e884530d6..000000000 --- a/packages/Instabug-Flutter/android/src/main/java/com/instabug/flutter/generated/SurveysPigeon.java +++ /dev/null @@ -1,373 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -package com.instabug.flutter.generated; - -import android.util.Log; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import io.flutter.plugin.common.BasicMessageChannel; -import io.flutter.plugin.common.BinaryMessenger; -import io.flutter.plugin.common.MessageCodec; -import io.flutter.plugin.common.StandardMessageCodec; -import java.io.ByteArrayOutputStream; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** Generated class from Pigeon. */ -@SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) -public class SurveysPigeon { - - /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ - public static class FlutterError extends RuntimeException { - - /** The error code. */ - public final String code; - - /** The error details. Must be a datatype supported by the api codec. */ - public final Object details; - - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) - { - super(message); - this.code = code; - this.details = details; - } - } - - @NonNull - protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList(3); - if (exception instanceof FlutterError) { - FlutterError error = (FlutterError) exception; - errorList.add(error.code); - errorList.add(error.getMessage()); - errorList.add(error.details); - } else { - errorList.add(exception.toString()); - errorList.add(exception.getClass().getSimpleName()); - errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); - } - return errorList; - } - - public interface Result { - @SuppressWarnings("UnknownNullness") - void success(T result); - - void error(@NonNull Throwable error); - } - /** Generated class from Pigeon that represents Flutter messages that can be called from Java. */ - public static class SurveysFlutterApi { - private final @NonNull BinaryMessenger binaryMessenger; - - public SurveysFlutterApi(@NonNull BinaryMessenger argBinaryMessenger) { - this.binaryMessenger = argBinaryMessenger; - } - - /** Public interface for sending reply. */ - @SuppressWarnings("UnknownNullness") - public interface Reply { - void reply(T reply); - } - /** The codec used by SurveysFlutterApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - public void onShowSurvey(@NonNull Reply callback) { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SurveysFlutterApi.onShowSurvey", getCodec()); - channel.send( - null, - channelReply -> callback.reply(null)); - } - public void onDismissSurvey(@NonNull Reply callback) { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SurveysFlutterApi.onDismissSurvey", getCodec()); - channel.send( - null, - channelReply -> callback.reply(null)); - } - } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ - public interface SurveysHostApi { - - void setEnabled(@NonNull Boolean isEnabled); - - void showSurveyIfAvailable(); - - void showSurvey(@NonNull String surveyToken); - - void setAutoShowingEnabled(@NonNull Boolean isEnabled); - - void setShouldShowWelcomeScreen(@NonNull Boolean shouldShowWelcomeScreen); - - void setAppStoreURL(@NonNull String appStoreURL); - - void hasRespondedToSurvey(@NonNull String surveyToken, @NonNull Result result); - - void getAvailableSurveys(@NonNull Result> result); - - void bindOnShowSurveyCallback(); - - void bindOnDismissSurveyCallback(); - - /** The codec used by SurveysHostApi. */ - static @NonNull MessageCodec getCodec() { - return new StandardMessageCodec(); - } - /**Sets up an instance of `SurveysHostApi` to handle messages through the `binaryMessenger`. */ - static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable SurveysHostApi api) { - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SurveysHostApi.setEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SurveysHostApi.showSurveyIfAvailable", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.showSurveyIfAvailable(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SurveysHostApi.showSurvey", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String surveyTokenArg = (String) args.get(0); - try { - api.showSurvey(surveyTokenArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SurveysHostApi.setAutoShowingEnabled", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean isEnabledArg = (Boolean) args.get(0); - try { - api.setAutoShowingEnabled(isEnabledArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SurveysHostApi.setShouldShowWelcomeScreen", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - Boolean shouldShowWelcomeScreenArg = (Boolean) args.get(0); - try { - api.setShouldShowWelcomeScreen(shouldShowWelcomeScreenArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SurveysHostApi.setAppStoreURL", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String appStoreURLArg = (String) args.get(0); - try { - api.setAppStoreURL(appStoreURLArg); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SurveysHostApi.hasRespondedToSurvey", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - ArrayList args = (ArrayList) message; - String surveyTokenArg = (String) args.get(0); - Result resultCallback = - new Result() { - public void success(Boolean result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.hasRespondedToSurvey(surveyTokenArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SurveysHostApi.getAvailableSurveys", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - Result> resultCallback = - new Result>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.getAvailableSurveys(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SurveysHostApi.bindOnShowSurveyCallback", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.bindOnShowSurveyCallback(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.instabug_flutter.SurveysHostApi.bindOnDismissSurveyCallback", getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList(); - try { - api.bindOnDismissSurveyCallback(); - wrapped.add(0, null); - } - catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - } - } -} diff --git a/apps/example/.gitignore b/packages/Instabug-Flutter/example/.gitignore similarity index 100% rename from apps/example/.gitignore rename to packages/Instabug-Flutter/example/.gitignore diff --git a/apps/example/.metadata b/packages/Instabug-Flutter/example/.metadata similarity index 100% rename from apps/example/.metadata rename to packages/Instabug-Flutter/example/.metadata diff --git a/apps/example/README.md b/packages/Instabug-Flutter/example/README.md similarity index 100% rename from apps/example/README.md rename to packages/Instabug-Flutter/example/README.md diff --git a/apps/example/android/.gitignore b/packages/Instabug-Flutter/example/android/.gitignore similarity index 100% rename from apps/example/android/.gitignore rename to packages/Instabug-Flutter/example/android/.gitignore diff --git a/apps/example/android/app/build.gradle b/packages/Instabug-Flutter/example/android/app/build.gradle similarity index 100% rename from apps/example/android/app/build.gradle rename to packages/Instabug-Flutter/example/android/app/build.gradle diff --git a/apps/example/android/app/src/debug/AndroidManifest.xml b/packages/Instabug-Flutter/example/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from apps/example/android/app/src/debug/AndroidManifest.xml rename to packages/Instabug-Flutter/example/android/app/src/debug/AndroidManifest.xml diff --git a/apps/example/android/app/src/main/AndroidManifest.xml b/packages/Instabug-Flutter/example/android/app/src/main/AndroidManifest.xml similarity index 100% rename from apps/example/android/app/src/main/AndroidManifest.xml rename to packages/Instabug-Flutter/example/android/app/src/main/AndroidManifest.xml diff --git a/apps/example/android/app/src/main/kotlin/com/example/InstabugSample/InstabugExampleMethodCallHandler.kt b/packages/Instabug-Flutter/example/android/app/src/main/kotlin/com/example/InstabugSample/InstabugExampleMethodCallHandler.kt similarity index 100% rename from apps/example/android/app/src/main/kotlin/com/example/InstabugSample/InstabugExampleMethodCallHandler.kt rename to packages/Instabug-Flutter/example/android/app/src/main/kotlin/com/example/InstabugSample/InstabugExampleMethodCallHandler.kt diff --git a/apps/example/android/app/src/main/kotlin/com/example/InstabugSample/MainActivity.kt b/packages/Instabug-Flutter/example/android/app/src/main/kotlin/com/example/InstabugSample/MainActivity.kt similarity index 100% rename from apps/example/android/app/src/main/kotlin/com/example/InstabugSample/MainActivity.kt rename to packages/Instabug-Flutter/example/android/app/src/main/kotlin/com/example/InstabugSample/MainActivity.kt diff --git a/apps/example/android/app/src/main/res/drawable/launch_background.xml b/packages/Instabug-Flutter/example/android/app/src/main/res/drawable/launch_background.xml similarity index 100% rename from apps/example/android/app/src/main/res/drawable/launch_background.xml rename to packages/Instabug-Flutter/example/android/app/src/main/res/drawable/launch_background.xml diff --git a/apps/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/packages/Instabug-Flutter/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from apps/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to packages/Instabug-Flutter/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/apps/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/packages/Instabug-Flutter/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from apps/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to packages/Instabug-Flutter/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/apps/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/packages/Instabug-Flutter/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from apps/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to packages/Instabug-Flutter/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/apps/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/packages/Instabug-Flutter/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from apps/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to packages/Instabug-Flutter/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/apps/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/packages/Instabug-Flutter/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from apps/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to packages/Instabug-Flutter/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/apps/example/android/app/src/main/res/values/styles.xml b/packages/Instabug-Flutter/example/android/app/src/main/res/values/styles.xml similarity index 100% rename from apps/example/android/app/src/main/res/values/styles.xml rename to packages/Instabug-Flutter/example/android/app/src/main/res/values/styles.xml diff --git a/apps/example/android/app/src/main/res/xml/network_security_config.xml b/packages/Instabug-Flutter/example/android/app/src/main/res/xml/network_security_config.xml similarity index 100% rename from apps/example/android/app/src/main/res/xml/network_security_config.xml rename to packages/Instabug-Flutter/example/android/app/src/main/res/xml/network_security_config.xml diff --git a/apps/example/android/app/src/profile/AndroidManifest.xml b/packages/Instabug-Flutter/example/android/app/src/profile/AndroidManifest.xml similarity index 100% rename from apps/example/android/app/src/profile/AndroidManifest.xml rename to packages/Instabug-Flutter/example/android/app/src/profile/AndroidManifest.xml diff --git a/apps/example/android/build.gradle b/packages/Instabug-Flutter/example/android/build.gradle similarity index 100% rename from apps/example/android/build.gradle rename to packages/Instabug-Flutter/example/android/build.gradle diff --git a/apps/example/android/gradle.properties b/packages/Instabug-Flutter/example/android/gradle.properties similarity index 100% rename from apps/example/android/gradle.properties rename to packages/Instabug-Flutter/example/android/gradle.properties diff --git a/apps/example/android/gradle/wrapper/gradle-wrapper.jar b/packages/Instabug-Flutter/example/android/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from apps/example/android/gradle/wrapper/gradle-wrapper.jar rename to packages/Instabug-Flutter/example/android/gradle/wrapper/gradle-wrapper.jar diff --git a/apps/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/Instabug-Flutter/example/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from apps/example/android/gradle/wrapper/gradle-wrapper.properties rename to packages/Instabug-Flutter/example/android/gradle/wrapper/gradle-wrapper.properties diff --git a/apps/example/android/gradlew b/packages/Instabug-Flutter/example/android/gradlew similarity index 100% rename from apps/example/android/gradlew rename to packages/Instabug-Flutter/example/android/gradlew diff --git a/apps/example/android/gradlew.bat b/packages/Instabug-Flutter/example/android/gradlew.bat similarity index 100% rename from apps/example/android/gradlew.bat rename to packages/Instabug-Flutter/example/android/gradlew.bat diff --git a/apps/example/android/settings.gradle b/packages/Instabug-Flutter/example/android/settings.gradle similarity index 100% rename from apps/example/android/settings.gradle rename to packages/Instabug-Flutter/example/android/settings.gradle diff --git a/apps/example/android/settings_aar.gradle b/packages/Instabug-Flutter/example/android/settings_aar.gradle similarity index 100% rename from apps/example/android/settings_aar.gradle rename to packages/Instabug-Flutter/example/android/settings_aar.gradle diff --git a/apps/example/ios/.gitignore b/packages/Instabug-Flutter/example/ios/.gitignore similarity index 100% rename from apps/example/ios/.gitignore rename to packages/Instabug-Flutter/example/ios/.gitignore diff --git a/apps/example/ios/Flutter/AppFrameworkInfo.plist b/packages/Instabug-Flutter/example/ios/Flutter/AppFrameworkInfo.plist similarity index 100% rename from apps/example/ios/Flutter/AppFrameworkInfo.plist rename to packages/Instabug-Flutter/example/ios/Flutter/AppFrameworkInfo.plist diff --git a/apps/example/ios/Flutter/Debug.xcconfig b/packages/Instabug-Flutter/example/ios/Flutter/Debug.xcconfig similarity index 100% rename from apps/example/ios/Flutter/Debug.xcconfig rename to packages/Instabug-Flutter/example/ios/Flutter/Debug.xcconfig diff --git a/apps/example/ios/Flutter/Release.xcconfig b/packages/Instabug-Flutter/example/ios/Flutter/Release.xcconfig similarity index 100% rename from apps/example/ios/Flutter/Release.xcconfig rename to packages/Instabug-Flutter/example/ios/Flutter/Release.xcconfig diff --git a/apps/example/ios/InstabugTests/ApmApiTests.m b/packages/Instabug-Flutter/example/ios/InstabugTests/ApmApiTests.m similarity index 100% rename from apps/example/ios/InstabugTests/ApmApiTests.m rename to packages/Instabug-Flutter/example/ios/InstabugTests/ApmApiTests.m diff --git a/apps/example/ios/InstabugTests/ArgsRegistryTests.m b/packages/Instabug-Flutter/example/ios/InstabugTests/ArgsRegistryTests.m similarity index 100% rename from apps/example/ios/InstabugTests/ArgsRegistryTests.m rename to packages/Instabug-Flutter/example/ios/InstabugTests/ArgsRegistryTests.m diff --git a/apps/example/ios/InstabugTests/BugReportingApiTests.m b/packages/Instabug-Flutter/example/ios/InstabugTests/BugReportingApiTests.m similarity index 100% rename from apps/example/ios/InstabugTests/BugReportingApiTests.m rename to packages/Instabug-Flutter/example/ios/InstabugTests/BugReportingApiTests.m diff --git a/apps/example/ios/InstabugTests/CrashReportingApiTests.m b/packages/Instabug-Flutter/example/ios/InstabugTests/CrashReportingApiTests.m similarity index 100% rename from apps/example/ios/InstabugTests/CrashReportingApiTests.m rename to packages/Instabug-Flutter/example/ios/InstabugTests/CrashReportingApiTests.m diff --git a/apps/example/ios/InstabugTests/FeatureRequestsApiTests.m b/packages/Instabug-Flutter/example/ios/InstabugTests/FeatureRequestsApiTests.m similarity index 100% rename from apps/example/ios/InstabugTests/FeatureRequestsApiTests.m rename to packages/Instabug-Flutter/example/ios/InstabugTests/FeatureRequestsApiTests.m diff --git a/apps/example/ios/InstabugTests/Info.plist b/packages/Instabug-Flutter/example/ios/InstabugTests/Info.plist similarity index 100% rename from apps/example/ios/InstabugTests/Info.plist rename to packages/Instabug-Flutter/example/ios/InstabugTests/Info.plist diff --git a/apps/example/ios/InstabugTests/InstabugApiTests.m b/packages/Instabug-Flutter/example/ios/InstabugTests/InstabugApiTests.m similarity index 100% rename from apps/example/ios/InstabugTests/InstabugApiTests.m rename to packages/Instabug-Flutter/example/ios/InstabugTests/InstabugApiTests.m diff --git a/apps/example/ios/InstabugTests/InstabugLogApiTests.m b/packages/Instabug-Flutter/example/ios/InstabugTests/InstabugLogApiTests.m similarity index 100% rename from apps/example/ios/InstabugTests/InstabugLogApiTests.m rename to packages/Instabug-Flutter/example/ios/InstabugTests/InstabugLogApiTests.m diff --git a/apps/example/ios/InstabugTests/RepliesApiTests.m b/packages/Instabug-Flutter/example/ios/InstabugTests/RepliesApiTests.m similarity index 100% rename from apps/example/ios/InstabugTests/RepliesApiTests.m rename to packages/Instabug-Flutter/example/ios/InstabugTests/RepliesApiTests.m diff --git a/apps/example/ios/InstabugTests/SessionReplayApiTests.m b/packages/Instabug-Flutter/example/ios/InstabugTests/SessionReplayApiTests.m similarity index 100% rename from apps/example/ios/InstabugTests/SessionReplayApiTests.m rename to packages/Instabug-Flutter/example/ios/InstabugTests/SessionReplayApiTests.m diff --git a/apps/example/ios/InstabugTests/SurveysApiTests.m b/packages/Instabug-Flutter/example/ios/InstabugTests/SurveysApiTests.m similarity index 100% rename from apps/example/ios/InstabugTests/SurveysApiTests.m rename to packages/Instabug-Flutter/example/ios/InstabugTests/SurveysApiTests.m diff --git a/apps/example/ios/InstabugTests/Util/Apm+Test.h b/packages/Instabug-Flutter/example/ios/InstabugTests/Util/Apm+Test.h similarity index 100% rename from apps/example/ios/InstabugTests/Util/Apm+Test.h rename to packages/Instabug-Flutter/example/ios/InstabugTests/Util/Apm+Test.h diff --git a/apps/example/ios/InstabugTests/Util/IBGCrashReporting+CP.h b/packages/Instabug-Flutter/example/ios/InstabugTests/Util/IBGCrashReporting+CP.h similarity index 100% rename from apps/example/ios/InstabugTests/Util/IBGCrashReporting+CP.h rename to packages/Instabug-Flutter/example/ios/InstabugTests/Util/IBGCrashReporting+CP.h diff --git a/apps/example/ios/InstabugTests/Util/IBGNetworkLogger+Test.h b/packages/Instabug-Flutter/example/ios/InstabugTests/Util/IBGNetworkLogger+Test.h similarity index 100% rename from apps/example/ios/InstabugTests/Util/IBGNetworkLogger+Test.h rename to packages/Instabug-Flutter/example/ios/InstabugTests/Util/IBGNetworkLogger+Test.h diff --git a/apps/example/ios/InstabugTests/Util/IBGSurvey+Test.h b/packages/Instabug-Flutter/example/ios/InstabugTests/Util/IBGSurvey+Test.h similarity index 100% rename from apps/example/ios/InstabugTests/Util/IBGSurvey+Test.h rename to packages/Instabug-Flutter/example/ios/InstabugTests/Util/IBGSurvey+Test.h diff --git a/apps/example/ios/InstabugTests/Util/Instabug+Test.h b/packages/Instabug-Flutter/example/ios/InstabugTests/Util/Instabug+Test.h similarity index 100% rename from apps/example/ios/InstabugTests/Util/Instabug+Test.h rename to packages/Instabug-Flutter/example/ios/InstabugTests/Util/Instabug+Test.h diff --git a/apps/example/ios/Podfile b/packages/Instabug-Flutter/example/ios/Podfile similarity index 100% rename from apps/example/ios/Podfile rename to packages/Instabug-Flutter/example/ios/Podfile diff --git a/apps/example/ios/Podfile.lock b/packages/Instabug-Flutter/example/ios/Podfile.lock similarity index 100% rename from apps/example/ios/Podfile.lock rename to packages/Instabug-Flutter/example/ios/Podfile.lock diff --git a/apps/example/ios/Runner.xcodeproj/project.pbxproj b/packages/Instabug-Flutter/example/ios/Runner.xcodeproj/project.pbxproj similarity index 100% rename from apps/example/ios/Runner.xcodeproj/project.pbxproj rename to packages/Instabug-Flutter/example/ios/Runner.xcodeproj/project.pbxproj diff --git a/apps/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/packages/Instabug-Flutter/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from apps/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to packages/Instabug-Flutter/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/apps/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/Instabug-Flutter/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from apps/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/Instabug-Flutter/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/apps/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/Instabug-Flutter/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from apps/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to packages/Instabug-Flutter/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/apps/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/Instabug-Flutter/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from apps/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to packages/Instabug-Flutter/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/apps/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/packages/Instabug-Flutter/example/ios/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from apps/example/ios/Runner.xcworkspace/contents.xcworkspacedata rename to packages/Instabug-Flutter/example/ios/Runner.xcworkspace/contents.xcworkspacedata diff --git a/apps/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/Instabug-Flutter/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from apps/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/Instabug-Flutter/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/apps/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/Instabug-Flutter/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from apps/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to packages/Instabug-Flutter/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/apps/example/ios/Runner/AppDelegate.swift b/packages/Instabug-Flutter/example/ios/Runner/AppDelegate.swift similarity index 100% rename from apps/example/ios/Runner/AppDelegate.swift rename to packages/Instabug-Flutter/example/ios/Runner/AppDelegate.swift diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json diff --git a/apps/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png diff --git a/apps/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png diff --git a/apps/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md similarity index 100% rename from apps/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md rename to packages/Instabug-Flutter/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md diff --git a/apps/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/packages/Instabug-Flutter/example/ios/Runner/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from apps/example/ios/Runner/Base.lproj/LaunchScreen.storyboard rename to packages/Instabug-Flutter/example/ios/Runner/Base.lproj/LaunchScreen.storyboard diff --git a/apps/example/ios/Runner/Base.lproj/Main.storyboard b/packages/Instabug-Flutter/example/ios/Runner/Base.lproj/Main.storyboard similarity index 100% rename from apps/example/ios/Runner/Base.lproj/Main.storyboard rename to packages/Instabug-Flutter/example/ios/Runner/Base.lproj/Main.storyboard diff --git a/apps/example/ios/Runner/Info.plist b/packages/Instabug-Flutter/example/ios/Runner/Info.plist similarity index 100% rename from apps/example/ios/Runner/Info.plist rename to packages/Instabug-Flutter/example/ios/Runner/Info.plist diff --git a/apps/example/ios/Runner/InstabugExampleMethodCallHandler.h b/packages/Instabug-Flutter/example/ios/Runner/InstabugExampleMethodCallHandler.h similarity index 100% rename from apps/example/ios/Runner/InstabugExampleMethodCallHandler.h rename to packages/Instabug-Flutter/example/ios/Runner/InstabugExampleMethodCallHandler.h diff --git a/apps/example/ios/Runner/InstabugExampleMethodCallHandler.m b/packages/Instabug-Flutter/example/ios/Runner/InstabugExampleMethodCallHandler.m similarity index 100% rename from apps/example/ios/Runner/InstabugExampleMethodCallHandler.m rename to packages/Instabug-Flutter/example/ios/Runner/InstabugExampleMethodCallHandler.m diff --git a/apps/example/ios/Runner/Runner-Bridging-Header.h b/packages/Instabug-Flutter/example/ios/Runner/Runner-Bridging-Header.h similarity index 100% rename from apps/example/ios/Runner/Runner-Bridging-Header.h rename to packages/Instabug-Flutter/example/ios/Runner/Runner-Bridging-Header.h diff --git a/apps/example/lib/main.dart b/packages/Instabug-Flutter/example/lib/main.dart similarity index 100% rename from apps/example/lib/main.dart rename to packages/Instabug-Flutter/example/lib/main.dart diff --git a/apps/example/lib/src/app_routes.dart b/packages/Instabug-Flutter/example/lib/src/app_routes.dart similarity index 100% rename from apps/example/lib/src/app_routes.dart rename to packages/Instabug-Flutter/example/lib/src/app_routes.dart diff --git a/apps/example/lib/src/components/fatal_crashes_content.dart b/packages/Instabug-Flutter/example/lib/src/components/fatal_crashes_content.dart similarity index 100% rename from apps/example/lib/src/components/fatal_crashes_content.dart rename to packages/Instabug-Flutter/example/lib/src/components/fatal_crashes_content.dart diff --git a/apps/example/lib/src/components/flows_content.dart b/packages/Instabug-Flutter/example/lib/src/components/flows_content.dart similarity index 100% rename from apps/example/lib/src/components/flows_content.dart rename to packages/Instabug-Flutter/example/lib/src/components/flows_content.dart diff --git a/apps/example/lib/src/components/network_content.dart b/packages/Instabug-Flutter/example/lib/src/components/network_content.dart similarity index 100% rename from apps/example/lib/src/components/network_content.dart rename to packages/Instabug-Flutter/example/lib/src/components/network_content.dart diff --git a/apps/example/lib/src/components/non_fatal_crashes_content.dart b/packages/Instabug-Flutter/example/lib/src/components/non_fatal_crashes_content.dart similarity index 100% rename from apps/example/lib/src/components/non_fatal_crashes_content.dart rename to packages/Instabug-Flutter/example/lib/src/components/non_fatal_crashes_content.dart diff --git a/apps/example/lib/src/components/page.dart b/packages/Instabug-Flutter/example/lib/src/components/page.dart similarity index 100% rename from apps/example/lib/src/components/page.dart rename to packages/Instabug-Flutter/example/lib/src/components/page.dart diff --git a/apps/example/lib/src/components/traces_content.dart b/packages/Instabug-Flutter/example/lib/src/components/traces_content.dart similarity index 100% rename from apps/example/lib/src/components/traces_content.dart rename to packages/Instabug-Flutter/example/lib/src/components/traces_content.dart diff --git a/apps/example/lib/src/native/instabug_flutter_example_method_channel.dart b/packages/Instabug-Flutter/example/lib/src/native/instabug_flutter_example_method_channel.dart similarity index 100% rename from apps/example/lib/src/native/instabug_flutter_example_method_channel.dart rename to packages/Instabug-Flutter/example/lib/src/native/instabug_flutter_example_method_channel.dart diff --git a/apps/example/lib/src/screens/apm_page.dart b/packages/Instabug-Flutter/example/lib/src/screens/apm_page.dart similarity index 100% rename from apps/example/lib/src/screens/apm_page.dart rename to packages/Instabug-Flutter/example/lib/src/screens/apm_page.dart diff --git a/apps/example/lib/src/screens/complex_page.dart b/packages/Instabug-Flutter/example/lib/src/screens/complex_page.dart similarity index 100% rename from apps/example/lib/src/screens/complex_page.dart rename to packages/Instabug-Flutter/example/lib/src/screens/complex_page.dart diff --git a/apps/example/lib/src/screens/crashes_page.dart b/packages/Instabug-Flutter/example/lib/src/screens/crashes_page.dart similarity index 100% rename from apps/example/lib/src/screens/crashes_page.dart rename to packages/Instabug-Flutter/example/lib/src/screens/crashes_page.dart diff --git a/apps/example/lib/src/screens/my_home_page.dart b/packages/Instabug-Flutter/example/lib/src/screens/my_home_page.dart similarity index 100% rename from apps/example/lib/src/screens/my_home_page.dart rename to packages/Instabug-Flutter/example/lib/src/screens/my_home_page.dart diff --git a/apps/example/lib/src/screens/screen_capture_premature_extension_page.dart b/packages/Instabug-Flutter/example/lib/src/screens/screen_capture_premature_extension_page.dart similarity index 100% rename from apps/example/lib/src/screens/screen_capture_premature_extension_page.dart rename to packages/Instabug-Flutter/example/lib/src/screens/screen_capture_premature_extension_page.dart diff --git a/apps/example/lib/src/screens/screen_loading_page.dart b/packages/Instabug-Flutter/example/lib/src/screens/screen_loading_page.dart similarity index 100% rename from apps/example/lib/src/screens/screen_loading_page.dart rename to packages/Instabug-Flutter/example/lib/src/screens/screen_loading_page.dart diff --git a/apps/example/lib/src/widget/instabug_button.dart b/packages/Instabug-Flutter/example/lib/src/widget/instabug_button.dart similarity index 100% rename from apps/example/lib/src/widget/instabug_button.dart rename to packages/Instabug-Flutter/example/lib/src/widget/instabug_button.dart diff --git a/apps/example/lib/src/widget/instabug_clipboard_icon_button.dart b/packages/Instabug-Flutter/example/lib/src/widget/instabug_clipboard_icon_button.dart similarity index 100% rename from apps/example/lib/src/widget/instabug_clipboard_icon_button.dart rename to packages/Instabug-Flutter/example/lib/src/widget/instabug_clipboard_icon_button.dart diff --git a/apps/example/lib/src/widget/instabug_clipboard_input.dart b/packages/Instabug-Flutter/example/lib/src/widget/instabug_clipboard_input.dart similarity index 100% rename from apps/example/lib/src/widget/instabug_clipboard_input.dart rename to packages/Instabug-Flutter/example/lib/src/widget/instabug_clipboard_input.dart diff --git a/apps/example/lib/src/widget/instabug_text_field.dart b/packages/Instabug-Flutter/example/lib/src/widget/instabug_text_field.dart similarity index 100% rename from apps/example/lib/src/widget/instabug_text_field.dart rename to packages/Instabug-Flutter/example/lib/src/widget/instabug_text_field.dart diff --git a/apps/example/lib/src/widget/nested_view.dart b/packages/Instabug-Flutter/example/lib/src/widget/nested_view.dart similarity index 100% rename from apps/example/lib/src/widget/nested_view.dart rename to packages/Instabug-Flutter/example/lib/src/widget/nested_view.dart diff --git a/apps/example/lib/src/widget/section_title.dart b/packages/Instabug-Flutter/example/lib/src/widget/section_title.dart similarity index 100% rename from apps/example/lib/src/widget/section_title.dart rename to packages/Instabug-Flutter/example/lib/src/widget/section_title.dart diff --git a/apps/example/pubspec.lock b/packages/Instabug-Flutter/example/pubspec.lock similarity index 97% rename from apps/example/pubspec.lock rename to packages/Instabug-Flutter/example/pubspec.lock index cbacd2462..14416e61e 100644 --- a/apps/example/pubspec.lock +++ b/packages/Instabug-Flutter/example/pubspec.lock @@ -104,7 +104,7 @@ packages: instabug_flutter: dependency: "direct main" description: - path: "../../packages/Instabug-Flutter" + path: ".." relative: true source: path version: "13.4.0" @@ -261,10 +261,10 @@ packages: dependency: transitive description: name: typed_data - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 url: "https://pub.dev" source: hosted - version: "1.3.2" + version: "1.4.0" vector_math: dependency: transitive description: @@ -290,5 +290,5 @@ packages: source: hosted version: "3.0.3" sdks: - dart: ">=3.3.0 <4.0.0" + dart: ">=3.5.0 <4.0.0" flutter: ">=3.18.0-18.0.pre.54" diff --git a/apps/example/pubspec.yaml b/packages/Instabug-Flutter/example/pubspec.yaml similarity index 98% rename from apps/example/pubspec.yaml rename to packages/Instabug-Flutter/example/pubspec.yaml index 998358477..6bb0e3e71 100644 --- a/apps/example/pubspec.yaml +++ b/packages/Instabug-Flutter/example/pubspec.yaml @@ -37,7 +37,7 @@ dev_dependencies: dependency_overrides: instabug_flutter: - path: '../../packages/Instabug-Flutter' + path: '../' # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/Instabug-Flutter/example/pubspec_overrides.yaml b/packages/Instabug-Flutter/example/pubspec_overrides.yaml new file mode 100644 index 000000000..58ddfa1aa --- /dev/null +++ b/packages/Instabug-Flutter/example/pubspec_overrides.yaml @@ -0,0 +1,4 @@ +# melos_managed_dependency_overrides: instabug_flutter +dependency_overrides: + instabug_flutter: + path: ../ diff --git a/apps/example/test_driver/example.dart b/packages/Instabug-Flutter/example/test_driver/example.dart similarity index 100% rename from apps/example/test_driver/example.dart rename to packages/Instabug-Flutter/example/test_driver/example.dart diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/ApmPigeon.h b/packages/Instabug-Flutter/ios/Classes/Generated/ApmPigeon.h deleted file mode 100644 index f31c5c8b3..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/ApmPigeon.h +++ /dev/null @@ -1,42 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import - -@protocol FlutterBinaryMessenger; -@protocol FlutterMessageCodec; -@class FlutterError; -@class FlutterStandardTypedData; - -NS_ASSUME_NONNULL_BEGIN - - -/// The codec used by ApmHostApi. -NSObject *ApmHostApiGetCodec(void); - -@protocol ApmHostApi -- (void)setEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)isEnabledWithCompletion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)setScreenLoadingEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)isScreenLoadingEnabledWithCompletion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)setColdAppLaunchEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setAutoUITraceEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)startExecutionTraceId:(NSString *)id name:(NSString *)name completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -- (void)startFlowName:(NSString *)name error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setFlowAttributeName:(NSString *)name key:(NSString *)key value:(nullable NSString *)value error:(FlutterError *_Nullable *_Nonnull)error; -- (void)endFlowName:(NSString *)name error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setExecutionTraceAttributeId:(NSString *)id key:(NSString *)key value:(NSString *)value error:(FlutterError *_Nullable *_Nonnull)error; -- (void)endExecutionTraceId:(NSString *)id error:(FlutterError *_Nullable *_Nonnull)error; -- (void)startUITraceName:(NSString *)name error:(FlutterError *_Nullable *_Nonnull)error; -- (void)endUITraceWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)endAppLaunchWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)networkLogAndroidData:(NSDictionary *)data error:(FlutterError *_Nullable *_Nonnull)error; -- (void)startCpUiTraceScreenName:(NSString *)screenName microTimeStamp:(NSNumber *)microTimeStamp traceId:(NSNumber *)traceId error:(FlutterError *_Nullable *_Nonnull)error; -- (void)reportScreenLoadingCPStartTimeStampMicro:(NSNumber *)startTimeStampMicro durationMicro:(NSNumber *)durationMicro uiTraceId:(NSNumber *)uiTraceId error:(FlutterError *_Nullable *_Nonnull)error; -- (void)endScreenLoadingCPTimeStampMicro:(NSNumber *)timeStampMicro uiTraceId:(NSNumber *)uiTraceId error:(FlutterError *_Nullable *_Nonnull)error; -- (void)isEndScreenLoadingEnabledWithCompletion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -@end - -extern void ApmHostApiSetup(id binaryMessenger, NSObject *_Nullable api); - -NS_ASSUME_NONNULL_END diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/ApmPigeon.m b/packages/Instabug-Flutter/ios/Classes/Generated/ApmPigeon.m deleted file mode 100644 index 0a73a8417..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/ApmPigeon.m +++ /dev/null @@ -1,416 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import "ApmPigeon.h" - -#if TARGET_OS_OSX -#import -#else -#import -#endif - -#if !__has_feature(objc_arc) -#error File requires ARC to be enabled. -#endif - -static NSArray *wrapResult(id result, FlutterError *error) { - if (error) { - return @[ - error.code ?: [NSNull null], error.message ?: [NSNull null], error.details ?: [NSNull null] - ]; - } - return @[ result ?: [NSNull null] ]; -} -static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { - id result = array[key]; - return (result == [NSNull null]) ? nil : result; -} - -NSObject *ApmHostApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -void ApmHostApiSetup(id binaryMessenger, NSObject *api) { - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.setEnabled" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setEnabledIsEnabled:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(setEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.isEnabled" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(isEnabledWithCompletion:)], @"ApmHostApi api (%@) doesn't respond to @selector(isEnabledWithCompletion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api isEnabledWithCompletion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.setScreenLoadingEnabled" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setScreenLoadingEnabledIsEnabled:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(setScreenLoadingEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setScreenLoadingEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.isScreenLoadingEnabled" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(isScreenLoadingEnabledWithCompletion:)], @"ApmHostApi api (%@) doesn't respond to @selector(isScreenLoadingEnabledWithCompletion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api isScreenLoadingEnabledWithCompletion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.setColdAppLaunchEnabled" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setColdAppLaunchEnabledIsEnabled:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(setColdAppLaunchEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setColdAppLaunchEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.setAutoUITraceEnabled" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setAutoUITraceEnabledIsEnabled:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(setAutoUITraceEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setAutoUITraceEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.startExecutionTrace" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(startExecutionTraceId:name:completion:)], @"ApmHostApi api (%@) doesn't respond to @selector(startExecutionTraceId:name:completion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_id = GetNullableObjectAtIndex(args, 0); - NSString *arg_name = GetNullableObjectAtIndex(args, 1); - [api startExecutionTraceId:arg_id name:arg_name completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.startFlow" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(startFlowName:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(startFlowName:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_name = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api startFlowName:arg_name error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.setFlowAttribute" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setFlowAttributeName:key:value:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(setFlowAttributeName:key:value:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_name = GetNullableObjectAtIndex(args, 0); - NSString *arg_key = GetNullableObjectAtIndex(args, 1); - NSString *arg_value = GetNullableObjectAtIndex(args, 2); - FlutterError *error; - [api setFlowAttributeName:arg_name key:arg_key value:arg_value error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.endFlow" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(endFlowName:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(endFlowName:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_name = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api endFlowName:arg_name error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.setExecutionTraceAttribute" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setExecutionTraceAttributeId:key:value:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(setExecutionTraceAttributeId:key:value:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_id = GetNullableObjectAtIndex(args, 0); - NSString *arg_key = GetNullableObjectAtIndex(args, 1); - NSString *arg_value = GetNullableObjectAtIndex(args, 2); - FlutterError *error; - [api setExecutionTraceAttributeId:arg_id key:arg_key value:arg_value error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.endExecutionTrace" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(endExecutionTraceId:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(endExecutionTraceId:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_id = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api endExecutionTraceId:arg_id error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.startUITrace" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(startUITraceName:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(startUITraceName:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_name = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api startUITraceName:arg_name error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.endUITrace" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(endUITraceWithError:)], @"ApmHostApi api (%@) doesn't respond to @selector(endUITraceWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api endUITraceWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.endAppLaunch" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(endAppLaunchWithError:)], @"ApmHostApi api (%@) doesn't respond to @selector(endAppLaunchWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api endAppLaunchWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.networkLogAndroid" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(networkLogAndroidData:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(networkLogAndroidData:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_data = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api networkLogAndroidData:arg_data error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.startCpUiTrace" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(startCpUiTraceScreenName:microTimeStamp:traceId:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(startCpUiTraceScreenName:microTimeStamp:traceId:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_screenName = GetNullableObjectAtIndex(args, 0); - NSNumber *arg_microTimeStamp = GetNullableObjectAtIndex(args, 1); - NSNumber *arg_traceId = GetNullableObjectAtIndex(args, 2); - FlutterError *error; - [api startCpUiTraceScreenName:arg_screenName microTimeStamp:arg_microTimeStamp traceId:arg_traceId error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.reportScreenLoadingCP" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(reportScreenLoadingCPStartTimeStampMicro:durationMicro:uiTraceId:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(reportScreenLoadingCPStartTimeStampMicro:durationMicro:uiTraceId:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_startTimeStampMicro = GetNullableObjectAtIndex(args, 0); - NSNumber *arg_durationMicro = GetNullableObjectAtIndex(args, 1); - NSNumber *arg_uiTraceId = GetNullableObjectAtIndex(args, 2); - FlutterError *error; - [api reportScreenLoadingCPStartTimeStampMicro:arg_startTimeStampMicro durationMicro:arg_durationMicro uiTraceId:arg_uiTraceId error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.endScreenLoadingCP" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(endScreenLoadingCPTimeStampMicro:uiTraceId:error:)], @"ApmHostApi api (%@) doesn't respond to @selector(endScreenLoadingCPTimeStampMicro:uiTraceId:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_timeStampMicro = GetNullableObjectAtIndex(args, 0); - NSNumber *arg_uiTraceId = GetNullableObjectAtIndex(args, 1); - FlutterError *error; - [api endScreenLoadingCPTimeStampMicro:arg_timeStampMicro uiTraceId:arg_uiTraceId error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.ApmHostApi.isEndScreenLoadingEnabled" - binaryMessenger:binaryMessenger - codec:ApmHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(isEndScreenLoadingEnabledWithCompletion:)], @"ApmHostApi api (%@) doesn't respond to @selector(isEndScreenLoadingEnabledWithCompletion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api isEndScreenLoadingEnabledWithCompletion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } -} diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/BugReportingPigeon.h b/packages/Instabug-Flutter/ios/Classes/Generated/BugReportingPigeon.h deleted file mode 100644 index cad4bbf19..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/BugReportingPigeon.h +++ /dev/null @@ -1,47 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import - -@protocol FlutterBinaryMessenger; -@protocol FlutterMessageCodec; -@class FlutterError; -@class FlutterStandardTypedData; - -NS_ASSUME_NONNULL_BEGIN - - -/// The codec used by BugReportingFlutterApi. -NSObject *BugReportingFlutterApiGetCodec(void); - -@interface BugReportingFlutterApi : NSObject -- (instancetype)initWithBinaryMessenger:(id)binaryMessenger; -- (void)onSdkInvokeWithCompletion:(void (^)(FlutterError *_Nullable))completion; -- (void)onSdkDismissDismissType:(NSString *)dismissType reportType:(NSString *)reportType completion:(void (^)(FlutterError *_Nullable))completion; -@end - -/// The codec used by BugReportingHostApi. -NSObject *BugReportingHostApiGetCodec(void); - -@protocol BugReportingHostApi -- (void)setEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)showReportType:(NSString *)reportType invocationOptions:(NSArray *)invocationOptions error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setInvocationEventsEvents:(NSArray *)events error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setReportTypesTypes:(NSArray *)types error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setExtendedBugReportModeMode:(NSString *)mode error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setInvocationOptionsOptions:(NSArray *)options error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setFloatingButtonEdgeEdge:(NSString *)edge offset:(NSNumber *)offset error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setVideoRecordingFloatingButtonPositionPosition:(NSString *)position error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setShakingThresholdForiPhoneThreshold:(NSNumber *)threshold error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setShakingThresholdForiPadThreshold:(NSNumber *)threshold error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setShakingThresholdForAndroidThreshold:(NSNumber *)threshold error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setEnabledAttachmentTypesScreenshot:(NSNumber *)screenshot extraScreenshot:(NSNumber *)extraScreenshot galleryImage:(NSNumber *)galleryImage screenRecording:(NSNumber *)screenRecording error:(FlutterError *_Nullable *_Nonnull)error; -- (void)bindOnInvokeCallbackWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)bindOnDismissCallbackWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)setDisclaimerTextText:(NSString *)text error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setCommentMinimumCharacterCountLimit:(NSNumber *)limit reportTypes:(nullable NSArray *)reportTypes error:(FlutterError *_Nullable *_Nonnull)error; -@end - -extern void BugReportingHostApiSetup(id binaryMessenger, NSObject *_Nullable api); - -NS_ASSUME_NONNULL_END diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/BugReportingPigeon.m b/packages/Instabug-Flutter/ios/Classes/Generated/BugReportingPigeon.m deleted file mode 100644 index ecf1a879c..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/BugReportingPigeon.m +++ /dev/null @@ -1,383 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import "BugReportingPigeon.h" - -#if TARGET_OS_OSX -#import -#else -#import -#endif - -#if !__has_feature(objc_arc) -#error File requires ARC to be enabled. -#endif - -static NSArray *wrapResult(id result, FlutterError *error) { - if (error) { - return @[ - error.code ?: [NSNull null], error.message ?: [NSNull null], error.details ?: [NSNull null] - ]; - } - return @[ result ?: [NSNull null] ]; -} -static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { - id result = array[key]; - return (result == [NSNull null]) ? nil : result; -} - -NSObject *BugReportingFlutterApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -@interface BugReportingFlutterApi () -@property(nonatomic, strong) NSObject *binaryMessenger; -@end - -@implementation BugReportingFlutterApi - -- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { - self = [super init]; - if (self) { - _binaryMessenger = binaryMessenger; - } - return self; -} -- (void)onSdkInvokeWithCompletion:(void (^)(FlutterError *_Nullable))completion { - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingFlutterApi.onSdkInvoke" - binaryMessenger:self.binaryMessenger - codec:BugReportingFlutterApiGetCodec()]; - [channel sendMessage:nil reply:^(id reply) { - completion(nil); - }]; -} -- (void)onSdkDismissDismissType:(NSString *)arg_dismissType reportType:(NSString *)arg_reportType completion:(void (^)(FlutterError *_Nullable))completion { - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingFlutterApi.onSdkDismiss" - binaryMessenger:self.binaryMessenger - codec:BugReportingFlutterApiGetCodec()]; - [channel sendMessage:@[arg_dismissType ?: [NSNull null], arg_reportType ?: [NSNull null]] reply:^(id reply) { - completion(nil); - }]; -} -@end - -NSObject *BugReportingHostApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -void BugReportingHostApiSetup(id binaryMessenger, NSObject *api) { - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setEnabled" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setEnabledIsEnabled:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.show" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(showReportType:invocationOptions:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(showReportType:invocationOptions:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_reportType = GetNullableObjectAtIndex(args, 0); - NSArray *arg_invocationOptions = GetNullableObjectAtIndex(args, 1); - FlutterError *error; - [api showReportType:arg_reportType invocationOptions:arg_invocationOptions error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setInvocationEvents" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setInvocationEventsEvents:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setInvocationEventsEvents:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_events = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setInvocationEventsEvents:arg_events error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setReportTypes" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setReportTypesTypes:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setReportTypesTypes:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_types = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setReportTypesTypes:arg_types error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setExtendedBugReportMode" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setExtendedBugReportModeMode:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setExtendedBugReportModeMode:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_mode = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setExtendedBugReportModeMode:arg_mode error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setInvocationOptions" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setInvocationOptionsOptions:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setInvocationOptionsOptions:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_options = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setInvocationOptionsOptions:arg_options error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setFloatingButtonEdge" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setFloatingButtonEdgeEdge:offset:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setFloatingButtonEdgeEdge:offset:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_edge = GetNullableObjectAtIndex(args, 0); - NSNumber *arg_offset = GetNullableObjectAtIndex(args, 1); - FlutterError *error; - [api setFloatingButtonEdgeEdge:arg_edge offset:arg_offset error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setVideoRecordingFloatingButtonPosition" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setVideoRecordingFloatingButtonPositionPosition:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setVideoRecordingFloatingButtonPositionPosition:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_position = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setVideoRecordingFloatingButtonPositionPosition:arg_position error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setShakingThresholdForiPhone" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setShakingThresholdForiPhoneThreshold:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setShakingThresholdForiPhoneThreshold:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_threshold = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setShakingThresholdForiPhoneThreshold:arg_threshold error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setShakingThresholdForiPad" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setShakingThresholdForiPadThreshold:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setShakingThresholdForiPadThreshold:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_threshold = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setShakingThresholdForiPadThreshold:arg_threshold error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setShakingThresholdForAndroid" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setShakingThresholdForAndroidThreshold:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setShakingThresholdForAndroidThreshold:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_threshold = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setShakingThresholdForAndroidThreshold:arg_threshold error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setEnabledAttachmentTypes" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setEnabledAttachmentTypesScreenshot:extraScreenshot:galleryImage:screenRecording:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setEnabledAttachmentTypesScreenshot:extraScreenshot:galleryImage:screenRecording:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_screenshot = GetNullableObjectAtIndex(args, 0); - NSNumber *arg_extraScreenshot = GetNullableObjectAtIndex(args, 1); - NSNumber *arg_galleryImage = GetNullableObjectAtIndex(args, 2); - NSNumber *arg_screenRecording = GetNullableObjectAtIndex(args, 3); - FlutterError *error; - [api setEnabledAttachmentTypesScreenshot:arg_screenshot extraScreenshot:arg_extraScreenshot galleryImage:arg_galleryImage screenRecording:arg_screenRecording error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.bindOnInvokeCallback" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(bindOnInvokeCallbackWithError:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(bindOnInvokeCallbackWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api bindOnInvokeCallbackWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.bindOnDismissCallback" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(bindOnDismissCallbackWithError:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(bindOnDismissCallbackWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api bindOnDismissCallbackWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setDisclaimerText" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setDisclaimerTextText:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setDisclaimerTextText:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_text = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setDisclaimerTextText:arg_text error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setCommentMinimumCharacterCount" - binaryMessenger:binaryMessenger - codec:BugReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setCommentMinimumCharacterCountLimit:reportTypes:error:)], @"BugReportingHostApi api (%@) doesn't respond to @selector(setCommentMinimumCharacterCountLimit:reportTypes:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_limit = GetNullableObjectAtIndex(args, 0); - NSArray *arg_reportTypes = GetNullableObjectAtIndex(args, 1); - FlutterError *error; - [api setCommentMinimumCharacterCountLimit:arg_limit reportTypes:arg_reportTypes error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } -} diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/CrashReportingPigeon.h b/packages/Instabug-Flutter/ios/Classes/Generated/CrashReportingPigeon.h deleted file mode 100644 index c556c4555..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/CrashReportingPigeon.h +++ /dev/null @@ -1,25 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import - -@protocol FlutterBinaryMessenger; -@protocol FlutterMessageCodec; -@class FlutterError; -@class FlutterStandardTypedData; - -NS_ASSUME_NONNULL_BEGIN - - -/// The codec used by CrashReportingHostApi. -NSObject *CrashReportingHostApiGetCodec(void); - -@protocol CrashReportingHostApi -- (void)setEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)sendJsonCrash:(NSString *)jsonCrash isHandled:(NSNumber *)isHandled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)sendNonFatalErrorJsonCrash:(NSString *)jsonCrash userAttributes:(nullable NSDictionary *)userAttributes fingerprint:(nullable NSString *)fingerprint nonFatalExceptionLevel:(NSString *)nonFatalExceptionLevel error:(FlutterError *_Nullable *_Nonnull)error; -@end - -extern void CrashReportingHostApiSetup(id binaryMessenger, NSObject *_Nullable api); - -NS_ASSUME_NONNULL_END diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/CrashReportingPigeon.m b/packages/Instabug-Flutter/ios/Classes/Generated/CrashReportingPigeon.m deleted file mode 100644 index 1e9f4426d..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/CrashReportingPigeon.m +++ /dev/null @@ -1,97 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import "CrashReportingPigeon.h" - -#if TARGET_OS_OSX -#import -#else -#import -#endif - -#if !__has_feature(objc_arc) -#error File requires ARC to be enabled. -#endif - -static NSArray *wrapResult(id result, FlutterError *error) { - if (error) { - return @[ - error.code ?: [NSNull null], error.message ?: [NSNull null], error.details ?: [NSNull null] - ]; - } - return @[ result ?: [NSNull null] ]; -} -static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { - id result = array[key]; - return (result == [NSNull null]) ? nil : result; -} - -NSObject *CrashReportingHostApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -void CrashReportingHostApiSetup(id binaryMessenger, NSObject *api) { - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.CrashReportingHostApi.setEnabled" - binaryMessenger:binaryMessenger - codec:CrashReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setEnabledIsEnabled:error:)], @"CrashReportingHostApi api (%@) doesn't respond to @selector(setEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.CrashReportingHostApi.send" - binaryMessenger:binaryMessenger - codec:CrashReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(sendJsonCrash:isHandled:error:)], @"CrashReportingHostApi api (%@) doesn't respond to @selector(sendJsonCrash:isHandled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_jsonCrash = GetNullableObjectAtIndex(args, 0); - NSNumber *arg_isHandled = GetNullableObjectAtIndex(args, 1); - FlutterError *error; - [api sendJsonCrash:arg_jsonCrash isHandled:arg_isHandled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.CrashReportingHostApi.sendNonFatalError" - binaryMessenger:binaryMessenger - codec:CrashReportingHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(sendNonFatalErrorJsonCrash:userAttributes:fingerprint:nonFatalExceptionLevel:error:)], @"CrashReportingHostApi api (%@) doesn't respond to @selector(sendNonFatalErrorJsonCrash:userAttributes:fingerprint:nonFatalExceptionLevel:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_jsonCrash = GetNullableObjectAtIndex(args, 0); - NSDictionary *arg_userAttributes = GetNullableObjectAtIndex(args, 1); - NSString *arg_fingerprint = GetNullableObjectAtIndex(args, 2); - NSString *arg_nonFatalExceptionLevel = GetNullableObjectAtIndex(args, 3); - FlutterError *error; - [api sendNonFatalErrorJsonCrash:arg_jsonCrash userAttributes:arg_userAttributes fingerprint:arg_fingerprint nonFatalExceptionLevel:arg_nonFatalExceptionLevel error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } -} diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/FeatureRequestsPigeon.h b/packages/Instabug-Flutter/ios/Classes/Generated/FeatureRequestsPigeon.h deleted file mode 100644 index 012df9ebb..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/FeatureRequestsPigeon.h +++ /dev/null @@ -1,24 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import - -@protocol FlutterBinaryMessenger; -@protocol FlutterMessageCodec; -@class FlutterError; -@class FlutterStandardTypedData; - -NS_ASSUME_NONNULL_BEGIN - - -/// The codec used by FeatureRequestsHostApi. -NSObject *FeatureRequestsHostApiGetCodec(void); - -@protocol FeatureRequestsHostApi -- (void)showWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)setEmailFieldRequiredIsRequired:(NSNumber *)isRequired actionTypes:(NSArray *)actionTypes error:(FlutterError *_Nullable *_Nonnull)error; -@end - -extern void FeatureRequestsHostApiSetup(id binaryMessenger, NSObject *_Nullable api); - -NS_ASSUME_NONNULL_END diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/FeatureRequestsPigeon.m b/packages/Instabug-Flutter/ios/Classes/Generated/FeatureRequestsPigeon.m deleted file mode 100644 index 6e5f4d40e..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/FeatureRequestsPigeon.m +++ /dev/null @@ -1,73 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import "FeatureRequestsPigeon.h" - -#if TARGET_OS_OSX -#import -#else -#import -#endif - -#if !__has_feature(objc_arc) -#error File requires ARC to be enabled. -#endif - -static NSArray *wrapResult(id result, FlutterError *error) { - if (error) { - return @[ - error.code ?: [NSNull null], error.message ?: [NSNull null], error.details ?: [NSNull null] - ]; - } - return @[ result ?: [NSNull null] ]; -} -static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { - id result = array[key]; - return (result == [NSNull null]) ? nil : result; -} - -NSObject *FeatureRequestsHostApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -void FeatureRequestsHostApiSetup(id binaryMessenger, NSObject *api) { - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.FeatureRequestsHostApi.show" - binaryMessenger:binaryMessenger - codec:FeatureRequestsHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(showWithError:)], @"FeatureRequestsHostApi api (%@) doesn't respond to @selector(showWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api showWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.FeatureRequestsHostApi.setEmailFieldRequired" - binaryMessenger:binaryMessenger - codec:FeatureRequestsHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setEmailFieldRequiredIsRequired:actionTypes:error:)], @"FeatureRequestsHostApi api (%@) doesn't respond to @selector(setEmailFieldRequiredIsRequired:actionTypes:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isRequired = GetNullableObjectAtIndex(args, 0); - NSArray *arg_actionTypes = GetNullableObjectAtIndex(args, 1); - FlutterError *error; - [api setEmailFieldRequiredIsRequired:arg_isRequired actionTypes:arg_actionTypes error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } -} diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/InstabugLogPigeon.h b/packages/Instabug-Flutter/ios/Classes/Generated/InstabugLogPigeon.h deleted file mode 100644 index 61c09cf40..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/InstabugLogPigeon.h +++ /dev/null @@ -1,28 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import - -@protocol FlutterBinaryMessenger; -@protocol FlutterMessageCodec; -@class FlutterError; -@class FlutterStandardTypedData; - -NS_ASSUME_NONNULL_BEGIN - - -/// The codec used by InstabugLogHostApi. -NSObject *InstabugLogHostApiGetCodec(void); - -@protocol InstabugLogHostApi -- (void)logVerboseMessage:(NSString *)message error:(FlutterError *_Nullable *_Nonnull)error; -- (void)logDebugMessage:(NSString *)message error:(FlutterError *_Nullable *_Nonnull)error; -- (void)logInfoMessage:(NSString *)message error:(FlutterError *_Nullable *_Nonnull)error; -- (void)logWarnMessage:(NSString *)message error:(FlutterError *_Nullable *_Nonnull)error; -- (void)logErrorMessage:(NSString *)message error:(FlutterError *_Nullable *_Nonnull)error; -- (void)clearAllLogsWithError:(FlutterError *_Nullable *_Nonnull)error; -@end - -extern void InstabugLogHostApiSetup(id binaryMessenger, NSObject *_Nullable api); - -NS_ASSUME_NONNULL_END diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/InstabugLogPigeon.m b/packages/Instabug-Flutter/ios/Classes/Generated/InstabugLogPigeon.m deleted file mode 100644 index 17961c82b..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/InstabugLogPigeon.m +++ /dev/null @@ -1,148 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import "InstabugLogPigeon.h" - -#if TARGET_OS_OSX -#import -#else -#import -#endif - -#if !__has_feature(objc_arc) -#error File requires ARC to be enabled. -#endif - -static NSArray *wrapResult(id result, FlutterError *error) { - if (error) { - return @[ - error.code ?: [NSNull null], error.message ?: [NSNull null], error.details ?: [NSNull null] - ]; - } - return @[ result ?: [NSNull null] ]; -} -static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { - id result = array[key]; - return (result == [NSNull null]) ? nil : result; -} - -NSObject *InstabugLogHostApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -void InstabugLogHostApiSetup(id binaryMessenger, NSObject *api) { - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logVerbose" - binaryMessenger:binaryMessenger - codec:InstabugLogHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(logVerboseMessage:error:)], @"InstabugLogHostApi api (%@) doesn't respond to @selector(logVerboseMessage:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_message = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api logVerboseMessage:arg_message error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logDebug" - binaryMessenger:binaryMessenger - codec:InstabugLogHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(logDebugMessage:error:)], @"InstabugLogHostApi api (%@) doesn't respond to @selector(logDebugMessage:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_message = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api logDebugMessage:arg_message error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logInfo" - binaryMessenger:binaryMessenger - codec:InstabugLogHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(logInfoMessage:error:)], @"InstabugLogHostApi api (%@) doesn't respond to @selector(logInfoMessage:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_message = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api logInfoMessage:arg_message error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logWarn" - binaryMessenger:binaryMessenger - codec:InstabugLogHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(logWarnMessage:error:)], @"InstabugLogHostApi api (%@) doesn't respond to @selector(logWarnMessage:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_message = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api logWarnMessage:arg_message error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logError" - binaryMessenger:binaryMessenger - codec:InstabugLogHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(logErrorMessage:error:)], @"InstabugLogHostApi api (%@) doesn't respond to @selector(logErrorMessage:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_message = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api logErrorMessage:arg_message error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.clearAllLogs" - binaryMessenger:binaryMessenger - codec:InstabugLogHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(clearAllLogsWithError:)], @"InstabugLogHostApi api (%@) doesn't respond to @selector(clearAllLogsWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api clearAllLogsWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } -} diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/InstabugPigeon.h b/packages/Instabug-Flutter/ios/Classes/Generated/InstabugPigeon.h deleted file mode 100644 index 767355ec6..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/InstabugPigeon.h +++ /dev/null @@ -1,62 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import - -@protocol FlutterBinaryMessenger; -@protocol FlutterMessageCodec; -@class FlutterError; -@class FlutterStandardTypedData; - -NS_ASSUME_NONNULL_BEGIN - - -/// The codec used by InstabugHostApi. -NSObject *InstabugHostApiGetCodec(void); - -@protocol InstabugHostApi -- (void)setEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -/// @return `nil` only when `error != nil`. -- (nullable NSNumber *)isEnabledWithError:(FlutterError *_Nullable *_Nonnull)error; -/// @return `nil` only when `error != nil`. -- (nullable NSNumber *)isBuiltWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)initToken:(NSString *)token invocationEvents:(NSArray *)invocationEvents debugLogsLevel:(NSString *)debugLogsLevel error:(FlutterError *_Nullable *_Nonnull)error; -- (void)showWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)showWelcomeMessageWithModeMode:(NSString *)mode error:(FlutterError *_Nullable *_Nonnull)error; -- (void)identifyUserEmail:(NSString *)email name:(nullable NSString *)name userId:(nullable NSString *)userId error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setUserDataData:(NSString *)data error:(FlutterError *_Nullable *_Nonnull)error; -- (void)logUserEventName:(NSString *)name error:(FlutterError *_Nullable *_Nonnull)error; -- (void)logOutWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)setLocaleLocale:(NSString *)locale error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setColorThemeTheme:(NSString *)theme error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setWelcomeMessageModeMode:(NSString *)mode error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setPrimaryColorColor:(NSNumber *)color error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setSessionProfilerEnabledEnabled:(NSNumber *)enabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setValueForStringWithKeyValue:(NSString *)value key:(NSString *)key error:(FlutterError *_Nullable *_Nonnull)error; -- (void)appendTagsTags:(NSArray *)tags error:(FlutterError *_Nullable *_Nonnull)error; -- (void)resetTagsWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)getTagsWithCompletion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)addExperimentsExperiments:(NSArray *)experiments error:(FlutterError *_Nullable *_Nonnull)error; -- (void)removeExperimentsExperiments:(NSArray *)experiments error:(FlutterError *_Nullable *_Nonnull)error; -- (void)clearAllExperimentsWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)addFeatureFlagsFeatureFlagsMap:(NSDictionary *)featureFlagsMap error:(FlutterError *_Nullable *_Nonnull)error; -- (void)removeFeatureFlagsFeatureFlags:(NSArray *)featureFlags error:(FlutterError *_Nullable *_Nonnull)error; -- (void)removeAllFeatureFlagsWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)setUserAttributeValue:(NSString *)value key:(NSString *)key error:(FlutterError *_Nullable *_Nonnull)error; -- (void)removeUserAttributeKey:(NSString *)key error:(FlutterError *_Nullable *_Nonnull)error; -- (void)getUserAttributeForKeyKey:(NSString *)key completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -- (void)getUserAttributesWithCompletion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)setReproStepsConfigBugMode:(nullable NSString *)bugMode crashMode:(nullable NSString *)crashMode sessionReplayMode:(nullable NSString *)sessionReplayMode error:(FlutterError *_Nullable *_Nonnull)error; -- (void)reportScreenChangeScreenName:(NSString *)screenName error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setCustomBrandingImageLight:(NSString *)light dark:(NSString *)dark error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setFontFont:(NSString *)font error:(FlutterError *_Nullable *_Nonnull)error; -- (void)addFileAttachmentWithURLFilePath:(NSString *)filePath fileName:(NSString *)fileName error:(FlutterError *_Nullable *_Nonnull)error; -- (void)addFileAttachmentWithDataData:(FlutterStandardTypedData *)data fileName:(NSString *)fileName error:(FlutterError *_Nullable *_Nonnull)error; -- (void)clearFileAttachmentsWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)networkLogData:(NSDictionary *)data error:(FlutterError *_Nullable *_Nonnull)error; -- (void)willRedirectToStoreWithError:(FlutterError *_Nullable *_Nonnull)error; -@end - -extern void InstabugHostApiSetup(id binaryMessenger, NSObject *_Nullable api); - -NS_ASSUME_NONNULL_END diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/InstabugPigeon.m b/packages/Instabug-Flutter/ios/Classes/Generated/InstabugPigeon.m deleted file mode 100644 index d5bf0f1d9..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/InstabugPigeon.m +++ /dev/null @@ -1,747 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import "InstabugPigeon.h" - -#if TARGET_OS_OSX -#import -#else -#import -#endif - -#if !__has_feature(objc_arc) -#error File requires ARC to be enabled. -#endif - -static NSArray *wrapResult(id result, FlutterError *error) { - if (error) { - return @[ - error.code ?: [NSNull null], error.message ?: [NSNull null], error.details ?: [NSNull null] - ]; - } - return @[ result ?: [NSNull null] ]; -} -static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { - id result = array[key]; - return (result == [NSNull null]) ? nil : result; -} - -NSObject *InstabugHostApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -void InstabugHostApiSetup(id binaryMessenger, NSObject *api) { - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setEnabled" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setEnabledIsEnabled:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(setEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.isEnabled" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(isEnabledWithError:)], @"InstabugHostApi api (%@) doesn't respond to @selector(isEnabledWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - NSNumber *output = [api isEnabledWithError:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.isBuilt" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(isBuiltWithError:)], @"InstabugHostApi api (%@) doesn't respond to @selector(isBuiltWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - NSNumber *output = [api isBuiltWithError:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.init" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(initToken:invocationEvents:debugLogsLevel:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(initToken:invocationEvents:debugLogsLevel:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_token = GetNullableObjectAtIndex(args, 0); - NSArray *arg_invocationEvents = GetNullableObjectAtIndex(args, 1); - NSString *arg_debugLogsLevel = GetNullableObjectAtIndex(args, 2); - FlutterError *error; - [api initToken:arg_token invocationEvents:arg_invocationEvents debugLogsLevel:arg_debugLogsLevel error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.show" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(showWithError:)], @"InstabugHostApi api (%@) doesn't respond to @selector(showWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api showWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.showWelcomeMessageWithMode" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(showWelcomeMessageWithModeMode:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(showWelcomeMessageWithModeMode:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_mode = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api showWelcomeMessageWithModeMode:arg_mode error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.identifyUser" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(identifyUserEmail:name:userId:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(identifyUserEmail:name:userId:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_email = GetNullableObjectAtIndex(args, 0); - NSString *arg_name = GetNullableObjectAtIndex(args, 1); - NSString *arg_userId = GetNullableObjectAtIndex(args, 2); - FlutterError *error; - [api identifyUserEmail:arg_email name:arg_name userId:arg_userId error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setUserData" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setUserDataData:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(setUserDataData:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_data = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setUserDataData:arg_data error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.logUserEvent" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(logUserEventName:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(logUserEventName:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_name = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api logUserEventName:arg_name error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.logOut" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(logOutWithError:)], @"InstabugHostApi api (%@) doesn't respond to @selector(logOutWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api logOutWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setLocale" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setLocaleLocale:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(setLocaleLocale:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_locale = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setLocaleLocale:arg_locale error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setColorTheme" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setColorThemeTheme:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(setColorThemeTheme:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_theme = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setColorThemeTheme:arg_theme error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setWelcomeMessageMode" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setWelcomeMessageModeMode:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(setWelcomeMessageModeMode:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_mode = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setWelcomeMessageModeMode:arg_mode error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setPrimaryColor" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setPrimaryColorColor:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(setPrimaryColorColor:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_color = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setPrimaryColorColor:arg_color error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setSessionProfilerEnabled" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setSessionProfilerEnabledEnabled:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(setSessionProfilerEnabledEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_enabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setSessionProfilerEnabledEnabled:arg_enabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setValueForStringWithKey" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setValueForStringWithKeyValue:key:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(setValueForStringWithKeyValue:key:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_value = GetNullableObjectAtIndex(args, 0); - NSString *arg_key = GetNullableObjectAtIndex(args, 1); - FlutterError *error; - [api setValueForStringWithKeyValue:arg_value key:arg_key error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.appendTags" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(appendTagsTags:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(appendTagsTags:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_tags = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api appendTagsTags:arg_tags error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.resetTags" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(resetTagsWithError:)], @"InstabugHostApi api (%@) doesn't respond to @selector(resetTagsWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api resetTagsWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.getTags" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(getTagsWithCompletion:)], @"InstabugHostApi api (%@) doesn't respond to @selector(getTagsWithCompletion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api getTagsWithCompletion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.addExperiments" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(addExperimentsExperiments:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(addExperimentsExperiments:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_experiments = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api addExperimentsExperiments:arg_experiments error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.removeExperiments" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(removeExperimentsExperiments:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(removeExperimentsExperiments:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_experiments = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api removeExperimentsExperiments:arg_experiments error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.clearAllExperiments" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(clearAllExperimentsWithError:)], @"InstabugHostApi api (%@) doesn't respond to @selector(clearAllExperimentsWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api clearAllExperimentsWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.addFeatureFlags" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(addFeatureFlagsFeatureFlagsMap:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(addFeatureFlagsFeatureFlagsMap:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_featureFlagsMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api addFeatureFlagsFeatureFlagsMap:arg_featureFlagsMap error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.removeFeatureFlags" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(removeFeatureFlagsFeatureFlags:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(removeFeatureFlagsFeatureFlags:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_featureFlags = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api removeFeatureFlagsFeatureFlags:arg_featureFlags error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.removeAllFeatureFlags" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(removeAllFeatureFlagsWithError:)], @"InstabugHostApi api (%@) doesn't respond to @selector(removeAllFeatureFlagsWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api removeAllFeatureFlagsWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setUserAttribute" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setUserAttributeValue:key:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(setUserAttributeValue:key:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_value = GetNullableObjectAtIndex(args, 0); - NSString *arg_key = GetNullableObjectAtIndex(args, 1); - FlutterError *error; - [api setUserAttributeValue:arg_value key:arg_key error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.removeUserAttribute" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(removeUserAttributeKey:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(removeUserAttributeKey:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_key = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api removeUserAttributeKey:arg_key error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.getUserAttributeForKey" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(getUserAttributeForKeyKey:completion:)], @"InstabugHostApi api (%@) doesn't respond to @selector(getUserAttributeForKeyKey:completion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_key = GetNullableObjectAtIndex(args, 0); - [api getUserAttributeForKeyKey:arg_key completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.getUserAttributes" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(getUserAttributesWithCompletion:)], @"InstabugHostApi api (%@) doesn't respond to @selector(getUserAttributesWithCompletion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api getUserAttributesWithCompletion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setReproStepsConfig" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setReproStepsConfigBugMode:crashMode:sessionReplayMode:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(setReproStepsConfigBugMode:crashMode:sessionReplayMode:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_bugMode = GetNullableObjectAtIndex(args, 0); - NSString *arg_crashMode = GetNullableObjectAtIndex(args, 1); - NSString *arg_sessionReplayMode = GetNullableObjectAtIndex(args, 2); - FlutterError *error; - [api setReproStepsConfigBugMode:arg_bugMode crashMode:arg_crashMode sessionReplayMode:arg_sessionReplayMode error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.reportScreenChange" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(reportScreenChangeScreenName:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(reportScreenChangeScreenName:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_screenName = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api reportScreenChangeScreenName:arg_screenName error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setCustomBrandingImage" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setCustomBrandingImageLight:dark:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(setCustomBrandingImageLight:dark:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_light = GetNullableObjectAtIndex(args, 0); - NSString *arg_dark = GetNullableObjectAtIndex(args, 1); - FlutterError *error; - [api setCustomBrandingImageLight:arg_light dark:arg_dark error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setFont" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setFontFont:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(setFontFont:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_font = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setFontFont:arg_font error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.addFileAttachmentWithURL" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(addFileAttachmentWithURLFilePath:fileName:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(addFileAttachmentWithURLFilePath:fileName:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_filePath = GetNullableObjectAtIndex(args, 0); - NSString *arg_fileName = GetNullableObjectAtIndex(args, 1); - FlutterError *error; - [api addFileAttachmentWithURLFilePath:arg_filePath fileName:arg_fileName error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.addFileAttachmentWithData" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(addFileAttachmentWithDataData:fileName:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(addFileAttachmentWithDataData:fileName:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - FlutterStandardTypedData *arg_data = GetNullableObjectAtIndex(args, 0); - NSString *arg_fileName = GetNullableObjectAtIndex(args, 1); - FlutterError *error; - [api addFileAttachmentWithDataData:arg_data fileName:arg_fileName error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.clearFileAttachments" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(clearFileAttachmentsWithError:)], @"InstabugHostApi api (%@) doesn't respond to @selector(clearFileAttachmentsWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api clearFileAttachmentsWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.networkLog" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(networkLogData:error:)], @"InstabugHostApi api (%@) doesn't respond to @selector(networkLogData:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_data = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api networkLogData:arg_data error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.willRedirectToStore" - binaryMessenger:binaryMessenger - codec:InstabugHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(willRedirectToStoreWithError:)], @"InstabugHostApi api (%@) doesn't respond to @selector(willRedirectToStoreWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api willRedirectToStoreWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } -} diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/InstabugPrivateViewPigeon.h b/packages/Instabug-Flutter/ios/Classes/Generated/InstabugPrivateViewPigeon.h deleted file mode 100644 index ce09582c7..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/InstabugPrivateViewPigeon.h +++ /dev/null @@ -1,22 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import - -@protocol FlutterBinaryMessenger; -@protocol FlutterMessageCodec; -@class FlutterError; -@class FlutterStandardTypedData; - -NS_ASSUME_NONNULL_BEGIN - - -/// The codec used by InstabugPrivateViewApi. -NSObject *InstabugPrivateViewApiGetCodec(void); - -@interface InstabugPrivateViewApi : NSObject -- (instancetype)initWithBinaryMessenger:(id)binaryMessenger; -- (void)getPrivateViewsWithCompletion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -@end - -NS_ASSUME_NONNULL_END diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/InstabugPrivateViewPigeon.m b/packages/Instabug-Flutter/ios/Classes/Generated/InstabugPrivateViewPigeon.m deleted file mode 100644 index 1b91a76ad..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/InstabugPrivateViewPigeon.m +++ /dev/null @@ -1,52 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import "InstabugPrivateViewPigeon.h" - -#if TARGET_OS_OSX -#import -#else -#import -#endif - -#if !__has_feature(objc_arc) -#error File requires ARC to be enabled. -#endif - -static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { - id result = array[key]; - return (result == [NSNull null]) ? nil : result; -} - -NSObject *InstabugPrivateViewApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -@interface InstabugPrivateViewApi () -@property(nonatomic, strong) NSObject *binaryMessenger; -@end - -@implementation InstabugPrivateViewApi - -- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { - self = [super init]; - if (self) { - _binaryMessenger = binaryMessenger; - } - return self; -} -- (void)getPrivateViewsWithCompletion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugPrivateViewApi.getPrivateViews" - binaryMessenger:self.binaryMessenger - codec:InstabugPrivateViewApiGetCodec()]; - [channel sendMessage:nil reply:^(id reply) { - NSArray *output = reply; - completion(output, nil); - }]; -} -@end - diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/RepliesPigeon.h b/packages/Instabug-Flutter/ios/Classes/Generated/RepliesPigeon.h deleted file mode 100644 index d1688b4e0..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/RepliesPigeon.h +++ /dev/null @@ -1,37 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import - -@protocol FlutterBinaryMessenger; -@protocol FlutterMessageCodec; -@class FlutterError; -@class FlutterStandardTypedData; - -NS_ASSUME_NONNULL_BEGIN - - -/// The codec used by RepliesFlutterApi. -NSObject *RepliesFlutterApiGetCodec(void); - -@interface RepliesFlutterApi : NSObject -- (instancetype)initWithBinaryMessenger:(id)binaryMessenger; -- (void)onNewReplyWithCompletion:(void (^)(FlutterError *_Nullable))completion; -@end - -/// The codec used by RepliesHostApi. -NSObject *RepliesHostApiGetCodec(void); - -@protocol RepliesHostApi -- (void)setEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)showWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)setInAppNotificationsEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setInAppNotificationSoundIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)getUnreadRepliesCountWithCompletion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)hasChatsWithCompletion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)bindOnNewReplyCallbackWithError:(FlutterError *_Nullable *_Nonnull)error; -@end - -extern void RepliesHostApiSetup(id binaryMessenger, NSObject *_Nullable api); - -NS_ASSUME_NONNULL_END diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/RepliesPigeon.m b/packages/Instabug-Flutter/ios/Classes/Generated/RepliesPigeon.m deleted file mode 100644 index 68ed05a19..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/RepliesPigeon.m +++ /dev/null @@ -1,192 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import "RepliesPigeon.h" - -#if TARGET_OS_OSX -#import -#else -#import -#endif - -#if !__has_feature(objc_arc) -#error File requires ARC to be enabled. -#endif - -static NSArray *wrapResult(id result, FlutterError *error) { - if (error) { - return @[ - error.code ?: [NSNull null], error.message ?: [NSNull null], error.details ?: [NSNull null] - ]; - } - return @[ result ?: [NSNull null] ]; -} -static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { - id result = array[key]; - return (result == [NSNull null]) ? nil : result; -} - -NSObject *RepliesFlutterApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -@interface RepliesFlutterApi () -@property(nonatomic, strong) NSObject *binaryMessenger; -@end - -@implementation RepliesFlutterApi - -- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { - self = [super init]; - if (self) { - _binaryMessenger = binaryMessenger; - } - return self; -} -- (void)onNewReplyWithCompletion:(void (^)(FlutterError *_Nullable))completion { - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:@"dev.flutter.pigeon.instabug_flutter.RepliesFlutterApi.onNewReply" - binaryMessenger:self.binaryMessenger - codec:RepliesFlutterApiGetCodec()]; - [channel sendMessage:nil reply:^(id reply) { - completion(nil); - }]; -} -@end - -NSObject *RepliesHostApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -void RepliesHostApiSetup(id binaryMessenger, NSObject *api) { - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.RepliesHostApi.setEnabled" - binaryMessenger:binaryMessenger - codec:RepliesHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setEnabledIsEnabled:error:)], @"RepliesHostApi api (%@) doesn't respond to @selector(setEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.RepliesHostApi.show" - binaryMessenger:binaryMessenger - codec:RepliesHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(showWithError:)], @"RepliesHostApi api (%@) doesn't respond to @selector(showWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api showWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.RepliesHostApi.setInAppNotificationsEnabled" - binaryMessenger:binaryMessenger - codec:RepliesHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setInAppNotificationsEnabledIsEnabled:error:)], @"RepliesHostApi api (%@) doesn't respond to @selector(setInAppNotificationsEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setInAppNotificationsEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.RepliesHostApi.setInAppNotificationSound" - binaryMessenger:binaryMessenger - codec:RepliesHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setInAppNotificationSoundIsEnabled:error:)], @"RepliesHostApi api (%@) doesn't respond to @selector(setInAppNotificationSoundIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setInAppNotificationSoundIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.RepliesHostApi.getUnreadRepliesCount" - binaryMessenger:binaryMessenger - codec:RepliesHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(getUnreadRepliesCountWithCompletion:)], @"RepliesHostApi api (%@) doesn't respond to @selector(getUnreadRepliesCountWithCompletion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api getUnreadRepliesCountWithCompletion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.RepliesHostApi.hasChats" - binaryMessenger:binaryMessenger - codec:RepliesHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(hasChatsWithCompletion:)], @"RepliesHostApi api (%@) doesn't respond to @selector(hasChatsWithCompletion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api hasChatsWithCompletion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.RepliesHostApi.bindOnNewReplyCallback" - binaryMessenger:binaryMessenger - codec:RepliesHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(bindOnNewReplyCallbackWithError:)], @"RepliesHostApi api (%@) doesn't respond to @selector(bindOnNewReplyCallbackWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api bindOnNewReplyCallbackWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } -} diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/SessionReplayPigeon.h b/packages/Instabug-Flutter/ios/Classes/Generated/SessionReplayPigeon.h deleted file mode 100644 index d29358cab..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/SessionReplayPigeon.h +++ /dev/null @@ -1,27 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import - -@protocol FlutterBinaryMessenger; -@protocol FlutterMessageCodec; -@class FlutterError; -@class FlutterStandardTypedData; - -NS_ASSUME_NONNULL_BEGIN - - -/// The codec used by SessionReplayHostApi. -NSObject *SessionReplayHostApiGetCodec(void); - -@protocol SessionReplayHostApi -- (void)setEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setNetworkLogsEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setInstabugLogsEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setUserStepsEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)getSessionReplayLinkWithCompletion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -@end - -extern void SessionReplayHostApiSetup(id binaryMessenger, NSObject *_Nullable api); - -NS_ASSUME_NONNULL_END diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/SessionReplayPigeon.m b/packages/Instabug-Flutter/ios/Classes/Generated/SessionReplayPigeon.m deleted file mode 100644 index 322e52e7c..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/SessionReplayPigeon.m +++ /dev/null @@ -1,129 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import "SessionReplayPigeon.h" - -#if TARGET_OS_OSX -#import -#else -#import -#endif - -#if !__has_feature(objc_arc) -#error File requires ARC to be enabled. -#endif - -static NSArray *wrapResult(id result, FlutterError *error) { - if (error) { - return @[ - error.code ?: [NSNull null], error.message ?: [NSNull null], error.details ?: [NSNull null] - ]; - } - return @[ result ?: [NSNull null] ]; -} -static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { - id result = array[key]; - return (result == [NSNull null]) ? nil : result; -} - -NSObject *SessionReplayHostApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -void SessionReplayHostApiSetup(id binaryMessenger, NSObject *api) { - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.setEnabled" - binaryMessenger:binaryMessenger - codec:SessionReplayHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setEnabledIsEnabled:error:)], @"SessionReplayHostApi api (%@) doesn't respond to @selector(setEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.setNetworkLogsEnabled" - binaryMessenger:binaryMessenger - codec:SessionReplayHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setNetworkLogsEnabledIsEnabled:error:)], @"SessionReplayHostApi api (%@) doesn't respond to @selector(setNetworkLogsEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setNetworkLogsEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.setInstabugLogsEnabled" - binaryMessenger:binaryMessenger - codec:SessionReplayHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setInstabugLogsEnabledIsEnabled:error:)], @"SessionReplayHostApi api (%@) doesn't respond to @selector(setInstabugLogsEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setInstabugLogsEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.setUserStepsEnabled" - binaryMessenger:binaryMessenger - codec:SessionReplayHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setUserStepsEnabledIsEnabled:error:)], @"SessionReplayHostApi api (%@) doesn't respond to @selector(setUserStepsEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setUserStepsEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.getSessionReplayLink" - binaryMessenger:binaryMessenger - codec:SessionReplayHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(getSessionReplayLinkWithCompletion:)], @"SessionReplayHostApi api (%@) doesn't respond to @selector(getSessionReplayLinkWithCompletion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api getSessionReplayLinkWithCompletion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } -} diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/SurveysPigeon.h b/packages/Instabug-Flutter/ios/Classes/Generated/SurveysPigeon.h deleted file mode 100644 index 8af831a81..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/SurveysPigeon.h +++ /dev/null @@ -1,41 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import - -@protocol FlutterBinaryMessenger; -@protocol FlutterMessageCodec; -@class FlutterError; -@class FlutterStandardTypedData; - -NS_ASSUME_NONNULL_BEGIN - - -/// The codec used by SurveysFlutterApi. -NSObject *SurveysFlutterApiGetCodec(void); - -@interface SurveysFlutterApi : NSObject -- (instancetype)initWithBinaryMessenger:(id)binaryMessenger; -- (void)onShowSurveyWithCompletion:(void (^)(FlutterError *_Nullable))completion; -- (void)onDismissSurveyWithCompletion:(void (^)(FlutterError *_Nullable))completion; -@end - -/// The codec used by SurveysHostApi. -NSObject *SurveysHostApiGetCodec(void); - -@protocol SurveysHostApi -- (void)setEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)showSurveyIfAvailableWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)showSurveySurveyToken:(NSString *)surveyToken error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setAutoShowingEnabledIsEnabled:(NSNumber *)isEnabled error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setShouldShowWelcomeScreenShouldShowWelcomeScreen:(NSNumber *)shouldShowWelcomeScreen error:(FlutterError *_Nullable *_Nonnull)error; -- (void)setAppStoreURLAppStoreURL:(NSString *)appStoreURL error:(FlutterError *_Nullable *_Nonnull)error; -- (void)hasRespondedToSurveySurveyToken:(NSString *)surveyToken completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)getAvailableSurveysWithCompletion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)bindOnShowSurveyCallbackWithError:(FlutterError *_Nullable *_Nonnull)error; -- (void)bindOnDismissSurveyCallbackWithError:(FlutterError *_Nullable *_Nonnull)error; -@end - -extern void SurveysHostApiSetup(id binaryMessenger, NSObject *_Nullable api); - -NS_ASSUME_NONNULL_END diff --git a/packages/Instabug-Flutter/ios/Classes/Generated/SurveysPigeon.m b/packages/Instabug-Flutter/ios/Classes/Generated/SurveysPigeon.m deleted file mode 100644 index 9e5d955e1..000000000 --- a/packages/Instabug-Flutter/ios/Classes/Generated/SurveysPigeon.m +++ /dev/null @@ -1,259 +0,0 @@ -// Autogenerated from Pigeon (v10.1.5), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import "SurveysPigeon.h" - -#if TARGET_OS_OSX -#import -#else -#import -#endif - -#if !__has_feature(objc_arc) -#error File requires ARC to be enabled. -#endif - -static NSArray *wrapResult(id result, FlutterError *error) { - if (error) { - return @[ - error.code ?: [NSNull null], error.message ?: [NSNull null], error.details ?: [NSNull null] - ]; - } - return @[ result ?: [NSNull null] ]; -} -static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { - id result = array[key]; - return (result == [NSNull null]) ? nil : result; -} - -NSObject *SurveysFlutterApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -@interface SurveysFlutterApi () -@property(nonatomic, strong) NSObject *binaryMessenger; -@end - -@implementation SurveysFlutterApi - -- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { - self = [super init]; - if (self) { - _binaryMessenger = binaryMessenger; - } - return self; -} -- (void)onShowSurveyWithCompletion:(void (^)(FlutterError *_Nullable))completion { - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:@"dev.flutter.pigeon.instabug_flutter.SurveysFlutterApi.onShowSurvey" - binaryMessenger:self.binaryMessenger - codec:SurveysFlutterApiGetCodec()]; - [channel sendMessage:nil reply:^(id reply) { - completion(nil); - }]; -} -- (void)onDismissSurveyWithCompletion:(void (^)(FlutterError *_Nullable))completion { - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:@"dev.flutter.pigeon.instabug_flutter.SurveysFlutterApi.onDismissSurvey" - binaryMessenger:self.binaryMessenger - codec:SurveysFlutterApiGetCodec()]; - [channel sendMessage:nil reply:^(id reply) { - completion(nil); - }]; -} -@end - -NSObject *SurveysHostApiGetCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - sSharedObject = [FlutterStandardMessageCodec sharedInstance]; - return sSharedObject; -} - -void SurveysHostApiSetup(id binaryMessenger, NSObject *api) { - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SurveysHostApi.setEnabled" - binaryMessenger:binaryMessenger - codec:SurveysHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setEnabledIsEnabled:error:)], @"SurveysHostApi api (%@) doesn't respond to @selector(setEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SurveysHostApi.showSurveyIfAvailable" - binaryMessenger:binaryMessenger - codec:SurveysHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(showSurveyIfAvailableWithError:)], @"SurveysHostApi api (%@) doesn't respond to @selector(showSurveyIfAvailableWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api showSurveyIfAvailableWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SurveysHostApi.showSurvey" - binaryMessenger:binaryMessenger - codec:SurveysHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(showSurveySurveyToken:error:)], @"SurveysHostApi api (%@) doesn't respond to @selector(showSurveySurveyToken:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_surveyToken = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api showSurveySurveyToken:arg_surveyToken error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SurveysHostApi.setAutoShowingEnabled" - binaryMessenger:binaryMessenger - codec:SurveysHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setAutoShowingEnabledIsEnabled:error:)], @"SurveysHostApi api (%@) doesn't respond to @selector(setAutoShowingEnabledIsEnabled:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_isEnabled = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setAutoShowingEnabledIsEnabled:arg_isEnabled error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SurveysHostApi.setShouldShowWelcomeScreen" - binaryMessenger:binaryMessenger - codec:SurveysHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setShouldShowWelcomeScreenShouldShowWelcomeScreen:error:)], @"SurveysHostApi api (%@) doesn't respond to @selector(setShouldShowWelcomeScreenShouldShowWelcomeScreen:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_shouldShowWelcomeScreen = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setShouldShowWelcomeScreenShouldShowWelcomeScreen:arg_shouldShowWelcomeScreen error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SurveysHostApi.setAppStoreURL" - binaryMessenger:binaryMessenger - codec:SurveysHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(setAppStoreURLAppStoreURL:error:)], @"SurveysHostApi api (%@) doesn't respond to @selector(setAppStoreURLAppStoreURL:error:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_appStoreURL = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - [api setAppStoreURLAppStoreURL:arg_appStoreURL error:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SurveysHostApi.hasRespondedToSurvey" - binaryMessenger:binaryMessenger - codec:SurveysHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(hasRespondedToSurveySurveyToken:completion:)], @"SurveysHostApi api (%@) doesn't respond to @selector(hasRespondedToSurveySurveyToken:completion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_surveyToken = GetNullableObjectAtIndex(args, 0); - [api hasRespondedToSurveySurveyToken:arg_surveyToken completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SurveysHostApi.getAvailableSurveys" - binaryMessenger:binaryMessenger - codec:SurveysHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(getAvailableSurveysWithCompletion:)], @"SurveysHostApi api (%@) doesn't respond to @selector(getAvailableSurveysWithCompletion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api getAvailableSurveysWithCompletion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SurveysHostApi.bindOnShowSurveyCallback" - binaryMessenger:binaryMessenger - codec:SurveysHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(bindOnShowSurveyCallbackWithError:)], @"SurveysHostApi api (%@) doesn't respond to @selector(bindOnShowSurveyCallbackWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api bindOnShowSurveyCallbackWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:@"dev.flutter.pigeon.instabug_flutter.SurveysHostApi.bindOnDismissSurveyCallback" - binaryMessenger:binaryMessenger - codec:SurveysHostApiGetCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(bindOnDismissSurveyCallbackWithError:)], @"SurveysHostApi api (%@) doesn't respond to @selector(bindOnDismissSurveyCallbackWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api bindOnDismissSurveyCallbackWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } -}