diff --git a/.gitignore b/.gitignore index dfa529b28..f422bef25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ # Generated files -*.mocks.dart -*.g.dart -packages/**/android/**/generated/ -packages/**/ios/**/Generated/ +#*.mocks.dart +#*.g.dart +#packages/**/android/**/generated/ +#packages/**/ios/**/Generated/ # Miscellaneous *.class @@ -86,4 +86,4 @@ android/gradlew.bat !**/ios/**/default.pbxuser !**/ios/**/default.perspectivev3 !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages -/packages/**/lib/src/generated/ +#/packages/**/lib/src/generated/ diff --git a/packages/instabug_dio_interceptor/CHANGELOG.md b/packages/instabug_dio_interceptor/CHANGELOG.md deleted file mode 100644 index bb88bd622..000000000 --- a/packages/instabug_dio_interceptor/CHANGELOG.md +++ /dev/null @@ -1,45 +0,0 @@ -# Changelog - -## [2.4.0] (2024-11-18) - -### Added - -- Add support for tracing network requests from Instabug to services like Datadog and New Relic ([#30](https://github.com/Instabug/Instabug-Dio-Interceptor/pull/30)). - -## [2.3.0] - (2024-05-07) - -### Added - -- Add support for Instabug Flutter SDK v13 ([#28](https://github.com/Instabug/Instabug-Dio-Interceptor/pull/28)). -- Add support for Instabug Flutter SDK v12 ([#26](https://github.com/Instabug/Instabug-Dio-Interceptor/pull/26)), closes [#25](https://github.com/Instabug/Instabug-Dio-Interceptor/issues/25). - -## v2.2.0 (2022-03-14) - -- Adds support for Dio v5 -- Relaxes dependencies version constraints - -## v2.1.1 (2022-08-01) - -- Bumps [instabug_flutter](https://pub.dev/packages/instabug_flutter) to v11 - -## v2.1.0 (2022-01-06) - -- Fixes network log compilation error. -- Adds payload size for network log. - -## v2.0.1 (2021-09-29) - -- Fixes an issue with APM network logger not reporting to the dashboard - -## v2.0.0 (2021-09-20) - -- Adds support for Dio v4.0 -- Upgrades to null safety - -## v1.0.0 (2019-07-29) - -- Updates instabug_flutter dependency name - -## v0.0.1 (2019-07-22) - -- Initial release diff --git a/packages/instabug_dio_interceptor/LICENSE b/packages/instabug_dio_interceptor/LICENSE deleted file mode 100644 index e4ca5a0ed..000000000 --- a/packages/instabug_dio_interceptor/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. diff --git a/packages/instabug_dio_interceptor/README.md b/packages/instabug_dio_interceptor/README.md deleted file mode 100644 index 4fc3ec30d..000000000 --- a/packages/instabug_dio_interceptor/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# Instabug Dio Interceptor - -[![CircleCI](https://circleci.com/gh/Instabug/Instabug-Dio-Interceptor.svg?style=svg)](https://circleci.com/gh/Instabug/Instabug-Dio-Interceptor) -[![pub package](https://img.shields.io/pub/v/instabug_dio_interceptor.svg)](https://pub.dev/packages/instabug_dio_interceptor) - -This package is an add on to [Instabug-Flutter](https://github.com/Instabug/Instabug-Flutter). - -It intercepts any requests performed with `Dio` Package and sends them to the report that will be sent to the dashboard. - -## Integration - -To enable network logging, simply add the `InstabugDioInterceptor` to the dio object interceptors as follows: - -```dart -var dio = new Dio(); -dio.interceptors.add(InstabugDioInterceptor()); -``` diff --git a/packages/instabug_dio_interceptor/example/README.md b/packages/instabug_dio_interceptor/example/README.md deleted file mode 100644 index a13562602..000000000 --- a/packages/instabug_dio_interceptor/example/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# example - -A new Flutter project. - -## Getting Started - -This project is a starting point for a Flutter application. - -A few resources to get you started if this is your first Flutter project: - -- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) - -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, -samples, guidance on mobile development, and a full API reference. diff --git a/packages/instabug_dio_interceptor/example/android/.gitignore b/packages/instabug_dio_interceptor/example/android/.gitignore deleted file mode 100644 index 6f568019d..000000000 --- a/packages/instabug_dio_interceptor/example/android/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -gradle-wrapper.jar -/.gradle -/captures/ -/gradlew -/gradlew.bat -/local.properties -GeneratedPluginRegistrant.java - -# Remember to never publicly share your keystore. -# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app -key.properties -**/*.keystore -**/*.jks diff --git a/packages/instabug_dio_interceptor/example/android/app/build.gradle b/packages/instabug_dio_interceptor/example/android/app/build.gradle deleted file mode 100644 index 5fe3c929f..000000000 --- a/packages/instabug_dio_interceptor/example/android/app/build.gradle +++ /dev/null @@ -1,68 +0,0 @@ -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' -} - -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - -android { - compileSdkVersion flutter.compileSdkVersion - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - - kotlinOptions { - jvmTarget = '1.8' - } - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - } - - defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.example" - minSdkVersion flutter.minSdkVersion - targetSdkVersion flutter.targetSdkVersion - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName - } - - buildTypes { - release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug - } - } -} - -flutter { - source '../..' -} - -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} diff --git a/packages/instabug_dio_interceptor/example/android/app/src/debug/AndroidManifest.xml b/packages/instabug_dio_interceptor/example/android/app/src/debug/AndroidManifest.xml deleted file mode 100644 index c208884f3..000000000 --- a/packages/instabug_dio_interceptor/example/android/app/src/debug/AndroidManifest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/packages/instabug_dio_interceptor/example/android/app/src/main/AndroidManifest.xml b/packages/instabug_dio_interceptor/example/android/app/src/main/AndroidManifest.xml deleted file mode 100644 index 633ee18ba..000000000 --- a/packages/instabug_dio_interceptor/example/android/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/packages/instabug_dio_interceptor/example/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java b/packages/instabug_dio_interceptor/example/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java deleted file mode 100644 index 752fc185d..000000000 --- a/packages/instabug_dio_interceptor/example/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java +++ /dev/null @@ -1,25 +0,0 @@ -// Generated file. -// -// If you wish to remove Flutter's multidex support, delete this entire file. -// -// Modifications to this file should be done in a copy under a different name -// as this file may be regenerated. - -package io.flutter.app; - -import android.app.Application; -import android.content.Context; -import androidx.annotation.CallSuper; -import androidx.multidex.MultiDex; - -/** - * Extension of {@link android.app.Application}, adding multidex support. - */ -public class FlutterMultiDexApplication extends Application { - @Override - @CallSuper - protected void attachBaseContext(Context base) { - super.attachBaseContext(base); - MultiDex.install(this); - } -} diff --git a/packages/instabug_dio_interceptor/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt b/packages/instabug_dio_interceptor/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt deleted file mode 100644 index e793a000d..000000000 --- a/packages/instabug_dio_interceptor/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt +++ /dev/null @@ -1,6 +0,0 @@ -package com.example.example - -import io.flutter.embedding.android.FlutterActivity - -class MainActivity: FlutterActivity() { -} diff --git a/packages/instabug_dio_interceptor/example/android/app/src/main/res/drawable-v21/launch_background.xml b/packages/instabug_dio_interceptor/example/android/app/src/main/res/drawable-v21/launch_background.xml deleted file mode 100644 index f74085f3f..000000000 --- a/packages/instabug_dio_interceptor/example/android/app/src/main/res/drawable-v21/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/packages/instabug_dio_interceptor/example/android/app/src/main/res/drawable/launch_background.xml b/packages/instabug_dio_interceptor/example/android/app/src/main/res/drawable/launch_background.xml deleted file mode 100644 index 304732f88..000000000 --- a/packages/instabug_dio_interceptor/example/android/app/src/main/res/drawable/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index db77bb4b7..000000000 Binary files a/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 17987b79b..000000000 Binary files a/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index 09d439148..000000000 Binary files a/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index d5f1c8d34..000000000 Binary files a/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 4d6372eeb..000000000 Binary files a/packages/instabug_dio_interceptor/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/android/app/src/main/res/values-night/styles.xml b/packages/instabug_dio_interceptor/example/android/app/src/main/res/values-night/styles.xml deleted file mode 100644 index 3db14bb53..000000000 --- a/packages/instabug_dio_interceptor/example/android/app/src/main/res/values-night/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/packages/instabug_dio_interceptor/example/android/app/src/main/res/values/styles.xml b/packages/instabug_dio_interceptor/example/android/app/src/main/res/values/styles.xml deleted file mode 100644 index d460d1e92..000000000 --- a/packages/instabug_dio_interceptor/example/android/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/packages/instabug_dio_interceptor/example/android/app/src/profile/AndroidManifest.xml b/packages/instabug_dio_interceptor/example/android/app/src/profile/AndroidManifest.xml deleted file mode 100644 index c208884f3..000000000 --- a/packages/instabug_dio_interceptor/example/android/app/src/profile/AndroidManifest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/packages/instabug_dio_interceptor/example/android/build.gradle b/packages/instabug_dio_interceptor/example/android/build.gradle deleted file mode 100644 index 4256f9173..000000000 --- a/packages/instabug_dio_interceptor/example/android/build.gradle +++ /dev/null @@ -1,31 +0,0 @@ -buildscript { - ext.kotlin_version = '1.6.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:4.1.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - -allprojects { - repositories { - google() - mavenCentral() - } -} - -rootProject.buildDir = '../build' -subprojects { - project.buildDir = "${rootProject.buildDir}/${project.name}" -} -subprojects { - project.evaluationDependsOn(':app') -} - -task clean(type: Delete) { - delete rootProject.buildDir -} diff --git a/packages/instabug_dio_interceptor/example/android/gradle.properties b/packages/instabug_dio_interceptor/example/android/gradle.properties deleted file mode 100644 index 94adc3a3f..000000000 --- a/packages/instabug_dio_interceptor/example/android/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -org.gradle.jvmargs=-Xmx1536M -android.useAndroidX=true -android.enableJetifier=true diff --git a/packages/instabug_dio_interceptor/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/instabug_dio_interceptor/example/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index bc6a58afd..000000000 --- a/packages/instabug_dio_interceptor/example/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Fri Jun 23 08:50:38 CEST 2017 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip diff --git a/packages/instabug_dio_interceptor/example/android/settings.gradle b/packages/instabug_dio_interceptor/example/android/settings.gradle deleted file mode 100644 index 44e62bcf0..000000000 --- a/packages/instabug_dio_interceptor/example/android/settings.gradle +++ /dev/null @@ -1,11 +0,0 @@ -include ':app' - -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() - -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } - -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/packages/instabug_dio_interceptor/example/ios/.gitignore b/packages/instabug_dio_interceptor/example/ios/.gitignore deleted file mode 100644 index 7a7f9873a..000000000 --- a/packages/instabug_dio_interceptor/example/ios/.gitignore +++ /dev/null @@ -1,34 +0,0 @@ -**/dgph -*.mode1v3 -*.mode2v3 -*.moved-aside -*.pbxuser -*.perspectivev3 -**/*sync/ -.sconsign.dblite -.tags* -**/.vagrant/ -**/DerivedData/ -Icon? -**/Pods/ -**/.symlinks/ -profile -xcuserdata -**/.generated/ -Flutter/App.framework -Flutter/Flutter.framework -Flutter/Flutter.podspec -Flutter/Generated.xcconfig -Flutter/ephemeral/ -Flutter/app.flx -Flutter/app.zip -Flutter/flutter_assets/ -Flutter/flutter_export_environment.sh -ServiceDefinitions.json -Runner/GeneratedPluginRegistrant.* - -# Exceptions to above rules. -!default.mode1v3 -!default.mode2v3 -!default.pbxuser -!default.perspectivev3 diff --git a/packages/instabug_dio_interceptor/example/ios/Flutter/AppFrameworkInfo.plist b/packages/instabug_dio_interceptor/example/ios/Flutter/AppFrameworkInfo.plist deleted file mode 100644 index 9625e105d..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Flutter/AppFrameworkInfo.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - App - CFBundleIdentifier - io.flutter.flutter.app - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - App - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - MinimumOSVersion - 11.0 - - diff --git a/packages/instabug_dio_interceptor/example/ios/Flutter/Debug.xcconfig b/packages/instabug_dio_interceptor/example/ios/Flutter/Debug.xcconfig deleted file mode 100644 index ec97fc6f3..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Flutter/Debug.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" -#include "Generated.xcconfig" diff --git a/packages/instabug_dio_interceptor/example/ios/Flutter/Release.xcconfig b/packages/instabug_dio_interceptor/example/ios/Flutter/Release.xcconfig deleted file mode 100644 index c4855bfe2..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Flutter/Release.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" -#include "Generated.xcconfig" diff --git a/packages/instabug_dio_interceptor/example/ios/Podfile b/packages/instabug_dio_interceptor/example/ios/Podfile deleted file mode 100644 index 0c985a221..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Podfile +++ /dev/null @@ -1,41 +0,0 @@ -# Uncomment this line to define a global platform for your project -platform :ios, '13.4' - -# CocoaPods analytics sends network stats synchronously affecting flutter build latency. -ENV['COCOAPODS_DISABLE_STATS'] = 'true' - -project 'Runner', { - 'Debug' => :debug, - 'Profile' => :release, - 'Release' => :release, -} - -def flutter_root - generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) - unless File.exist?(generated_xcode_build_settings_path) - raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" - end - - File.foreach(generated_xcode_build_settings_path) do |line| - matches = line.match(/FLUTTER_ROOT\=(.*)/) - return matches[1].strip if matches - end - raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" -end - -require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) - -flutter_ios_podfile_setup - -target 'Runner' do - use_frameworks! - use_modular_headers! - - flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) -end - -post_install do |installer| - installer.pods_project.targets.each do |target| - flutter_additional_ios_build_settings(target) - end -end diff --git a/packages/instabug_dio_interceptor/example/ios/Podfile.lock b/packages/instabug_dio_interceptor/example/ios/Podfile.lock deleted file mode 100644 index 8a17c66b4..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Podfile.lock +++ /dev/null @@ -1,29 +0,0 @@ -PODS: - - Flutter (1.0.0) - - Instabug (14.0.0) - - instabug_flutter (14.0.0): - - Flutter - - Instabug (= 14.0.0) - -DEPENDENCIES: - - Flutter (from `Flutter`) - - instabug_flutter (from `.symlinks/plugins/instabug_flutter/ios`) - -SPEC REPOS: - trunk: - - Instabug - -EXTERNAL SOURCES: - Flutter: - :path: Flutter - instabug_flutter: - :path: ".symlinks/plugins/instabug_flutter/ios" - -SPEC CHECKSUMS: - Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 - Instabug: a0beffc01658773e2fac549845782f8937707dc4 - instabug_flutter: ff8ab5ff34a476b1d2d887478ec190cda962b973 - -PODFILE CHECKSUM: eb179eda02c4d9ce45db6b1912a419962f739320 - -COCOAPODS: 1.14.3 diff --git a/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/project.pbxproj b/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/project.pbxproj deleted file mode 100644 index 90bc9fee8..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/project.pbxproj +++ /dev/null @@ -1,552 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 50; - objects = { - -/* Begin PBXBuildFile section */ - 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; - 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; - 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; - AD44C4DB39F7C3968B8C56EB /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18B300F826F2074CB5E450C4 /* Pods_Runner.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 9705A1C41CF9048500538489 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; - 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; - 18B300F826F2074CB5E450C4 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; - 3E0436312822B722E186D653 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; - 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; - 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; - 90FF03378459C589A4D9DA6E /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; - 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; - 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; - 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - DE25EB3DE5B281AB8980A728 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 97C146EB1CF9000F007C117D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - AD44C4DB39F7C3968B8C56EB /* Pods_Runner.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 3456E8E25F114A239880D241 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 18B300F826F2074CB5E450C4 /* Pods_Runner.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 4955E253C000584F8EA1A042 /* Pods */ = { - isa = PBXGroup; - children = ( - 90FF03378459C589A4D9DA6E /* Pods-Runner.debug.xcconfig */, - 3E0436312822B722E186D653 /* Pods-Runner.release.xcconfig */, - DE25EB3DE5B281AB8980A728 /* Pods-Runner.profile.xcconfig */, - ); - name = Pods; - path = Pods; - sourceTree = ""; - }; - 9740EEB11CF90186004384FC /* Flutter */ = { - isa = PBXGroup; - children = ( - 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, - 9740EEB21CF90195004384FC /* Debug.xcconfig */, - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, - 9740EEB31CF90195004384FC /* Generated.xcconfig */, - ); - name = Flutter; - sourceTree = ""; - }; - 97C146E51CF9000F007C117D = { - isa = PBXGroup; - children = ( - 9740EEB11CF90186004384FC /* Flutter */, - 97C146F01CF9000F007C117D /* Runner */, - 97C146EF1CF9000F007C117D /* Products */, - 4955E253C000584F8EA1A042 /* Pods */, - 3456E8E25F114A239880D241 /* Frameworks */, - ); - sourceTree = ""; - }; - 97C146EF1CF9000F007C117D /* Products */ = { - isa = PBXGroup; - children = ( - 97C146EE1CF9000F007C117D /* Runner.app */, - ); - name = Products; - sourceTree = ""; - }; - 97C146F01CF9000F007C117D /* Runner */ = { - isa = PBXGroup; - children = ( - 97C146FA1CF9000F007C117D /* Main.storyboard */, - 97C146FD1CF9000F007C117D /* Assets.xcassets */, - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, - 97C147021CF9000F007C117D /* Info.plist */, - 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, - 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, - 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, - 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, - ); - path = Runner; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 97C146ED1CF9000F007C117D /* Runner */ = { - isa = PBXNativeTarget; - buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; - buildPhases = ( - F412A5213E8CA6290AF8A003 /* [CP] Check Pods Manifest.lock */, - 9740EEB61CF901F6004384FC /* Run Script */, - 97C146EA1CF9000F007C117D /* Sources */, - 97C146EB1CF9000F007C117D /* Frameworks */, - 97C146EC1CF9000F007C117D /* Resources */, - 9705A1C41CF9048500538489 /* Embed Frameworks */, - 3B06AD1E1E4923F5004D2608 /* Thin Binary */, - 9BDEDB79123E51897883C720 /* [CP] Embed Pods Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Runner; - productName = Runner; - productReference = 97C146EE1CF9000F007C117D /* Runner.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 97C146E61CF9000F007C117D /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 1300; - ORGANIZATIONNAME = ""; - TargetAttributes = { - 97C146ED1CF9000F007C117D = { - CreatedOnToolsVersion = 7.3.1; - LastSwiftMigration = 1100; - }; - }; - }; - buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 97C146E51CF9000F007C117D; - productRefGroup = 97C146EF1CF9000F007C117D /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 97C146ED1CF9000F007C117D /* Runner */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 97C146EC1CF9000F007C117D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, - 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Thin Binary"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; - }; - 9740EEB61CF901F6004384FC /* Run Script */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Run Script"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; - }; - 9BDEDB79123E51897883C720 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - F412A5213E8CA6290AF8A003 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 97C146EA1CF9000F007C117D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, - 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 97C146FA1CF9000F007C117D /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C146FB1CF9000F007C117D /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C147001CF9000F007C117D /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 249021D3217E4FDB00AE95B9 /* Profile */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Profile; - }; - 249021D4217E4FDB00AE95B9 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = XNK224R4SF; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.example; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Profile; - }; - 97C147031CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 97C147041CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = iphoneos; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 97C147061CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = XNK224R4SF; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.example; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Debug; - }; - 97C147071CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = XNK224R4SF; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.example; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147031CF9000F007C117D /* Debug */, - 97C147041CF9000F007C117D /* Release */, - 249021D3217E4FDB00AE95B9 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147061CF9000F007C117D /* Debug */, - 97C147071CF9000F007C117D /* Release */, - 249021D4217E4FDB00AE95B9 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 97C146E61CF9000F007C117D /* Project object */; -} diff --git a/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a62..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index f9b0d7c5e..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,8 +0,0 @@ - - - - - PreviewsEnabled - - - diff --git a/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme deleted file mode 100644 index c87d15a33..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/instabug_dio_interceptor/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/packages/instabug_dio_interceptor/example/ios/Runner.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 21a3cc14c..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/packages/instabug_dio_interceptor/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/instabug_dio_interceptor/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/packages/instabug_dio_interceptor/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/instabug_dio_interceptor/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index f9b0d7c5e..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,8 +0,0 @@ - - - - - PreviewsEnabled - - - diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/AppDelegate.swift b/packages/instabug_dio_interceptor/example/ios/Runner/AppDelegate.swift deleted file mode 100644 index 70693e4a8..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner/AppDelegate.swift +++ /dev/null @@ -1,13 +0,0 @@ -import UIKit -import Flutter - -@UIApplicationMain -@objc class AppDelegate: FlutterAppDelegate { - override func application( - _ application: UIApplication, - didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? - ) -> Bool { - GeneratedPluginRegistrant.register(with: self) - return super.application(application, didFinishLaunchingWithOptions: launchOptions) - } -} diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index d36b1fab2..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "images" : [ - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@3x.png", - "scale" : "3x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@3x.png", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@3x.png", - "scale" : "3x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@2x.png", - "scale" : "2x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@3x.png", - "scale" : "3x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@1x.png", - "scale" : "1x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@1x.png", - "scale" : "1x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@1x.png", - "scale" : "1x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@2x.png", - "scale" : "2x" - }, - { - "size" : "83.5x83.5", - "idiom" : "ipad", - "filename" : "Icon-App-83.5x83.5@2x.png", - "scale" : "2x" - }, - { - "size" : "1024x1024", - "idiom" : "ios-marketing", - "filename" : "Icon-App-1024x1024@1x.png", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png deleted file mode 100644 index dc9ada472..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png deleted file mode 100644 index 28c6bf030..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png deleted file mode 100644 index 2ccbfd967..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png deleted file mode 100644 index f091b6b0b..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png deleted file mode 100644 index 4cde12118..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png deleted file mode 100644 index d0ef06e7e..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png deleted file mode 100644 index dcdc2306c..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png deleted file mode 100644 index 2ccbfd967..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png deleted file mode 100644 index c8f9ed8f5..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png deleted file mode 100644 index a6d6b8609..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png deleted file mode 100644 index a6d6b8609..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png deleted file mode 100644 index 75b2d164a..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png deleted file mode 100644 index c4df70d39..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png deleted file mode 100644 index 6a84f41e1..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png deleted file mode 100644 index d0e1f5853..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json deleted file mode 100644 index 0bedcf2fd..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "LaunchImage.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "LaunchImage@2x.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "LaunchImage@3x.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png deleted file mode 100644 index 9da19eaca..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png deleted file mode 100644 index 9da19eaca..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png deleted file mode 100644 index 9da19eaca..000000000 Binary files a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png and /dev/null differ diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md deleted file mode 100644 index 89c2725b7..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Launch Screen Assets - -You can customize the launch screen with your own desired assets by replacing the image files in this directory. - -You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/packages/instabug_dio_interceptor/example/ios/Runner/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index f2e259c7c..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Base.lproj/Main.storyboard b/packages/instabug_dio_interceptor/example/ios/Runner/Base.lproj/Main.storyboard deleted file mode 100644 index f3c28516f..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner/Base.lproj/Main.storyboard +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Info.plist b/packages/instabug_dio_interceptor/example/ios/Runner/Info.plist deleted file mode 100644 index 907f329fe..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner/Info.plist +++ /dev/null @@ -1,49 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleDisplayName - Example - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - example - CFBundlePackageType - APPL - CFBundleShortVersionString - $(FLUTTER_BUILD_NAME) - CFBundleSignature - ???? - CFBundleVersion - $(FLUTTER_BUILD_NUMBER) - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UIViewControllerBasedStatusBarAppearance - - CADisableMinimumFrameDurationOnPhone - - - diff --git a/packages/instabug_dio_interceptor/example/ios/Runner/Runner-Bridging-Header.h b/packages/instabug_dio_interceptor/example/ios/Runner/Runner-Bridging-Header.h deleted file mode 100644 index 308a2a560..000000000 --- a/packages/instabug_dio_interceptor/example/ios/Runner/Runner-Bridging-Header.h +++ /dev/null @@ -1 +0,0 @@ -#import "GeneratedPluginRegistrant.h" diff --git a/packages/instabug_dio_interceptor/example/lib/main.dart b/packages/instabug_dio_interceptor/example/lib/main.dart deleted file mode 100644 index fcd29a3cb..000000000 --- a/packages/instabug_dio_interceptor/example/lib/main.dart +++ /dev/null @@ -1,78 +0,0 @@ -import 'package:dio/dio.dart'; -import 'package:flutter/material.dart'; -import 'package:instabug_dio_interceptor/instabug_dio_interceptor.dart'; -import 'package:instabug_flutter/instabug_flutter.dart'; - -Future main() async { - runApp(const MyApp()); - - Instabug.init( - token: 'ed6f659591566da19b67857e1b9d40ab', - invocationEvents: [InvocationEvent.floatingButton], - ); - - final dio = Dio()..interceptors.add(InstabugDioInterceptor()); - final response = await dio.get('https://google.com'); - debugPrint(response.data); -} - -class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); - - @override - Widget build(BuildContext context) { - return MaterialApp( - title: 'Flutter Demo', - theme: ThemeData( - primarySwatch: Colors.blue, - ), - home: const MyHomePage(title: 'Flutter Demo Home Page'), - ); - } -} - -class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, required this.title}) : super(key: key); - final String title; - - @override - State createState() => _MyHomePageState(); -} - -class _MyHomePageState extends State { - int _counter = 0; - - void _incrementCounter() { - setState(() { - _counter++; - }); - } - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - title: Text(widget.title), - ), - body: Center( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - const Text( - 'You have pushed the button this many times:', - ), - Text( - '$_counter', - style: Theme.of(context).textTheme.headlineMedium, - ), - ], - ), - ), - floatingActionButton: FloatingActionButton( - onPressed: _incrementCounter, - tooltip: 'Increment', - child: const Icon(Icons.add), - ), - ); - } -} diff --git a/packages/instabug_dio_interceptor/example/pubspec.lock b/packages/instabug_dio_interceptor/example/pubspec.lock deleted file mode 100644 index cc912e03a..000000000 --- a/packages/instabug_dio_interceptor/example/pubspec.lock +++ /dev/null @@ -1,267 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 - url: "https://pub.dev" - source: hosted - version: "1.0.8" - dio: - dependency: "direct main" - description: - name: dio - sha256: "5598aa796bbf4699afd5c67c0f5f6e2ed542afc956884b9cd58c306966efc260" - url: "https://pub.dev" - source: hosted - version: "5.7.0" - dio_web_adapter: - dependency: transitive - description: - name: dio_web_adapter - sha256: "33259a9276d6cea88774a0000cfae0d861003497755969c92faa223108620dc8" - url: "https://pub.dev" - source: hosted - version: "2.0.0" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493 - url: "https://pub.dev" - source: hosted - version: "1.0.4" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" - url: "https://pub.dev" - source: hosted - version: "4.0.2" - instabug_dio_interceptor: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "2.3.0" - instabug_flutter: - dependency: "direct overridden" - description: - path: "../../instabug_flutter" - relative: true - source: path - version: "14.0.0" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" - url: "https://pub.dev" - source: hosted - version: "10.0.5" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" - url: "https://pub.dev" - source: hosted - version: "3.0.5" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" - url: "https://pub.dev" - source: hosted - version: "3.0.1" - lints: - dependency: transitive - description: - name: lints - sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c - url: "https://pub.dev" - source: hosted - version: "1.0.1" - matcher: - dependency: transitive - description: - name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb - url: "https://pub.dev" - source: hosted - version: "0.12.16+1" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec - url: "https://pub.dev" - source: hosted - version: "0.11.1" - meta: - dependency: transitive - description: - name: meta - sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 - url: "https://pub.dev" - source: hosted - version: "1.15.0" - path: - dependency: transitive - description: - name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.dev" - source: hosted - version: "1.9.0" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" - url: "https://pub.dev" - source: hosted - version: "0.7.2" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" - url: "https://pub.dev" - source: hosted - version: "14.2.5" - web: - dependency: transitive - description: - name: web - sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb - url: "https://pub.dev" - source: hosted - version: "1.1.0" -sdks: - dart: ">=3.5.0 <4.0.0" - flutter: ">=3.18.0-18.0.pre.54" diff --git a/packages/instabug_dio_interceptor/example/pubspec.yaml b/packages/instabug_dio_interceptor/example/pubspec.yaml deleted file mode 100644 index a2dbaf01b..000000000 --- a/packages/instabug_dio_interceptor/example/pubspec.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: instabug_dio_interceptor_example -description: Demonstrates how to use the instabug_dio_interceptor package. - -publish_to: "none" - -version: 1.0.0+1 - -environment: - sdk: ">=2.12.0 <3.0.0" - -dependencies: - flutter: - sdk: flutter - cupertino_icons: ^1.0.2 - dio: ^5.0.0 - instabug_dio_interceptor: - path: ../ - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^1.0.0 - -flutter: - uses-material-design: true diff --git a/packages/instabug_dio_interceptor/example/pubspec_overrides.yaml b/packages/instabug_dio_interceptor/example/pubspec_overrides.yaml deleted file mode 100644 index b7e298895..000000000 --- a/packages/instabug_dio_interceptor/example/pubspec_overrides.yaml +++ /dev/null @@ -1,6 +0,0 @@ -# melos_managed_dependency_overrides: instabug_dio_interceptor,instabug_flutter -dependency_overrides: - instabug_dio_interceptor: - path: .. - instabug_flutter: - path: ../../instabug_flutter diff --git a/packages/instabug_dio_interceptor/lib/instabug_dio_interceptor.dart b/packages/instabug_dio_interceptor/lib/instabug_dio_interceptor.dart deleted file mode 100644 index 72b8af3ae..000000000 --- a/packages/instabug_dio_interceptor/lib/instabug_dio_interceptor.dart +++ /dev/null @@ -1,109 +0,0 @@ -import 'package:dio/dio.dart'; -import 'package:instabug_flutter/instabug_flutter.dart'; - -class InstabugDioInterceptor extends Interceptor { - static final Map _requests = {}; - static final NetworkLogger _networklogger = NetworkLogger(); - - @override - Future onRequest( - RequestOptions options, - RequestInterceptorHandler handler, - ) async { - final headers = options.headers; - final startTime = DateTime.now(); - // ignore: invalid_use_of_internal_member - final w3Header = await _networklogger.getW3CHeader( - headers, - startTime.millisecondsSinceEpoch, - ); - if (w3Header?.isW3cHeaderFound == false && - w3Header?.w3CGeneratedHeader != null) { - headers['traceparent'] = w3Header?.w3CGeneratedHeader; - } - options.headers = headers; - final data = NetworkData( - startTime: startTime, - url: options.uri.toString(), - w3cHeader: w3Header, - method: options.method, - ); - _requests[options.hashCode] = data; - handler.next(options); - } - - @override - void onResponse( - Response response, - ResponseInterceptorHandler handler, - ) { - final data = _map(response); - _networklogger.networkLog(data); - handler.next(response); - } - - @override - // Keep `DioError` instead of `DioException` for backward-compatibility, for now. - // ignore: deprecated_member_use - void onError(DioError err, ErrorInterceptorHandler handler) { - if (err.response != null) { - final data = _map(err.response!); - _networklogger.networkLog(data); - } - - handler.next(err); - } - - static NetworkData _getRequestData(int requestHashCode) { - final data = _requests[requestHashCode]!; - _requests.remove(requestHashCode); - return data; - } - - NetworkData _map(Response response) { - final data = _getRequestData(response.requestOptions.hashCode); - final responseHeaders = {}; - final endTime = DateTime.now(); - - response.headers - .forEach((String name, dynamic value) => responseHeaders[name] = value); - - var responseContentType = ''; - if (responseHeaders.containsKey('content-type')) { - responseContentType = responseHeaders['content-type'].toString(); - } - - var requestBodySize = 0; - if (response.requestOptions.headers.containsKey('content-length')) { - requestBodySize = - int.parse(response.requestOptions.headers['content-length'] ?? '0'); - } else if (response.requestOptions.data != null) { - requestBodySize = response.requestOptions.data.toString().length; - } - - var responseBodySize = 0; - if (responseHeaders.containsKey('content-length')) { - // ignore: avoid_dynamic_calls - responseBodySize = - int.parse((responseHeaders['content-length'][0]) ?? '0'); - } else if (response.data != null) { - responseBodySize = response.data.toString().length; - } - - return data.copyWith( - endTime: endTime, - duration: endTime.difference(data.startTime).inMicroseconds, - url: response.requestOptions.uri.toString(), - method: response.requestOptions.method, - requestBody: response.requestOptions.data.toString(), - requestHeaders: response.requestOptions.headers, - requestContentType: response.requestOptions.contentType, - requestBodySize: requestBodySize, - status: response.statusCode, - responseBody: response.data.toString(), - responseHeaders: responseHeaders, - responseContentType: responseContentType, - responseBodySize: responseBodySize, - ); - } -} diff --git a/packages/instabug_dio_interceptor/pubspec.lock b/packages/instabug_dio_interceptor/pubspec.lock deleted file mode 100644 index 753b9a7fe..000000000 --- a/packages/instabug_dio_interceptor/pubspec.lock +++ /dev/null @@ -1,700 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _fe_analyzer_shared: - dependency: transitive - description: - name: _fe_analyzer_shared - sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7" - url: "https://pub.dev" - source: hosted - version: "67.0.0" - analyzer: - dependency: transitive - description: - name: analyzer - sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d" - url: "https://pub.dev" - source: hosted - version: "6.4.1" - args: - dependency: transitive - description: - name: args - sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" - url: "https://pub.dev" - source: hosted - version: "2.5.0" - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - build: - dependency: transitive - description: - name: build - sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - build_config: - dependency: transitive - description: - name: build_config - sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1 - url: "https://pub.dev" - source: hosted - version: "1.1.1" - build_daemon: - dependency: transitive - description: - name: build_daemon - sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" - url: "https://pub.dev" - source: hosted - version: "4.0.1" - build_resolvers: - dependency: transitive - description: - name: build_resolvers - sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" - url: "https://pub.dev" - source: hosted - version: "2.4.2" - build_runner: - dependency: "direct dev" - description: - name: build_runner - sha256: "3ac61a79bfb6f6cc11f693591063a7f19a7af628dc52f141743edac5c16e8c22" - url: "https://pub.dev" - source: hosted - version: "2.4.9" - build_runner_core: - dependency: transitive - description: - name: build_runner_core - sha256: "4ae8ffe5ac758da294ecf1802f2aff01558d8b1b00616aa7538ea9a8a5d50799" - url: "https://pub.dev" - source: hosted - version: "7.3.0" - built_collection: - dependency: transitive - description: - name: built_collection - sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" - url: "https://pub.dev" - source: hosted - version: "5.1.1" - built_value: - dependency: transitive - description: - name: built_value - sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb - url: "https://pub.dev" - source: hosted - version: "8.9.2" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - checked_yaml: - dependency: transitive - description: - name: checked_yaml - sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff - url: "https://pub.dev" - source: hosted - version: "2.0.3" - cli_util: - dependency: transitive - description: - name: cli_util - sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 - url: "https://pub.dev" - source: hosted - version: "0.4.1" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - code_builder: - dependency: transitive - description: - name: code_builder - sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37 - url: "https://pub.dev" - source: hosted - version: "4.10.0" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - convert: - dependency: transitive - description: - name: convert - sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" - url: "https://pub.dev" - source: hosted - version: "3.1.1" - coverage: - dependency: transitive - description: - name: coverage - sha256: "88b0fddbe4c92910fefc09cc0248f5e7f0cd23e450ded4c28f16ab8ee8f83268" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - crypto: - dependency: transitive - description: - name: crypto - sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab - url: "https://pub.dev" - source: hosted - version: "3.0.3" - csslib: - dependency: transitive - description: - name: csslib - sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - dart_style: - dependency: transitive - description: - name: dart_style - sha256: "99e066ce75c89d6b29903d788a7bb9369cf754f7b24bf70bf4b6d6d6b26853b9" - url: "https://pub.dev" - source: hosted - version: "2.3.6" - dio: - dependency: "direct main" - description: - name: dio - sha256: "11e40df547d418cc0c4900a9318b26304e665da6fa4755399a9ff9efd09034b5" - url: "https://pub.dev" - source: hosted - version: "5.4.3+1" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - file: - dependency: transitive - description: - name: file - sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" - url: "https://pub.dev" - source: hosted - version: "7.0.0" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - frontend_server_client: - dependency: transitive - description: - name: frontend_server_client - sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 - url: "https://pub.dev" - source: hosted - version: "4.0.0" - glob: - dependency: transitive - description: - name: glob - sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - graphs: - dependency: transitive - description: - name: graphs - sha256: aedc5a15e78fc65a6e23bcd927f24c64dd995062bcd1ca6eda65a3cff92a4d19 - url: "https://pub.dev" - source: hosted - version: "2.3.1" - html: - dependency: transitive - description: - name: html - sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a" - url: "https://pub.dev" - source: hosted - version: "0.15.4" - http: - dependency: transitive - description: - name: http - sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 - url: "https://pub.dev" - source: hosted - version: "1.2.2" - http_multi_server: - dependency: transitive - description: - name: http_multi_server - sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" - url: "https://pub.dev" - source: hosted - version: "3.2.1" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" - url: "https://pub.dev" - source: hosted - version: "4.0.2" - instabug_flutter: - dependency: "direct main" - description: - path: "../instabug_flutter" - relative: true - source: path - version: "14.0.0" - io: - dependency: transitive - description: - name: io - sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" - url: "https://pub.dev" - source: hosted - version: "1.0.4" - js: - dependency: transitive - description: - name: js - sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf - url: "https://pub.dev" - source: hosted - version: "0.7.1" - json_annotation: - dependency: transitive - description: - name: json_annotation - sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" - url: "https://pub.dev" - source: hosted - version: "4.9.0" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" - url: "https://pub.dev" - source: hosted - version: "10.0.5" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" - url: "https://pub.dev" - source: hosted - version: "3.0.5" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" - url: "https://pub.dev" - source: hosted - version: "3.0.1" - lints: - dependency: transitive - description: - name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 - url: "https://pub.dev" - source: hosted - version: "3.0.0" - logging: - dependency: transitive - description: - name: logging - sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - markdown: - dependency: transitive - description: - name: markdown - sha256: ef2a1298144e3f985cc736b22e0ccdaf188b5b3970648f2d9dc13efd1d9df051 - url: "https://pub.dev" - source: hosted - version: "7.2.2" - matcher: - dependency: transitive - description: - name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb - url: "https://pub.dev" - source: hosted - version: "0.12.16+1" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec - url: "https://pub.dev" - source: hosted - version: "0.11.1" - meta: - dependency: transitive - description: - name: meta - sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 - url: "https://pub.dev" - source: hosted - version: "1.15.0" - mime: - dependency: transitive - description: - name: mime - sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" - url: "https://pub.dev" - source: hosted - version: "1.0.5" - mockito: - dependency: "direct dev" - description: - name: mockito - sha256: "6841eed20a7befac0ce07df8116c8b8233ed1f4486a7647c7fc5a02ae6163917" - url: "https://pub.dev" - source: hosted - version: "5.4.4" - node_preamble: - dependency: transitive - description: - name: node_preamble - sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" - url: "https://pub.dev" - source: hosted - version: "2.0.2" - package_config: - dependency: transitive - description: - name: package_config - sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - pana: - dependency: "direct dev" - description: - name: pana - sha256: "3fc3fe8e7a9fd4827fa4d625a423eec95d305b2bc3538a3adf7fd6c49217af97" - url: "https://pub.dev" - source: hosted - version: "0.21.45" - path: - dependency: transitive - description: - name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.dev" - source: hosted - version: "1.9.0" - pool: - dependency: transitive - description: - name: pool - sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" - url: "https://pub.dev" - source: hosted - version: "1.5.1" - pub_semver: - dependency: transitive - description: - name: pub_semver - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - pubspec_parse: - dependency: transitive - description: - name: pubspec_parse - sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 - url: "https://pub.dev" - source: hosted - version: "1.2.3" - retry: - dependency: transitive - description: - name: retry - sha256: "822e118d5b3aafed083109c72d5f484c6dc66707885e07c0fbcb8b986bba7efc" - url: "https://pub.dev" - source: hosted - version: "3.1.2" - safe_url_check: - dependency: transitive - description: - name: safe_url_check - sha256: "49a3e060a7869cbafc8f4845ca1ecbbaaa53179980a32f4fdfeab1607e90f41d" - url: "https://pub.dev" - source: hosted - version: "1.1.2" - shelf: - dependency: transitive - description: - name: shelf - sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 - url: "https://pub.dev" - source: hosted - version: "1.4.1" - shelf_packages_handler: - dependency: transitive - description: - name: shelf_packages_handler - sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - shelf_static: - dependency: transitive - description: - name: shelf_static - sha256: c87c3875f91262785dade62d135760c2c69cb217ac759485334c5857ad89f6e3 - url: "https://pub.dev" - source: hosted - version: "1.1.3" - shelf_web_socket: - dependency: transitive - description: - name: shelf_web_socket - sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" - url: "https://pub.dev" - source: hosted - version: "1.0.4" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_gen: - dependency: transitive - description: - name: source_gen - sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" - url: "https://pub.dev" - source: hosted - version: "1.5.0" - source_map_stack_trace: - dependency: transitive - description: - name: source_map_stack_trace - sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b - url: "https://pub.dev" - source: hosted - version: "2.1.2" - source_maps: - dependency: transitive - description: - name: source_maps - sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" - url: "https://pub.dev" - source: hosted - version: "0.10.12" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - stream_transform: - dependency: transitive - description: - name: stream_transform - sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - tar: - dependency: transitive - description: - name: tar - sha256: "22f67e2d77b51050436620b2a5de521c58ca6f0b75af1d9ab3c8cae2eae58fcd" - url: "https://pub.dev" - source: hosted - version: "1.0.5" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test: - dependency: transitive - description: - name: test - sha256: "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e" - url: "https://pub.dev" - source: hosted - version: "1.25.7" - test_api: - dependency: transitive - description: - name: test_api - sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" - url: "https://pub.dev" - source: hosted - version: "0.7.2" - test_core: - dependency: transitive - description: - name: test_core - sha256: "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696" - url: "https://pub.dev" - source: hosted - version: "0.6.4" - timing: - dependency: transitive - description: - name: timing - sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" - url: "https://pub.dev" - source: hosted - version: "1.0.1" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c - url: "https://pub.dev" - source: hosted - version: "1.3.2" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" - url: "https://pub.dev" - source: hosted - version: "14.2.5" - watcher: - dependency: transitive - description: - name: watcher - sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - web: - dependency: transitive - description: - name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" - url: "https://pub.dev" - source: hosted - version: "0.5.1" - web_socket_channel: - dependency: transitive - description: - name: web_socket_channel - sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" - url: "https://pub.dev" - source: hosted - version: "2.4.5" - webkit_inspection_protocol: - dependency: transitive - description: - name: webkit_inspection_protocol - sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - yaml: - dependency: transitive - description: - name: yaml - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" - url: "https://pub.dev" - source: hosted - version: "3.1.2" -sdks: - dart: ">=3.4.0 <4.0.0" - flutter: ">=3.18.0-18.0.pre.54" diff --git a/packages/instabug_dio_interceptor/pubspec.yaml b/packages/instabug_dio_interceptor/pubspec.yaml deleted file mode 100644 index f84a8a78e..000000000 --- a/packages/instabug_dio_interceptor/pubspec.yaml +++ /dev/null @@ -1,59 +0,0 @@ -name: instabug_dio_interceptor -description: - This package is an add on to instabug_flutter. It intercepts any requests performed - with Dio Package and sends them to the report that will be sent to the dashboard. -version: 2.3.0 -homepage: https://github.com/Instabug/Instabug-Flutter#readme -repository: https://github.com/Instabug/Instabug-Flutter/tree/refactor/monorepo/packages/instabug_dio_interceptor - -environment: - sdk: '>=2.12.0 <3.0.0' - -dependencies: - dio: '>=4.0.0 <6.0.0' - flutter: - sdk: flutter - instabug_flutter: '>=14.0.0 <15.0.0' - -dev_dependencies: - build_runner: ^2.0.3 - flutter_test: - sdk: flutter - mockito: ^5.0.10 - pana: ^0.21.0 -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter. -flutter: - - # To add assets to your package, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # - # For details regarding assets in packages, see - # https://flutter.dev/assets-and-images/#from-packages - # - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware. - - # To add custom fonts to your package, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts in packages, see - # https://flutter.dev/custom-fonts/#from-packages diff --git a/packages/instabug_dio_interceptor/pubspec_overrides.yaml b/packages/instabug_dio_interceptor/pubspec_overrides.yaml deleted file mode 100644 index 1f0beaf62..000000000 --- a/packages/instabug_dio_interceptor/pubspec_overrides.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# melos_managed_dependency_overrides: instabug_flutter -dependency_overrides: - instabug_flutter: - path: ../instabug_flutter diff --git a/packages/instabug_dio_interceptor/release.sh b/packages/instabug_dio_interceptor/release.sh deleted file mode 100755 index 6b211fe17..000000000 --- a/packages/instabug_dio_interceptor/release.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -VERSION=$(egrep -o "version: ([0-9]-*.*)+[0-9]" pubspec.yaml | cut -d ":" -f 2) -if [ ! "${VERSION}" ] || [ -z "${VERSION}" ];then - echo "Instabug: err: Version Number not found." - exit 1 -else - mkdir -p .pub-cache - cat < $HOME/.pub-cache/credentials.json - ${PUB_CREDENTIALS} - -EOF - flutter packages pub publish -f -fi \ No newline at end of file diff --git a/packages/instabug_dio_interceptor/test/instabug_dio_interceptor_test.dart b/packages/instabug_dio_interceptor/test/instabug_dio_interceptor_test.dart deleted file mode 100644 index 2940dcc83..000000000 --- a/packages/instabug_dio_interceptor/test/instabug_dio_interceptor_test.dart +++ /dev/null @@ -1,116 +0,0 @@ -import 'package:dio/dio.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:instabug_dio_interceptor/instabug_dio_interceptor.dart'; -import 'package:instabug_flutter/instabug_flutter.dart'; -import 'package:instabug_flutter/src/generated/instabug.api.g.dart'; -import 'package:mockito/annotations.dart'; -import 'package:mockito/mockito.dart'; - -import 'instabug_dio_interceptor_test.mocks.dart'; -import 'mock_adapter.dart'; - -class MyInterceptor extends InstabugDioInterceptor { - int requestCount = 0; - int resposneCount = 0; - int errorCount = 0; - - @override - Future onRequest( - RequestOptions options, - RequestInterceptorHandler handler, - ) async { - requestCount++; - super.onRequest(options, handler); - } - - @override - void onResponse( - Response response, - ResponseInterceptorHandler handler, - ) { - resposneCount++; - super.onResponse(response, handler); - } - - @override - // ignore: deprecated_member_use - void onError(DioError err, ErrorInterceptorHandler handler) { - errorCount++; - super.onError(err, handler); - } -} - -@GenerateMocks([ - InstabugHostApi, -]) -void main() { - TestWidgetsFlutterBinding.ensureInitialized(); - WidgetsFlutterBinding.ensureInitialized(); - - final mHost = MockInstabugHostApi(); - - late Dio dio; - late MyInterceptor instabugDioInterceptor; - const appToken = '068ba9a8c3615035e163dc5f829c73be'; - - setUpAll(() { - Instabug.$setHostApi(mHost); - NetworkLogger.$setHostApi(mHost); - when(mHost.isW3CFeatureFlagsEnabled()).thenAnswer( - (_) => Future>.value({ - 'isW3cCaughtHeaderEnabled': true, - 'isW3cExternalGeneratedHeaderEnabled': true, - 'isW3cExternalTraceIDEnabled': true, - }), - ); - }); - - setUp(() { - dio = Dio(); - dio.options.baseUrl = MockAdapter.mockBase; - dio.httpClientAdapter = MockAdapter(); - final events = []; - instabugDioInterceptor = MyInterceptor(); - dio.interceptors.add(instabugDioInterceptor); - Instabug.init(token: appToken, invocationEvents: events); - }); - - test('onResponse Test', () async { - try { - await dio.get('/test'); - // ignore: deprecated_member_use - } on DioError { - // ignor - } - - expect(instabugDioInterceptor.requestCount, 1); - expect(instabugDioInterceptor.resposneCount, 1); - expect(instabugDioInterceptor.errorCount, 0); - }); - - test('onError Test', () async { - try { - await dio.get('/test-error'); - // ignore: deprecated_member_use - } on DioError { - // ignor - } - - expect(instabugDioInterceptor.requestCount, 1); - expect(instabugDioInterceptor.resposneCount, 0); - expect(instabugDioInterceptor.errorCount, 1); - }); - - test('Stress Test', () async { - for (var i = 0; i < 1000; i++) { - try { - await dio.get('/test'); - // ignore: deprecated_member_use - } on DioError { - // ignor - } - } - expect(instabugDioInterceptor.requestCount, 1000); - }); -} diff --git a/packages/instabug_dio_interceptor/test/mock_adapter.dart b/packages/instabug_dio_interceptor/test/mock_adapter.dart deleted file mode 100644 index 934acfb0a..000000000 --- a/packages/instabug_dio_interceptor/test/mock_adapter.dart +++ /dev/null @@ -1,43 +0,0 @@ -import 'dart:async'; -import 'dart:convert'; -import 'dart:typed_data'; - -import 'package:dio/dio.dart'; -import 'package:dio/io.dart'; - -class MockAdapter implements HttpClientAdapter { - static const String mockHost = 'mockserver'; - static const String mockBase = 'http://$mockHost'; - final IOHttpClientAdapter _adapter = IOHttpClientAdapter(); - - @override - Future fetch( - RequestOptions options, - Stream? requestStream, - Future? cancelFuture, - ) async { - final uri = options.uri; - - if (uri.host == mockHost) { - switch (uri.path) { - case '/test': - return ResponseBody.fromString( - jsonEncode({ - 'errCode': 0, - 'data': {'path': uri.path}, - }), - 200, - ); - - default: - return ResponseBody.fromString('', 404); - } - } - return _adapter.fetch(options, requestStream, cancelFuture); - } - - @override - void close({bool force = false}) { - _adapter.close(force: force); - } -} diff --git a/packages/instabug_flutter/android/build.gradle b/packages/instabug_flutter/android/build.gradle index e3b5d0bca..f13533ff5 100644 --- a/packages/instabug_flutter/android/build.gradle +++ b/packages/instabug_flutter/android/build.gradle @@ -44,7 +44,7 @@ android { } dependencies { - api 'com.instabug.library:instabug:14.1.0' + api 'com.instabug.library:instabug:14.1.0.6537176-SNAPSHOT' testImplementation 'junit:junit:4.13.2' testImplementation "org.mockito:mockito-inline:3.12.1" testImplementation "io.mockk:mockk:1.13.13" @@ -58,3 +58,10 @@ tasks.whenTaskAdded { task -> task.finalizedBy upload_symbols_task } } +rootProject.allprojects { + repositories { + maven { + url 'https://oss.sonatype.org/content/repositories/snapshots' + } + } +} 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 new file mode 100644 index 000000000..1dcad08c5 --- /dev/null +++ b/packages/instabug_flutter/android/src/main/java/com/instabug/flutter/generated/ApmPigeon.java @@ -0,0 +1,617 @@ +// 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 new file mode 100644 index 000000000..88f519a6c --- /dev/null +++ b/packages/instabug_flutter/android/src/main/java/com/instabug/flutter/generated/BugReportingPigeon.java @@ -0,0 +1,522 @@ +// 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 new file mode 100644 index 000000000..3994a6bb8 --- /dev/null +++ b/packages/instabug_flutter/android/src/main/java/com/instabug/flutter/generated/CrashReportingPigeon.java @@ -0,0 +1,152 @@ +// 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 new file mode 100644 index 000000000..6afef5901 --- /dev/null +++ b/packages/instabug_flutter/android/src/main/java/com/instabug/flutter/generated/FeatureRequestsPigeon.java @@ -0,0 +1,121 @@ +// 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 new file mode 100644 index 000000000..ba2a09cfd --- /dev/null +++ b/packages/instabug_flutter/android/src/main/java/com/instabug/flutter/generated/InstabugLogPigeon.java @@ -0,0 +1,224 @@ +// 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 new file mode 100644 index 000000000..d00119625 --- /dev/null +++ b/packages/instabug_flutter/android/src/main/java/com/instabug/flutter/generated/InstabugPigeon.java @@ -0,0 +1,1146 @@ +// 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 class from Pigeon that represents Flutter messages that can be called from Java. */ + public static class FeatureFlagsFlutterApi { + private final @NonNull BinaryMessenger binaryMessenger; + + public FeatureFlagsFlutterApi(@NonNull BinaryMessenger argBinaryMessenger) { + this.binaryMessenger = argBinaryMessenger; + } + + /** Public interface for sending reply. */ + @SuppressWarnings("UnknownNullness") + public interface Reply { + void reply(T reply); + } + /** The codec used by FeatureFlagsFlutterApi. */ + static @NonNull MessageCodec getCodec() { + return new StandardMessageCodec(); + } + public void onW3CFeatureFlagChange(@NonNull Boolean isW3cExternalTraceIDEnabledArg, @NonNull Boolean isW3cExternalGeneratedHeaderEnabledArg, @NonNull Boolean isW3cCaughtHeaderEnabledArg, @NonNull Reply callback) { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, "dev.flutter.pigeon.instabug_flutter.FeatureFlagsFlutterApi.onW3CFeatureFlagChange", getCodec()); + channel.send( + new ArrayList(Arrays.asList(isW3cExternalTraceIDEnabledArg, isW3cExternalGeneratedHeaderEnabledArg, isW3cCaughtHeaderEnabledArg)), + channelReply -> callback.reply(null)); + } + } + /** 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 registerFeatureFlagChangeListener(); + + @NonNull + Map isW3CFeatureFlagsEnabled(); + + 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.registerFeatureFlagChangeListener", getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList(); + try { + api.registerFeatureFlagChangeListener(); + 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.isW3CFeatureFlagsEnabled", getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList(); + try { + Map output = api.isW3CFeatureFlagsEnabled(); + 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.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/RepliesPigeon.java b/packages/instabug_flutter/android/src/main/java/com/instabug/flutter/generated/RepliesPigeon.java new file mode 100644 index 000000000..3a22780c5 --- /dev/null +++ b/packages/instabug_flutter/android/src/main/java/com/instabug/flutter/generated/RepliesPigeon.java @@ -0,0 +1,287 @@ +// 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 new file mode 100644 index 000000000..9b9a7b8eb --- /dev/null +++ b/packages/instabug_flutter/android/src/main/java/com/instabug/flutter/generated/SessionReplayPigeon.java @@ -0,0 +1,210 @@ +// 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 new file mode 100644 index 000000000..e884530d6 --- /dev/null +++ b/packages/instabug_flutter/android/src/main/java/com/instabug/flutter/generated/SurveysPigeon.java @@ -0,0 +1,373 @@ +// 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/packages/instabug_flutter/example/ios/Podfile b/packages/instabug_flutter/example/ios/Podfile index be56c059e..09e98e4cc 100644 --- a/packages/instabug_flutter/example/ios/Podfile +++ b/packages/instabug_flutter/example/ios/Podfile @@ -29,6 +29,7 @@ flutter_ios_podfile_setup target 'Runner' do use_frameworks! use_modular_headers! + pod 'Instabug', :podspec => 'https://ios-releases.instabug.com/custom/feature-flutter-private-views-base/14.1.0/Instabug.podspec' flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end diff --git a/packages/instabug_flutter/example/ios/Podfile.lock b/packages/instabug_flutter/example/ios/Podfile.lock index 5dd77dc53..a8d46b5a5 100644 --- a/packages/instabug_flutter/example/ios/Podfile.lock +++ b/packages/instabug_flutter/example/ios/Podfile.lock @@ -4,9 +4,6 @@ PODS: - instabug_flutter (14.0.0): - Flutter - Instabug (= 14.1.0) - - instabug_private_views (0.0.1): - - Flutter - - instabug_flutter - OCMock (3.6) - video_player_avfoundation (0.0.1): - Flutter @@ -14,34 +11,32 @@ PODS: DEPENDENCIES: - Flutter (from `Flutter`) + - Instabug (from `https://ios-releases.instabug.com/custom/feature-flutter-private-views-base/14.1.0/Instabug.podspec`) - instabug_flutter (from `.symlinks/plugins/instabug_flutter/ios`) - - instabug_private_views (from `.symlinks/plugins/instabug_private_views/ios`) - OCMock (= 3.6) - video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/darwin`) SPEC REPOS: trunk: - - Instabug - OCMock EXTERNAL SOURCES: Flutter: :path: Flutter + Instabug: + :podspec: https://ios-releases.instabug.com/custom/feature-flutter-private-views-base/14.1.0/Instabug.podspec instabug_flutter: :path: ".symlinks/plugins/instabug_flutter/ios" - instabug_private_views: - :path: ".symlinks/plugins/instabug_private_views/ios" video_player_avfoundation: :path: ".symlinks/plugins/video_player_avfoundation/darwin" SPEC CHECKSUMS: Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 - Instabug: 8cbca8974168c815658133e2813f5ac3a36f8e20 + Instabug: e4054d9df01ebe416fffe70c173496364b9e08d4 instabug_flutter: a24751dfaedd29475da2af062d3e19d697438f72 - instabug_private_views: df53ff3f1cc842cb686d43e077099d3b36426a7f OCMock: 5ea90566be239f179ba766fd9fbae5885040b992 video_player_avfoundation: 7c6c11d8470e1675df7397027218274b6d2360b3 -PODFILE CHECKSUM: bb7a3c60be3b970b608fa878e26d5fadfbeb1157 +PODFILE CHECKSUM: 10a295544ebd5bff76a08982e7d1141cdc3fe2f8 COCOAPODS: 1.14.3 diff --git a/packages/instabug_flutter/example/pubspec.lock b/packages/instabug_flutter/example/pubspec.lock index 44060645d..a18b61504 100644 --- a/packages/instabug_flutter/example/pubspec.lock +++ b/packages/instabug_flutter/example/pubspec.lock @@ -128,21 +128,15 @@ packages: path: ".." relative: true source: path - version: "14.0.0" + version: "14.1.0" instabug_http_client: dependency: "direct main" description: - path: "../../instabug_http_client" - relative: true - source: path - version: "2.4.0" - instabug_private_views: - dependency: "direct overridden" - description: - path: "../../instabug_private_views" - relative: true - source: path - version: "1.0.1" + name: instabug_http_client + sha256: "60bda45012bb1b858047edaa6ae5d9e58a3e0fec070f3c858a7a0f134d012cb4" + url: "https://pub.dev" + source: hosted + version: "2.5.0" leak_tracker: dependency: transitive description: diff --git a/packages/instabug_flutter/ios/Classes/Generated/ApmPigeon.h b/packages/instabug_flutter/ios/Classes/Generated/ApmPigeon.h new file mode 100644 index 000000000..f31c5c8b3 --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/ApmPigeon.h @@ -0,0 +1,42 @@ +// 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 new file mode 100644 index 000000000..0a73a8417 --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/ApmPigeon.m @@ -0,0 +1,416 @@ +// 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 new file mode 100644 index 000000000..cad4bbf19 --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/BugReportingPigeon.h @@ -0,0 +1,47 @@ +// 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 new file mode 100644 index 000000000..ecf1a879c --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/BugReportingPigeon.m @@ -0,0 +1,383 @@ +// 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 new file mode 100644 index 000000000..c556c4555 --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/CrashReportingPigeon.h @@ -0,0 +1,25 @@ +// 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 new file mode 100644 index 000000000..1e9f4426d --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/CrashReportingPigeon.m @@ -0,0 +1,97 @@ +// 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 new file mode 100644 index 000000000..012df9ebb --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/FeatureRequestsPigeon.h @@ -0,0 +1,24 @@ +// 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 new file mode 100644 index 000000000..6e5f4d40e --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/FeatureRequestsPigeon.m @@ -0,0 +1,73 @@ +// 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 new file mode 100644 index 000000000..61c09cf40 --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/InstabugLogPigeon.h @@ -0,0 +1,28 @@ +// 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 new file mode 100644 index 000000000..17961c82b --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/InstabugLogPigeon.m @@ -0,0 +1,148 @@ +// 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 new file mode 100644 index 000000000..0fc88be5b --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/InstabugPigeon.h @@ -0,0 +1,73 @@ +// 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 FeatureFlagsFlutterApi. +NSObject *FeatureFlagsFlutterApiGetCodec(void); + +@interface FeatureFlagsFlutterApi : NSObject +- (instancetype)initWithBinaryMessenger:(id)binaryMessenger; +- (void)onW3CFeatureFlagChangeIsW3cExternalTraceIDEnabled:(NSNumber *)isW3cExternalTraceIDEnabled isW3cExternalGeneratedHeaderEnabled:(NSNumber *)isW3cExternalGeneratedHeaderEnabled isW3cCaughtHeaderEnabled:(NSNumber *)isW3cCaughtHeaderEnabled completion:(void (^)(FlutterError *_Nullable))completion; +@end + +/// 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)registerFeatureFlagChangeListenerWithError:(FlutterError *_Nullable *_Nonnull)error; +/// @return `nil` only when `error != nil`. +- (nullable NSDictionary *)isW3CFeatureFlagsEnabledWithError:(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 new file mode 100644 index 000000000..0847b5330 --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/InstabugPigeon.m @@ -0,0 +1,812 @@ +// 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 *FeatureFlagsFlutterApiGetCodec(void) { + static FlutterStandardMessageCodec *sSharedObject = nil; + sSharedObject = [FlutterStandardMessageCodec sharedInstance]; + return sSharedObject; +} + +@interface FeatureFlagsFlutterApi () +@property(nonatomic, strong) NSObject *binaryMessenger; +@end + +@implementation FeatureFlagsFlutterApi + +- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { + self = [super init]; + if (self) { + _binaryMessenger = binaryMessenger; + } + return self; +} +- (void)onW3CFeatureFlagChangeIsW3cExternalTraceIDEnabled:(NSNumber *)arg_isW3cExternalTraceIDEnabled isW3cExternalGeneratedHeaderEnabled:(NSNumber *)arg_isW3cExternalGeneratedHeaderEnabled isW3cCaughtHeaderEnabled:(NSNumber *)arg_isW3cCaughtHeaderEnabled completion:(void (^)(FlutterError *_Nullable))completion { + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel + messageChannelWithName:@"dev.flutter.pigeon.instabug_flutter.FeatureFlagsFlutterApi.onW3CFeatureFlagChange" + binaryMessenger:self.binaryMessenger + codec:FeatureFlagsFlutterApiGetCodec()]; + [channel sendMessage:@[arg_isW3cExternalTraceIDEnabled ?: [NSNull null], arg_isW3cExternalGeneratedHeaderEnabled ?: [NSNull null], arg_isW3cCaughtHeaderEnabled ?: [NSNull null]] reply:^(id reply) { + completion(nil); + }]; +} +@end + +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.registerFeatureFlagChangeListener" + binaryMessenger:binaryMessenger + codec:InstabugHostApiGetCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(registerFeatureFlagChangeListenerWithError:)], @"InstabugHostApi api (%@) doesn't respond to @selector(registerFeatureFlagChangeListenerWithError:)", api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + FlutterError *error; + [api registerFeatureFlagChangeListenerWithError:&error]; + callback(wrapResult(nil, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:@"dev.flutter.pigeon.instabug_flutter.InstabugHostApi.isW3CFeatureFlagsEnabled" + binaryMessenger:binaryMessenger + codec:InstabugHostApiGetCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(isW3CFeatureFlagsEnabledWithError:)], @"InstabugHostApi api (%@) doesn't respond to @selector(isW3CFeatureFlagsEnabledWithError:)", api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + FlutterError *error; + NSDictionary *output = [api isW3CFeatureFlagsEnabledWithError:&error]; + callback(wrapResult(output, 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/RepliesPigeon.h b/packages/instabug_flutter/ios/Classes/Generated/RepliesPigeon.h new file mode 100644 index 000000000..d1688b4e0 --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/RepliesPigeon.h @@ -0,0 +1,37 @@ +// 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 new file mode 100644 index 000000000..68ed05a19 --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/RepliesPigeon.m @@ -0,0 +1,192 @@ +// 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 new file mode 100644 index 000000000..d29358cab --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/SessionReplayPigeon.h @@ -0,0 +1,27 @@ +// 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 new file mode 100644 index 000000000..322e52e7c --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/SessionReplayPigeon.m @@ -0,0 +1,129 @@ +// 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 new file mode 100644 index 000000000..8af831a81 --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/SurveysPigeon.h @@ -0,0 +1,41 @@ +// 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 new file mode 100644 index 000000000..9e5d955e1 --- /dev/null +++ b/packages/instabug_flutter/ios/Classes/Generated/SurveysPigeon.m @@ -0,0 +1,259 @@ +// 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]; + } + } +} diff --git a/packages/instabug_flutter/lib/src/generated/apm.api.g.dart b/packages/instabug_flutter/lib/src/generated/apm.api.g.dart new file mode 100644 index 000000000..4dfcc9426 --- /dev/null +++ b/packages/instabug_flutter/lib/src/generated/apm.api.g.dart @@ -0,0 +1,491 @@ +// Autogenerated from Pigeon (v10.1.5), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +class ApmHostApi { + /// Constructor for [ApmHostApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + ApmHostApi({BinaryMessenger? binaryMessenger}) + : _binaryMessenger = binaryMessenger; + final BinaryMessenger? _binaryMessenger; + + static const MessageCodec codec = StandardMessageCodec(); + + Future setEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.setEnabled', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future isEnabled() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.isEnabled', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (replyList[0] as bool?)!; + } + } + + Future setScreenLoadingEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.setScreenLoadingEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future isScreenLoadingEnabled() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.isScreenLoadingEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (replyList[0] as bool?)!; + } + } + + Future setColdAppLaunchEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.setColdAppLaunchEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setAutoUITraceEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.setAutoUITraceEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future startExecutionTrace(String arg_id, String arg_name) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.startExecutionTrace', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_id, arg_name]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return (replyList[0] as String?); + } + } + + Future startFlow(String arg_name) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.startFlow', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_name]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setFlowAttribute( + String arg_name, String arg_key, String? arg_value) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.setFlowAttribute', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel + .send([arg_name, arg_key, arg_value]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future endFlow(String arg_name) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.endFlow', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_name]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setExecutionTraceAttribute( + String arg_id, String arg_key, String arg_value) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.setExecutionTraceAttribute', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel + .send([arg_id, arg_key, arg_value]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future endExecutionTrace(String arg_id) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.endExecutionTrace', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_id]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future startUITrace(String arg_name) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.startUITrace', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_name]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future endUITrace() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.endUITrace', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future endAppLaunch() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.endAppLaunch', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future networkLogAndroid(Map arg_data) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.networkLogAndroid', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_data]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future startCpUiTrace( + String arg_screenName, int arg_microTimeStamp, int arg_traceId) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.startCpUiTrace', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel + .send([arg_screenName, arg_microTimeStamp, arg_traceId]) + as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future reportScreenLoadingCP(int arg_startTimeStampMicro, + int arg_durationMicro, int arg_uiTraceId) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.reportScreenLoadingCP', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send([ + arg_startTimeStampMicro, + arg_durationMicro, + arg_uiTraceId + ]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future endScreenLoadingCP( + int arg_timeStampMicro, int arg_uiTraceId) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.endScreenLoadingCP', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel + .send([arg_timeStampMicro, arg_uiTraceId]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future isEndScreenLoadingEnabled() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.ApmHostApi.isEndScreenLoadingEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (replyList[0] as bool?)!; + } + } +} diff --git a/packages/instabug_flutter/lib/src/generated/bug_reporting.api.g.dart b/packages/instabug_flutter/lib/src/generated/bug_reporting.api.g.dart new file mode 100644 index 000000000..e8aef5b35 --- /dev/null +++ b/packages/instabug_flutter/lib/src/generated/bug_reporting.api.g.dart @@ -0,0 +1,447 @@ +// Autogenerated from Pigeon (v10.1.5), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +abstract class BugReportingFlutterApi { + static const MessageCodec codec = StandardMessageCodec(); + + void onSdkInvoke(); + + void onSdkDismiss(String dismissType, String reportType); + + static void setup(BugReportingFlutterApi? api, + {BinaryMessenger? binaryMessenger}) { + { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingFlutterApi.onSdkInvoke', + codec, + binaryMessenger: binaryMessenger); + if (api == null) { + channel.setMessageHandler(null); + } else { + channel.setMessageHandler((Object? message) async { + // ignore message + api.onSdkInvoke(); + return; + }); + } + } + { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingFlutterApi.onSdkDismiss', + codec, + binaryMessenger: binaryMessenger); + if (api == null) { + channel.setMessageHandler(null); + } else { + channel.setMessageHandler((Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.instabug_flutter.BugReportingFlutterApi.onSdkDismiss was null.'); + final List args = (message as List?)!; + final String? arg_dismissType = (args[0] as String?); + assert(arg_dismissType != null, + 'Argument for dev.flutter.pigeon.instabug_flutter.BugReportingFlutterApi.onSdkDismiss was null, expected non-null String.'); + final String? arg_reportType = (args[1] as String?); + assert(arg_reportType != null, + 'Argument for dev.flutter.pigeon.instabug_flutter.BugReportingFlutterApi.onSdkDismiss was null, expected non-null String.'); + api.onSdkDismiss(arg_dismissType!, arg_reportType!); + return; + }); + } + } + } +} + +class BugReportingHostApi { + /// Constructor for [BugReportingHostApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + BugReportingHostApi({BinaryMessenger? binaryMessenger}) + : _binaryMessenger = binaryMessenger; + final BinaryMessenger? _binaryMessenger; + + static const MessageCodec codec = StandardMessageCodec(); + + Future setEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future show( + String arg_reportType, List arg_invocationOptions) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.show', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_reportType, arg_invocationOptions]) + as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setInvocationEvents(List arg_events) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setInvocationEvents', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_events]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setReportTypes(List arg_types) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setReportTypes', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_types]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setExtendedBugReportMode(String arg_mode) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setExtendedBugReportMode', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_mode]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setInvocationOptions(List arg_options) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setInvocationOptions', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_options]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setFloatingButtonEdge(String arg_edge, int arg_offset) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setFloatingButtonEdge', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_edge, arg_offset]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setVideoRecordingFloatingButtonPosition( + String arg_position) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setVideoRecordingFloatingButtonPosition', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_position]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setShakingThresholdForiPhone(double arg_threshold) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setShakingThresholdForiPhone', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_threshold]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setShakingThresholdForiPad(double arg_threshold) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setShakingThresholdForiPad', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_threshold]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setShakingThresholdForAndroid(int arg_threshold) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setShakingThresholdForAndroid', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_threshold]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setEnabledAttachmentTypes( + bool arg_screenshot, + bool arg_extraScreenshot, + bool arg_galleryImage, + bool arg_screenRecording) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setEnabledAttachmentTypes', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send([ + arg_screenshot, + arg_extraScreenshot, + arg_galleryImage, + arg_screenRecording + ]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future bindOnInvokeCallback() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.bindOnInvokeCallback', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future bindOnDismissCallback() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.bindOnDismissCallback', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setDisclaimerText(String arg_text) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setDisclaimerText', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_text]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setCommentMinimumCharacterCount( + int arg_limit, List? arg_reportTypes) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.BugReportingHostApi.setCommentMinimumCharacterCount', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel + .send([arg_limit, arg_reportTypes]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } +} diff --git a/packages/instabug_flutter/lib/src/generated/crash_reporting.api.g.dart b/packages/instabug_flutter/lib/src/generated/crash_reporting.api.g.dart new file mode 100644 index 000000000..f32d1e843 --- /dev/null +++ b/packages/instabug_flutter/lib/src/generated/crash_reporting.api.g.dart @@ -0,0 +1,96 @@ +// Autogenerated from Pigeon (v10.1.5), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +class CrashReportingHostApi { + /// Constructor for [CrashReportingHostApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + CrashReportingHostApi({BinaryMessenger? binaryMessenger}) + : _binaryMessenger = binaryMessenger; + final BinaryMessenger? _binaryMessenger; + + static const MessageCodec codec = StandardMessageCodec(); + + Future setEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.CrashReportingHostApi.setEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future send(String arg_jsonCrash, bool arg_isHandled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.CrashReportingHostApi.send', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel + .send([arg_jsonCrash, arg_isHandled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future sendNonFatalError( + String arg_jsonCrash, + Map? arg_userAttributes, + String? arg_fingerprint, + String arg_nonFatalExceptionLevel) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.CrashReportingHostApi.sendNonFatalError', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send([ + arg_jsonCrash, + arg_userAttributes, + arg_fingerprint, + arg_nonFatalExceptionLevel + ]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } +} diff --git a/packages/instabug_flutter/lib/src/generated/feature_requests.api.g.dart b/packages/instabug_flutter/lib/src/generated/feature_requests.api.g.dart new file mode 100644 index 000000000..bb52b6a07 --- /dev/null +++ b/packages/instabug_flutter/lib/src/generated/feature_requests.api.g.dart @@ -0,0 +1,66 @@ +// Autogenerated from Pigeon (v10.1.5), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +class FeatureRequestsHostApi { + /// Constructor for [FeatureRequestsHostApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + FeatureRequestsHostApi({BinaryMessenger? binaryMessenger}) + : _binaryMessenger = binaryMessenger; + final BinaryMessenger? _binaryMessenger; + + static const MessageCodec codec = StandardMessageCodec(); + + Future show() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.FeatureRequestsHostApi.show', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setEmailFieldRequired( + bool arg_isRequired, List arg_actionTypes) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.FeatureRequestsHostApi.setEmailFieldRequired', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel + .send([arg_isRequired, arg_actionTypes]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } +} diff --git a/packages/instabug_flutter/lib/src/generated/instabug.api.g.dart b/packages/instabug_flutter/lib/src/generated/instabug.api.g.dart new file mode 100644 index 000000000..5ece6d4df --- /dev/null +++ b/packages/instabug_flutter/lib/src/generated/instabug.api.g.dart @@ -0,0 +1,980 @@ +// Autogenerated from Pigeon (v10.1.5), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +abstract class FeatureFlagsFlutterApi { + static const MessageCodec codec = StandardMessageCodec(); + + void onW3CFeatureFlagChange(bool isW3cExternalTraceIDEnabled, + bool isW3cExternalGeneratedHeaderEnabled, bool isW3cCaughtHeaderEnabled); + + static void setup(FeatureFlagsFlutterApi? api, + {BinaryMessenger? binaryMessenger}) { + { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.FeatureFlagsFlutterApi.onW3CFeatureFlagChange', + codec, + binaryMessenger: binaryMessenger); + if (api == null) { + channel.setMessageHandler(null); + } else { + channel.setMessageHandler((Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.instabug_flutter.FeatureFlagsFlutterApi.onW3CFeatureFlagChange was null.'); + final List args = (message as List?)!; + final bool? arg_isW3cExternalTraceIDEnabled = (args[0] as bool?); + assert(arg_isW3cExternalTraceIDEnabled != null, + 'Argument for dev.flutter.pigeon.instabug_flutter.FeatureFlagsFlutterApi.onW3CFeatureFlagChange was null, expected non-null bool.'); + final bool? arg_isW3cExternalGeneratedHeaderEnabled = + (args[1] as bool?); + assert(arg_isW3cExternalGeneratedHeaderEnabled != null, + 'Argument for dev.flutter.pigeon.instabug_flutter.FeatureFlagsFlutterApi.onW3CFeatureFlagChange was null, expected non-null bool.'); + final bool? arg_isW3cCaughtHeaderEnabled = (args[2] as bool?); + assert(arg_isW3cCaughtHeaderEnabled != null, + 'Argument for dev.flutter.pigeon.instabug_flutter.FeatureFlagsFlutterApi.onW3CFeatureFlagChange was null, expected non-null bool.'); + api.onW3CFeatureFlagChange( + arg_isW3cExternalTraceIDEnabled!, + arg_isW3cExternalGeneratedHeaderEnabled!, + arg_isW3cCaughtHeaderEnabled!); + return; + }); + } + } + } +} + +class InstabugHostApi { + /// Constructor for [InstabugHostApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + InstabugHostApi({BinaryMessenger? binaryMessenger}) + : _binaryMessenger = binaryMessenger; + final BinaryMessenger? _binaryMessenger; + + static const MessageCodec codec = StandardMessageCodec(); + + Future setEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setEnabled', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future isEnabled() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.isEnabled', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (replyList[0] as bool?)!; + } + } + + Future isBuilt() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.isBuilt', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (replyList[0] as bool?)!; + } + } + + Future init(String arg_token, List arg_invocationEvents, + String arg_debugLogsLevel) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.init', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send( + [arg_token, arg_invocationEvents, arg_debugLogsLevel]) + as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future show() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.show', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future showWelcomeMessageWithMode(String arg_mode) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.showWelcomeMessageWithMode', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_mode]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future identifyUser( + String arg_email, String? arg_name, String? arg_userId) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.identifyUser', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel + .send([arg_email, arg_name, arg_userId]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setUserData(String arg_data) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setUserData', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_data]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future logUserEvent(String arg_name) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.logUserEvent', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_name]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future logOut() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.logOut', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setLocale(String arg_locale) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setLocale', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_locale]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setColorTheme(String arg_theme) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setColorTheme', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_theme]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setWelcomeMessageMode(String arg_mode) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setWelcomeMessageMode', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_mode]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setPrimaryColor(int arg_color) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setPrimaryColor', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_color]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setSessionProfilerEnabled(bool arg_enabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setSessionProfilerEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_enabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setValueForStringWithKey( + String arg_value, String arg_key) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setValueForStringWithKey', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_value, arg_key]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future appendTags(List arg_tags) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.appendTags', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_tags]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future resetTags() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.resetTags', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future?> getTags() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.getTags', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return (replyList[0] as List?)?.cast(); + } + } + + Future addExperiments(List arg_experiments) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.addExperiments', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_experiments]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future removeExperiments(List arg_experiments) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.removeExperiments', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_experiments]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future clearAllExperiments() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.clearAllExperiments', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future addFeatureFlags( + Map arg_featureFlagsMap) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.addFeatureFlags', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_featureFlagsMap]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future removeFeatureFlags(List arg_featureFlags) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.removeFeatureFlags', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_featureFlags]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future removeAllFeatureFlags() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.removeAllFeatureFlags', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setUserAttribute(String arg_value, String arg_key) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setUserAttribute', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_value, arg_key]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future removeUserAttribute(String arg_key) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.removeUserAttribute', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_key]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future getUserAttributeForKey(String arg_key) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.getUserAttributeForKey', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_key]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return (replyList[0] as String?); + } + } + + Future?> getUserAttributes() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.getUserAttributes', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return (replyList[0] as Map?)?.cast(); + } + } + + Future setReproStepsConfig(String? arg_bugMode, String? arg_crashMode, + String? arg_sessionReplayMode) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setReproStepsConfig', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel + .send([arg_bugMode, arg_crashMode, arg_sessionReplayMode]) + as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future reportScreenChange(String arg_screenName) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.reportScreenChange', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_screenName]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setCustomBrandingImage(String arg_light, String arg_dark) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setCustomBrandingImage', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_light, arg_dark]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setFont(String arg_font) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.setFont', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_font]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future addFileAttachmentWithURL( + String arg_filePath, String arg_fileName) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.addFileAttachmentWithURL', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel + .send([arg_filePath, arg_fileName]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future addFileAttachmentWithData( + Uint8List arg_data, String arg_fileName) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.addFileAttachmentWithData', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_data, arg_fileName]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future clearFileAttachments() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.clearFileAttachments', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future networkLog(Map arg_data) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.networkLog', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_data]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future registerFeatureFlagChangeListener() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.registerFeatureFlagChangeListener', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future> isW3CFeatureFlagsEnabled() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.isW3CFeatureFlagsEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (replyList[0] as Map?)!.cast(); + } + } + + Future willRedirectToStore() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugHostApi.willRedirectToStore', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } +} diff --git a/packages/instabug_flutter/lib/src/generated/instabug_log.api.g.dart b/packages/instabug_flutter/lib/src/generated/instabug_log.api.g.dart new file mode 100644 index 000000000..3de2c9be1 --- /dev/null +++ b/packages/instabug_flutter/lib/src/generated/instabug_log.api.g.dart @@ -0,0 +1,155 @@ +// Autogenerated from Pigeon (v10.1.5), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +class InstabugLogHostApi { + /// Constructor for [InstabugLogHostApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + InstabugLogHostApi({BinaryMessenger? binaryMessenger}) + : _binaryMessenger = binaryMessenger; + final BinaryMessenger? _binaryMessenger; + + static const MessageCodec codec = StandardMessageCodec(); + + Future logVerbose(String arg_message) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logVerbose', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_message]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future logDebug(String arg_message) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logDebug', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_message]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future logInfo(String arg_message) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logInfo', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_message]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future logWarn(String arg_message) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logWarn', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_message]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future logError(String arg_message) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.logError', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_message]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future clearAllLogs() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.InstabugLogHostApi.clearAllLogs', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } +} diff --git a/packages/instabug_flutter/lib/src/generated/replies.api.g.dart b/packages/instabug_flutter/lib/src/generated/replies.api.g.dart new file mode 100644 index 000000000..ee30f81a6 --- /dev/null +++ b/packages/instabug_flutter/lib/src/generated/replies.api.g.dart @@ -0,0 +1,209 @@ +// Autogenerated from Pigeon (v10.1.5), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +abstract class RepliesFlutterApi { + static const MessageCodec codec = StandardMessageCodec(); + + void onNewReply(); + + static void setup(RepliesFlutterApi? api, + {BinaryMessenger? binaryMessenger}) { + { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.RepliesFlutterApi.onNewReply', + codec, + binaryMessenger: binaryMessenger); + if (api == null) { + channel.setMessageHandler(null); + } else { + channel.setMessageHandler((Object? message) async { + // ignore message + api.onNewReply(); + return; + }); + } + } + } +} + +class RepliesHostApi { + /// Constructor for [RepliesHostApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + RepliesHostApi({BinaryMessenger? binaryMessenger}) + : _binaryMessenger = binaryMessenger; + final BinaryMessenger? _binaryMessenger; + + static const MessageCodec codec = StandardMessageCodec(); + + Future setEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.RepliesHostApi.setEnabled', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future show() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.RepliesHostApi.show', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setInAppNotificationsEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.RepliesHostApi.setInAppNotificationsEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setInAppNotificationSound(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.RepliesHostApi.setInAppNotificationSound', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future getUnreadRepliesCount() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.RepliesHostApi.getUnreadRepliesCount', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (replyList[0] as int?)!; + } + } + + Future hasChats() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.RepliesHostApi.hasChats', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (replyList[0] as bool?)!; + } + } + + Future bindOnNewReplyCallback() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.RepliesHostApi.bindOnNewReplyCallback', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } +} diff --git a/packages/instabug_flutter/lib/src/generated/session_replay.api.g.dart b/packages/instabug_flutter/lib/src/generated/session_replay.api.g.dart new file mode 100644 index 000000000..1d3143353 --- /dev/null +++ b/packages/instabug_flutter/lib/src/generated/session_replay.api.g.dart @@ -0,0 +1,139 @@ +// Autogenerated from Pigeon (v10.1.5), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +class SessionReplayHostApi { + /// Constructor for [SessionReplayHostApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + SessionReplayHostApi({BinaryMessenger? binaryMessenger}) + : _binaryMessenger = binaryMessenger; + final BinaryMessenger? _binaryMessenger; + + static const MessageCodec codec = StandardMessageCodec(); + + Future setEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.setEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setNetworkLogsEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.setNetworkLogsEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setInstabugLogsEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.setInstabugLogsEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setUserStepsEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.setUserStepsEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future getSessionReplayLink() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SessionReplayHostApi.getSessionReplayLink', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (replyList[0] as String?)!; + } + } +} diff --git a/packages/instabug_flutter/lib/src/generated/surveys.api.g.dart b/packages/instabug_flutter/lib/src/generated/surveys.api.g.dart new file mode 100644 index 000000000..10788dc57 --- /dev/null +++ b/packages/instabug_flutter/lib/src/generated/surveys.api.g.dart @@ -0,0 +1,297 @@ +// Autogenerated from Pigeon (v10.1.5), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +abstract class SurveysFlutterApi { + static const MessageCodec codec = StandardMessageCodec(); + + void onShowSurvey(); + + void onDismissSurvey(); + + static void setup(SurveysFlutterApi? api, + {BinaryMessenger? binaryMessenger}) { + { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SurveysFlutterApi.onShowSurvey', + codec, + binaryMessenger: binaryMessenger); + if (api == null) { + channel.setMessageHandler(null); + } else { + channel.setMessageHandler((Object? message) async { + // ignore message + api.onShowSurvey(); + return; + }); + } + } + { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SurveysFlutterApi.onDismissSurvey', + codec, + binaryMessenger: binaryMessenger); + if (api == null) { + channel.setMessageHandler(null); + } else { + channel.setMessageHandler((Object? message) async { + // ignore message + api.onDismissSurvey(); + return; + }); + } + } + } +} + +class SurveysHostApi { + /// Constructor for [SurveysHostApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + SurveysHostApi({BinaryMessenger? binaryMessenger}) + : _binaryMessenger = binaryMessenger; + final BinaryMessenger? _binaryMessenger; + + static const MessageCodec codec = StandardMessageCodec(); + + Future setEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SurveysHostApi.setEnabled', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future showSurveyIfAvailable() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SurveysHostApi.showSurveyIfAvailable', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future showSurvey(String arg_surveyToken) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SurveysHostApi.showSurvey', codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_surveyToken]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setAutoShowingEnabled(bool arg_isEnabled) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SurveysHostApi.setAutoShowingEnabled', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_isEnabled]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setShouldShowWelcomeScreen( + bool arg_shouldShowWelcomeScreen) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SurveysHostApi.setShouldShowWelcomeScreen', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel + .send([arg_shouldShowWelcomeScreen]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future setAppStoreURL(String arg_appStoreURL) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SurveysHostApi.setAppStoreURL', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_appStoreURL]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future hasRespondedToSurvey(String arg_surveyToken) async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SurveysHostApi.hasRespondedToSurvey', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = + await channel.send([arg_surveyToken]) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (replyList[0] as bool?)!; + } + } + + Future> getAvailableSurveys() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SurveysHostApi.getAvailableSurveys', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (replyList[0] as List?)!.cast(); + } + } + + Future bindOnShowSurveyCallback() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SurveysHostApi.bindOnShowSurveyCallback', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } + + Future bindOnDismissSurveyCallback() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_flutter.SurveysHostApi.bindOnDismissSurveyCallback', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } +} diff --git a/packages/instabug_flutter/pubspec.yaml b/packages/instabug_flutter/pubspec.yaml index 3ccf4d854..f75a2a4ae 100644 --- a/packages/instabug_flutter/pubspec.yaml +++ b/packages/instabug_flutter/pubspec.yaml @@ -1,5 +1,5 @@ name: instabug_flutter -version: 14.0.0 +version: 14.1.0 description: >- Instabug empowers mobile teams to monitor, prioritize, and debug performance and stability issues throughout the app development lifecycle. diff --git a/packages/instabug_flutter/test/apm_test.mocks.dart b/packages/instabug_flutter/test/apm_test.mocks.dart new file mode 100644 index 000000000..deb1526ae --- /dev/null +++ b/packages/instabug_flutter/test/apm_test.mocks.dart @@ -0,0 +1,360 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/apm_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:instabug_flutter/src/generated/apm.api.g.dart' as _i2; +import 'package:instabug_flutter/src/utils/ibg_build_info.dart' as _i5; +import 'package:instabug_flutter/src/utils/ibg_date_time.dart' as _i4; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i6; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +class _FakeDateTime_0 extends _i1.SmartFake implements DateTime { + _FakeDateTime_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +/// A class which mocks [ApmHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockApmHostApi extends _i1.Mock implements _i2.ApmHostApi { + MockApmHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future isEnabled() => (super.noSuchMethod( + Invocation.method( + #isEnabled, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); + + @override + _i3.Future setScreenLoadingEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setScreenLoadingEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future isScreenLoadingEnabled() => (super.noSuchMethod( + Invocation.method( + #isScreenLoadingEnabled, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); + + @override + _i3.Future setColdAppLaunchEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setColdAppLaunchEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setAutoUITraceEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setAutoUITraceEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future startExecutionTrace( + String? arg_id, + String? arg_name, + ) => + (super.noSuchMethod( + Invocation.method( + #startExecutionTrace, + [ + arg_id, + arg_name, + ], + ), + returnValue: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future startFlow(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #startFlow, + [arg_name], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setFlowAttribute( + String? arg_name, + String? arg_key, + String? arg_value, + ) => + (super.noSuchMethod( + Invocation.method( + #setFlowAttribute, + [ + arg_name, + arg_key, + arg_value, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future endFlow(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #endFlow, + [arg_name], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setExecutionTraceAttribute( + String? arg_id, + String? arg_key, + String? arg_value, + ) => + (super.noSuchMethod( + Invocation.method( + #setExecutionTraceAttribute, + [ + arg_id, + arg_key, + arg_value, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future endExecutionTrace(String? arg_id) => (super.noSuchMethod( + Invocation.method( + #endExecutionTrace, + [arg_id], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future startUITrace(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #startUITrace, + [arg_name], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future endUITrace() => (super.noSuchMethod( + Invocation.method( + #endUITrace, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future endAppLaunch() => (super.noSuchMethod( + Invocation.method( + #endAppLaunch, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future networkLogAndroid(Map? arg_data) => + (super.noSuchMethod( + Invocation.method( + #networkLogAndroid, + [arg_data], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future startCpUiTrace( + String? arg_screenName, + int? arg_microTimeStamp, + int? arg_traceId, + ) => + (super.noSuchMethod( + Invocation.method( + #startCpUiTrace, + [ + arg_screenName, + arg_microTimeStamp, + arg_traceId, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future reportScreenLoadingCP( + int? arg_startTimeStampMicro, + int? arg_durationMicro, + int? arg_uiTraceId, + ) => + (super.noSuchMethod( + Invocation.method( + #reportScreenLoadingCP, + [ + arg_startTimeStampMicro, + arg_durationMicro, + arg_uiTraceId, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future endScreenLoadingCP( + int? arg_timeStampMicro, + int? arg_uiTraceId, + ) => + (super.noSuchMethod( + Invocation.method( + #endScreenLoadingCP, + [ + arg_timeStampMicro, + arg_uiTraceId, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future isEndScreenLoadingEnabled() => (super.noSuchMethod( + Invocation.method( + #isEndScreenLoadingEnabled, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); +} + +/// A class which mocks [IBGDateTime]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIBGDateTime extends _i1.Mock implements _i4.IBGDateTime { + MockIBGDateTime() { + _i1.throwOnMissingStub(this); + } + + @override + DateTime now() => (super.noSuchMethod( + Invocation.method( + #now, + [], + ), + returnValue: _FakeDateTime_0( + this, + Invocation.method( + #now, + [], + ), + ), + ) as DateTime); +} + +/// A class which mocks [IBGBuildInfo]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIBGBuildInfo extends _i1.Mock implements _i5.IBGBuildInfo { + MockIBGBuildInfo() { + _i1.throwOnMissingStub(this); + } + + @override + bool get isAndroid => (super.noSuchMethod( + Invocation.getter(#isAndroid), + returnValue: false, + ) as bool); + + @override + bool get isIOS => (super.noSuchMethod( + Invocation.getter(#isIOS), + returnValue: false, + ) as bool); + + @override + String get operatingSystem => (super.noSuchMethod( + Invocation.getter(#operatingSystem), + returnValue: _i6.dummyValue( + this, + Invocation.getter(#operatingSystem), + ), + ) as String); + + @override + bool get isReleaseMode => (super.noSuchMethod( + Invocation.getter(#isReleaseMode), + returnValue: false, + ) as bool); + + @override + bool get isDebugMode => (super.noSuchMethod( + Invocation.getter(#isDebugMode), + returnValue: false, + ) as bool); +} diff --git a/packages/instabug_flutter/test/bug_reporting_test.mocks.dart b/packages/instabug_flutter/test/bug_reporting_test.mocks.dart new file mode 100644 index 000000000..cbdb9da9b --- /dev/null +++ b/packages/instabug_flutter/test/bug_reporting_test.mocks.dart @@ -0,0 +1,277 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/bug_reporting_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:instabug_flutter/src/generated/bug_reporting.api.g.dart' as _i2; +import 'package:instabug_flutter/src/utils/ibg_build_info.dart' as _i4; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i5; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [BugReportingHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockBugReportingHostApi extends _i1.Mock + implements _i2.BugReportingHostApi { + MockBugReportingHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future show( + String? arg_reportType, + List? arg_invocationOptions, + ) => + (super.noSuchMethod( + Invocation.method( + #show, + [ + arg_reportType, + arg_invocationOptions, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setInvocationEvents(List? arg_events) => + (super.noSuchMethod( + Invocation.method( + #setInvocationEvents, + [arg_events], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setReportTypes(List? arg_types) => + (super.noSuchMethod( + Invocation.method( + #setReportTypes, + [arg_types], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setExtendedBugReportMode(String? arg_mode) => + (super.noSuchMethod( + Invocation.method( + #setExtendedBugReportMode, + [arg_mode], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setInvocationOptions(List? arg_options) => + (super.noSuchMethod( + Invocation.method( + #setInvocationOptions, + [arg_options], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setFloatingButtonEdge( + String? arg_edge, + int? arg_offset, + ) => + (super.noSuchMethod( + Invocation.method( + #setFloatingButtonEdge, + [ + arg_edge, + arg_offset, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setVideoRecordingFloatingButtonPosition( + String? arg_position) => + (super.noSuchMethod( + Invocation.method( + #setVideoRecordingFloatingButtonPosition, + [arg_position], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setShakingThresholdForiPhone(double? arg_threshold) => + (super.noSuchMethod( + Invocation.method( + #setShakingThresholdForiPhone, + [arg_threshold], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setShakingThresholdForiPad(double? arg_threshold) => + (super.noSuchMethod( + Invocation.method( + #setShakingThresholdForiPad, + [arg_threshold], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setShakingThresholdForAndroid(int? arg_threshold) => + (super.noSuchMethod( + Invocation.method( + #setShakingThresholdForAndroid, + [arg_threshold], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setEnabledAttachmentTypes( + bool? arg_screenshot, + bool? arg_extraScreenshot, + bool? arg_galleryImage, + bool? arg_screenRecording, + ) => + (super.noSuchMethod( + Invocation.method( + #setEnabledAttachmentTypes, + [ + arg_screenshot, + arg_extraScreenshot, + arg_galleryImage, + arg_screenRecording, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future bindOnInvokeCallback() => (super.noSuchMethod( + Invocation.method( + #bindOnInvokeCallback, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future bindOnDismissCallback() => (super.noSuchMethod( + Invocation.method( + #bindOnDismissCallback, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setDisclaimerText(String? arg_text) => (super.noSuchMethod( + Invocation.method( + #setDisclaimerText, + [arg_text], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setCommentMinimumCharacterCount( + int? arg_limit, + List? arg_reportTypes, + ) => + (super.noSuchMethod( + Invocation.method( + #setCommentMinimumCharacterCount, + [ + arg_limit, + arg_reportTypes, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); +} + +/// A class which mocks [IBGBuildInfo]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIBGBuildInfo extends _i1.Mock implements _i4.IBGBuildInfo { + MockIBGBuildInfo() { + _i1.throwOnMissingStub(this); + } + + @override + bool get isAndroid => (super.noSuchMethod( + Invocation.getter(#isAndroid), + returnValue: false, + ) as bool); + + @override + bool get isIOS => (super.noSuchMethod( + Invocation.getter(#isIOS), + returnValue: false, + ) as bool); + + @override + String get operatingSystem => (super.noSuchMethod( + Invocation.getter(#operatingSystem), + returnValue: _i5.dummyValue( + this, + Invocation.getter(#operatingSystem), + ), + ) as String); + + @override + bool get isReleaseMode => (super.noSuchMethod( + Invocation.getter(#isReleaseMode), + returnValue: false, + ) as bool); + + @override + bool get isDebugMode => (super.noSuchMethod( + Invocation.getter(#isDebugMode), + returnValue: false, + ) as bool); +} diff --git a/packages/instabug_flutter/test/crash_reporting_test.mocks.dart b/packages/instabug_flutter/test/crash_reporting_test.mocks.dart new file mode 100644 index 000000000..2b2967700 --- /dev/null +++ b/packages/instabug_flutter/test/crash_reporting_test.mocks.dart @@ -0,0 +1,125 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/crash_reporting_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:instabug_flutter/src/generated/crash_reporting.api.g.dart' + as _i2; +import 'package:instabug_flutter/src/utils/ibg_build_info.dart' as _i4; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i5; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [CrashReportingHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockCrashReportingHostApi extends _i1.Mock + implements _i2.CrashReportingHostApi { + MockCrashReportingHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future send( + String? arg_jsonCrash, + bool? arg_isHandled, + ) => + (super.noSuchMethod( + Invocation.method( + #send, + [ + arg_jsonCrash, + arg_isHandled, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future sendNonFatalError( + String? arg_jsonCrash, + Map? arg_userAttributes, + String? arg_fingerprint, + String? arg_nonFatalExceptionLevel, + ) => + (super.noSuchMethod( + Invocation.method( + #sendNonFatalError, + [ + arg_jsonCrash, + arg_userAttributes, + arg_fingerprint, + arg_nonFatalExceptionLevel, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); +} + +/// A class which mocks [IBGBuildInfo]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIBGBuildInfo extends _i1.Mock implements _i4.IBGBuildInfo { + MockIBGBuildInfo() { + _i1.throwOnMissingStub(this); + } + + @override + bool get isAndroid => (super.noSuchMethod( + Invocation.getter(#isAndroid), + returnValue: false, + ) as bool); + + @override + bool get isIOS => (super.noSuchMethod( + Invocation.getter(#isIOS), + returnValue: false, + ) as bool); + + @override + String get operatingSystem => (super.noSuchMethod( + Invocation.getter(#operatingSystem), + returnValue: _i5.dummyValue( + this, + Invocation.getter(#operatingSystem), + ), + ) as String); + + @override + bool get isReleaseMode => (super.noSuchMethod( + Invocation.getter(#isReleaseMode), + returnValue: false, + ) as bool); + + @override + bool get isDebugMode => (super.noSuchMethod( + Invocation.getter(#isDebugMode), + returnValue: false, + ) as bool); +} diff --git a/packages/instabug_flutter/test/feature_flags_manager_test.mocks.dart b/packages/instabug_flutter/test/feature_flags_manager_test.mocks.dart new file mode 100644 index 000000000..10c345280 --- /dev/null +++ b/packages/instabug_flutter/test/feature_flags_manager_test.mocks.dart @@ -0,0 +1,544 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/feature_flags_manager_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; +import 'dart:typed_data' as _i4; + +import 'package:instabug_flutter/src/generated/instabug.api.g.dart' as _i2; +import 'package:instabug_flutter/src/utils/ibg_build_info.dart' as _i5; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i6; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [InstabugHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockInstabugHostApi extends _i1.Mock implements _i2.InstabugHostApi { + MockInstabugHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future isEnabled() => (super.noSuchMethod( + Invocation.method( + #isEnabled, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); + + @override + _i3.Future isBuilt() => (super.noSuchMethod( + Invocation.method( + #isBuilt, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); + + @override + _i3.Future init( + String? arg_token, + List? arg_invocationEvents, + String? arg_debugLogsLevel, + ) => + (super.noSuchMethod( + Invocation.method( + #init, + [ + arg_token, + arg_invocationEvents, + arg_debugLogsLevel, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future show() => (super.noSuchMethod( + Invocation.method( + #show, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future showWelcomeMessageWithMode(String? arg_mode) => + (super.noSuchMethod( + Invocation.method( + #showWelcomeMessageWithMode, + [arg_mode], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future identifyUser( + String? arg_email, + String? arg_name, + String? arg_userId, + ) => + (super.noSuchMethod( + Invocation.method( + #identifyUser, + [ + arg_email, + arg_name, + arg_userId, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setUserData(String? arg_data) => (super.noSuchMethod( + Invocation.method( + #setUserData, + [arg_data], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future logUserEvent(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #logUserEvent, + [arg_name], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future logOut() => (super.noSuchMethod( + Invocation.method( + #logOut, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setLocale(String? arg_locale) => (super.noSuchMethod( + Invocation.method( + #setLocale, + [arg_locale], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setColorTheme(String? arg_theme) => (super.noSuchMethod( + Invocation.method( + #setColorTheme, + [arg_theme], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setWelcomeMessageMode(String? arg_mode) => + (super.noSuchMethod( + Invocation.method( + #setWelcomeMessageMode, + [arg_mode], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setPrimaryColor(int? arg_color) => (super.noSuchMethod( + Invocation.method( + #setPrimaryColor, + [arg_color], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setSessionProfilerEnabled(bool? arg_enabled) => + (super.noSuchMethod( + Invocation.method( + #setSessionProfilerEnabled, + [arg_enabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setValueForStringWithKey( + String? arg_value, + String? arg_key, + ) => + (super.noSuchMethod( + Invocation.method( + #setValueForStringWithKey, + [ + arg_value, + arg_key, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future appendTags(List? arg_tags) => (super.noSuchMethod( + Invocation.method( + #appendTags, + [arg_tags], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future resetTags() => (super.noSuchMethod( + Invocation.method( + #resetTags, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future?> getTags() => (super.noSuchMethod( + Invocation.method( + #getTags, + [], + ), + returnValue: _i3.Future?>.value(), + ) as _i3.Future?>); + + @override + _i3.Future addExperiments(List? arg_experiments) => + (super.noSuchMethod( + Invocation.method( + #addExperiments, + [arg_experiments], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future removeExperiments(List? arg_experiments) => + (super.noSuchMethod( + Invocation.method( + #removeExperiments, + [arg_experiments], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future clearAllExperiments() => (super.noSuchMethod( + Invocation.method( + #clearAllExperiments, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future addFeatureFlags( + Map? arg_featureFlagsMap) => + (super.noSuchMethod( + Invocation.method( + #addFeatureFlags, + [arg_featureFlagsMap], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future removeFeatureFlags(List? arg_featureFlags) => + (super.noSuchMethod( + Invocation.method( + #removeFeatureFlags, + [arg_featureFlags], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future removeAllFeatureFlags() => (super.noSuchMethod( + Invocation.method( + #removeAllFeatureFlags, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setUserAttribute( + String? arg_value, + String? arg_key, + ) => + (super.noSuchMethod( + Invocation.method( + #setUserAttribute, + [ + arg_value, + arg_key, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future removeUserAttribute(String? arg_key) => (super.noSuchMethod( + Invocation.method( + #removeUserAttribute, + [arg_key], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future getUserAttributeForKey(String? arg_key) => + (super.noSuchMethod( + Invocation.method( + #getUserAttributeForKey, + [arg_key], + ), + returnValue: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future?> getUserAttributes() => (super.noSuchMethod( + Invocation.method( + #getUserAttributes, + [], + ), + returnValue: _i3.Future?>.value(), + ) as _i3.Future?>); + + @override + _i3.Future setReproStepsConfig( + String? arg_bugMode, + String? arg_crashMode, + String? arg_sessionReplayMode, + ) => + (super.noSuchMethod( + Invocation.method( + #setReproStepsConfig, + [ + arg_bugMode, + arg_crashMode, + arg_sessionReplayMode, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future reportScreenChange(String? arg_screenName) => + (super.noSuchMethod( + Invocation.method( + #reportScreenChange, + [arg_screenName], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setCustomBrandingImage( + String? arg_light, + String? arg_dark, + ) => + (super.noSuchMethod( + Invocation.method( + #setCustomBrandingImage, + [ + arg_light, + arg_dark, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setFont(String? arg_font) => (super.noSuchMethod( + Invocation.method( + #setFont, + [arg_font], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future addFileAttachmentWithURL( + String? arg_filePath, + String? arg_fileName, + ) => + (super.noSuchMethod( + Invocation.method( + #addFileAttachmentWithURL, + [ + arg_filePath, + arg_fileName, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future addFileAttachmentWithData( + _i4.Uint8List? arg_data, + String? arg_fileName, + ) => + (super.noSuchMethod( + Invocation.method( + #addFileAttachmentWithData, + [ + arg_data, + arg_fileName, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future clearFileAttachments() => (super.noSuchMethod( + Invocation.method( + #clearFileAttachments, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future networkLog(Map? arg_data) => + (super.noSuchMethod( + Invocation.method( + #networkLog, + [arg_data], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future registerFeatureFlagChangeListener() => (super.noSuchMethod( + Invocation.method( + #registerFeatureFlagChangeListener, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future> isW3CFeatureFlagsEnabled() => + (super.noSuchMethod( + Invocation.method( + #isW3CFeatureFlagsEnabled, + [], + ), + returnValue: _i3.Future>.value({}), + ) as _i3.Future>); + + @override + _i3.Future willRedirectToStore() => (super.noSuchMethod( + Invocation.method( + #willRedirectToStore, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); +} + +/// A class which mocks [IBGBuildInfo]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIBGBuildInfo extends _i1.Mock implements _i5.IBGBuildInfo { + MockIBGBuildInfo() { + _i1.throwOnMissingStub(this); + } + + @override + bool get isAndroid => (super.noSuchMethod( + Invocation.getter(#isAndroid), + returnValue: false, + ) as bool); + + @override + bool get isIOS => (super.noSuchMethod( + Invocation.getter(#isIOS), + returnValue: false, + ) as bool); + + @override + String get operatingSystem => (super.noSuchMethod( + Invocation.getter(#operatingSystem), + returnValue: _i6.dummyValue( + this, + Invocation.getter(#operatingSystem), + ), + ) as String); + + @override + bool get isReleaseMode => (super.noSuchMethod( + Invocation.getter(#isReleaseMode), + returnValue: false, + ) as bool); + + @override + bool get isDebugMode => (super.noSuchMethod( + Invocation.getter(#isDebugMode), + returnValue: false, + ) as bool); +} diff --git a/packages/instabug_flutter/test/feature_requests_test.mocks.dart b/packages/instabug_flutter/test/feature_requests_test.mocks.dart new file mode 100644 index 000000000..589a8ea6b --- /dev/null +++ b/packages/instabug_flutter/test/feature_requests_test.mocks.dart @@ -0,0 +1,60 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/feature_requests_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:instabug_flutter/src/generated/feature_requests.api.g.dart' + as _i2; +import 'package:mockito/mockito.dart' as _i1; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [FeatureRequestsHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockFeatureRequestsHostApi extends _i1.Mock + implements _i2.FeatureRequestsHostApi { + MockFeatureRequestsHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future show() => (super.noSuchMethod( + Invocation.method( + #show, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setEmailFieldRequired( + bool? arg_isRequired, + List? arg_actionTypes, + ) => + (super.noSuchMethod( + Invocation.method( + #setEmailFieldRequired, + [ + arg_isRequired, + arg_actionTypes, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); +} diff --git a/packages/instabug_flutter/test/instabug_log_test.mocks.dart b/packages/instabug_flutter/test/instabug_log_test.mocks.dart new file mode 100644 index 000000000..1db958f31 --- /dev/null +++ b/packages/instabug_flutter/test/instabug_log_test.mocks.dart @@ -0,0 +1,92 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/instabug_log_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:instabug_flutter/src/generated/instabug_log.api.g.dart' as _i2; +import 'package:mockito/mockito.dart' as _i1; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [InstabugLogHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockInstabugLogHostApi extends _i1.Mock + implements _i2.InstabugLogHostApi { + MockInstabugLogHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future logVerbose(String? arg_message) => (super.noSuchMethod( + Invocation.method( + #logVerbose, + [arg_message], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future logDebug(String? arg_message) => (super.noSuchMethod( + Invocation.method( + #logDebug, + [arg_message], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future logInfo(String? arg_message) => (super.noSuchMethod( + Invocation.method( + #logInfo, + [arg_message], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future logWarn(String? arg_message) => (super.noSuchMethod( + Invocation.method( + #logWarn, + [arg_message], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future logError(String? arg_message) => (super.noSuchMethod( + Invocation.method( + #logError, + [arg_message], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future clearAllLogs() => (super.noSuchMethod( + Invocation.method( + #clearAllLogs, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); +} diff --git a/packages/instabug_flutter/test/instabug_test.mocks.dart b/packages/instabug_flutter/test/instabug_test.mocks.dart new file mode 100644 index 000000000..594e1ff65 --- /dev/null +++ b/packages/instabug_flutter/test/instabug_test.mocks.dart @@ -0,0 +1,579 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/instabug_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; +import 'dart:typed_data' as _i4; + +import 'package:instabug_flutter/src/generated/instabug.api.g.dart' as _i2; +import 'package:instabug_flutter/src/utils/ibg_build_info.dart' as _i5; +import 'package:instabug_flutter/src/utils/screen_name_masker.dart' as _i7; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i6; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [InstabugHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockInstabugHostApi extends _i1.Mock implements _i2.InstabugHostApi { + MockInstabugHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future isEnabled() => (super.noSuchMethod( + Invocation.method( + #isEnabled, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); + + @override + _i3.Future isBuilt() => (super.noSuchMethod( + Invocation.method( + #isBuilt, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); + + @override + _i3.Future init( + String? arg_token, + List? arg_invocationEvents, + String? arg_debugLogsLevel, + ) => + (super.noSuchMethod( + Invocation.method( + #init, + [ + arg_token, + arg_invocationEvents, + arg_debugLogsLevel, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future show() => (super.noSuchMethod( + Invocation.method( + #show, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future showWelcomeMessageWithMode(String? arg_mode) => + (super.noSuchMethod( + Invocation.method( + #showWelcomeMessageWithMode, + [arg_mode], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future identifyUser( + String? arg_email, + String? arg_name, + String? arg_userId, + ) => + (super.noSuchMethod( + Invocation.method( + #identifyUser, + [ + arg_email, + arg_name, + arg_userId, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setUserData(String? arg_data) => (super.noSuchMethod( + Invocation.method( + #setUserData, + [arg_data], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future logUserEvent(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #logUserEvent, + [arg_name], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future logOut() => (super.noSuchMethod( + Invocation.method( + #logOut, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setLocale(String? arg_locale) => (super.noSuchMethod( + Invocation.method( + #setLocale, + [arg_locale], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setColorTheme(String? arg_theme) => (super.noSuchMethod( + Invocation.method( + #setColorTheme, + [arg_theme], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setWelcomeMessageMode(String? arg_mode) => + (super.noSuchMethod( + Invocation.method( + #setWelcomeMessageMode, + [arg_mode], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setPrimaryColor(int? arg_color) => (super.noSuchMethod( + Invocation.method( + #setPrimaryColor, + [arg_color], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setSessionProfilerEnabled(bool? arg_enabled) => + (super.noSuchMethod( + Invocation.method( + #setSessionProfilerEnabled, + [arg_enabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setValueForStringWithKey( + String? arg_value, + String? arg_key, + ) => + (super.noSuchMethod( + Invocation.method( + #setValueForStringWithKey, + [ + arg_value, + arg_key, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future appendTags(List? arg_tags) => (super.noSuchMethod( + Invocation.method( + #appendTags, + [arg_tags], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future resetTags() => (super.noSuchMethod( + Invocation.method( + #resetTags, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future?> getTags() => (super.noSuchMethod( + Invocation.method( + #getTags, + [], + ), + returnValue: _i3.Future?>.value(), + ) as _i3.Future?>); + + @override + _i3.Future addExperiments(List? arg_experiments) => + (super.noSuchMethod( + Invocation.method( + #addExperiments, + [arg_experiments], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future removeExperiments(List? arg_experiments) => + (super.noSuchMethod( + Invocation.method( + #removeExperiments, + [arg_experiments], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future clearAllExperiments() => (super.noSuchMethod( + Invocation.method( + #clearAllExperiments, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future addFeatureFlags( + Map? arg_featureFlagsMap) => + (super.noSuchMethod( + Invocation.method( + #addFeatureFlags, + [arg_featureFlagsMap], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future removeFeatureFlags(List? arg_featureFlags) => + (super.noSuchMethod( + Invocation.method( + #removeFeatureFlags, + [arg_featureFlags], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future removeAllFeatureFlags() => (super.noSuchMethod( + Invocation.method( + #removeAllFeatureFlags, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setUserAttribute( + String? arg_value, + String? arg_key, + ) => + (super.noSuchMethod( + Invocation.method( + #setUserAttribute, + [ + arg_value, + arg_key, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future removeUserAttribute(String? arg_key) => (super.noSuchMethod( + Invocation.method( + #removeUserAttribute, + [arg_key], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future getUserAttributeForKey(String? arg_key) => + (super.noSuchMethod( + Invocation.method( + #getUserAttributeForKey, + [arg_key], + ), + returnValue: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future?> getUserAttributes() => (super.noSuchMethod( + Invocation.method( + #getUserAttributes, + [], + ), + returnValue: _i3.Future?>.value(), + ) as _i3.Future?>); + + @override + _i3.Future setReproStepsConfig( + String? arg_bugMode, + String? arg_crashMode, + String? arg_sessionReplayMode, + ) => + (super.noSuchMethod( + Invocation.method( + #setReproStepsConfig, + [ + arg_bugMode, + arg_crashMode, + arg_sessionReplayMode, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future reportScreenChange(String? arg_screenName) => + (super.noSuchMethod( + Invocation.method( + #reportScreenChange, + [arg_screenName], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setCustomBrandingImage( + String? arg_light, + String? arg_dark, + ) => + (super.noSuchMethod( + Invocation.method( + #setCustomBrandingImage, + [ + arg_light, + arg_dark, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setFont(String? arg_font) => (super.noSuchMethod( + Invocation.method( + #setFont, + [arg_font], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future addFileAttachmentWithURL( + String? arg_filePath, + String? arg_fileName, + ) => + (super.noSuchMethod( + Invocation.method( + #addFileAttachmentWithURL, + [ + arg_filePath, + arg_fileName, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future addFileAttachmentWithData( + _i4.Uint8List? arg_data, + String? arg_fileName, + ) => + (super.noSuchMethod( + Invocation.method( + #addFileAttachmentWithData, + [ + arg_data, + arg_fileName, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future clearFileAttachments() => (super.noSuchMethod( + Invocation.method( + #clearFileAttachments, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future networkLog(Map? arg_data) => + (super.noSuchMethod( + Invocation.method( + #networkLog, + [arg_data], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future registerFeatureFlagChangeListener() => (super.noSuchMethod( + Invocation.method( + #registerFeatureFlagChangeListener, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future> isW3CFeatureFlagsEnabled() => + (super.noSuchMethod( + Invocation.method( + #isW3CFeatureFlagsEnabled, + [], + ), + returnValue: _i3.Future>.value({}), + ) as _i3.Future>); + + @override + _i3.Future willRedirectToStore() => (super.noSuchMethod( + Invocation.method( + #willRedirectToStore, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); +} + +/// A class which mocks [IBGBuildInfo]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIBGBuildInfo extends _i1.Mock implements _i5.IBGBuildInfo { + MockIBGBuildInfo() { + _i1.throwOnMissingStub(this); + } + + @override + bool get isAndroid => (super.noSuchMethod( + Invocation.getter(#isAndroid), + returnValue: false, + ) as bool); + + @override + bool get isIOS => (super.noSuchMethod( + Invocation.getter(#isIOS), + returnValue: false, + ) as bool); + + @override + String get operatingSystem => (super.noSuchMethod( + Invocation.getter(#operatingSystem), + returnValue: _i6.dummyValue( + this, + Invocation.getter(#operatingSystem), + ), + ) as String); + + @override + bool get isReleaseMode => (super.noSuchMethod( + Invocation.getter(#isReleaseMode), + returnValue: false, + ) as bool); + + @override + bool get isDebugMode => (super.noSuchMethod( + Invocation.getter(#isDebugMode), + returnValue: false, + ) as bool); +} + +/// A class which mocks [ScreenNameMasker]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockScreenNameMasker extends _i1.Mock implements _i7.ScreenNameMasker { + MockScreenNameMasker() { + _i1.throwOnMissingStub(this); + } + + @override + void setMaskingCallback(_i7.ScreenNameMaskingCallback? callback) => + super.noSuchMethod( + Invocation.method( + #setMaskingCallback, + [callback], + ), + returnValueForMissingStub: null, + ); + + @override + String mask(String? screen) => (super.noSuchMethod( + Invocation.method( + #mask, + [screen], + ), + returnValue: _i6.dummyValue( + this, + Invocation.method( + #mask, + [screen], + ), + ), + ) as String); +} diff --git a/packages/instabug_flutter/test/network_logger_test.mocks.dart b/packages/instabug_flutter/test/network_logger_test.mocks.dart new file mode 100644 index 000000000..871f1756c --- /dev/null +++ b/packages/instabug_flutter/test/network_logger_test.mocks.dart @@ -0,0 +1,1067 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/network_logger_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i7; +import 'dart:math' as _i14; +import 'dart:typed_data' as _i9; + +import 'package:instabug_flutter/instabug_flutter.dart' as _i2; +import 'package:instabug_flutter/src/generated/apm.api.g.dart' as _i6; +import 'package:instabug_flutter/src/generated/instabug.api.g.dart' as _i8; +import 'package:instabug_flutter/src/models/generated_w3c_header.dart' as _i4; +import 'package:instabug_flutter/src/models/trace_partial_id.dart' as _i3; +import 'package:instabug_flutter/src/models/w3c_feature_flags.dart' as _i5; +import 'package:instabug_flutter/src/utils/feature_flags_manager.dart' as _i15; +import 'package:instabug_flutter/src/utils/ibg_build_info.dart' as _i10; +import 'package:instabug_flutter/src/utils/network_manager.dart' as _i12; +import 'package:instabug_flutter/src/utils/w3c_header_utils.dart' as _i13; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i11; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +class _FakeNetworkData_0 extends _i1.SmartFake implements _i2.NetworkData { + _FakeNetworkData_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeTracePartialId_1 extends _i1.SmartFake + implements _i3.TracePartialId { + _FakeTracePartialId_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeGeneratedW3CHeader_2 extends _i1.SmartFake + implements _i4.GeneratedW3CHeader { + _FakeGeneratedW3CHeader_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeW3cFeatureFlags_3 extends _i1.SmartFake + implements _i5.W3cFeatureFlags { + _FakeW3cFeatureFlags_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +/// A class which mocks [ApmHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockApmHostApi extends _i1.Mock implements _i6.ApmHostApi { + MockApmHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i7.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future isEnabled() => (super.noSuchMethod( + Invocation.method( + #isEnabled, + [], + ), + returnValue: _i7.Future.value(false), + ) as _i7.Future); + + @override + _i7.Future setScreenLoadingEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setScreenLoadingEnabled, + [arg_isEnabled], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future isScreenLoadingEnabled() => (super.noSuchMethod( + Invocation.method( + #isScreenLoadingEnabled, + [], + ), + returnValue: _i7.Future.value(false), + ) as _i7.Future); + + @override + _i7.Future setColdAppLaunchEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setColdAppLaunchEnabled, + [arg_isEnabled], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setAutoUITraceEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setAutoUITraceEnabled, + [arg_isEnabled], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future startExecutionTrace( + String? arg_id, + String? arg_name, + ) => + (super.noSuchMethod( + Invocation.method( + #startExecutionTrace, + [ + arg_id, + arg_name, + ], + ), + returnValue: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future startFlow(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #startFlow, + [arg_name], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setFlowAttribute( + String? arg_name, + String? arg_key, + String? arg_value, + ) => + (super.noSuchMethod( + Invocation.method( + #setFlowAttribute, + [ + arg_name, + arg_key, + arg_value, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future endFlow(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #endFlow, + [arg_name], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setExecutionTraceAttribute( + String? arg_id, + String? arg_key, + String? arg_value, + ) => + (super.noSuchMethod( + Invocation.method( + #setExecutionTraceAttribute, + [ + arg_id, + arg_key, + arg_value, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future endExecutionTrace(String? arg_id) => (super.noSuchMethod( + Invocation.method( + #endExecutionTrace, + [arg_id], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future startUITrace(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #startUITrace, + [arg_name], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future endUITrace() => (super.noSuchMethod( + Invocation.method( + #endUITrace, + [], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future endAppLaunch() => (super.noSuchMethod( + Invocation.method( + #endAppLaunch, + [], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future networkLogAndroid(Map? arg_data) => + (super.noSuchMethod( + Invocation.method( + #networkLogAndroid, + [arg_data], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future startCpUiTrace( + String? arg_screenName, + int? arg_microTimeStamp, + int? arg_traceId, + ) => + (super.noSuchMethod( + Invocation.method( + #startCpUiTrace, + [ + arg_screenName, + arg_microTimeStamp, + arg_traceId, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future reportScreenLoadingCP( + int? arg_startTimeStampMicro, + int? arg_durationMicro, + int? arg_uiTraceId, + ) => + (super.noSuchMethod( + Invocation.method( + #reportScreenLoadingCP, + [ + arg_startTimeStampMicro, + arg_durationMicro, + arg_uiTraceId, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future endScreenLoadingCP( + int? arg_timeStampMicro, + int? arg_uiTraceId, + ) => + (super.noSuchMethod( + Invocation.method( + #endScreenLoadingCP, + [ + arg_timeStampMicro, + arg_uiTraceId, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future isEndScreenLoadingEnabled() => (super.noSuchMethod( + Invocation.method( + #isEndScreenLoadingEnabled, + [], + ), + returnValue: _i7.Future.value(false), + ) as _i7.Future); +} + +/// A class which mocks [InstabugHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockInstabugHostApi extends _i1.Mock implements _i8.InstabugHostApi { + MockInstabugHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i7.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future isEnabled() => (super.noSuchMethod( + Invocation.method( + #isEnabled, + [], + ), + returnValue: _i7.Future.value(false), + ) as _i7.Future); + + @override + _i7.Future isBuilt() => (super.noSuchMethod( + Invocation.method( + #isBuilt, + [], + ), + returnValue: _i7.Future.value(false), + ) as _i7.Future); + + @override + _i7.Future init( + String? arg_token, + List? arg_invocationEvents, + String? arg_debugLogsLevel, + ) => + (super.noSuchMethod( + Invocation.method( + #init, + [ + arg_token, + arg_invocationEvents, + arg_debugLogsLevel, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future show() => (super.noSuchMethod( + Invocation.method( + #show, + [], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future showWelcomeMessageWithMode(String? arg_mode) => + (super.noSuchMethod( + Invocation.method( + #showWelcomeMessageWithMode, + [arg_mode], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future identifyUser( + String? arg_email, + String? arg_name, + String? arg_userId, + ) => + (super.noSuchMethod( + Invocation.method( + #identifyUser, + [ + arg_email, + arg_name, + arg_userId, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setUserData(String? arg_data) => (super.noSuchMethod( + Invocation.method( + #setUserData, + [arg_data], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future logUserEvent(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #logUserEvent, + [arg_name], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future logOut() => (super.noSuchMethod( + Invocation.method( + #logOut, + [], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setLocale(String? arg_locale) => (super.noSuchMethod( + Invocation.method( + #setLocale, + [arg_locale], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setColorTheme(String? arg_theme) => (super.noSuchMethod( + Invocation.method( + #setColorTheme, + [arg_theme], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setWelcomeMessageMode(String? arg_mode) => + (super.noSuchMethod( + Invocation.method( + #setWelcomeMessageMode, + [arg_mode], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setPrimaryColor(int? arg_color) => (super.noSuchMethod( + Invocation.method( + #setPrimaryColor, + [arg_color], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setSessionProfilerEnabled(bool? arg_enabled) => + (super.noSuchMethod( + Invocation.method( + #setSessionProfilerEnabled, + [arg_enabled], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setValueForStringWithKey( + String? arg_value, + String? arg_key, + ) => + (super.noSuchMethod( + Invocation.method( + #setValueForStringWithKey, + [ + arg_value, + arg_key, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future appendTags(List? arg_tags) => (super.noSuchMethod( + Invocation.method( + #appendTags, + [arg_tags], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future resetTags() => (super.noSuchMethod( + Invocation.method( + #resetTags, + [], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future?> getTags() => (super.noSuchMethod( + Invocation.method( + #getTags, + [], + ), + returnValue: _i7.Future?>.value(), + ) as _i7.Future?>); + + @override + _i7.Future addExperiments(List? arg_experiments) => + (super.noSuchMethod( + Invocation.method( + #addExperiments, + [arg_experiments], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future removeExperiments(List? arg_experiments) => + (super.noSuchMethod( + Invocation.method( + #removeExperiments, + [arg_experiments], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future clearAllExperiments() => (super.noSuchMethod( + Invocation.method( + #clearAllExperiments, + [], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future addFeatureFlags( + Map? arg_featureFlagsMap) => + (super.noSuchMethod( + Invocation.method( + #addFeatureFlags, + [arg_featureFlagsMap], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future removeFeatureFlags(List? arg_featureFlags) => + (super.noSuchMethod( + Invocation.method( + #removeFeatureFlags, + [arg_featureFlags], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future removeAllFeatureFlags() => (super.noSuchMethod( + Invocation.method( + #removeAllFeatureFlags, + [], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setUserAttribute( + String? arg_value, + String? arg_key, + ) => + (super.noSuchMethod( + Invocation.method( + #setUserAttribute, + [ + arg_value, + arg_key, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future removeUserAttribute(String? arg_key) => (super.noSuchMethod( + Invocation.method( + #removeUserAttribute, + [arg_key], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future getUserAttributeForKey(String? arg_key) => + (super.noSuchMethod( + Invocation.method( + #getUserAttributeForKey, + [arg_key], + ), + returnValue: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future?> getUserAttributes() => (super.noSuchMethod( + Invocation.method( + #getUserAttributes, + [], + ), + returnValue: _i7.Future?>.value(), + ) as _i7.Future?>); + + @override + _i7.Future setReproStepsConfig( + String? arg_bugMode, + String? arg_crashMode, + String? arg_sessionReplayMode, + ) => + (super.noSuchMethod( + Invocation.method( + #setReproStepsConfig, + [ + arg_bugMode, + arg_crashMode, + arg_sessionReplayMode, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future reportScreenChange(String? arg_screenName) => + (super.noSuchMethod( + Invocation.method( + #reportScreenChange, + [arg_screenName], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setCustomBrandingImage( + String? arg_light, + String? arg_dark, + ) => + (super.noSuchMethod( + Invocation.method( + #setCustomBrandingImage, + [ + arg_light, + arg_dark, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setFont(String? arg_font) => (super.noSuchMethod( + Invocation.method( + #setFont, + [arg_font], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future addFileAttachmentWithURL( + String? arg_filePath, + String? arg_fileName, + ) => + (super.noSuchMethod( + Invocation.method( + #addFileAttachmentWithURL, + [ + arg_filePath, + arg_fileName, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future addFileAttachmentWithData( + _i9.Uint8List? arg_data, + String? arg_fileName, + ) => + (super.noSuchMethod( + Invocation.method( + #addFileAttachmentWithData, + [ + arg_data, + arg_fileName, + ], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future clearFileAttachments() => (super.noSuchMethod( + Invocation.method( + #clearFileAttachments, + [], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future networkLog(Map? arg_data) => + (super.noSuchMethod( + Invocation.method( + #networkLog, + [arg_data], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future registerFeatureFlagChangeListener() => (super.noSuchMethod( + Invocation.method( + #registerFeatureFlagChangeListener, + [], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future> isW3CFeatureFlagsEnabled() => + (super.noSuchMethod( + Invocation.method( + #isW3CFeatureFlagsEnabled, + [], + ), + returnValue: _i7.Future>.value({}), + ) as _i7.Future>); + + @override + _i7.Future willRedirectToStore() => (super.noSuchMethod( + Invocation.method( + #willRedirectToStore, + [], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); +} + +/// A class which mocks [IBGBuildInfo]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIBGBuildInfo extends _i1.Mock implements _i10.IBGBuildInfo { + MockIBGBuildInfo() { + _i1.throwOnMissingStub(this); + } + + @override + bool get isAndroid => (super.noSuchMethod( + Invocation.getter(#isAndroid), + returnValue: false, + ) as bool); + + @override + bool get isIOS => (super.noSuchMethod( + Invocation.getter(#isIOS), + returnValue: false, + ) as bool); + + @override + String get operatingSystem => (super.noSuchMethod( + Invocation.getter(#operatingSystem), + returnValue: _i11.dummyValue( + this, + Invocation.getter(#operatingSystem), + ), + ) as String); + + @override + bool get isReleaseMode => (super.noSuchMethod( + Invocation.getter(#isReleaseMode), + returnValue: false, + ) as bool); + + @override + bool get isDebugMode => (super.noSuchMethod( + Invocation.getter(#isDebugMode), + returnValue: false, + ) as bool); +} + +/// A class which mocks [NetworkManager]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockNetworkManager extends _i1.Mock implements _i12.NetworkManager { + MockNetworkManager() { + _i1.throwOnMissingStub(this); + } + + @override + void setObfuscateLogCallback(_i12.ObfuscateLogCallback? callback) => + super.noSuchMethod( + Invocation.method( + #setObfuscateLogCallback, + [callback], + ), + returnValueForMissingStub: null, + ); + + @override + void setOmitLogCallback(_i12.OmitLogCallback? callback) => super.noSuchMethod( + Invocation.method( + #setOmitLogCallback, + [callback], + ), + returnValueForMissingStub: null, + ); + + @override + _i7.FutureOr<_i2.NetworkData> obfuscateLog(_i2.NetworkData? data) => + (super.noSuchMethod( + Invocation.method( + #obfuscateLog, + [data], + ), + returnValue: _i7.Future<_i2.NetworkData>.value(_FakeNetworkData_0( + this, + Invocation.method( + #obfuscateLog, + [data], + ), + )), + ) as _i7.FutureOr<_i2.NetworkData>); + + @override + _i7.FutureOr omitLog(_i2.NetworkData? data) => (super.noSuchMethod( + Invocation.method( + #omitLog, + [data], + ), + returnValue: _i7.Future.value(false), + ) as _i7.FutureOr); +} + +/// A class which mocks [W3CHeaderUtils]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockW3CHeaderUtils extends _i1.Mock implements _i13.W3CHeaderUtils { + MockW3CHeaderUtils() { + _i1.throwOnMissingStub(this); + } + + @override + void $setRandom(_i14.Random? random) => super.noSuchMethod( + Invocation.method( + #$setRandom, + [random], + ), + returnValueForMissingStub: null, + ); + + @override + _i3.TracePartialId generateTracePartialId() => (super.noSuchMethod( + Invocation.method( + #generateTracePartialId, + [], + ), + returnValue: _FakeTracePartialId_1( + this, + Invocation.method( + #generateTracePartialId, + [], + ), + ), + ) as _i3.TracePartialId); + + @override + _i4.GeneratedW3CHeader generateW3CHeader(int? networkStartTime) => + (super.noSuchMethod( + Invocation.method( + #generateW3CHeader, + [networkStartTime], + ), + returnValue: _FakeGeneratedW3CHeader_2( + this, + Invocation.method( + #generateW3CHeader, + [networkStartTime], + ), + ), + ) as _i4.GeneratedW3CHeader); +} + +/// A class which mocks [FeatureFlagsManager]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockFeatureFlagsManager extends _i1.Mock + implements _i15.FeatureFlagsManager { + MockFeatureFlagsManager() { + _i1.throwOnMissingStub(this); + } + + @override + void $setHostApi(_i8.InstabugHostApi? host) => super.noSuchMethod( + Invocation.method( + #$setHostApi, + [host], + ), + returnValueForMissingStub: null, + ); + + @override + void setFeatureFlagsManager(_i15.FeatureFlagsManager? featureFlagsManager) => + super.noSuchMethod( + Invocation.method( + #setFeatureFlagsManager, + [featureFlagsManager], + ), + returnValueForMissingStub: null, + ); + + @override + _i7.Future<_i5.W3cFeatureFlags> getW3CFeatureFlagsHeader() => + (super.noSuchMethod( + Invocation.method( + #getW3CFeatureFlagsHeader, + [], + ), + returnValue: + _i7.Future<_i5.W3cFeatureFlags>.value(_FakeW3cFeatureFlags_3( + this, + Invocation.method( + #getW3CFeatureFlagsHeader, + [], + ), + )), + ) as _i7.Future<_i5.W3cFeatureFlags>); + + @override + _i7.Future registerW3CFlagsListener() => (super.noSuchMethod( + Invocation.method( + #registerW3CFlagsListener, + [], + ), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + void onW3CFeatureFlagChange( + bool? isW3cExternalTraceIDEnabled, + bool? isW3cExternalGeneratedHeaderEnabled, + bool? isW3cCaughtHeaderEnabled, + ) => + super.noSuchMethod( + Invocation.method( + #onW3CFeatureFlagChange, + [ + isW3cExternalTraceIDEnabled, + isW3cExternalGeneratedHeaderEnabled, + isW3cCaughtHeaderEnabled, + ], + ), + returnValueForMissingStub: null, + ); +} + +/// A class which mocks [Random]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockRandom extends _i1.Mock implements _i14.Random { + MockRandom() { + _i1.throwOnMissingStub(this); + } + + @override + int nextInt(int? max) => (super.noSuchMethod( + Invocation.method( + #nextInt, + [max], + ), + returnValue: 0, + ) as int); + + @override + double nextDouble() => (super.noSuchMethod( + Invocation.method( + #nextDouble, + [], + ), + returnValue: 0.0, + ) as double); + + @override + bool nextBool() => (super.noSuchMethod( + Invocation.method( + #nextBool, + [], + ), + returnValue: false, + ) as bool); +} diff --git a/packages/instabug_flutter/test/replies_test.mocks.dart b/packages/instabug_flutter/test/replies_test.mocks.dart new file mode 100644 index 000000000..d9f8f2457 --- /dev/null +++ b/packages/instabug_flutter/test/replies_test.mocks.dart @@ -0,0 +1,145 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/replies_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:instabug_flutter/src/generated/replies.api.g.dart' as _i2; +import 'package:instabug_flutter/src/utils/ibg_build_info.dart' as _i4; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i5; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [RepliesHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockRepliesHostApi extends _i1.Mock implements _i2.RepliesHostApi { + MockRepliesHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future show() => (super.noSuchMethod( + Invocation.method( + #show, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setInAppNotificationsEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setInAppNotificationsEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setInAppNotificationSound(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setInAppNotificationSound, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future getUnreadRepliesCount() => (super.noSuchMethod( + Invocation.method( + #getUnreadRepliesCount, + [], + ), + returnValue: _i3.Future.value(0), + ) as _i3.Future); + + @override + _i3.Future hasChats() => (super.noSuchMethod( + Invocation.method( + #hasChats, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); + + @override + _i3.Future bindOnNewReplyCallback() => (super.noSuchMethod( + Invocation.method( + #bindOnNewReplyCallback, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); +} + +/// A class which mocks [IBGBuildInfo]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIBGBuildInfo extends _i1.Mock implements _i4.IBGBuildInfo { + MockIBGBuildInfo() { + _i1.throwOnMissingStub(this); + } + + @override + bool get isAndroid => (super.noSuchMethod( + Invocation.getter(#isAndroid), + returnValue: false, + ) as bool); + + @override + bool get isIOS => (super.noSuchMethod( + Invocation.getter(#isIOS), + returnValue: false, + ) as bool); + + @override + String get operatingSystem => (super.noSuchMethod( + Invocation.getter(#operatingSystem), + returnValue: _i5.dummyValue( + this, + Invocation.getter(#operatingSystem), + ), + ) as String); + + @override + bool get isReleaseMode => (super.noSuchMethod( + Invocation.getter(#isReleaseMode), + returnValue: false, + ) as bool); + + @override + bool get isDebugMode => (super.noSuchMethod( + Invocation.getter(#isDebugMode), + returnValue: false, + ) as bool); +} diff --git a/packages/instabug_flutter/test/session_replay_test.mocks.dart b/packages/instabug_flutter/test/session_replay_test.mocks.dart new file mode 100644 index 000000000..ce98bbbf1 --- /dev/null +++ b/packages/instabug_flutter/test/session_replay_test.mocks.dart @@ -0,0 +1,92 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/session_replay_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:instabug_flutter/src/generated/session_replay.api.g.dart' + as _i2; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i4; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [SessionReplayHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockSessionReplayHostApi extends _i1.Mock + implements _i2.SessionReplayHostApi { + MockSessionReplayHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setNetworkLogsEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setNetworkLogsEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setInstabugLogsEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setInstabugLogsEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setUserStepsEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setUserStepsEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future getSessionReplayLink() => (super.noSuchMethod( + Invocation.method( + #getSessionReplayLink, + [], + ), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #getSessionReplayLink, + [], + ), + )), + ) as _i3.Future); +} diff --git a/packages/instabug_flutter/test/surveys_test.mocks.dart b/packages/instabug_flutter/test/surveys_test.mocks.dart new file mode 100644 index 000000000..1eae8399f --- /dev/null +++ b/packages/instabug_flutter/test/surveys_test.mocks.dart @@ -0,0 +1,178 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/surveys_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:instabug_flutter/src/generated/surveys.api.g.dart' as _i2; +import 'package:instabug_flutter/src/utils/ibg_build_info.dart' as _i4; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i5; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [SurveysHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockSurveysHostApi extends _i1.Mock implements _i2.SurveysHostApi { + MockSurveysHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future showSurveyIfAvailable() => (super.noSuchMethod( + Invocation.method( + #showSurveyIfAvailable, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future showSurvey(String? arg_surveyToken) => (super.noSuchMethod( + Invocation.method( + #showSurvey, + [arg_surveyToken], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setAutoShowingEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setAutoShowingEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setShouldShowWelcomeScreen( + bool? arg_shouldShowWelcomeScreen) => + (super.noSuchMethod( + Invocation.method( + #setShouldShowWelcomeScreen, + [arg_shouldShowWelcomeScreen], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setAppStoreURL(String? arg_appStoreURL) => + (super.noSuchMethod( + Invocation.method( + #setAppStoreURL, + [arg_appStoreURL], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future hasRespondedToSurvey(String? arg_surveyToken) => + (super.noSuchMethod( + Invocation.method( + #hasRespondedToSurvey, + [arg_surveyToken], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); + + @override + _i3.Future> getAvailableSurveys() => (super.noSuchMethod( + Invocation.method( + #getAvailableSurveys, + [], + ), + returnValue: _i3.Future>.value([]), + ) as _i3.Future>); + + @override + _i3.Future bindOnShowSurveyCallback() => (super.noSuchMethod( + Invocation.method( + #bindOnShowSurveyCallback, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future bindOnDismissSurveyCallback() => (super.noSuchMethod( + Invocation.method( + #bindOnDismissSurveyCallback, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); +} + +/// A class which mocks [IBGBuildInfo]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIBGBuildInfo extends _i1.Mock implements _i4.IBGBuildInfo { + MockIBGBuildInfo() { + _i1.throwOnMissingStub(this); + } + + @override + bool get isAndroid => (super.noSuchMethod( + Invocation.getter(#isAndroid), + returnValue: false, + ) as bool); + + @override + bool get isIOS => (super.noSuchMethod( + Invocation.getter(#isIOS), + returnValue: false, + ) as bool); + + @override + String get operatingSystem => (super.noSuchMethod( + Invocation.getter(#operatingSystem), + returnValue: _i5.dummyValue( + this, + Invocation.getter(#operatingSystem), + ), + ) as String); + + @override + bool get isReleaseMode => (super.noSuchMethod( + Invocation.getter(#isReleaseMode), + returnValue: false, + ) as bool); + + @override + bool get isDebugMode => (super.noSuchMethod( + Invocation.getter(#isDebugMode), + returnValue: false, + ) as bool); +} diff --git a/packages/instabug_flutter/test/trace_test.mocks.dart b/packages/instabug_flutter/test/trace_test.mocks.dart new file mode 100644 index 000000000..d2daca699 --- /dev/null +++ b/packages/instabug_flutter/test/trace_test.mocks.dart @@ -0,0 +1,281 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/trace_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:instabug_flutter/src/generated/apm.api.g.dart' as _i2; +import 'package:mockito/mockito.dart' as _i1; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [ApmHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockApmHostApi extends _i1.Mock implements _i2.ApmHostApi { + MockApmHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future isEnabled() => (super.noSuchMethod( + Invocation.method( + #isEnabled, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); + + @override + _i3.Future setScreenLoadingEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setScreenLoadingEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future isScreenLoadingEnabled() => (super.noSuchMethod( + Invocation.method( + #isScreenLoadingEnabled, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); + + @override + _i3.Future setColdAppLaunchEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setColdAppLaunchEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setAutoUITraceEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setAutoUITraceEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future startExecutionTrace( + String? arg_id, + String? arg_name, + ) => + (super.noSuchMethod( + Invocation.method( + #startExecutionTrace, + [ + arg_id, + arg_name, + ], + ), + returnValue: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future startFlow(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #startFlow, + [arg_name], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setFlowAttribute( + String? arg_name, + String? arg_key, + String? arg_value, + ) => + (super.noSuchMethod( + Invocation.method( + #setFlowAttribute, + [ + arg_name, + arg_key, + arg_value, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future endFlow(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #endFlow, + [arg_name], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setExecutionTraceAttribute( + String? arg_id, + String? arg_key, + String? arg_value, + ) => + (super.noSuchMethod( + Invocation.method( + #setExecutionTraceAttribute, + [ + arg_id, + arg_key, + arg_value, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future endExecutionTrace(String? arg_id) => (super.noSuchMethod( + Invocation.method( + #endExecutionTrace, + [arg_id], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future startUITrace(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #startUITrace, + [arg_name], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future endUITrace() => (super.noSuchMethod( + Invocation.method( + #endUITrace, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future endAppLaunch() => (super.noSuchMethod( + Invocation.method( + #endAppLaunch, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future networkLogAndroid(Map? arg_data) => + (super.noSuchMethod( + Invocation.method( + #networkLogAndroid, + [arg_data], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future startCpUiTrace( + String? arg_screenName, + int? arg_microTimeStamp, + int? arg_traceId, + ) => + (super.noSuchMethod( + Invocation.method( + #startCpUiTrace, + [ + arg_screenName, + arg_microTimeStamp, + arg_traceId, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future reportScreenLoadingCP( + int? arg_startTimeStampMicro, + int? arg_durationMicro, + int? arg_uiTraceId, + ) => + (super.noSuchMethod( + Invocation.method( + #reportScreenLoadingCP, + [ + arg_startTimeStampMicro, + arg_durationMicro, + arg_uiTraceId, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future endScreenLoadingCP( + int? arg_timeStampMicro, + int? arg_uiTraceId, + ) => + (super.noSuchMethod( + Invocation.method( + #endScreenLoadingCP, + [ + arg_timeStampMicro, + arg_uiTraceId, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future isEndScreenLoadingEnabled() => (super.noSuchMethod( + Invocation.method( + #isEndScreenLoadingEnabled, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); +} diff --git a/packages/instabug_flutter/test/utils/instabug_navigator_observer_test.mocks.dart b/packages/instabug_flutter/test/utils/instabug_navigator_observer_test.mocks.dart new file mode 100644 index 000000000..7dd84147f --- /dev/null +++ b/packages/instabug_flutter/test/utils/instabug_navigator_observer_test.mocks.dart @@ -0,0 +1,634 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/utils/instabug_navigator_observer_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; +import 'dart:typed_data' as _i4; + +import 'package:instabug_flutter/src/generated/instabug.api.g.dart' as _i2; +import 'package:instabug_flutter/src/utils/screen_loading/screen_loading_manager.dart' + as _i5; +import 'package:instabug_flutter/src/utils/screen_loading/screen_loading_trace.dart' + as _i7; +import 'package:instabug_flutter/src/utils/screen_loading/ui_trace.dart' as _i6; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i8; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [InstabugHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockInstabugHostApi extends _i1.Mock implements _i2.InstabugHostApi { + MockInstabugHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future isEnabled() => (super.noSuchMethod( + Invocation.method( + #isEnabled, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); + + @override + _i3.Future isBuilt() => (super.noSuchMethod( + Invocation.method( + #isBuilt, + [], + ), + returnValue: _i3.Future.value(false), + ) as _i3.Future); + + @override + _i3.Future init( + String? arg_token, + List? arg_invocationEvents, + String? arg_debugLogsLevel, + ) => + (super.noSuchMethod( + Invocation.method( + #init, + [ + arg_token, + arg_invocationEvents, + arg_debugLogsLevel, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future show() => (super.noSuchMethod( + Invocation.method( + #show, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future showWelcomeMessageWithMode(String? arg_mode) => + (super.noSuchMethod( + Invocation.method( + #showWelcomeMessageWithMode, + [arg_mode], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future identifyUser( + String? arg_email, + String? arg_name, + String? arg_userId, + ) => + (super.noSuchMethod( + Invocation.method( + #identifyUser, + [ + arg_email, + arg_name, + arg_userId, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setUserData(String? arg_data) => (super.noSuchMethod( + Invocation.method( + #setUserData, + [arg_data], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future logUserEvent(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #logUserEvent, + [arg_name], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future logOut() => (super.noSuchMethod( + Invocation.method( + #logOut, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setLocale(String? arg_locale) => (super.noSuchMethod( + Invocation.method( + #setLocale, + [arg_locale], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setColorTheme(String? arg_theme) => (super.noSuchMethod( + Invocation.method( + #setColorTheme, + [arg_theme], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setWelcomeMessageMode(String? arg_mode) => + (super.noSuchMethod( + Invocation.method( + #setWelcomeMessageMode, + [arg_mode], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setPrimaryColor(int? arg_color) => (super.noSuchMethod( + Invocation.method( + #setPrimaryColor, + [arg_color], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setSessionProfilerEnabled(bool? arg_enabled) => + (super.noSuchMethod( + Invocation.method( + #setSessionProfilerEnabled, + [arg_enabled], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setValueForStringWithKey( + String? arg_value, + String? arg_key, + ) => + (super.noSuchMethod( + Invocation.method( + #setValueForStringWithKey, + [ + arg_value, + arg_key, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future appendTags(List? arg_tags) => (super.noSuchMethod( + Invocation.method( + #appendTags, + [arg_tags], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future resetTags() => (super.noSuchMethod( + Invocation.method( + #resetTags, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future?> getTags() => (super.noSuchMethod( + Invocation.method( + #getTags, + [], + ), + returnValue: _i3.Future?>.value(), + ) as _i3.Future?>); + + @override + _i3.Future addExperiments(List? arg_experiments) => + (super.noSuchMethod( + Invocation.method( + #addExperiments, + [arg_experiments], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future removeExperiments(List? arg_experiments) => + (super.noSuchMethod( + Invocation.method( + #removeExperiments, + [arg_experiments], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future clearAllExperiments() => (super.noSuchMethod( + Invocation.method( + #clearAllExperiments, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future addFeatureFlags( + Map? arg_featureFlagsMap) => + (super.noSuchMethod( + Invocation.method( + #addFeatureFlags, + [arg_featureFlagsMap], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future removeFeatureFlags(List? arg_featureFlags) => + (super.noSuchMethod( + Invocation.method( + #removeFeatureFlags, + [arg_featureFlags], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future removeAllFeatureFlags() => (super.noSuchMethod( + Invocation.method( + #removeAllFeatureFlags, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setUserAttribute( + String? arg_value, + String? arg_key, + ) => + (super.noSuchMethod( + Invocation.method( + #setUserAttribute, + [ + arg_value, + arg_key, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future removeUserAttribute(String? arg_key) => (super.noSuchMethod( + Invocation.method( + #removeUserAttribute, + [arg_key], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future getUserAttributeForKey(String? arg_key) => + (super.noSuchMethod( + Invocation.method( + #getUserAttributeForKey, + [arg_key], + ), + returnValue: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future?> getUserAttributes() => (super.noSuchMethod( + Invocation.method( + #getUserAttributes, + [], + ), + returnValue: _i3.Future?>.value(), + ) as _i3.Future?>); + + @override + _i3.Future setReproStepsConfig( + String? arg_bugMode, + String? arg_crashMode, + String? arg_sessionReplayMode, + ) => + (super.noSuchMethod( + Invocation.method( + #setReproStepsConfig, + [ + arg_bugMode, + arg_crashMode, + arg_sessionReplayMode, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future reportScreenChange(String? arg_screenName) => + (super.noSuchMethod( + Invocation.method( + #reportScreenChange, + [arg_screenName], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setCustomBrandingImage( + String? arg_light, + String? arg_dark, + ) => + (super.noSuchMethod( + Invocation.method( + #setCustomBrandingImage, + [ + arg_light, + arg_dark, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setFont(String? arg_font) => (super.noSuchMethod( + Invocation.method( + #setFont, + [arg_font], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future addFileAttachmentWithURL( + String? arg_filePath, + String? arg_fileName, + ) => + (super.noSuchMethod( + Invocation.method( + #addFileAttachmentWithURL, + [ + arg_filePath, + arg_fileName, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future addFileAttachmentWithData( + _i4.Uint8List? arg_data, + String? arg_fileName, + ) => + (super.noSuchMethod( + Invocation.method( + #addFileAttachmentWithData, + [ + arg_data, + arg_fileName, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future clearFileAttachments() => (super.noSuchMethod( + Invocation.method( + #clearFileAttachments, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future networkLog(Map? arg_data) => + (super.noSuchMethod( + Invocation.method( + #networkLog, + [arg_data], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future registerFeatureFlagChangeListener() => (super.noSuchMethod( + Invocation.method( + #registerFeatureFlagChangeListener, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future> isW3CFeatureFlagsEnabled() => + (super.noSuchMethod( + Invocation.method( + #isW3CFeatureFlagsEnabled, + [], + ), + returnValue: _i3.Future>.value({}), + ) as _i3.Future>); + + @override + _i3.Future willRedirectToStore() => (super.noSuchMethod( + Invocation.method( + #willRedirectToStore, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); +} + +/// A class which mocks [ScreenLoadingManager]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockScreenLoadingManager extends _i1.Mock + implements _i5.ScreenLoadingManager { + MockScreenLoadingManager() { + _i1.throwOnMissingStub(this); + } + + @override + set currentUiTrace(_i6.UiTrace? _currentUiTrace) => super.noSuchMethod( + Invocation.setter( + #currentUiTrace, + _currentUiTrace, + ), + returnValueForMissingStub: null, + ); + + @override + set currentScreenLoadingTrace( + _i7.ScreenLoadingTrace? _currentScreenLoadingTrace) => + super.noSuchMethod( + Invocation.setter( + #currentScreenLoadingTrace, + _currentScreenLoadingTrace, + ), + returnValueForMissingStub: null, + ); + + @override + List<_i7.ScreenLoadingTrace> get prematurelyEndedTraces => + (super.noSuchMethod( + Invocation.getter(#prematurelyEndedTraces), + returnValue: <_i7.ScreenLoadingTrace>[], + ) as List<_i7.ScreenLoadingTrace>); + + @override + void resetDidStartScreenLoading() => super.noSuchMethod( + Invocation.method( + #resetDidStartScreenLoading, + [], + ), + returnValueForMissingStub: null, + ); + + @override + void resetDidReportScreenLoading() => super.noSuchMethod( + Invocation.method( + #resetDidReportScreenLoading, + [], + ), + returnValueForMissingStub: null, + ); + + @override + void resetDidExtendScreenLoading() => super.noSuchMethod( + Invocation.method( + #resetDidExtendScreenLoading, + [], + ), + returnValueForMissingStub: null, + ); + + @override + String sanitizeScreenName(String? screenName) => (super.noSuchMethod( + Invocation.method( + #sanitizeScreenName, + [screenName], + ), + returnValue: _i8.dummyValue( + this, + Invocation.method( + #sanitizeScreenName, + [screenName], + ), + ), + ) as String); + + @override + _i3.Future startUiTrace( + String? screenName, [ + String? matchingScreenName, + ]) => + (super.noSuchMethod( + Invocation.method( + #startUiTrace, + [ + screenName, + matchingScreenName, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future startScreenLoadingTrace(_i7.ScreenLoadingTrace? trace) => + (super.noSuchMethod( + Invocation.method( + #startScreenLoadingTrace, + [trace], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future reportScreenLoading(_i7.ScreenLoadingTrace? trace) => + (super.noSuchMethod( + Invocation.method( + #reportScreenLoading, + [trace], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future endScreenLoading() => (super.noSuchMethod( + Invocation.method( + #endScreenLoading, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); +} diff --git a/packages/instabug_flutter/test/utils/screen_loading/screen_loading_manager_test.mocks.dart b/packages/instabug_flutter/test/utils/screen_loading/screen_loading_manager_test.mocks.dart new file mode 100644 index 000000000..7ad46e936 --- /dev/null +++ b/packages/instabug_flutter/test/utils/screen_loading/screen_loading_manager_test.mocks.dart @@ -0,0 +1,1324 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/utils/screen_loading/screen_loading_manager_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i5; +import 'dart:typed_data' as _i7; + +import 'package:flutter/foundation.dart' as _i3; +import 'package:flutter/src/widgets/framework.dart' as _i2; +import 'package:flutter/src/widgets/notification_listener.dart' as _i14; +import 'package:instabug_flutter/instabug_flutter.dart' as _i9; +import 'package:instabug_flutter/src/generated/apm.api.g.dart' as _i4; +import 'package:instabug_flutter/src/generated/instabug.api.g.dart' as _i6; +import 'package:instabug_flutter/src/utils/ibg_build_info.dart' as _i12; +import 'package:instabug_flutter/src/utils/ibg_date_time.dart' as _i10; +import 'package:instabug_flutter/src/utils/instabug_logger.dart' as _i8; +import 'package:instabug_flutter/src/utils/instabug_montonic_clock.dart' + as _i11; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i13; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +class _FakeDateTime_0 extends _i1.SmartFake implements DateTime { + _FakeDateTime_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeWidget_1 extends _i1.SmartFake implements _i2.Widget { + _FakeWidget_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); + + @override + String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => + super.toString(); +} + +class _FakeInheritedWidget_2 extends _i1.SmartFake + implements _i2.InheritedWidget { + _FakeInheritedWidget_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); + + @override + String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => + super.toString(); +} + +class _FakeDiagnosticsNode_3 extends _i1.SmartFake + implements _i3.DiagnosticsNode { + _FakeDiagnosticsNode_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); + + @override + String toString({ + _i3.TextTreeConfiguration? parentConfiguration, + _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info, + }) => + super.toString(); +} + +class _FakeElement_4 extends _i1.SmartFake implements _i2.Element { + _FakeElement_4( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); + + @override + String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => + super.toString(); +} + +/// A class which mocks [ApmHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockApmHostApi extends _i1.Mock implements _i4.ApmHostApi { + MockApmHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i5.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future isEnabled() => (super.noSuchMethod( + Invocation.method( + #isEnabled, + [], + ), + returnValue: _i5.Future.value(false), + ) as _i5.Future); + + @override + _i5.Future setScreenLoadingEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setScreenLoadingEnabled, + [arg_isEnabled], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future isScreenLoadingEnabled() => (super.noSuchMethod( + Invocation.method( + #isScreenLoadingEnabled, + [], + ), + returnValue: _i5.Future.value(false), + ) as _i5.Future); + + @override + _i5.Future setColdAppLaunchEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setColdAppLaunchEnabled, + [arg_isEnabled], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setAutoUITraceEnabled(bool? arg_isEnabled) => + (super.noSuchMethod( + Invocation.method( + #setAutoUITraceEnabled, + [arg_isEnabled], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future startExecutionTrace( + String? arg_id, + String? arg_name, + ) => + (super.noSuchMethod( + Invocation.method( + #startExecutionTrace, + [ + arg_id, + arg_name, + ], + ), + returnValue: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future startFlow(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #startFlow, + [arg_name], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setFlowAttribute( + String? arg_name, + String? arg_key, + String? arg_value, + ) => + (super.noSuchMethod( + Invocation.method( + #setFlowAttribute, + [ + arg_name, + arg_key, + arg_value, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future endFlow(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #endFlow, + [arg_name], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setExecutionTraceAttribute( + String? arg_id, + String? arg_key, + String? arg_value, + ) => + (super.noSuchMethod( + Invocation.method( + #setExecutionTraceAttribute, + [ + arg_id, + arg_key, + arg_value, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future endExecutionTrace(String? arg_id) => (super.noSuchMethod( + Invocation.method( + #endExecutionTrace, + [arg_id], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future startUITrace(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #startUITrace, + [arg_name], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future endUITrace() => (super.noSuchMethod( + Invocation.method( + #endUITrace, + [], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future endAppLaunch() => (super.noSuchMethod( + Invocation.method( + #endAppLaunch, + [], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future networkLogAndroid(Map? arg_data) => + (super.noSuchMethod( + Invocation.method( + #networkLogAndroid, + [arg_data], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future startCpUiTrace( + String? arg_screenName, + int? arg_microTimeStamp, + int? arg_traceId, + ) => + (super.noSuchMethod( + Invocation.method( + #startCpUiTrace, + [ + arg_screenName, + arg_microTimeStamp, + arg_traceId, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future reportScreenLoadingCP( + int? arg_startTimeStampMicro, + int? arg_durationMicro, + int? arg_uiTraceId, + ) => + (super.noSuchMethod( + Invocation.method( + #reportScreenLoadingCP, + [ + arg_startTimeStampMicro, + arg_durationMicro, + arg_uiTraceId, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future endScreenLoadingCP( + int? arg_timeStampMicro, + int? arg_uiTraceId, + ) => + (super.noSuchMethod( + Invocation.method( + #endScreenLoadingCP, + [ + arg_timeStampMicro, + arg_uiTraceId, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future isEndScreenLoadingEnabled() => (super.noSuchMethod( + Invocation.method( + #isEndScreenLoadingEnabled, + [], + ), + returnValue: _i5.Future.value(false), + ) as _i5.Future); +} + +/// A class which mocks [InstabugHostApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockInstabugHostApi extends _i1.Mock implements _i6.InstabugHostApi { + MockInstabugHostApi() { + _i1.throwOnMissingStub(this); + } + + @override + _i5.Future setEnabled(bool? arg_isEnabled) => (super.noSuchMethod( + Invocation.method( + #setEnabled, + [arg_isEnabled], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future isEnabled() => (super.noSuchMethod( + Invocation.method( + #isEnabled, + [], + ), + returnValue: _i5.Future.value(false), + ) as _i5.Future); + + @override + _i5.Future isBuilt() => (super.noSuchMethod( + Invocation.method( + #isBuilt, + [], + ), + returnValue: _i5.Future.value(false), + ) as _i5.Future); + + @override + _i5.Future init( + String? arg_token, + List? arg_invocationEvents, + String? arg_debugLogsLevel, + ) => + (super.noSuchMethod( + Invocation.method( + #init, + [ + arg_token, + arg_invocationEvents, + arg_debugLogsLevel, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future show() => (super.noSuchMethod( + Invocation.method( + #show, + [], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future showWelcomeMessageWithMode(String? arg_mode) => + (super.noSuchMethod( + Invocation.method( + #showWelcomeMessageWithMode, + [arg_mode], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future identifyUser( + String? arg_email, + String? arg_name, + String? arg_userId, + ) => + (super.noSuchMethod( + Invocation.method( + #identifyUser, + [ + arg_email, + arg_name, + arg_userId, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setUserData(String? arg_data) => (super.noSuchMethod( + Invocation.method( + #setUserData, + [arg_data], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future logUserEvent(String? arg_name) => (super.noSuchMethod( + Invocation.method( + #logUserEvent, + [arg_name], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future logOut() => (super.noSuchMethod( + Invocation.method( + #logOut, + [], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setLocale(String? arg_locale) => (super.noSuchMethod( + Invocation.method( + #setLocale, + [arg_locale], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setColorTheme(String? arg_theme) => (super.noSuchMethod( + Invocation.method( + #setColorTheme, + [arg_theme], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setWelcomeMessageMode(String? arg_mode) => + (super.noSuchMethod( + Invocation.method( + #setWelcomeMessageMode, + [arg_mode], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setPrimaryColor(int? arg_color) => (super.noSuchMethod( + Invocation.method( + #setPrimaryColor, + [arg_color], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setSessionProfilerEnabled(bool? arg_enabled) => + (super.noSuchMethod( + Invocation.method( + #setSessionProfilerEnabled, + [arg_enabled], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setValueForStringWithKey( + String? arg_value, + String? arg_key, + ) => + (super.noSuchMethod( + Invocation.method( + #setValueForStringWithKey, + [ + arg_value, + arg_key, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future appendTags(List? arg_tags) => (super.noSuchMethod( + Invocation.method( + #appendTags, + [arg_tags], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future resetTags() => (super.noSuchMethod( + Invocation.method( + #resetTags, + [], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future?> getTags() => (super.noSuchMethod( + Invocation.method( + #getTags, + [], + ), + returnValue: _i5.Future?>.value(), + ) as _i5.Future?>); + + @override + _i5.Future addExperiments(List? arg_experiments) => + (super.noSuchMethod( + Invocation.method( + #addExperiments, + [arg_experiments], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future removeExperiments(List? arg_experiments) => + (super.noSuchMethod( + Invocation.method( + #removeExperiments, + [arg_experiments], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future clearAllExperiments() => (super.noSuchMethod( + Invocation.method( + #clearAllExperiments, + [], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future addFeatureFlags( + Map? arg_featureFlagsMap) => + (super.noSuchMethod( + Invocation.method( + #addFeatureFlags, + [arg_featureFlagsMap], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future removeFeatureFlags(List? arg_featureFlags) => + (super.noSuchMethod( + Invocation.method( + #removeFeatureFlags, + [arg_featureFlags], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future removeAllFeatureFlags() => (super.noSuchMethod( + Invocation.method( + #removeAllFeatureFlags, + [], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setUserAttribute( + String? arg_value, + String? arg_key, + ) => + (super.noSuchMethod( + Invocation.method( + #setUserAttribute, + [ + arg_value, + arg_key, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future removeUserAttribute(String? arg_key) => (super.noSuchMethod( + Invocation.method( + #removeUserAttribute, + [arg_key], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future getUserAttributeForKey(String? arg_key) => + (super.noSuchMethod( + Invocation.method( + #getUserAttributeForKey, + [arg_key], + ), + returnValue: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future?> getUserAttributes() => (super.noSuchMethod( + Invocation.method( + #getUserAttributes, + [], + ), + returnValue: _i5.Future?>.value(), + ) as _i5.Future?>); + + @override + _i5.Future setReproStepsConfig( + String? arg_bugMode, + String? arg_crashMode, + String? arg_sessionReplayMode, + ) => + (super.noSuchMethod( + Invocation.method( + #setReproStepsConfig, + [ + arg_bugMode, + arg_crashMode, + arg_sessionReplayMode, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future reportScreenChange(String? arg_screenName) => + (super.noSuchMethod( + Invocation.method( + #reportScreenChange, + [arg_screenName], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setCustomBrandingImage( + String? arg_light, + String? arg_dark, + ) => + (super.noSuchMethod( + Invocation.method( + #setCustomBrandingImage, + [ + arg_light, + arg_dark, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setFont(String? arg_font) => (super.noSuchMethod( + Invocation.method( + #setFont, + [arg_font], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future addFileAttachmentWithURL( + String? arg_filePath, + String? arg_fileName, + ) => + (super.noSuchMethod( + Invocation.method( + #addFileAttachmentWithURL, + [ + arg_filePath, + arg_fileName, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future addFileAttachmentWithData( + _i7.Uint8List? arg_data, + String? arg_fileName, + ) => + (super.noSuchMethod( + Invocation.method( + #addFileAttachmentWithData, + [ + arg_data, + arg_fileName, + ], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future clearFileAttachments() => (super.noSuchMethod( + Invocation.method( + #clearFileAttachments, + [], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future networkLog(Map? arg_data) => + (super.noSuchMethod( + Invocation.method( + #networkLog, + [arg_data], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future registerFeatureFlagChangeListener() => (super.noSuchMethod( + Invocation.method( + #registerFeatureFlagChangeListener, + [], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future> isW3CFeatureFlagsEnabled() => + (super.noSuchMethod( + Invocation.method( + #isW3CFeatureFlagsEnabled, + [], + ), + returnValue: _i5.Future>.value({}), + ) as _i5.Future>); + + @override + _i5.Future willRedirectToStore() => (super.noSuchMethod( + Invocation.method( + #willRedirectToStore, + [], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); +} + +/// A class which mocks [InstabugLogger]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockInstabugLogger extends _i1.Mock implements _i8.InstabugLogger { + MockInstabugLogger() { + _i1.throwOnMissingStub(this); + } + + @override + set logLevel(_i9.LogLevel? level) => super.noSuchMethod( + Invocation.setter( + #logLevel, + level, + ), + returnValueForMissingStub: null, + ); + + @override + void log( + String? message, { + required _i9.LogLevel? level, + String? tag = r'', + }) => + super.noSuchMethod( + Invocation.method( + #log, + [message], + { + #level: level, + #tag: tag, + }, + ), + returnValueForMissingStub: null, + ); + + @override + void e( + String? message, { + String? tag = r'', + }) => + super.noSuchMethod( + Invocation.method( + #e, + [message], + {#tag: tag}, + ), + returnValueForMissingStub: null, + ); + + @override + void d( + String? message, { + String? tag = r'', + }) => + super.noSuchMethod( + Invocation.method( + #d, + [message], + {#tag: tag}, + ), + returnValueForMissingStub: null, + ); + + @override + void v( + String? message, { + String? tag = r'', + }) => + super.noSuchMethod( + Invocation.method( + #v, + [message], + {#tag: tag}, + ), + returnValueForMissingStub: null, + ); +} + +/// A class which mocks [IBGDateTime]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIBGDateTime extends _i1.Mock implements _i10.IBGDateTime { + MockIBGDateTime() { + _i1.throwOnMissingStub(this); + } + + @override + DateTime now() => (super.noSuchMethod( + Invocation.method( + #now, + [], + ), + returnValue: _FakeDateTime_0( + this, + Invocation.method( + #now, + [], + ), + ), + ) as DateTime); +} + +/// A class which mocks [InstabugMonotonicClock]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockInstabugMonotonicClock extends _i1.Mock + implements _i11.InstabugMonotonicClock { + MockInstabugMonotonicClock() { + _i1.throwOnMissingStub(this); + } + + @override + int get now => (super.noSuchMethod( + Invocation.getter(#now), + returnValue: 0, + ) as int); +} + +/// A class which mocks [IBGBuildInfo]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIBGBuildInfo extends _i1.Mock implements _i12.IBGBuildInfo { + MockIBGBuildInfo() { + _i1.throwOnMissingStub(this); + } + + @override + bool get isAndroid => (super.noSuchMethod( + Invocation.getter(#isAndroid), + returnValue: false, + ) as bool); + + @override + bool get isIOS => (super.noSuchMethod( + Invocation.getter(#isIOS), + returnValue: false, + ) as bool); + + @override + String get operatingSystem => (super.noSuchMethod( + Invocation.getter(#operatingSystem), + returnValue: _i13.dummyValue( + this, + Invocation.getter(#operatingSystem), + ), + ) as String); + + @override + bool get isReleaseMode => (super.noSuchMethod( + Invocation.getter(#isReleaseMode), + returnValue: false, + ) as bool); + + @override + bool get isDebugMode => (super.noSuchMethod( + Invocation.getter(#isDebugMode), + returnValue: false, + ) as bool); +} + +/// A class which mocks [RouteMatcher]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockRouteMatcher extends _i1.Mock implements _i9.RouteMatcher { + MockRouteMatcher() { + _i1.throwOnMissingStub(this); + } + + @override + bool match({ + required String? routePath, + required String? actualPath, + }) => + (super.noSuchMethod( + Invocation.method( + #match, + [], + { + #routePath: routePath, + #actualPath: actualPath, + }, + ), + returnValue: false, + ) as bool); +} + +/// A class which mocks [BuildContext]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockBuildContext extends _i1.Mock implements _i2.BuildContext { + MockBuildContext() { + _i1.throwOnMissingStub(this); + } + + @override + _i2.Widget get widget => (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_1( + this, + Invocation.getter(#widget), + ), + ) as _i2.Widget); + + @override + bool get mounted => (super.noSuchMethod( + Invocation.getter(#mounted), + returnValue: false, + ) as bool); + + @override + bool get debugDoingBuild => (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) as bool); + + @override + _i2.InheritedWidget dependOnInheritedElement( + _i2.InheritedElement? ancestor, { + Object? aspect, + }) => + (super.noSuchMethod( + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_2( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) as _i2.InheritedWidget); + + @override + void visitAncestorElements(_i2.ConditionalElementVisitor? visitor) => + super.noSuchMethod( + Invocation.method( + #visitAncestorElements, + [visitor], + ), + returnValueForMissingStub: null, + ); + + @override + void visitChildElements(_i2.ElementVisitor? visitor) => super.noSuchMethod( + Invocation.method( + #visitChildElements, + [visitor], + ), + returnValueForMissingStub: null, + ); + + @override + void dispatchNotification(_i14.Notification? notification) => + super.noSuchMethod( + Invocation.method( + #dispatchNotification, + [notification], + ), + returnValueForMissingStub: null, + ); + + @override + _i3.DiagnosticsNode describeElement( + String? name, { + _i3.DiagnosticsTreeStyle? style = _i3.DiagnosticsTreeStyle.errorProperty, + }) => + (super.noSuchMethod( + Invocation.method( + #describeElement, + [name], + {#style: style}, + ), + returnValue: _FakeDiagnosticsNode_3( + this, + Invocation.method( + #describeElement, + [name], + {#style: style}, + ), + ), + ) as _i3.DiagnosticsNode); + + @override + _i3.DiagnosticsNode describeWidget( + String? name, { + _i3.DiagnosticsTreeStyle? style = _i3.DiagnosticsTreeStyle.errorProperty, + }) => + (super.noSuchMethod( + Invocation.method( + #describeWidget, + [name], + {#style: style}, + ), + returnValue: _FakeDiagnosticsNode_3( + this, + Invocation.method( + #describeWidget, + [name], + {#style: style}, + ), + ), + ) as _i3.DiagnosticsNode); + + @override + List<_i3.DiagnosticsNode> describeMissingAncestor( + {required Type? expectedAncestorType}) => + (super.noSuchMethod( + Invocation.method( + #describeMissingAncestor, + [], + {#expectedAncestorType: expectedAncestorType}, + ), + returnValue: <_i3.DiagnosticsNode>[], + ) as List<_i3.DiagnosticsNode>); + + @override + _i3.DiagnosticsNode describeOwnershipChain(String? name) => + (super.noSuchMethod( + Invocation.method( + #describeOwnershipChain, + [name], + ), + returnValue: _FakeDiagnosticsNode_3( + this, + Invocation.method( + #describeOwnershipChain, + [name], + ), + ), + ) as _i3.DiagnosticsNode); +} + +/// A class which mocks [Widget]. +/// +/// See the documentation for Mockito's code generation for more information. +// ignore: must_be_immutable +class MockWidget extends _i1.Mock implements _i2.Widget { + MockWidget() { + _i1.throwOnMissingStub(this); + } + + @override + _i2.Element createElement() => (super.noSuchMethod( + Invocation.method( + #createElement, + [], + ), + returnValue: _FakeElement_4( + this, + Invocation.method( + #createElement, + [], + ), + ), + ) as _i2.Element); + + @override + String toStringShort() => (super.noSuchMethod( + Invocation.method( + #toStringShort, + [], + ), + returnValue: _i13.dummyValue( + this, + Invocation.method( + #toStringShort, + [], + ), + ), + ) as String); + + @override + void debugFillProperties(_i3.DiagnosticPropertiesBuilder? properties) => + super.noSuchMethod( + Invocation.method( + #debugFillProperties, + [properties], + ), + returnValueForMissingStub: null, + ); + + @override + String toStringShallow({ + String? joiner = r', ', + _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.debug, + }) => + (super.noSuchMethod( + Invocation.method( + #toStringShallow, + [], + { + #joiner: joiner, + #minLevel: minLevel, + }, + ), + returnValue: _i13.dummyValue( + this, + Invocation.method( + #toStringShallow, + [], + { + #joiner: joiner, + #minLevel: minLevel, + }, + ), + ), + ) as String); + + @override + String toStringDeep({ + String? prefixLineOne = r'', + String? prefixOtherLines, + _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.debug, + }) => + (super.noSuchMethod( + Invocation.method( + #toStringDeep, + [], + { + #prefixLineOne: prefixLineOne, + #prefixOtherLines: prefixOtherLines, + #minLevel: minLevel, + }, + ), + returnValue: _i13.dummyValue( + this, + Invocation.method( + #toStringDeep, + [], + { + #prefixLineOne: prefixLineOne, + #prefixOtherLines: prefixOtherLines, + #minLevel: minLevel, + }, + ), + ), + ) as String); + + @override + _i3.DiagnosticsNode toDiagnosticsNode({ + String? name, + _i3.DiagnosticsTreeStyle? style, + }) => + (super.noSuchMethod( + Invocation.method( + #toDiagnosticsNode, + [], + { + #name: name, + #style: style, + }, + ), + returnValue: _FakeDiagnosticsNode_3( + this, + Invocation.method( + #toDiagnosticsNode, + [], + { + #name: name, + #style: style, + }, + ), + ), + ) as _i3.DiagnosticsNode); + + @override + List<_i3.DiagnosticsNode> debugDescribeChildren() => (super.noSuchMethod( + Invocation.method( + #debugDescribeChildren, + [], + ), + returnValue: <_i3.DiagnosticsNode>[], + ) as List<_i3.DiagnosticsNode>); + + @override + String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => + super.toString(); +} diff --git a/packages/instabug_flutter/test/w3_header_utils_test.mocks.dart b/packages/instabug_flutter/test/w3_header_utils_test.mocks.dart new file mode 100644 index 000000000..b3d5b4010 --- /dev/null +++ b/packages/instabug_flutter/test/w3_header_utils_test.mocks.dart @@ -0,0 +1,57 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_flutter/test/w3_header_utils_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:math' as _i2; + +import 'package:mockito/mockito.dart' as _i1; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [Random]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockRandom extends _i1.Mock implements _i2.Random { + MockRandom() { + _i1.throwOnMissingStub(this); + } + + @override + int nextInt(int? max) => (super.noSuchMethod( + Invocation.method( + #nextInt, + [max], + ), + returnValue: 0, + ) as int); + + @override + double nextDouble() => (super.noSuchMethod( + Invocation.method( + #nextDouble, + [], + ), + returnValue: 0.0, + ) as double); + + @override + bool nextBool() => (super.noSuchMethod( + Invocation.method( + #nextBool, + [], + ), + returnValue: false, + ) as bool); +} diff --git a/packages/instabug_flutter_modular/.metadata b/packages/instabug_flutter_modular/.metadata deleted file mode 100644 index e5c802c48..000000000 --- a/packages/instabug_flutter_modular/.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: "367f9ea16bfae1ca451b9cc27c1366870b187ae2" - channel: "stable" - -project_type: package diff --git a/packages/instabug_flutter_modular/CHANGELOG.md b/packages/instabug_flutter_modular/CHANGELOG.md deleted file mode 100644 index b968a85f9..000000000 --- a/packages/instabug_flutter_modular/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ -# Changelog - -## [v1.0.0](https://github.com/Instabug/instabug_flutter_modular/commits/v1.0.0/) (July 7, 2024) - -### Added - -- Add support for capturing screen loading time in Flutter Modular v5 ([#477](https://github.com/Instabug/Instabug-Flutter/pull/477)). diff --git a/packages/instabug_flutter_modular/LICENSE b/packages/instabug_flutter_modular/LICENSE deleted file mode 100644 index 80d729766..000000000 --- a/packages/instabug_flutter_modular/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/packages/instabug_flutter_modular/README.md b/packages/instabug_flutter_modular/README.md deleted file mode 100644 index 6e907fc90..000000000 --- a/packages/instabug_flutter_modular/README.md +++ /dev/null @@ -1,55 +0,0 @@ -# Instabug Flutter Modular - -[![Pub](https://img.shields.io/pub/v/instabug_flutter_modular.svg)](https://pub.dev/packages/instabug_flutter_modular) -[![Twitter](https://img.shields.io/badge/twitter-@Instabug-blue.svg)](https://twitter.com/Instabug) - -An add-on for the [Instabug Flutter SDK](https://github.com/Instabug/Instabug-Flutter) that provides screen loading support for [Flutter Modular](https://pub.dev/packages/flutter_modular) v5. - -## Installation - -1. Add `instabug_flutter_modular` to your `pubspec.yaml` file. - -```yaml -dependencies: - instabug_flutter_modular: -``` - -2. Install the package by running the following command. - -```sh -flutter pub get -``` - -## Usage - -1. Wrap your `AppParentModule` inside `InstabugModule`: - - -```dart - -void main() { - //... - - runApp( - ModularApp( - module: InstabugModule(AppModule()), - child: const MyApp(), - ), - ); -} -``` - -2. Add `InstabugNavigatorObserver` to your navigation observers list: - -```dart -@override -Widget build(BuildContext context) { - return MaterialApp.router( - routeInformationParser: Modular.routeInformationParser, - routerDelegate: Modular.routerDelegate - ..setObservers([InstabugNavigatorObserver()]), - - // ... - ); -} -``` \ No newline at end of file diff --git a/packages/instabug_flutter_modular/example/.gitignore b/packages/instabug_flutter_modular/example/.gitignore deleted file mode 100644 index c2b055ffd..000000000 --- a/packages/instabug_flutter_modular/example/.gitignore +++ /dev/null @@ -1,44 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.metadata -.pub-cache/ -.pub/ -/build/ - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release diff --git a/packages/instabug_flutter_modular/example/android/.gitignore b/packages/instabug_flutter_modular/example/android/.gitignore deleted file mode 100644 index 6f568019d..000000000 --- a/packages/instabug_flutter_modular/example/android/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -gradle-wrapper.jar -/.gradle -/captures/ -/gradlew -/gradlew.bat -/local.properties -GeneratedPluginRegistrant.java - -# Remember to never publicly share your keystore. -# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app -key.properties -**/*.keystore -**/*.jks diff --git a/packages/instabug_flutter_modular/example/android/app/build.gradle b/packages/instabug_flutter_modular/example/android/app/build.gradle deleted file mode 100644 index b64cbfae0..000000000 --- a/packages/instabug_flutter_modular/example/android/app/build.gradle +++ /dev/null @@ -1,67 +0,0 @@ -plugins { - id "com.android.application" - id "kotlin-android" - id "dev.flutter.flutter-gradle-plugin" -} - -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' -} - -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - -android { - namespace "com.example.flutter_modular_demo_app" - compileSdk flutter.compileSdkVersion - ndkVersion flutter.ndkVersion - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - - kotlinOptions { - jvmTarget = '1.8' - } - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - } - - defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.flutter_modular_demo_app" - // You can update the following values to match your application needs. - // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. - minSdkVersion flutter.minSdkVersion - targetSdkVersion flutter.targetSdkVersion - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName - } - - buildTypes { - release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug - } - } -} - -flutter { - source '../..' -} - -dependencies {} diff --git a/packages/instabug_flutter_modular/example/android/app/src/debug/AndroidManifest.xml b/packages/instabug_flutter_modular/example/android/app/src/debug/AndroidManifest.xml deleted file mode 100644 index 399f6981d..000000000 --- a/packages/instabug_flutter_modular/example/android/app/src/debug/AndroidManifest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/AndroidManifest.xml b/packages/instabug_flutter_modular/example/android/app/src/main/AndroidManifest.xml deleted file mode 100644 index 82cb28a05..000000000 --- a/packages/instabug_flutter_modular/example/android/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java b/packages/instabug_flutter_modular/example/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java deleted file mode 100644 index 752fc185d..000000000 --- a/packages/instabug_flutter_modular/example/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java +++ /dev/null @@ -1,25 +0,0 @@ -// Generated file. -// -// If you wish to remove Flutter's multidex support, delete this entire file. -// -// Modifications to this file should be done in a copy under a different name -// as this file may be regenerated. - -package io.flutter.app; - -import android.app.Application; -import android.content.Context; -import androidx.annotation.CallSuper; -import androidx.multidex.MultiDex; - -/** - * Extension of {@link android.app.Application}, adding multidex support. - */ -public class FlutterMultiDexApplication extends Application { - @Override - @CallSuper - protected void attachBaseContext(Context base) { - super.attachBaseContext(base); - MultiDex.install(this); - } -} diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/kotlin/com/example/flutter_modular_demo_app/MainActivity.kt b/packages/instabug_flutter_modular/example/android/app/src/main/kotlin/com/example/flutter_modular_demo_app/MainActivity.kt deleted file mode 100644 index 79f585c2c..000000000 --- a/packages/instabug_flutter_modular/example/android/app/src/main/kotlin/com/example/flutter_modular_demo_app/MainActivity.kt +++ /dev/null @@ -1,5 +0,0 @@ -package com.example.flutter_modular_demo_app - -import io.flutter.embedding.android.FlutterActivity - -class MainActivity: FlutterActivity() diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/res/drawable-v21/launch_background.xml b/packages/instabug_flutter_modular/example/android/app/src/main/res/drawable-v21/launch_background.xml deleted file mode 100644 index f74085f3f..000000000 --- a/packages/instabug_flutter_modular/example/android/app/src/main/res/drawable-v21/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/res/drawable/launch_background.xml b/packages/instabug_flutter_modular/example/android/app/src/main/res/drawable/launch_background.xml deleted file mode 100644 index 304732f88..000000000 --- a/packages/instabug_flutter_modular/example/android/app/src/main/res/drawable/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index db77bb4b7..000000000 Binary files a/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 17987b79b..000000000 Binary files a/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index 09d439148..000000000 Binary files a/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index d5f1c8d34..000000000 Binary files a/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 4d6372eeb..000000000 Binary files a/packages/instabug_flutter_modular/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/res/values-night/styles.xml b/packages/instabug_flutter_modular/example/android/app/src/main/res/values-night/styles.xml deleted file mode 100644 index 06952be74..000000000 --- a/packages/instabug_flutter_modular/example/android/app/src/main/res/values-night/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/res/values/styles.xml b/packages/instabug_flutter_modular/example/android/app/src/main/res/values/styles.xml deleted file mode 100644 index cb1ef8805..000000000 --- a/packages/instabug_flutter_modular/example/android/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/packages/instabug_flutter_modular/example/android/app/src/main/res/xml/network_security_config.xml b/packages/instabug_flutter_modular/example/android/app/src/main/res/xml/network_security_config.xml deleted file mode 100644 index 9db612408..000000000 --- a/packages/instabug_flutter_modular/example/android/app/src/main/res/xml/network_security_config.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - localhost - - - - - - - - diff --git a/packages/instabug_flutter_modular/example/android/app/src/profile/AndroidManifest.xml b/packages/instabug_flutter_modular/example/android/app/src/profile/AndroidManifest.xml deleted file mode 100644 index 399f6981d..000000000 --- a/packages/instabug_flutter_modular/example/android/app/src/profile/AndroidManifest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/packages/instabug_flutter_modular/example/android/build.gradle b/packages/instabug_flutter_modular/example/android/build.gradle deleted file mode 100644 index bc157bd1a..000000000 --- a/packages/instabug_flutter_modular/example/android/build.gradle +++ /dev/null @@ -1,18 +0,0 @@ -allprojects { - repositories { - google() - mavenCentral() - } -} - -rootProject.buildDir = '../build' -subprojects { - project.buildDir = "${rootProject.buildDir}/${project.name}" -} -subprojects { - project.evaluationDependsOn(':app') -} - -tasks.register("clean", Delete) { - delete rootProject.buildDir -} diff --git a/packages/instabug_flutter_modular/example/android/gradle.properties b/packages/instabug_flutter_modular/example/android/gradle.properties deleted file mode 100644 index 598d13fee..000000000 --- a/packages/instabug_flutter_modular/example/android/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -org.gradle.jvmargs=-Xmx4G -android.useAndroidX=true -android.enableJetifier=true diff --git a/packages/instabug_flutter_modular/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/instabug_flutter_modular/example/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index e1ca574ef..000000000 --- a/packages/instabug_flutter_modular/example/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,5 +0,0 @@ -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/packages/instabug_flutter_modular/example/android/settings.gradle b/packages/instabug_flutter_modular/example/android/settings.gradle deleted file mode 100644 index 1d6d19b7f..000000000 --- a/packages/instabug_flutter_modular/example/android/settings.gradle +++ /dev/null @@ -1,26 +0,0 @@ -pluginManagement { - def flutterSdkPath = { - def properties = new Properties() - file("local.properties").withInputStream { properties.load(it) } - def flutterSdkPath = properties.getProperty("flutter.sdk") - assert flutterSdkPath != null, "flutter.sdk not set in local.properties" - return flutterSdkPath - } - settings.ext.flutterSdkPath = flutterSdkPath() - - includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") - - repositories { - google() - mavenCentral() - gradlePluginPortal() - } -} - -plugins { - id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "7.3.0" apply false - id "org.jetbrains.kotlin.android" version "1.7.10" apply false -} - -include ":app" diff --git a/packages/instabug_flutter_modular/example/ios/.gitignore b/packages/instabug_flutter_modular/example/ios/.gitignore deleted file mode 100644 index 7a7f9873a..000000000 --- a/packages/instabug_flutter_modular/example/ios/.gitignore +++ /dev/null @@ -1,34 +0,0 @@ -**/dgph -*.mode1v3 -*.mode2v3 -*.moved-aside -*.pbxuser -*.perspectivev3 -**/*sync/ -.sconsign.dblite -.tags* -**/.vagrant/ -**/DerivedData/ -Icon? -**/Pods/ -**/.symlinks/ -profile -xcuserdata -**/.generated/ -Flutter/App.framework -Flutter/Flutter.framework -Flutter/Flutter.podspec -Flutter/Generated.xcconfig -Flutter/ephemeral/ -Flutter/app.flx -Flutter/app.zip -Flutter/flutter_assets/ -Flutter/flutter_export_environment.sh -ServiceDefinitions.json -Runner/GeneratedPluginRegistrant.* - -# Exceptions to above rules. -!default.mode1v3 -!default.mode2v3 -!default.pbxuser -!default.perspectivev3 diff --git a/packages/instabug_flutter_modular/example/ios/Flutter/AppFrameworkInfo.plist b/packages/instabug_flutter_modular/example/ios/Flutter/AppFrameworkInfo.plist deleted file mode 100644 index 7c5696400..000000000 --- a/packages/instabug_flutter_modular/example/ios/Flutter/AppFrameworkInfo.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - App - CFBundleIdentifier - io.flutter.flutter.app - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - App - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - MinimumOSVersion - 12.0 - - diff --git a/packages/instabug_flutter_modular/example/ios/Flutter/Debug.xcconfig b/packages/instabug_flutter_modular/example/ios/Flutter/Debug.xcconfig deleted file mode 100644 index ec97fc6f3..000000000 --- a/packages/instabug_flutter_modular/example/ios/Flutter/Debug.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" -#include "Generated.xcconfig" diff --git a/packages/instabug_flutter_modular/example/ios/Flutter/Release.xcconfig b/packages/instabug_flutter_modular/example/ios/Flutter/Release.xcconfig deleted file mode 100644 index c4855bfe2..000000000 --- a/packages/instabug_flutter_modular/example/ios/Flutter/Release.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" -#include "Generated.xcconfig" diff --git a/packages/instabug_flutter_modular/example/ios/Podfile b/packages/instabug_flutter_modular/example/ios/Podfile deleted file mode 100644 index d97f17e22..000000000 --- a/packages/instabug_flutter_modular/example/ios/Podfile +++ /dev/null @@ -1,44 +0,0 @@ -# Uncomment this line to define a global platform for your project -# platform :ios, '12.0' - -# CocoaPods analytics sends network stats synchronously affecting flutter build latency. -ENV['COCOAPODS_DISABLE_STATS'] = 'true' - -project 'Runner', { - 'Debug' => :debug, - 'Profile' => :release, - 'Release' => :release, -} - -def flutter_root - generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) - unless File.exist?(generated_xcode_build_settings_path) - raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" - end - - File.foreach(generated_xcode_build_settings_path) do |line| - matches = line.match(/FLUTTER_ROOT\=(.*)/) - return matches[1].strip if matches - end - raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" -end - -require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) - -flutter_ios_podfile_setup - -target 'Runner' do - use_frameworks! - use_modular_headers! - - flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) - target 'RunnerTests' do - inherit! :search_paths - end -end - -post_install do |installer| - installer.pods_project.targets.each do |target| - flutter_additional_ios_build_settings(target) - end -end diff --git a/packages/instabug_flutter_modular/example/ios/Podfile.lock b/packages/instabug_flutter_modular/example/ios/Podfile.lock deleted file mode 100644 index 391410c41..000000000 --- a/packages/instabug_flutter_modular/example/ios/Podfile.lock +++ /dev/null @@ -1,29 +0,0 @@ -PODS: - - Flutter (1.0.0) - - Instabug (14.0.0) - - instabug_flutter (14.0.0): - - Flutter - - Instabug (= 14.0.0) - -DEPENDENCIES: - - Flutter (from `Flutter`) - - instabug_flutter (from `.symlinks/plugins/instabug_flutter/ios`) - -SPEC REPOS: - trunk: - - Instabug - -EXTERNAL SOURCES: - Flutter: - :path: Flutter - instabug_flutter: - :path: ".symlinks/plugins/instabug_flutter/ios" - -SPEC CHECKSUMS: - Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 - Instabug: a0beffc01658773e2fac549845782f8937707dc4 - instabug_flutter: ff8ab5ff34a476b1d2d887478ec190cda962b973 - -PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796 - -COCOAPODS: 1.14.3 diff --git a/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/project.pbxproj b/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/project.pbxproj deleted file mode 100644 index 99206dfba..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/project.pbxproj +++ /dev/null @@ -1,728 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 54; - objects = { - -/* Begin PBXBuildFile section */ - 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; - 327E711B528735FED991BFC4 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2943C6CA26DB2D8358EBC2D7 /* Pods_Runner.framework */; }; - 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; - 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; - 6D2169967115A81725A63418 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9C96F9B3DD34FEEAF2EB522D /* Pods_RunnerTests.framework */; }; - 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 97C146E61CF9000F007C117D /* Project object */; - proxyType = 1; - remoteGlobalIDString = 97C146ED1CF9000F007C117D; - remoteInfo = Runner; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 9705A1C41CF9048500538489 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; - 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; - 22D0234AF76181345ADA0C95 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; - 2943C6CA26DB2D8358EBC2D7 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; - 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; - 42617FCCD3CC7E9232CA19EF /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; - 4B1FAE53C830CB656B3306A8 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; - 7046D924EA334C9701656E63 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; - 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; - 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; - 849846FA37D5C84AC76BC5B8 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; - 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; - 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; - 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 9C96F9B3DD34FEEAF2EB522D /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 9D23D5A15863072900ABD324 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 8B88E0EF1C0B1FCD941F5841 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 6D2169967115A81725A63418 /* Pods_RunnerTests.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 97C146EB1CF9000F007C117D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 327E711B528735FED991BFC4 /* Pods_Runner.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 25EC9C0EE1DF0FD1150948F4 /* Pods */ = { - isa = PBXGroup; - children = ( - 22D0234AF76181345ADA0C95 /* Pods-Runner.debug.xcconfig */, - 9D23D5A15863072900ABD324 /* Pods-Runner.release.xcconfig */, - 7046D924EA334C9701656E63 /* Pods-Runner.profile.xcconfig */, - 4B1FAE53C830CB656B3306A8 /* Pods-RunnerTests.debug.xcconfig */, - 849846FA37D5C84AC76BC5B8 /* Pods-RunnerTests.release.xcconfig */, - 42617FCCD3CC7E9232CA19EF /* Pods-RunnerTests.profile.xcconfig */, - ); - name = Pods; - path = Pods; - sourceTree = ""; - }; - 331C8082294A63A400263BE5 /* RunnerTests */ = { - isa = PBXGroup; - children = ( - 331C807B294A618700263BE5 /* RunnerTests.swift */, - ); - path = RunnerTests; - sourceTree = ""; - }; - 94671C5E18FAC8DD353CE05B /* Frameworks */ = { - isa = PBXGroup; - children = ( - 2943C6CA26DB2D8358EBC2D7 /* Pods_Runner.framework */, - 9C96F9B3DD34FEEAF2EB522D /* Pods_RunnerTests.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 9740EEB11CF90186004384FC /* Flutter */ = { - isa = PBXGroup; - children = ( - 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, - 9740EEB21CF90195004384FC /* Debug.xcconfig */, - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, - 9740EEB31CF90195004384FC /* Generated.xcconfig */, - ); - name = Flutter; - sourceTree = ""; - }; - 97C146E51CF9000F007C117D = { - isa = PBXGroup; - children = ( - 9740EEB11CF90186004384FC /* Flutter */, - 97C146F01CF9000F007C117D /* Runner */, - 97C146EF1CF9000F007C117D /* Products */, - 331C8082294A63A400263BE5 /* RunnerTests */, - 25EC9C0EE1DF0FD1150948F4 /* Pods */, - 94671C5E18FAC8DD353CE05B /* Frameworks */, - ); - sourceTree = ""; - }; - 97C146EF1CF9000F007C117D /* Products */ = { - isa = PBXGroup; - children = ( - 97C146EE1CF9000F007C117D /* Runner.app */, - 331C8081294A63A400263BE5 /* RunnerTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 97C146F01CF9000F007C117D /* Runner */ = { - isa = PBXGroup; - children = ( - 97C146FA1CF9000F007C117D /* Main.storyboard */, - 97C146FD1CF9000F007C117D /* Assets.xcassets */, - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, - 97C147021CF9000F007C117D /* Info.plist */, - 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, - 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, - 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, - 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, - ); - path = Runner; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 331C8080294A63A400263BE5 /* RunnerTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; - buildPhases = ( - 354470C9D30A896FFCE8DEA0 /* [CP] Check Pods Manifest.lock */, - 331C807D294A63A400263BE5 /* Sources */, - 331C807F294A63A400263BE5 /* Resources */, - 8B88E0EF1C0B1FCD941F5841 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 331C8086294A63A400263BE5 /* PBXTargetDependency */, - ); - name = RunnerTests; - productName = RunnerTests; - productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 97C146ED1CF9000F007C117D /* Runner */ = { - isa = PBXNativeTarget; - buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; - buildPhases = ( - 48A7DA0DEA99D4A15D3FE66A /* [CP] Check Pods Manifest.lock */, - 9740EEB61CF901F6004384FC /* Run Script */, - 97C146EA1CF9000F007C117D /* Sources */, - 97C146EB1CF9000F007C117D /* Frameworks */, - 97C146EC1CF9000F007C117D /* Resources */, - 9705A1C41CF9048500538489 /* Embed Frameworks */, - 3B06AD1E1E4923F5004D2608 /* Thin Binary */, - FB8A21F1FDFF0427C21277F5 /* [CP] Embed Pods Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Runner; - productName = Runner; - productReference = 97C146EE1CF9000F007C117D /* Runner.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 97C146E61CF9000F007C117D /* Project object */ = { - isa = PBXProject; - attributes = { - BuildIndependentTargetsInParallel = YES; - LastUpgradeCheck = 1510; - ORGANIZATIONNAME = ""; - TargetAttributes = { - 331C8080294A63A400263BE5 = { - CreatedOnToolsVersion = 14.0; - TestTargetID = 97C146ED1CF9000F007C117D; - }; - 97C146ED1CF9000F007C117D = { - CreatedOnToolsVersion = 7.3.1; - LastSwiftMigration = 1100; - }; - }; - }; - buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 97C146E51CF9000F007C117D; - productRefGroup = 97C146EF1CF9000F007C117D /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 97C146ED1CF9000F007C117D /* Runner */, - 331C8080294A63A400263BE5 /* RunnerTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 331C807F294A63A400263BE5 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 97C146EC1CF9000F007C117D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, - 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 354470C9D30A896FFCE8DEA0 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { - isa = PBXShellScriptBuildPhase; - alwaysOutOfDate = 1; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", - ); - name = "Thin Binary"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; - }; - 48A7DA0DEA99D4A15D3FE66A /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - 9740EEB61CF901F6004384FC /* Run Script */ = { - isa = PBXShellScriptBuildPhase; - alwaysOutOfDate = 1; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Run Script"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; - }; - FB8A21F1FDFF0427C21277F5 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 331C807D294A63A400263BE5 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 97C146EA1CF9000F007C117D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, - 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 97C146ED1CF9000F007C117D /* Runner */; - targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 97C146FA1CF9000F007C117D /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C146FB1CF9000F007C117D /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C147001CF9000F007C117D /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 249021D3217E4FDB00AE95B9 /* Profile */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Profile; - }; - 249021D4217E4FDB00AE95B9 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterModularDemoApp; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Profile; - }; - 331C8088294A63A400263BE5 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 4B1FAE53C830CB656B3306A8 /* Pods-RunnerTests.debug.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterModularDemoApp.RunnerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; - }; - name = Debug; - }; - 331C8089294A63A400263BE5 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 849846FA37D5C84AC76BC5B8 /* Pods-RunnerTests.release.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterModularDemoApp.RunnerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; - }; - name = Release; - }; - 331C808A294A63A400263BE5 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 42617FCCD3CC7E9232CA19EF /* Pods-RunnerTests.profile.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterModularDemoApp.RunnerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; - }; - name = Profile; - }; - 97C147031CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 97C147041CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = iphoneos; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 97C147061CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterModularDemoApp; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Debug; - }; - 97C147071CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterModularDemoApp; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 331C8088294A63A400263BE5 /* Debug */, - 331C8089294A63A400263BE5 /* Release */, - 331C808A294A63A400263BE5 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147031CF9000F007C117D /* Debug */, - 97C147041CF9000F007C117D /* Release */, - 249021D3217E4FDB00AE95B9 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147061CF9000F007C117D /* Debug */, - 97C147071CF9000F007C117D /* Release */, - 249021D4217E4FDB00AE95B9 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 97C146E61CF9000F007C117D /* Project object */; -} diff --git a/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a62..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index f9b0d7c5e..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,8 +0,0 @@ - - - - - PreviewsEnabled - - - diff --git a/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme deleted file mode 100644 index 8e3ca5dfe..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/instabug_flutter_modular/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/packages/instabug_flutter_modular/example/ios/Runner.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 21a3cc14c..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/packages/instabug_flutter_modular/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/instabug_flutter_modular/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/packages/instabug_flutter_modular/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/instabug_flutter_modular/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index f9b0d7c5e..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,8 +0,0 @@ - - - - - PreviewsEnabled - - - diff --git a/packages/instabug_flutter_modular/example/ios/Runner/AppDelegate.swift b/packages/instabug_flutter_modular/example/ios/Runner/AppDelegate.swift deleted file mode 100644 index 70693e4a8..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner/AppDelegate.swift +++ /dev/null @@ -1,13 +0,0 @@ -import UIKit -import Flutter - -@UIApplicationMain -@objc class AppDelegate: FlutterAppDelegate { - override func application( - _ application: UIApplication, - didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? - ) -> Bool { - GeneratedPluginRegistrant.register(with: self) - return super.application(application, didFinishLaunchingWithOptions: launchOptions) - } -} diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index d36b1fab2..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "images" : [ - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@3x.png", - "scale" : "3x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@3x.png", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@3x.png", - "scale" : "3x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@2x.png", - "scale" : "2x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@3x.png", - "scale" : "3x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@1x.png", - "scale" : "1x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@1x.png", - "scale" : "1x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@1x.png", - "scale" : "1x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@2x.png", - "scale" : "2x" - }, - { - "size" : "83.5x83.5", - "idiom" : "ipad", - "filename" : "Icon-App-83.5x83.5@2x.png", - "scale" : "2x" - }, - { - "size" : "1024x1024", - "idiom" : "ios-marketing", - "filename" : "Icon-App-1024x1024@1x.png", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png deleted file mode 100644 index dc9ada472..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png deleted file mode 100644 index 7353c41ec..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png deleted file mode 100644 index 797d452e4..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png deleted file mode 100644 index 6ed2d933e..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png deleted file mode 100644 index 4cd7b0099..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png deleted file mode 100644 index fe730945a..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png deleted file mode 100644 index 321773cd8..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png deleted file mode 100644 index 797d452e4..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png deleted file mode 100644 index 502f463a9..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png deleted file mode 100644 index 0ec303439..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png deleted file mode 100644 index 0ec303439..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png deleted file mode 100644 index e9f5fea27..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png deleted file mode 100644 index 84ac32ae7..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png deleted file mode 100644 index 8953cba09..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png deleted file mode 100644 index 0467bf12a..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json deleted file mode 100644 index 0bedcf2fd..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "LaunchImage.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "LaunchImage@2x.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "LaunchImage@3x.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png deleted file mode 100644 index 9da19eaca..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png deleted file mode 100644 index 9da19eaca..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png deleted file mode 100644 index 9da19eaca..000000000 Binary files a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png and /dev/null differ diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md deleted file mode 100644 index 89c2725b7..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Launch Screen Assets - -You can customize the launch screen with your own desired assets by replacing the image files in this directory. - -You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/packages/instabug_flutter_modular/example/ios/Runner/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index f2e259c7c..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Base.lproj/Main.storyboard b/packages/instabug_flutter_modular/example/ios/Runner/Base.lproj/Main.storyboard deleted file mode 100644 index f3c28516f..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner/Base.lproj/Main.storyboard +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Info.plist b/packages/instabug_flutter_modular/example/ios/Runner/Info.plist deleted file mode 100644 index 929983c33..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner/Info.plist +++ /dev/null @@ -1,49 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleDisplayName - Flutter Modular Demo App - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - flutter_modular_demo_app - CFBundlePackageType - APPL - CFBundleShortVersionString - $(FLUTTER_BUILD_NAME) - CFBundleSignature - ???? - CFBundleVersion - $(FLUTTER_BUILD_NUMBER) - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - CADisableMinimumFrameDurationOnPhone - - UIApplicationSupportsIndirectInputEvents - - - diff --git a/packages/instabug_flutter_modular/example/ios/Runner/Runner-Bridging-Header.h b/packages/instabug_flutter_modular/example/ios/Runner/Runner-Bridging-Header.h deleted file mode 100644 index 308a2a560..000000000 --- a/packages/instabug_flutter_modular/example/ios/Runner/Runner-Bridging-Header.h +++ /dev/null @@ -1 +0,0 @@ -#import "GeneratedPluginRegistrant.h" diff --git a/packages/instabug_flutter_modular/example/ios/RunnerTests/RunnerTests.swift b/packages/instabug_flutter_modular/example/ios/RunnerTests/RunnerTests.swift deleted file mode 100644 index 86a7c3b1b..000000000 --- a/packages/instabug_flutter_modular/example/ios/RunnerTests/RunnerTests.swift +++ /dev/null @@ -1,12 +0,0 @@ -import Flutter -import UIKit -import XCTest - -class RunnerTests: XCTestCase { - - func testExample() { - // If you add code to the Runner application, consider adding tests here. - // See https://developer.apple.com/documentation/xctest for more information about using XCTest. - } - -} diff --git a/packages/instabug_flutter_modular/example/lib/main.dart b/packages/instabug_flutter_modular/example/lib/main.dart deleted file mode 100644 index d2c1c6100..000000000 --- a/packages/instabug_flutter_modular/example/lib/main.dart +++ /dev/null @@ -1,54 +0,0 @@ -import 'dart:async'; - -import 'package:flutter/material.dart'; -import 'package:flutter_modular/flutter_modular.dart'; -import 'package:flutter_modular_demo_app/modules.dart'; -import 'package:instabug_flutter/instabug_flutter.dart'; -import 'package:instabug_flutter_modular/instabug_flutter_modular.dart'; - -void main() { - runZonedGuarded( - () { - WidgetsFlutterBinding.ensureInitialized(); - - Instabug.init( - token: '6b41bc30dd42aac50794ef3ec8f74a74', - invocationEvents: [InvocationEvent.floatingButton], - debugLogsLevel: LogLevel.verbose, - ); - - FlutterError.onError = (FlutterErrorDetails details) { - Zone.current.handleUncaughtError(details.exception, details.stack!); - }; - runApp( - ModularApp( - module: InstabugModule(AppModule()), - child: const MyApp(), - ), - ); - }, - CrashReporting.reportCrash, - ); -} - -class MyApp extends StatefulWidget { - const MyApp({super.key}); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - @override - Widget build(BuildContext context) { - return MaterialApp.router( - routeInformationParser: Modular.routeInformationParser, - routerDelegate: Modular.routerDelegate - ..setObservers([InstabugNavigatorObserver()]), - title: 'Flutter Modular Demo', - theme: ThemeData( - primarySwatch: Colors.blue, - ), - ); - } -} diff --git a/packages/instabug_flutter_modular/example/lib/modules.dart b/packages/instabug_flutter_modular/example/lib/modules.dart deleted file mode 100644 index f01d3d5f3..000000000 --- a/packages/instabug_flutter_modular/example/lib/modules.dart +++ /dev/null @@ -1,9 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:flutter_modular/flutter_modular.dart'; -import 'package:flutter_modular_demo_app/screens.dart'; - -part 'modules/app_module.dart'; - -part 'modules/second_module.dart'; - -part 'modules/third_module.dart'; diff --git a/packages/instabug_flutter_modular/example/lib/modules/app_module.dart b/packages/instabug_flutter_modular/example/lib/modules/app_module.dart deleted file mode 100644 index f68cf08b5..000000000 --- a/packages/instabug_flutter_modular/example/lib/modules/app_module.dart +++ /dev/null @@ -1,20 +0,0 @@ -part of '../modules.dart'; - -class AppModule extends Module { - @override - final List binds = [Bind.singleton((i) => Counter())]; - - @override - final List routes = [ - ChildRoute('/', child: (_, args) => const HomePage()), - ChildRoute('/simplePage', child: (_, args) => const SimplePage()), - ChildRoute('/complexPage', child: (_, args) => const ComplexPage()), - ChildRoute('/bindsPage', child: (_, args) => const ThirdModuleHomePage()), - WildcardRoute( - child: (p0, p1) => const NotFoundPage(), - ), - RedirectRoute('/redirect', to: '/simplePage?name=redirected'), - ModuleRoute('/secondModule', module: SecondModule()), - ModuleRoute('/thirdModule', module: ThirdModule()), - ]; -} diff --git a/packages/instabug_flutter_modular/example/lib/modules/second_module.dart b/packages/instabug_flutter_modular/example/lib/modules/second_module.dart deleted file mode 100644 index b178f36be..000000000 --- a/packages/instabug_flutter_modular/example/lib/modules/second_module.dart +++ /dev/null @@ -1,31 +0,0 @@ -part of '../modules.dart'; - -class SecondModule extends Module { - @override - final List binds = []; - - @override - List get routes => [ - ChildRoute( - '/', - child: (context, args) => const SecondModuleHomePage(), - children: [ - ChildRoute( - '/page1', - child: (context, args) => - const InternalPage(title: 'page 1', color: Colors.red), - ), - ChildRoute( - '/page2', - child: (context, args) => - const InternalPage(title: 'page 2', color: Colors.amber), - ), - ChildRoute( - '/page3', - child: (context, args) => - const InternalPage(title: 'page 3', color: Colors.green), - ), - ], - ), - ]; -} diff --git a/packages/instabug_flutter_modular/example/lib/modules/third_module.dart b/packages/instabug_flutter_modular/example/lib/modules/third_module.dart deleted file mode 100644 index e14d83be0..000000000 --- a/packages/instabug_flutter_modular/example/lib/modules/third_module.dart +++ /dev/null @@ -1,21 +0,0 @@ -part of '../modules.dart'; - -class ThirdModule extends Module { - @override - final List binds = []; - - @override - final List routes = [ - ChildRoute('/', child: (_, args) => const ThirdModuleHomePage()), - ]; -} - -class Counter { - int _number = 0; - - int get number => _number; - - void increment() => _number++; - - void decrement() => _number--; -} diff --git a/packages/instabug_flutter_modular/example/lib/screens.dart b/packages/instabug_flutter_modular/example/lib/screens.dart deleted file mode 100644 index a067eb93b..000000000 --- a/packages/instabug_flutter_modular/example/lib/screens.dart +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:flutter_modular/flutter_modular.dart'; -import 'package:flutter_modular_demo_app/modules.dart'; -import 'package:flutter_modular_demo_app/widgets.dart'; -import 'package:instabug_flutter/instabug_flutter.dart'; - -part 'screens/home_page.dart'; - -part 'screens/second_module_home_page.dart'; - -part 'screens/simple_page.dart'; - -part 'screens/third_module_home_page.dart'; - -part 'screens/not_found_page.dart'; - -part 'screens/complex_page.dart'; diff --git a/packages/instabug_flutter_modular/example/lib/screens/complex_page.dart b/packages/instabug_flutter_modular/example/lib/screens/complex_page.dart deleted file mode 100644 index cac14c0d9..000000000 --- a/packages/instabug_flutter_modular/example/lib/screens/complex_page.dart +++ /dev/null @@ -1,95 +0,0 @@ -part of '../screens.dart'; - -class ComplexPage extends StatelessWidget { - const ComplexPage({super.key}); - - @override - Widget build(BuildContext context) { - int numberOfWidgets = 100; - return Scaffold( - floatingActionButton: FloatingActionButton( - onPressed: () {}, - child: const Icon(Icons.add), - ), - appBar: AppBar( - title: const Text("Complex Page"), - ), - body: SafeArea( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - const Padding( - padding: EdgeInsets.all(16.0), - child: Row( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - CustomCard( - width: 40, - height: 40, - ), - SizedBox(width: 8), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - CustomCard( - height: 10, - width: 150, - ), - SizedBox(height: 8), - CustomCard( - height: 10, - width: 200, - ), - ], - ), - ], - ), - ), - SizedBox( - height: 80, - child: ListView.separated( - itemBuilder: (_, __) => const CustomCard( - width: 80, - ), - separatorBuilder: (_, __) => const SizedBox(width: 8), - itemCount: numberOfWidgets, - scrollDirection: Axis.horizontal, - ), - ), - const SizedBox(height: 16), - Expanded( - child: ListView.separated( - padding: const EdgeInsets.all(16), - itemBuilder: (_, __) => const CustomCard( - height: 100, - ), - separatorBuilder: (_, __) => const SizedBox(height: 8), - itemCount: numberOfWidgets, - ), - ), - ], - ), - ), - ); - } -} - -class CustomCard extends StatelessWidget { - const CustomCard({super.key, this.width, this.height}); - - final double? width, height; - - @override - Widget build(BuildContext context) { - return Container( - width: width, - height: height, - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(8), - color: Colors.black12, - ), - ); - } -} diff --git a/packages/instabug_flutter_modular/example/lib/screens/home_page.dart b/packages/instabug_flutter_modular/example/lib/screens/home_page.dart deleted file mode 100644 index d6a29c195..000000000 --- a/packages/instabug_flutter_modular/example/lib/screens/home_page.dart +++ /dev/null @@ -1,109 +0,0 @@ -part of '../screens.dart'; -//ignore_for_file:invalid_use_of_internal_member - -class HomePage extends StatefulWidget { - const HomePage({super.key}); - - @override - State createState() => _HomePageState(); -} - -class _HomePageState extends State { - bool _instabug = true, _apm = true, _screenLoading = true, _uiTrace = true; - - @override - void didChangeDependencies() async { - super.didChangeDependencies(); - _instabug = await Instabug.isEnabled(); - _apm = await APM.isEnabled(); - _screenLoading = await APM.isScreenLoadingEnabled(); - } - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar(title: const Text('Home Page')), - body: SingleChildScrollView( - padding: const EdgeInsets.all(16.0), - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.stretch, - children: [ - CustomSwitchListTile( - value: _instabug, - onChanged: (value) { - Instabug.setEnabled(value); - setState(() => _instabug = value); - }, - title: "Instabug", - ), - CustomSwitchListTile( - value: _apm, - onChanged: (value) { - APM.setEnabled(value); - setState(() => _apm = value); - }, - title: "APM", - ), - CustomSwitchListTile( - value: _screenLoading, - onChanged: (value) { - APM.setScreenLoadingEnabled(value); - setState(() => _screenLoading = value); - }, - title: "Screen Loading", - ), - CustomSwitchListTile( - value: _uiTrace, - onChanged: (value) { - APM.setAutoUITraceEnabled(value); - setState(() => _uiTrace = value); - }, - title: "UI Trace", - ), - CustomButton( - onPressed: () => Modular.to.navigate('/simplePage'), - title: 'Navigate To Simple Page', - ), - CustomButton( - onPressed: () => Modular.to.pushNamed('/complexPage'), - title: 'Navigate To Complex Page', - ), - CustomButton( - onPressed: () => Modular.to.pushNamed('/simplePage'), - title: 'Navigate To Second Page (using push)', - ), - CustomButton( - onPressed: () => - Modular.to.navigate('/simplePage?name=Inastabug'), - title: 'Navigate To Second Page (with params)', - ), - CustomButton( - onPressed: () => Modular.to.navigate('/redirect'), - title: 'Navigate Using RedirectRoute', - ), - CustomButton( - onPressed: () => Modular.to.navigate('/bindsPage'), - title: 'Navigate To Binds Page', - ), - const SizedBox( - height: 32, - ), - CustomButton( - onPressed: () => Modular.to.navigate('/secondModule/'), - title: 'Navigate To Second Module (Nested Routes)', - ), - CustomButton( - onPressed: () => Modular.to.navigate('/thirdModule/'), - title: 'Navigate To Third Module (Binds)', - ), - CustomButton( - onPressed: () => Modular.to.navigate('/asde'), - title: 'Navigation History', - ), - ], - ), - ), - ); - } -} diff --git a/packages/instabug_flutter_modular/example/lib/screens/not_found_page.dart b/packages/instabug_flutter_modular/example/lib/screens/not_found_page.dart deleted file mode 100644 index a17ee9176..000000000 --- a/packages/instabug_flutter_modular/example/lib/screens/not_found_page.dart +++ /dev/null @@ -1,18 +0,0 @@ -part of '../screens.dart'; - -class NotFoundPage extends StatelessWidget { - const NotFoundPage({super.key}); - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar(title: const Text('Not Found Page')), - body: Center( - child: CustomButton( - onPressed: () => Modular.to.navigate('/'), - title: 'Back To Home', - ), - ), - ); - } -} diff --git a/packages/instabug_flutter_modular/example/lib/screens/second_module_home_page.dart b/packages/instabug_flutter_modular/example/lib/screens/second_module_home_page.dart deleted file mode 100644 index 7fe3c9454..000000000 --- a/packages/instabug_flutter_modular/example/lib/screens/second_module_home_page.dart +++ /dev/null @@ -1,66 +0,0 @@ -part of '../screens.dart'; - -class SecondModuleHomePage extends StatelessWidget { - const SecondModuleHomePage({super.key}); - - @override - Widget build(BuildContext context) { - final leading = SizedBox( - width: MediaQuery.of(context).size.width * 0.3, - child: NavigationListener( - builder: (context, child) => Column( - children: [ - ListTile( - title: const Text('Page 1'), - onTap: () => Modular.to.navigate('/secondModule/page1'), - selected: Modular.to.path.endsWith('/secondModule/page1'), - ), - ListTile( - title: const Text('Page 2'), - onTap: () => Modular.to.navigate('/secondModule/page2'), - selected: Modular.to.path.endsWith('/secondModule/page2'), - ), - ListTile( - title: const Text('Page 3'), - onTap: () => Modular.to.navigate('/secondModule/page3'), - selected: Modular.to.path.endsWith('/secondModule/page3'), - ), - const Spacer(), - ListTile( - title: const Text('Back To Home'), - onTap: () => Modular.to.navigate('/'), - ), - ], - ), - ), - ); - - return Scaffold( - appBar: AppBar(title: const Text('Second Module (Nested Routes)')), - body: SafeArea( - child: Row( - children: [ - leading, - Container(width: 1, color: Colors.black26), - const Expanded(child: RouterOutlet()), - ], - ), - ), - ); - } -} - -class InternalPage extends StatelessWidget { - final String title; - final Color color; - - const InternalPage({super.key, required this.title, required this.color}); - - @override - Widget build(BuildContext context) { - return Material( - color: color, - child: Center(child: Text(title)), - ); - } -} diff --git a/packages/instabug_flutter_modular/example/lib/screens/simple_page.dart b/packages/instabug_flutter_modular/example/lib/screens/simple_page.dart deleted file mode 100644 index 5d57e5510..000000000 --- a/packages/instabug_flutter_modular/example/lib/screens/simple_page.dart +++ /dev/null @@ -1,58 +0,0 @@ -part of '../screens.dart'; - -class SimplePage extends StatelessWidget { - const SimplePage({super.key}); - - @override - Widget build(BuildContext context) { - final canPop = Modular.to.canPop(); - const int extendedMicroseconds = 50000; - - return Scaffold( - appBar: AppBar(title: const Text('Second Page')), - body: Padding( - padding: const EdgeInsets.all(16.0), - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.stretch, - children: [ - if (Modular.args.queryParams.containsKey("name")) ...[ - Text( - "Parameters: ${Modular.args.queryParams["name"]}", - textAlign: TextAlign.center, - ), - const SizedBox(height: 16), - ], - CustomButton( - onPressed: () => - _extendScreenLoading(context, extendedMicroseconds), - title: 'Extend SCL for $extendedMicroseconds μs', - ), - CustomButton( - onPressed: () { - if (canPop) { - Modular.to.pop(); - } else { - Modular.to.navigate('/'); - } - }, - title: 'Back to Home ${canPop ? "(pop)" : ""}', - ), - ], - ), - ), - ); - } - - void _extendScreenLoading(BuildContext context, int microseconds) { - ScaffoldMessenger.of(context) - .showSnackBar( - SnackBar( - content: Text("extend Screen for $microseconds microseconds"), - duration: Duration(microseconds: microseconds), - ), - ) - .closed - .then((value) => APM.endScreenLoading()); - } -} diff --git a/packages/instabug_flutter_modular/example/lib/screens/third_module_home_page.dart b/packages/instabug_flutter_modular/example/lib/screens/third_module_home_page.dart deleted file mode 100644 index 1f060b1a0..000000000 --- a/packages/instabug_flutter_modular/example/lib/screens/third_module_home_page.dart +++ /dev/null @@ -1,50 +0,0 @@ -part of '../screens.dart'; - -class ThirdModuleHomePage extends StatefulWidget { - const ThirdModuleHomePage({super.key}); - - @override - State createState() => _ThirdModuleHomePageState(); -} - -class _ThirdModuleHomePageState extends State { - final counter = Modular.get(); - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar(title: const Text('Third Module (Binds)')), - body: Padding( - padding: const EdgeInsets.all(16.0), - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.stretch, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - IconButton( - onPressed: () => setState(() => counter.increment()), - icon: const Icon(Icons.add_circle_outline_rounded)), - Padding( - padding: const EdgeInsets.symmetric(horizontal: 16.0), - child: Text( - "Counter: ${counter.number}", - textAlign: TextAlign.center, - ), - ), - IconButton( - onPressed: () => setState(() => counter.decrement()), - icon: const Icon(Icons.remove_circle_outline_rounded)), - ], - ), - CustomButton( - onPressed: () => Modular.to.navigate('/'), - title: 'Back To Home', - ), - ], - ), - ), - ); - } -} diff --git a/packages/instabug_flutter_modular/example/lib/widgets.dart b/packages/instabug_flutter_modular/example/lib/widgets.dart deleted file mode 100644 index 37b85cc1f..000000000 --- a/packages/instabug_flutter_modular/example/lib/widgets.dart +++ /dev/null @@ -1,38 +0,0 @@ -import 'package:flutter/material.dart'; - -class CustomSwitchListTile extends StatelessWidget { - const CustomSwitchListTile( - {super.key, required this.value, this.onChanged, required this.title}); - - final bool value; - final void Function(bool)? onChanged; - - final String title; - - @override - Widget build(BuildContext context) { - return SwitchListTile( - value: value, - onChanged: onChanged, - title: Text(title), - ); - } -} - -class CustomButton extends StatelessWidget { - const CustomButton({super.key, required this.onPressed, required this.title}); - - final VoidCallback onPressed; - final String title; - - @override - Widget build(BuildContext context) { - return ElevatedButton( - onPressed: onPressed, - child: Text( - title, - textAlign: TextAlign.center, - ), - ); - } -} diff --git a/packages/instabug_flutter_modular/example/pubspec.lock b/packages/instabug_flutter_modular/example/pubspec.lock deleted file mode 100644 index aee784432..000000000 --- a/packages/instabug_flutter_modular/example/pubspec.lock +++ /dev/null @@ -1,259 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 - url: "https://pub.dev" - source: hosted - version: "1.0.8" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - flutter_modular: - dependency: transitive - description: - name: flutter_modular - sha256: "061f0bcc8f8c438d4c82f4ff70a9e61f109961c92b4e1eaf1bbfab75f577fe0e" - url: "https://pub.dev" - source: hosted - version: "5.0.3" - flutter_modular_annotations: - dependency: transitive - description: - name: flutter_modular_annotations - sha256: "65971655bdd30816a6a66651c801f4ceba6c8ba265f0866cc51ad038332c9a71" - url: "https://pub.dev" - source: hosted - version: "0.0.2" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - instabug_flutter: - dependency: "direct main" - description: - path: "../../instabug_flutter" - relative: true - source: path - version: "14.0.0" - instabug_flutter_modular: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "1.0.0" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" - url: "https://pub.dev" - source: hosted - version: "10.0.5" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" - url: "https://pub.dev" - source: hosted - version: "3.0.5" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" - url: "https://pub.dev" - source: hosted - version: "3.0.1" - lints: - dependency: transitive - description: - name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 - url: "https://pub.dev" - source: hosted - version: "3.0.0" - matcher: - dependency: transitive - description: - name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb - url: "https://pub.dev" - source: hosted - version: "0.12.16+1" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec - url: "https://pub.dev" - source: hosted - version: "0.11.1" - meta: - dependency: transitive - description: - name: meta - sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 - url: "https://pub.dev" - source: hosted - version: "1.15.0" - modular_core: - dependency: transitive - description: - name: modular_core - sha256: "84cfe65d2ab15b0265a5bdb07a7a0408b06f8d92fee6fb94a3c85e97cbc2d6af" - url: "https://pub.dev" - source: hosted - version: "2.0.3+1" - modular_interfaces: - dependency: transitive - description: - name: modular_interfaces - sha256: "89db18038048d63de80871189ddc52363814e8181615459e5d88ed0a921acc1f" - url: "https://pub.dev" - source: hosted - version: "2.0.2" - path: - dependency: transitive - description: - name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.dev" - source: hosted - version: "1.9.0" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" - url: "https://pub.dev" - source: hosted - version: "0.7.2" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" - url: "https://pub.dev" - source: hosted - version: "14.2.5" -sdks: - dart: ">=3.3.0 <4.0.0" - flutter: ">=3.18.0-18.0.pre.54" diff --git a/packages/instabug_flutter_modular/example/pubspec.yaml b/packages/instabug_flutter_modular/example/pubspec.yaml deleted file mode 100644 index 90d6065c0..000000000 --- a/packages/instabug_flutter_modular/example/pubspec.yaml +++ /dev/null @@ -1,93 +0,0 @@ -name: flutter_modular_demo_app -description: "Flutter Modular Demo App" -# The following line prevents the package from being accidentally published to -# pub.dev using `flutter pub publish`. This is preferred for private packages. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev - -# The following defines the version and build number for your application. -# A version number is three numbers separated by dots, like 1.2.43 -# followed by an optional build number separated by a +. -# Both the version and the builder number may be overridden in flutter -# build by specifying --build-name and --build-number, respectively. -# In Android, build-name is used as versionName while build-number used as versionCode. -# Read more about Android versioning at https://developer.android.com/studio/publish/versioning -# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. -# Read more about iOS versioning at -# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -# In Windows, build-name is used as the major, minor, and patch parts -# of the product and file versions while build-number is used as the build suffix. -version: 1.0.0+1 - -environment: - sdk: '>=3.3.0 <4.0.0' - -# Dependencies specify other packages that your package needs in order to work. -# To automatically upgrade your package dependencies to the latest versions -# consider running `flutter pub upgrade --major-versions`. Alternatively, -# dependencies can be manually updated by changing the version numbers below to -# the latest version available on pub.dev. To see which dependencies have newer -# versions available, run `flutter pub outdated`. -dependencies: - flutter: - sdk: flutter - - - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.6 - instabug_flutter: ^13.2.0 - instabug_flutter_modular: - path: ../ - -dev_dependencies: - flutter_test: - sdk: flutter - - # The "flutter_lints" package below contains a set of recommended lints to - # encourage good coding practices. The lint set provided by the package is - # activated in the `analysis_options.yaml` file located at the root of your - # package. See that file for information about deactivating specific lint - # rules and activating additional ones. - flutter_lints: ^3.0.0 - -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter packages. -flutter: - - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. - uses-material-design: true - - # To add assets to your application, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages - - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages diff --git a/packages/instabug_flutter_modular/lib/instabug_flutter_modular.dart b/packages/instabug_flutter_modular/lib/instabug_flutter_modular.dart deleted file mode 100644 index 807259b68..000000000 --- a/packages/instabug_flutter_modular/lib/instabug_flutter_modular.dart +++ /dev/null @@ -1 +0,0 @@ -export 'src/instabug_module.dart'; diff --git a/packages/instabug_flutter_modular/lib/src/instabug_modular_manager.dart b/packages/instabug_flutter_modular/lib/src/instabug_modular_manager.dart deleted file mode 100644 index d1f8c8ea7..000000000 --- a/packages/instabug_flutter_modular/lib/src/instabug_modular_manager.dart +++ /dev/null @@ -1,76 +0,0 @@ -import 'package:flutter_modular/flutter_modular.dart'; -import 'package:instabug_flutter/instabug_flutter.dart'; -import 'package:instabug_flutter_modular/src/instabug_module.dart'; -import 'package:meta/meta.dart'; - -class InstabugModularManager { - InstabugModularManager._(); - - static InstabugModularManager _instance = InstabugModularManager._(); - static InstabugModularManager get instance => _instance; - - /// Shorthand for [instance] - static InstabugModularManager get I => instance; - - @visibleForTesting - // ignore: use_setters_to_change_properties - static void setInstance(InstabugModularManager instance) { - _instance = instance; - } - - List wrapRoutes( - List routes, { - String parent = '/', - bool wrapModules = true, - }) { - return routes - .map( - (route) => wrapRoute( - route, - parent: parent, - wrapModules: wrapModules, - ), - ) - .toList(); - } - - ModularRoute wrapRoute( - ModularRoute route, { - String parent = '/', - bool wrapModules = true, - }) { - final fullPath = (parent + route.name).replaceFirst('//', '/'); - - if (route is ModuleRoute && route.context is Module && wrapModules) { - final module = InstabugModule( - route.context! as Module, - path: fullPath, - ); - - return route.addModule( - route.name, - module: module, - ); - } else if (route is ParallelRoute && route is! ModuleRoute) { - ModularChild? child; - - if (route.child != null) { - child = (context, args) => InstabugCaptureScreenLoading( - screenName: fullPath, - child: route.child!(context, args), - ); - } - - return route.copyWith( - child: child, - children: wrapRoutes( - route.children, - parent: fullPath, - wrapModules: wrapModules, - ), - ); - } - - return route; - } -} diff --git a/packages/instabug_flutter_modular/lib/src/instabug_module.dart b/packages/instabug_flutter_modular/lib/src/instabug_module.dart deleted file mode 100644 index dc56fb171..000000000 --- a/packages/instabug_flutter_modular/lib/src/instabug_module.dart +++ /dev/null @@ -1,28 +0,0 @@ -import 'package:flutter_modular/flutter_modular.dart'; -import 'package:instabug_flutter_modular/src/instabug_modular_manager.dart'; - -class InstabugModule extends Module { - final Module module; - final String path; - final List _routes; - - InstabugModule(this.module, {this.path = '/'}) - : _routes = InstabugModularManager.I.wrapRoutes( - module.routes, - parent: path, - ); - - @override - List get imports => module.imports; - - @override - List get binds => module.binds; - - @override - List get routes => _routes; - - // Override the runtime type to return the module's runtime type as Flutter - // Modular maps context bindings by their runtime type. - @override - Type get runtimeType => module.runtimeType; -} diff --git a/packages/instabug_flutter_modular/pubspec.lock b/packages/instabug_flutter_modular/pubspec.lock deleted file mode 100644 index 92e83db90..000000000 --- a/packages/instabug_flutter_modular/pubspec.lock +++ /dev/null @@ -1,753 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _fe_analyzer_shared: - dependency: transitive - description: - name: _fe_analyzer_shared - sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 - url: "https://pub.dev" - source: hosted - version: "72.0.0" - _macros: - dependency: transitive - description: dart - source: sdk - version: "0.3.2" - analyzer: - dependency: transitive - description: - name: analyzer - sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 - url: "https://pub.dev" - source: hosted - version: "6.7.0" - args: - dependency: transitive - description: - name: args - sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6 - url: "https://pub.dev" - source: hosted - version: "2.6.0" - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - build: - dependency: transitive - description: - name: build - sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - build_config: - dependency: transitive - description: - name: build_config - sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1 - url: "https://pub.dev" - source: hosted - version: "1.1.1" - build_daemon: - dependency: transitive - description: - name: build_daemon - sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9" - url: "https://pub.dev" - source: hosted - version: "4.0.2" - build_resolvers: - dependency: transitive - description: - name: build_resolvers - sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" - url: "https://pub.dev" - source: hosted - version: "2.4.2" - build_runner: - dependency: "direct dev" - description: - name: build_runner - sha256: "028819cfb90051c6b5440c7e574d1896f8037e3c96cf17aaeb054c9311cfbf4d" - url: "https://pub.dev" - source: hosted - version: "2.4.13" - build_runner_core: - dependency: transitive - description: - name: build_runner_core - sha256: f8126682b87a7282a339b871298cc12009cb67109cfa1614d6436fb0289193e0 - url: "https://pub.dev" - source: hosted - version: "7.3.2" - built_collection: - dependency: transitive - description: - name: built_collection - sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" - url: "https://pub.dev" - source: hosted - version: "5.1.1" - built_value: - dependency: transitive - description: - name: built_value - sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb - url: "https://pub.dev" - source: hosted - version: "8.9.2" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - checked_yaml: - dependency: transitive - description: - name: checked_yaml - sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff - url: "https://pub.dev" - source: hosted - version: "2.0.3" - cli_util: - dependency: transitive - description: - name: cli_util - sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c - url: "https://pub.dev" - source: hosted - version: "0.4.2" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - code_builder: - dependency: transitive - description: - name: code_builder - sha256: "0ec10bf4a89e4c613960bf1e8b42c64127021740fb21640c29c909826a5eea3e" - url: "https://pub.dev" - source: hosted - version: "4.10.1" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - convert: - dependency: transitive - description: - name: convert - sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68 - url: "https://pub.dev" - source: hosted - version: "3.1.2" - coverage: - dependency: transitive - description: - name: coverage - sha256: "4b03e11f6d5b8f6e5bb5e9f7889a56fe6c5cbe942da5378ea4d4d7f73ef9dfe5" - url: "https://pub.dev" - source: hosted - version: "1.11.0" - crypto: - dependency: transitive - description: - name: crypto - sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855" - url: "https://pub.dev" - source: hosted - version: "3.0.6" - csslib: - dependency: transitive - description: - name: csslib - sha256: "09bad715f418841f976c77db72d5398dc1253c21fb9c0c7f0b0b985860b2d58e" - url: "https://pub.dev" - source: hosted - version: "1.0.2" - dart_style: - dependency: transitive - description: - name: dart_style - sha256: "7856d364b589d1f08986e140938578ed36ed948581fbc3bc9aef1805039ac5ab" - url: "https://pub.dev" - source: hosted - version: "2.3.7" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - file: - dependency: transitive - description: - name: file - sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 - url: "https://pub.dev" - source: hosted - version: "7.0.1" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be - url: "https://pub.dev" - source: hosted - version: "1.1.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 - url: "https://pub.dev" - source: hosted - version: "2.0.3" - flutter_modular: - dependency: "direct main" - description: - name: flutter_modular - sha256: "061f0bcc8f8c438d4c82f4ff70a9e61f109961c92b4e1eaf1bbfab75f577fe0e" - url: "https://pub.dev" - source: hosted - version: "5.0.3" - flutter_modular_annotations: - dependency: transitive - description: - name: flutter_modular_annotations - sha256: "65971655bdd30816a6a66651c801f4ceba6c8ba265f0866cc51ad038332c9a71" - url: "https://pub.dev" - source: hosted - version: "0.0.2" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - frontend_server_client: - dependency: transitive - description: - name: frontend_server_client - sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 - url: "https://pub.dev" - source: hosted - version: "4.0.0" - glob: - dependency: transitive - description: - name: glob - sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - graphs: - dependency: transitive - description: - name: graphs - sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0" - url: "https://pub.dev" - source: hosted - version: "2.3.2" - html: - dependency: transitive - description: - name: html - sha256: "1fc58edeaec4307368c60d59b7e15b9d658b57d7f3125098b6294153c75337ec" - url: "https://pub.dev" - source: hosted - version: "0.15.5" - http: - dependency: transitive - description: - name: http - sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 - url: "https://pub.dev" - source: hosted - version: "1.2.2" - http_multi_server: - dependency: transitive - description: - name: http_multi_server - sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" - url: "https://pub.dev" - source: hosted - version: "3.2.1" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" - url: "https://pub.dev" - source: hosted - version: "4.0.2" - instabug_flutter: - dependency: "direct main" - description: - path: "../instabug_flutter" - relative: true - source: path - version: "14.0.0" - io: - dependency: transitive - description: - name: io - sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" - url: "https://pub.dev" - source: hosted - version: "1.0.4" - js: - dependency: transitive - description: - name: js - sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf - url: "https://pub.dev" - source: hosted - version: "0.7.1" - json_annotation: - dependency: transitive - description: - name: json_annotation - sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" - url: "https://pub.dev" - source: hosted - version: "4.9.0" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" - url: "https://pub.dev" - source: hosted - version: "10.0.5" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" - url: "https://pub.dev" - source: hosted - version: "3.0.5" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" - url: "https://pub.dev" - source: hosted - version: "3.0.1" - lints: - dependency: transitive - description: - name: lints - sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - logging: - dependency: transitive - description: - name: logging - sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 - url: "https://pub.dev" - source: hosted - version: "1.3.0" - macros: - dependency: transitive - description: - name: macros - sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" - url: "https://pub.dev" - source: hosted - version: "0.1.2-main.4" - markdown: - dependency: transitive - description: - name: markdown - sha256: ef2a1298144e3f985cc736b22e0ccdaf188b5b3970648f2d9dc13efd1d9df051 - url: "https://pub.dev" - source: hosted - version: "7.2.2" - matcher: - dependency: transitive - description: - name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb - url: "https://pub.dev" - source: hosted - version: "0.12.16+1" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec - url: "https://pub.dev" - source: hosted - version: "0.11.1" - meta: - dependency: "direct main" - description: - name: meta - sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 - url: "https://pub.dev" - source: hosted - version: "1.15.0" - mime: - dependency: transitive - description: - name: mime - sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6" - url: "https://pub.dev" - source: hosted - version: "2.0.0" - mockito: - dependency: "direct dev" - description: - name: mockito - sha256: "6841eed20a7befac0ce07df8116c8b8233ed1f4486a7647c7fc5a02ae6163917" - url: "https://pub.dev" - source: hosted - version: "5.4.4" - modular_core: - dependency: "direct dev" - description: - name: modular_core - sha256: "84cfe65d2ab15b0265a5bdb07a7a0408b06f8d92fee6fb94a3c85e97cbc2d6af" - url: "https://pub.dev" - source: hosted - version: "2.0.3+1" - modular_interfaces: - dependency: transitive - description: - name: modular_interfaces - sha256: "89db18038048d63de80871189ddc52363814e8181615459e5d88ed0a921acc1f" - url: "https://pub.dev" - source: hosted - version: "2.0.2" - node_preamble: - dependency: transitive - description: - name: node_preamble - sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" - url: "https://pub.dev" - source: hosted - version: "2.0.2" - package_config: - dependency: transitive - description: - name: package_config - sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - pana: - dependency: "direct dev" - description: - name: pana - sha256: "6f4372d5d2af5fe3fc6491c18f575601743bceb8433c7f179a6fffd162ee55f1" - url: "https://pub.dev" - source: hosted - version: "0.21.39" - path: - dependency: transitive - description: - name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.dev" - source: hosted - version: "1.9.0" - pool: - dependency: transitive - description: - name: pool - sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" - url: "https://pub.dev" - source: hosted - version: "1.5.1" - pub_semver: - dependency: transitive - description: - name: pub_semver - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - pubspec_parse: - dependency: transitive - description: - name: pubspec_parse - sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 - url: "https://pub.dev" - source: hosted - version: "1.3.0" - retry: - dependency: transitive - description: - name: retry - sha256: "822e118d5b3aafed083109c72d5f484c6dc66707885e07c0fbcb8b986bba7efc" - url: "https://pub.dev" - source: hosted - version: "3.1.2" - safe_url_check: - dependency: transitive - description: - name: safe_url_check - sha256: "49a3e060a7869cbafc8f4845ca1ecbbaaa53179980a32f4fdfeab1607e90f41d" - url: "https://pub.dev" - source: hosted - version: "1.1.2" - shelf: - dependency: transitive - description: - name: shelf - sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 - url: "https://pub.dev" - source: hosted - version: "1.4.1" - shelf_packages_handler: - dependency: transitive - description: - name: shelf_packages_handler - sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - shelf_static: - dependency: transitive - description: - name: shelf_static - sha256: c87c3875f91262785dade62d135760c2c69cb217ac759485334c5857ad89f6e3 - url: "https://pub.dev" - source: hosted - version: "1.1.3" - shelf_web_socket: - dependency: transitive - description: - name: shelf_web_socket - sha256: cc36c297b52866d203dbf9332263c94becc2fe0ceaa9681d07b6ef9807023b67 - url: "https://pub.dev" - source: hosted - version: "2.0.1" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_gen: - dependency: transitive - description: - name: source_gen - sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" - url: "https://pub.dev" - source: hosted - version: "1.5.0" - source_map_stack_trace: - dependency: transitive - description: - name: source_map_stack_trace - sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b - url: "https://pub.dev" - source: hosted - version: "2.1.2" - source_maps: - dependency: transitive - description: - name: source_maps - sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" - url: "https://pub.dev" - source: hosted - version: "0.10.12" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - stream_transform: - dependency: transitive - description: - name: stream_transform - sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - tar: - dependency: transitive - description: - name: tar - sha256: "22f67e2d77b51050436620b2a5de521c58ca6f0b75af1d9ab3c8cae2eae58fcd" - url: "https://pub.dev" - source: hosted - version: "1.0.5" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test: - dependency: transitive - description: - name: test - sha256: "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e" - url: "https://pub.dev" - source: hosted - version: "1.25.7" - test_api: - dependency: transitive - description: - name: test_api - sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" - url: "https://pub.dev" - source: hosted - version: "0.7.2" - test_core: - dependency: transitive - description: - name: test_core - sha256: "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696" - url: "https://pub.dev" - source: hosted - version: "0.6.4" - timing: - dependency: transitive - description: - name: timing - sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" - url: "https://pub.dev" - source: hosted - version: "1.0.1" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" - url: "https://pub.dev" - source: hosted - version: "14.2.5" - watcher: - dependency: transitive - description: - name: watcher - sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - web: - dependency: transitive - description: - name: web - sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb - url: "https://pub.dev" - source: hosted - version: "1.1.0" - web_socket: - dependency: transitive - description: - name: web_socket - sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83" - url: "https://pub.dev" - source: hosted - version: "0.1.6" - web_socket_channel: - dependency: transitive - description: - name: web_socket_channel - sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f" - url: "https://pub.dev" - source: hosted - version: "3.0.1" - webkit_inspection_protocol: - dependency: transitive - description: - name: webkit_inspection_protocol - sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - yaml: - dependency: transitive - description: - name: yaml - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" - url: "https://pub.dev" - source: hosted - version: "3.1.2" -sdks: - dart: ">=3.5.0 <4.0.0" - flutter: ">=3.18.0-18.0.pre.54" diff --git a/packages/instabug_flutter_modular/pubspec.yaml b/packages/instabug_flutter_modular/pubspec.yaml deleted file mode 100644 index 4015404b9..000000000 --- a/packages/instabug_flutter_modular/pubspec.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: instabug_flutter_modular -description: An add-on for the Instabug Flutter SDK that provides screen loading support for Flutter Modular v5. -version: 1.0.0 -homepage: https://www.instabug.com -repository: https://github.com/Instabug/Instabug-Flutter/tree/refactor/monorepo/packages/instabug_flutter_modular - -environment: - sdk: '>=3.1.2 <4.0.0' - flutter: ">=1.17.0" - -dependencies: - flutter: - sdk: flutter - flutter_modular: '>=5.0.0 <6.0.0' - instabug_flutter: '>=13.2.0 <14.0.0' - meta: ^1.3.0 - -dev_dependencies: - build_runner: ^2.0.3 - flutter_lints: ^2.0.0 - flutter_test: - sdk: flutter - # mockito v5.2.0 is needed for running Flutter 2 tests on CI - mockito: '>=5.2.0 <=5.4.4' - # A specific version isn't specified as we want to use the version used in flutter_modular - modular_core: - pana: ^0.21.0 diff --git a/packages/instabug_flutter_modular/release.sh b/packages/instabug_flutter_modular/release.sh deleted file mode 100755 index b30831736..000000000 --- a/packages/instabug_flutter_modular/release.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -VERSION=$(egrep -o "version: ([0-9]-*.*)+[0-9]" pubspec.yaml | cut -d ":" -f 2) -if [ ! "${VERSION}" ] || [ -z "${VERSION}" ];then - echo "Instabug: err: Version Number not found." - exit 1 -else - mkdir -p $HOME/.config/dart - cat < $HOME/.config/dart/pub-credentials.json - ${PUB_CREDENTIALS} - -EOF - flutter packages pub publish -f -fi \ No newline at end of file diff --git a/packages/instabug_flutter_modular/test/src/instabug_modular_manager_test.dart b/packages/instabug_flutter_modular/test/src/instabug_modular_manager_test.dart deleted file mode 100644 index 85b4aa011..000000000 --- a/packages/instabug_flutter_modular/test/src/instabug_modular_manager_test.dart +++ /dev/null @@ -1,201 +0,0 @@ -// ignore_for_file: avoid_dynamic_calls - -import 'package:flutter/widgets.dart'; -import 'package:flutter_modular/flutter_modular.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:instabug_flutter/instabug_flutter.dart'; -import 'package:instabug_flutter_modular/instabug_flutter_modular.dart'; -import 'package:instabug_flutter_modular/src/instabug_modular_manager.dart'; -import 'package:mockito/annotations.dart'; -import 'package:modular_core/modular_core.dart'; - -import 'instabug_modular_manager_test.mocks.dart'; - -@GenerateNiceMocks([ - MockSpec(), - MockSpec(), - MockSpec(), - MockSpec(), - MockSpec(), - MockSpec(), -]) -void main() { - late MockInstabugModule mockInstabugModule; - late MockModule mockModule; - late MockWidget mockWidget; - late MockBuildContext mockContext; - late MockModularArguments mockArgs; - - setUp(() { - mockInstabugModule = MockInstabugModule(); - mockModule = MockModule(); - mockWidget = MockWidget(); - mockContext = MockBuildContext(); - mockArgs = MockModularArguments(); - }); - - test('[wrapRoutes] with simple list', () { - // Arrange - final routes = [ - ChildRoute('/home', child: (_, __) => mockWidget), - ModuleRoute('/profile', module: mockModule), - ]; - - // Act - final wrappedRoutes = InstabugModularManager.instance.wrapRoutes(routes); - - // Assert - expect(wrappedRoutes.length, 2); - expect(wrappedRoutes[0].name, '/home'); - expect(wrappedRoutes[1].name, '/profile'); - }); - - test('[wrapRoutes] with nested route', () { - // Arrange - final routes = [ - ChildRoute( - '/users', - child: (_, __) => mockWidget, - children: [ - ModuleRoute('/list', module: mockModule), - ModuleRoute('/details', module: mockModule), - ], - ), - ]; - - // Act - final wrappedRoutes = InstabugModularManager.instance.wrapRoutes(routes); - - // Assert - expect(wrappedRoutes.length, 1); - expect(wrappedRoutes[0].name, '/users'); - expect(wrappedRoutes[0].children.length, 2); - expect(wrappedRoutes[0].children[0].name, '/list'); - expect(wrappedRoutes[0].children[1].name, '/details'); - }); - - test('[wrapRoute] with [ModuleRoute] should wrap with [InstabugModule]', () { - // Arrange - final route = ModuleRoute('/home', module: mockInstabugModule); - - // Act - final wrappedRoute = - InstabugModularManager.instance.wrapRoute(route) as dynamic; - - // Assert - expect(wrappedRoute.name, '/home'); - expect(wrappedRoute.context.module, isA()); - }); - - test( - '[wrapRoute] with [ParallelRoute] should wrap child with [InstabugCaptureScreenLoading]', - () { - // Arrange - final route = ChildRoute( - '/profile', - child: (context, args) => mockWidget, - ); - - // Act - final wrappedRoute = - InstabugModularManager.instance.wrapRoute(route) as dynamic; - - final widget = wrappedRoute.child(mockContext, mockArgs); - - // Assert - expect(wrappedRoute.name, '/profile'); - expect(widget, isA()); - }); - - test( - '[wrapRoutes] should wrap child property with [InstabugCaptureScreenLoading] and preserve the rest of its properties', - () { - // Arrange - final customTransition = MockCustomTransition(); - const duration = Duration.zero; - final guards = []; - const transition = TransitionType.downToUp; - - final homeRoute = ChildRoute( - '/home', - child: (context, args) => mockWidget, - customTransition: customTransition, - duration: duration, - guards: guards, - transition: transition, - ); - - final profileRoute = ChildRoute( - '/profile', - child: (context, args) => mockWidget, - customTransition: customTransition, - duration: duration, - guards: guards, - transition: transition, - ); - final routes = [homeRoute, profileRoute]; - - // Act - final wrappedRoutes = - InstabugModularManager.instance.wrapRoutes(routes) as List; - - for (final element in wrappedRoutes) { - final widget = element.child(mockContext, mockArgs); - - // Assert - expect(widget, isA()); - expect(element.customTransition, customTransition); - expect(element.duration, duration); - expect(element.transition, transition); - } - }); - - test('[wrapRoutes] with nested route', () { - // Arrange - final routes = [ - ChildRoute( - '/users', - child: (_, __) => mockWidget, - children: [ - ModuleRoute('/list', module: mockModule), - ModuleRoute('/details', module: mockModule), - ], - ), - ]; - - // Act - final wrappedRoutes = InstabugModularManager.instance.wrapRoutes(routes); - - // Assert - expect(wrappedRoutes.length, 1); - expect(wrappedRoutes[0].name, '/users'); - expect(wrappedRoutes[0].children.length, 2); - expect(wrappedRoutes[0].children[0].name, '/list'); - expect(wrappedRoutes[0].children[1].name, '/details'); - }); - - test('[wrapRoute] with custom parent path should add it to the path', () { - // Arrange - final route = ModuleRoute('/home', module: mockModule); - - // Act - final wrappedRoute = InstabugModularManager.instance - .wrapRoute(route, parent: '/users') as dynamic; - - // Assert - expect(wrappedRoute.context.path, '/users/home'); - }); - - test('[wrapRoute] with wrapModules set to false', () { - // Arrange - final route = ModuleRoute('/home', module: mockModule); - - // Act - final wrappedRoute = InstabugModularManager.instance - .wrapRoute(route, wrapModules: false) as dynamic; - - // Assert - expect(wrappedRoute.name, '/home'); - expect(wrappedRoute.context.module, isA()); - }); -} diff --git a/packages/instabug_http_client/CHANGELOG.md b/packages/instabug_http_client/CHANGELOG.md deleted file mode 100644 index ebe79c1b8..000000000 --- a/packages/instabug_http_client/CHANGELOG.md +++ /dev/null @@ -1,38 +0,0 @@ -# Changelog - -## [2.5.0] - 18/11/2024 - -### Added - -- Add support for tracing network requests from Instabug to services like Datadog and New Relic ([#21](https://github.com/Instabug/Instabug-Dart-http-Adapter/pull/21)). - -## [2.4.0] - 7/05/2024 - -### Added - -- Add support for Instabug Flutter SDK v12 and v13 ([#17](https://github.com/Instabug/Instabug-Dart-http-Adapter/pull/17)). - -## [2.3.0] - 3/11/2022 - -- Adds support for MultipartRequest. - -## [2.2.1] - 2/8/2022 - -- Bumps [instabug_flutter](https://pub.dev/packages/instabug_flutter) to v11 - -## [2.2.0] - 11/4/2022 - -- Adds support for logging network requests using `send` method. - -## [2.1.0] - 5/1/2022 - -- Fixes network log compilation error. -- Adds payload size for network log. - -## [2.0.0] - 30/11/2021 - -- Upgrades to null safety. - -## [1.0.0] - 29/7/2019 - -- Adds implementation for the instabug_http_client library which supports Instabug network logging for the dart library: http. diff --git a/packages/instabug_http_client/LICENSE b/packages/instabug_http_client/LICENSE deleted file mode 100644 index 80d729766..000000000 --- a/packages/instabug_http_client/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/packages/instabug_http_client/README.md b/packages/instabug_http_client/README.md deleted file mode 100644 index c367d4e8b..000000000 --- a/packages/instabug_http_client/README.md +++ /dev/null @@ -1,36 +0,0 @@ -# instabug_http_client - -A dart package to support Instabug network logging for the external dart [http](https://pub.dev/packages/http) package. - -## Getting Started - -You can choose to attach all your network requests data to the Instabug reports being sent to the dashboard. See the details below on how to enable the feature for the `http` package. - -### Installation - -1. Add the dependency to your project `pubspec.yml`: - -```yaml -dependencies: - instabug_http_client: -``` - -2. Install the package by running the following command. - -```bash -flutter packages get -``` - -### Usage - -To enable logging, use the custom http client provided by Instabug: - -```dart -final client = InstabugHttpClient(); -``` - -Then proceed to use the package normally: - -```dart -final response = await client.get(Uri.parse(URL)); -``` diff --git a/packages/instabug_http_client/example/.metadata b/packages/instabug_http_client/example/.metadata deleted file mode 100644 index 5a023280a..000000000 --- a/packages/instabug_http_client/example/.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: 7e9793dee1b85a243edd0e06cb1658e98b077561 - channel: stable - -project_type: app diff --git a/packages/instabug_http_client/example/README.md b/packages/instabug_http_client/example/README.md deleted file mode 100644 index a13562602..000000000 --- a/packages/instabug_http_client/example/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# example - -A new Flutter project. - -## Getting Started - -This project is a starting point for a Flutter application. - -A few resources to get you started if this is your first Flutter project: - -- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) - -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, -samples, guidance on mobile development, and a full API reference. diff --git a/packages/instabug_http_client/example/analysis_options.yaml b/packages/instabug_http_client/example/analysis_options.yaml deleted file mode 100644 index 61b6c4de1..000000000 --- a/packages/instabug_http_client/example/analysis_options.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# This file configures the analyzer, which statically analyzes Dart code to -# check for errors, warnings, and lints. -# -# The issues identified by the analyzer are surfaced in the UI of Dart-enabled -# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be -# invoked from the command line by running `flutter analyze`. - -# The following line activates a set of recommended lints for Flutter apps, -# packages, and plugins designed to encourage good coding practices. -include: package:flutter_lints/flutter.yaml - -linter: - # The lint rules applied to this project can be customized in the - # section below to disable rules from the `package:flutter_lints/flutter.yaml` - # included above or to enable additional rules. A list of all available lints - # and their documentation is published at - # https://dart-lang.github.io/linter/lints/index.html. - # - # Instead of disabling a lint rule for the entire project in the - # section below, it can also be suppressed for a single line of code - # or a specific dart file by using the `// ignore: name_of_lint` and - # `// ignore_for_file: name_of_lint` syntax on the line or in the file - # producing the lint. - rules: - # avoid_print: false # Uncomment to disable the `avoid_print` rule - # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options diff --git a/packages/instabug_http_client/example/android/.gitignore b/packages/instabug_http_client/example/android/.gitignore deleted file mode 100644 index 6f568019d..000000000 --- a/packages/instabug_http_client/example/android/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -gradle-wrapper.jar -/.gradle -/captures/ -/gradlew -/gradlew.bat -/local.properties -GeneratedPluginRegistrant.java - -# Remember to never publicly share your keystore. -# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app -key.properties -**/*.keystore -**/*.jks diff --git a/packages/instabug_http_client/example/android/app/build.gradle b/packages/instabug_http_client/example/android/app/build.gradle deleted file mode 100644 index 5fe3c929f..000000000 --- a/packages/instabug_http_client/example/android/app/build.gradle +++ /dev/null @@ -1,68 +0,0 @@ -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' -} - -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - -android { - compileSdkVersion flutter.compileSdkVersion - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - - kotlinOptions { - jvmTarget = '1.8' - } - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - } - - defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.example" - minSdkVersion flutter.minSdkVersion - targetSdkVersion flutter.targetSdkVersion - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName - } - - buildTypes { - release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug - } - } -} - -flutter { - source '../..' -} - -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} diff --git a/packages/instabug_http_client/example/android/app/src/debug/AndroidManifest.xml b/packages/instabug_http_client/example/android/app/src/debug/AndroidManifest.xml deleted file mode 100644 index c208884f3..000000000 --- a/packages/instabug_http_client/example/android/app/src/debug/AndroidManifest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/packages/instabug_http_client/example/android/app/src/main/AndroidManifest.xml b/packages/instabug_http_client/example/android/app/src/main/AndroidManifest.xml deleted file mode 100644 index da82b5dba..000000000 --- a/packages/instabug_http_client/example/android/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - diff --git a/packages/instabug_http_client/example/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java b/packages/instabug_http_client/example/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java deleted file mode 100644 index 9213f130f..000000000 --- a/packages/instabug_http_client/example/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated file. -// If you wish to remove Flutter's multidex support, delete this entire file. - -package io.flutter.app; - -import android.content.Context; -import androidx.annotation.CallSuper; -import androidx.multidex.MultiDex; - -/** - * Extension of {@link io.flutter.app.FlutterApplication}, adding multidex support. - */ -public class FlutterMultiDexApplication extends FlutterApplication { - @Override - @CallSuper - protected void attachBaseContext(Context base) { - super.attachBaseContext(base); - MultiDex.install(this); - } -} diff --git a/packages/instabug_http_client/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt b/packages/instabug_http_client/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt deleted file mode 100644 index e793a000d..000000000 --- a/packages/instabug_http_client/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt +++ /dev/null @@ -1,6 +0,0 @@ -package com.example.example - -import io.flutter.embedding.android.FlutterActivity - -class MainActivity: FlutterActivity() { -} diff --git a/packages/instabug_http_client/example/android/app/src/main/res/drawable-v21/launch_background.xml b/packages/instabug_http_client/example/android/app/src/main/res/drawable-v21/launch_background.xml deleted file mode 100644 index f74085f3f..000000000 --- a/packages/instabug_http_client/example/android/app/src/main/res/drawable-v21/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/packages/instabug_http_client/example/android/app/src/main/res/drawable/launch_background.xml b/packages/instabug_http_client/example/android/app/src/main/res/drawable/launch_background.xml deleted file mode 100644 index 304732f88..000000000 --- a/packages/instabug_http_client/example/android/app/src/main/res/drawable/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/packages/instabug_http_client/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/packages/instabug_http_client/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index db77bb4b7..000000000 Binary files a/packages/instabug_http_client/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_http_client/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/packages/instabug_http_client/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 17987b79b..000000000 Binary files a/packages/instabug_http_client/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_http_client/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/packages/instabug_http_client/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index 09d439148..000000000 Binary files a/packages/instabug_http_client/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_http_client/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/packages/instabug_http_client/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index d5f1c8d34..000000000 Binary files a/packages/instabug_http_client/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_http_client/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/packages/instabug_http_client/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 4d6372eeb..000000000 Binary files a/packages/instabug_http_client/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/packages/instabug_http_client/example/android/app/src/main/res/values-night/styles.xml b/packages/instabug_http_client/example/android/app/src/main/res/values-night/styles.xml deleted file mode 100644 index 3db14bb53..000000000 --- a/packages/instabug_http_client/example/android/app/src/main/res/values-night/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/packages/instabug_http_client/example/android/app/src/main/res/values/styles.xml b/packages/instabug_http_client/example/android/app/src/main/res/values/styles.xml deleted file mode 100644 index d460d1e92..000000000 --- a/packages/instabug_http_client/example/android/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/packages/instabug_http_client/example/android/app/src/profile/AndroidManifest.xml b/packages/instabug_http_client/example/android/app/src/profile/AndroidManifest.xml deleted file mode 100644 index c208884f3..000000000 --- a/packages/instabug_http_client/example/android/app/src/profile/AndroidManifest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/packages/instabug_http_client/example/android/build.gradle b/packages/instabug_http_client/example/android/build.gradle deleted file mode 100644 index 4256f9173..000000000 --- a/packages/instabug_http_client/example/android/build.gradle +++ /dev/null @@ -1,31 +0,0 @@ -buildscript { - ext.kotlin_version = '1.6.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:4.1.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - -allprojects { - repositories { - google() - mavenCentral() - } -} - -rootProject.buildDir = '../build' -subprojects { - project.buildDir = "${rootProject.buildDir}/${project.name}" -} -subprojects { - project.evaluationDependsOn(':app') -} - -task clean(type: Delete) { - delete rootProject.buildDir -} diff --git a/packages/instabug_http_client/example/android/gradle.properties b/packages/instabug_http_client/example/android/gradle.properties deleted file mode 100644 index 94adc3a3f..000000000 --- a/packages/instabug_http_client/example/android/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -org.gradle.jvmargs=-Xmx1536M -android.useAndroidX=true -android.enableJetifier=true diff --git a/packages/instabug_http_client/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/instabug_http_client/example/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index bc6a58afd..000000000 --- a/packages/instabug_http_client/example/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Fri Jun 23 08:50:38 CEST 2017 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip diff --git a/packages/instabug_http_client/example/android/settings.gradle b/packages/instabug_http_client/example/android/settings.gradle deleted file mode 100644 index 44e62bcf0..000000000 --- a/packages/instabug_http_client/example/android/settings.gradle +++ /dev/null @@ -1,11 +0,0 @@ -include ':app' - -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() - -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } - -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/packages/instabug_http_client/example/ios/.gitignore b/packages/instabug_http_client/example/ios/.gitignore deleted file mode 100644 index 7a7f9873a..000000000 --- a/packages/instabug_http_client/example/ios/.gitignore +++ /dev/null @@ -1,34 +0,0 @@ -**/dgph -*.mode1v3 -*.mode2v3 -*.moved-aside -*.pbxuser -*.perspectivev3 -**/*sync/ -.sconsign.dblite -.tags* -**/.vagrant/ -**/DerivedData/ -Icon? -**/Pods/ -**/.symlinks/ -profile -xcuserdata -**/.generated/ -Flutter/App.framework -Flutter/Flutter.framework -Flutter/Flutter.podspec -Flutter/Generated.xcconfig -Flutter/ephemeral/ -Flutter/app.flx -Flutter/app.zip -Flutter/flutter_assets/ -Flutter/flutter_export_environment.sh -ServiceDefinitions.json -Runner/GeneratedPluginRegistrant.* - -# Exceptions to above rules. -!default.mode1v3 -!default.mode2v3 -!default.pbxuser -!default.perspectivev3 diff --git a/packages/instabug_http_client/example/ios/Podfile b/packages/instabug_http_client/example/ios/Podfile deleted file mode 100644 index 0c985a221..000000000 --- a/packages/instabug_http_client/example/ios/Podfile +++ /dev/null @@ -1,41 +0,0 @@ -# Uncomment this line to define a global platform for your project -platform :ios, '13.4' - -# CocoaPods analytics sends network stats synchronously affecting flutter build latency. -ENV['COCOAPODS_DISABLE_STATS'] = 'true' - -project 'Runner', { - 'Debug' => :debug, - 'Profile' => :release, - 'Release' => :release, -} - -def flutter_root - generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) - unless File.exist?(generated_xcode_build_settings_path) - raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" - end - - File.foreach(generated_xcode_build_settings_path) do |line| - matches = line.match(/FLUTTER_ROOT\=(.*)/) - return matches[1].strip if matches - end - raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" -end - -require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) - -flutter_ios_podfile_setup - -target 'Runner' do - use_frameworks! - use_modular_headers! - - flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) -end - -post_install do |installer| - installer.pods_project.targets.each do |target| - flutter_additional_ios_build_settings(target) - end -end diff --git a/packages/instabug_http_client/example/ios/Podfile.lock b/packages/instabug_http_client/example/ios/Podfile.lock deleted file mode 100644 index 8a17c66b4..000000000 --- a/packages/instabug_http_client/example/ios/Podfile.lock +++ /dev/null @@ -1,29 +0,0 @@ -PODS: - - Flutter (1.0.0) - - Instabug (14.0.0) - - instabug_flutter (14.0.0): - - Flutter - - Instabug (= 14.0.0) - -DEPENDENCIES: - - Flutter (from `Flutter`) - - instabug_flutter (from `.symlinks/plugins/instabug_flutter/ios`) - -SPEC REPOS: - trunk: - - Instabug - -EXTERNAL SOURCES: - Flutter: - :path: Flutter - instabug_flutter: - :path: ".symlinks/plugins/instabug_flutter/ios" - -SPEC CHECKSUMS: - Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 - Instabug: a0beffc01658773e2fac549845782f8937707dc4 - instabug_flutter: ff8ab5ff34a476b1d2d887478ec190cda962b973 - -PODFILE CHECKSUM: eb179eda02c4d9ce45db6b1912a419962f739320 - -COCOAPODS: 1.14.3 diff --git a/packages/instabug_http_client/example/ios/Runner.xcodeproj/project.pbxproj b/packages/instabug_http_client/example/ios/Runner.xcodeproj/project.pbxproj deleted file mode 100644 index 1ddefc8fe..000000000 --- a/packages/instabug_http_client/example/ios/Runner.xcodeproj/project.pbxproj +++ /dev/null @@ -1,552 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 50; - objects = { - -/* Begin PBXBuildFile section */ - 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; - 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; - 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; - AD44C4DB39F7C3968B8C56EB /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18B300F826F2074CB5E450C4 /* Pods_Runner.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 9705A1C41CF9048500538489 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; - 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; - 18B300F826F2074CB5E450C4 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; - 3E0436312822B722E186D653 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; - 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; - 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; - 90FF03378459C589A4D9DA6E /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; - 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; - 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; - 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - DE25EB3DE5B281AB8980A728 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 97C146EB1CF9000F007C117D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - AD44C4DB39F7C3968B8C56EB /* Pods_Runner.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 3456E8E25F114A239880D241 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 18B300F826F2074CB5E450C4 /* Pods_Runner.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 4955E253C000584F8EA1A042 /* Pods */ = { - isa = PBXGroup; - children = ( - 90FF03378459C589A4D9DA6E /* Pods-Runner.debug.xcconfig */, - 3E0436312822B722E186D653 /* Pods-Runner.release.xcconfig */, - DE25EB3DE5B281AB8980A728 /* Pods-Runner.profile.xcconfig */, - ); - name = Pods; - path = Pods; - sourceTree = ""; - }; - 9740EEB11CF90186004384FC /* Flutter */ = { - isa = PBXGroup; - children = ( - 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, - 9740EEB21CF90195004384FC /* Debug.xcconfig */, - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, - 9740EEB31CF90195004384FC /* Generated.xcconfig */, - ); - name = Flutter; - sourceTree = ""; - }; - 97C146E51CF9000F007C117D = { - isa = PBXGroup; - children = ( - 9740EEB11CF90186004384FC /* Flutter */, - 97C146F01CF9000F007C117D /* Runner */, - 97C146EF1CF9000F007C117D /* Products */, - 4955E253C000584F8EA1A042 /* Pods */, - 3456E8E25F114A239880D241 /* Frameworks */, - ); - sourceTree = ""; - }; - 97C146EF1CF9000F007C117D /* Products */ = { - isa = PBXGroup; - children = ( - 97C146EE1CF9000F007C117D /* Runner.app */, - ); - name = Products; - sourceTree = ""; - }; - 97C146F01CF9000F007C117D /* Runner */ = { - isa = PBXGroup; - children = ( - 97C146FA1CF9000F007C117D /* Main.storyboard */, - 97C146FD1CF9000F007C117D /* Assets.xcassets */, - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, - 97C147021CF9000F007C117D /* Info.plist */, - 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, - 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, - 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, - 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, - ); - path = Runner; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 97C146ED1CF9000F007C117D /* Runner */ = { - isa = PBXNativeTarget; - buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; - buildPhases = ( - F412A5213E8CA6290AF8A003 /* [CP] Check Pods Manifest.lock */, - 9740EEB61CF901F6004384FC /* Run Script */, - 97C146EA1CF9000F007C117D /* Sources */, - 97C146EB1CF9000F007C117D /* Frameworks */, - 97C146EC1CF9000F007C117D /* Resources */, - 9705A1C41CF9048500538489 /* Embed Frameworks */, - 3B06AD1E1E4923F5004D2608 /* Thin Binary */, - 9BDEDB79123E51897883C720 /* [CP] Embed Pods Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Runner; - productName = Runner; - productReference = 97C146EE1CF9000F007C117D /* Runner.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 97C146E61CF9000F007C117D /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 1300; - ORGANIZATIONNAME = ""; - TargetAttributes = { - 97C146ED1CF9000F007C117D = { - CreatedOnToolsVersion = 7.3.1; - LastSwiftMigration = 1100; - }; - }; - }; - buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 97C146E51CF9000F007C117D; - productRefGroup = 97C146EF1CF9000F007C117D /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 97C146ED1CF9000F007C117D /* Runner */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 97C146EC1CF9000F007C117D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, - 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Thin Binary"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; - }; - 9740EEB61CF901F6004384FC /* Run Script */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Run Script"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; - }; - 9BDEDB79123E51897883C720 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - F412A5213E8CA6290AF8A003 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 97C146EA1CF9000F007C117D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, - 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 97C146FA1CF9000F007C117D /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C146FB1CF9000F007C117D /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C147001CF9000F007C117D /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 249021D3217E4FDB00AE95B9 /* Profile */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Profile; - }; - 249021D4217E4FDB00AE95B9 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = XNK224R4SF; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.example; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Profile; - }; - 97C147031CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 97C147041CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = iphoneos; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 97C147061CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = XNK224R4SF; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.example; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Debug; - }; - 97C147071CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = XNK224R4SF; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.example; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147031CF9000F007C117D /* Debug */, - 97C147041CF9000F007C117D /* Release */, - 249021D3217E4FDB00AE95B9 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147061CF9000F007C117D /* Debug */, - 97C147071CF9000F007C117D /* Release */, - 249021D4217E4FDB00AE95B9 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 97C146E61CF9000F007C117D /* Project object */; -} diff --git a/packages/instabug_http_client/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/packages/instabug_http_client/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a62..000000000 --- a/packages/instabug_http_client/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/packages/instabug_http_client/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/instabug_http_client/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/packages/instabug_http_client/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/packages/instabug_http_client/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/instabug_http_client/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index f9b0d7c5e..000000000 --- a/packages/instabug_http_client/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,8 +0,0 @@ - - - - - PreviewsEnabled - - - diff --git a/packages/instabug_http_client/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/instabug_http_client/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme deleted file mode 100644 index c87d15a33..000000000 --- a/packages/instabug_http_client/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/instabug_http_client/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/packages/instabug_http_client/example/ios/Runner.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 21a3cc14c..000000000 --- a/packages/instabug_http_client/example/ios/Runner.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/packages/instabug_http_client/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/instabug_http_client/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/packages/instabug_http_client/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/packages/instabug_http_client/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/instabug_http_client/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index f9b0d7c5e..000000000 --- a/packages/instabug_http_client/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,8 +0,0 @@ - - - - - PreviewsEnabled - - - diff --git a/packages/instabug_http_client/example/ios/Runner/AppDelegate.swift b/packages/instabug_http_client/example/ios/Runner/AppDelegate.swift deleted file mode 100644 index 70693e4a8..000000000 --- a/packages/instabug_http_client/example/ios/Runner/AppDelegate.swift +++ /dev/null @@ -1,13 +0,0 @@ -import UIKit -import Flutter - -@UIApplicationMain -@objc class AppDelegate: FlutterAppDelegate { - override func application( - _ application: UIApplication, - didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? - ) -> Bool { - GeneratedPluginRegistrant.register(with: self) - return super.application(application, didFinishLaunchingWithOptions: launchOptions) - } -} diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index d36b1fab2..000000000 --- a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "images" : [ - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@3x.png", - "scale" : "3x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@3x.png", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@3x.png", - "scale" : "3x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@2x.png", - "scale" : "2x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@3x.png", - "scale" : "3x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@1x.png", - "scale" : "1x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@1x.png", - "scale" : "1x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@1x.png", - "scale" : "1x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@2x.png", - "scale" : "2x" - }, - { - "size" : "83.5x83.5", - "idiom" : "ipad", - "filename" : "Icon-App-83.5x83.5@2x.png", - "scale" : "2x" - }, - { - "size" : "1024x1024", - "idiom" : "ios-marketing", - "filename" : "Icon-App-1024x1024@1x.png", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png deleted file mode 100644 index dc9ada472..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png deleted file mode 100644 index 28c6bf030..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png deleted file mode 100644 index 2ccbfd967..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png deleted file mode 100644 index f091b6b0b..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png deleted file mode 100644 index 4cde12118..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png deleted file mode 100644 index d0ef06e7e..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png deleted file mode 100644 index dcdc2306c..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png deleted file mode 100644 index 2ccbfd967..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png deleted file mode 100644 index c8f9ed8f5..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png deleted file mode 100644 index a6d6b8609..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png deleted file mode 100644 index a6d6b8609..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png deleted file mode 100644 index 75b2d164a..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png deleted file mode 100644 index c4df70d39..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png deleted file mode 100644 index 6a84f41e1..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png deleted file mode 100644 index d0e1f5853..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json deleted file mode 100644 index 0bedcf2fd..000000000 --- a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "LaunchImage.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "LaunchImage@2x.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "LaunchImage@3x.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png deleted file mode 100644 index 9da19eaca..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png deleted file mode 100644 index 9da19eaca..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png deleted file mode 100644 index 9da19eaca..000000000 Binary files a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png and /dev/null differ diff --git a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md deleted file mode 100644 index 89c2725b7..000000000 --- a/packages/instabug_http_client/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Launch Screen Assets - -You can customize the launch screen with your own desired assets by replacing the image files in this directory. - -You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/packages/instabug_http_client/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/packages/instabug_http_client/example/ios/Runner/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index f2e259c7c..000000000 --- a/packages/instabug_http_client/example/ios/Runner/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/instabug_http_client/example/ios/Runner/Base.lproj/Main.storyboard b/packages/instabug_http_client/example/ios/Runner/Base.lproj/Main.storyboard deleted file mode 100644 index f3c28516f..000000000 --- a/packages/instabug_http_client/example/ios/Runner/Base.lproj/Main.storyboard +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/instabug_http_client/example/ios/Runner/Info.plist b/packages/instabug_http_client/example/ios/Runner/Info.plist deleted file mode 100644 index 5baf7a1cc..000000000 --- a/packages/instabug_http_client/example/ios/Runner/Info.plist +++ /dev/null @@ -1,47 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleDisplayName - Example - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - example - CFBundlePackageType - APPL - CFBundleShortVersionString - $(FLUTTER_BUILD_NAME) - CFBundleSignature - ???? - CFBundleVersion - $(FLUTTER_BUILD_NUMBER) - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UIViewControllerBasedStatusBarAppearance - - - diff --git a/packages/instabug_http_client/example/ios/Runner/Runner-Bridging-Header.h b/packages/instabug_http_client/example/ios/Runner/Runner-Bridging-Header.h deleted file mode 100644 index 308a2a560..000000000 --- a/packages/instabug_http_client/example/ios/Runner/Runner-Bridging-Header.h +++ /dev/null @@ -1 +0,0 @@ -#import "GeneratedPluginRegistrant.h" diff --git a/packages/instabug_http_client/example/lib/main.dart b/packages/instabug_http_client/example/lib/main.dart deleted file mode 100644 index da0018df8..000000000 --- a/packages/instabug_http_client/example/lib/main.dart +++ /dev/null @@ -1,73 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:instabug_http_client/instabug_http_client.dart'; -import 'package:instabug_flutter/instabug_flutter.dart'; - -Future main() async { - runApp(const MyApp()); - Instabug.init( - token: 'ed6f659591566da19b67857e1b9d40ab', - invocationEvents: [InvocationEvent.floatingButton]); - final client = InstabugHttpClient(); - await client.get(Uri.parse('https://google.com')); -} - -class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); - - @override - Widget build(BuildContext context) { - return MaterialApp( - title: 'Flutter Demo', - theme: ThemeData( - primarySwatch: Colors.blue, - ), - home: const MyHomePage(title: 'Flutter Demo Home Page'), - ); - } -} - -class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, required this.title}) : super(key: key); - final String title; - - @override - State createState() => _MyHomePageState(); -} - -class _MyHomePageState extends State { - int _counter = 0; - - void _incrementCounter() { - setState(() { - _counter++; - }); - } - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - title: Text(widget.title), - ), - body: Center( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - const Text( - 'You have pushed the button this many times:', - ), - Text( - '$_counter', - style: Theme.of(context).textTheme.headlineMedium, - ), - ], - ), - ), - floatingActionButton: FloatingActionButton( - onPressed: _incrementCounter, - tooltip: 'Increment', - child: const Icon(Icons.add), - ), - ); - } -} diff --git a/packages/instabug_http_client/example/pubspec.lock b/packages/instabug_http_client/example/pubspec.lock deleted file mode 100644 index 78cb15f97..000000000 --- a/packages/instabug_http_client/example/pubspec.lock +++ /dev/null @@ -1,251 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 - url: "https://pub.dev" - source: hosted - version: "1.0.8" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493 - url: "https://pub.dev" - source: hosted - version: "1.0.4" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - http: - dependency: transitive - description: - name: http - sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" - url: "https://pub.dev" - source: hosted - version: "0.13.6" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" - url: "https://pub.dev" - source: hosted - version: "4.0.2" - instabug_flutter: - dependency: "direct overridden" - description: - path: "../../instabug_flutter" - relative: true - source: path - version: "14.0.0" - instabug_http_client: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "2.4.0" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" - url: "https://pub.dev" - source: hosted - version: "10.0.5" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" - url: "https://pub.dev" - source: hosted - version: "3.0.5" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" - url: "https://pub.dev" - source: hosted - version: "3.0.1" - lints: - dependency: transitive - description: - name: lints - sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c - url: "https://pub.dev" - source: hosted - version: "1.0.1" - matcher: - dependency: transitive - description: - name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb - url: "https://pub.dev" - source: hosted - version: "0.12.16+1" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec - url: "https://pub.dev" - source: hosted - version: "0.11.1" - meta: - dependency: transitive - description: - name: meta - sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 - url: "https://pub.dev" - source: hosted - version: "1.15.0" - path: - dependency: transitive - description: - name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.dev" - source: hosted - version: "1.9.0" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" - url: "https://pub.dev" - source: hosted - version: "0.7.2" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" - url: "https://pub.dev" - source: hosted - version: "14.2.5" -sdks: - dart: ">=3.5.0 <4.0.0" - flutter: ">=3.18.0-18.0.pre.54" diff --git a/packages/instabug_http_client/example/pubspec.yaml b/packages/instabug_http_client/example/pubspec.yaml deleted file mode 100644 index 9add5fe45..000000000 --- a/packages/instabug_http_client/example/pubspec.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: http_client_example -description: Demonstrates how to use the instabug_http_client package. - -publish_to: "none" - -version: 1.0.0+1 - -environment: - sdk: ">=2.12.0 <3.0.0" - -dependencies: - flutter: - sdk: flutter - cupertino_icons: ^1.0.2 - instabug_http_client: - path: ../ - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^1.0.0 - -flutter: - uses-material-design: true diff --git a/packages/instabug_http_client/lib/instabug_http_client.dart b/packages/instabug_http_client/lib/instabug_http_client.dart deleted file mode 100644 index 624d72cc1..000000000 --- a/packages/instabug_http_client/lib/instabug_http_client.dart +++ /dev/null @@ -1,175 +0,0 @@ -// ignore_for_file: invalid_use_of_internal_member - -library instabug_http_client; - -import 'dart:convert'; - -// to maintain supported versions prior to Flutter 3.3 -// ignore: unnecessary_import -import 'dart:typed_data'; - -import 'package:http/http.dart' as http; -import 'package:instabug_flutter/instabug_flutter.dart'; -import 'package:instabug_http_client/instabug_http_logger.dart'; -import 'package:meta/meta.dart'; - -class InstabugHttpClient extends InstabugHttpLogger implements http.Client { - InstabugHttpClient() : client = http.Client() { - logger = this; - } - - final NetworkLogger _networklogger = NetworkLogger(); - @visibleForTesting - http.Client client; - - @visibleForTesting - late InstabugHttpLogger logger; - - @override - void close() => client.close(); - - @override - Future delete( - Uri url, { - Map? headers, - Object? body, - Encoding? encoding, - }) async { - final startTime = DateTime.now(); - final requestHeader = headers ?? {}; - final w3cHeader = await getW3cHeader(requestHeader, startTime); - return client - .delete(url, body: body, headers: requestHeader, encoding: encoding) - .then((http.Response response) { - logger.onLogger(response, startTime: startTime, w3CHeader: w3cHeader); - return response; - }); - } - - Future getW3cHeader( - Map requestHeader, DateTime startTime) async { - final w3cHeader = await _networklogger.getW3CHeader( - requestHeader, - startTime.millisecondsSinceEpoch, - ); - if (w3cHeader?.isW3cHeaderFound == false && - w3cHeader?.w3CGeneratedHeader != null) { - requestHeader['traceparent'] = w3cHeader!.w3CGeneratedHeader!; - } - return w3cHeader; - } - - @override - Future get(Uri url, {Map? headers}) async { - final startTime = DateTime.now(); - final requestHeader = headers ?? {}; - final w3cHeader = await getW3cHeader(requestHeader, startTime); - return client - .get(url, headers: requestHeader) - .then((http.Response response) { - logger.onLogger(response, startTime: startTime, w3CHeader: w3cHeader); - return response; - }); - } - - @override - Future head(Uri url, {Map? headers}) async { - final startTime = DateTime.now(); - final requestHeader = headers ?? {}; - final w3cHeader = await getW3cHeader(requestHeader, startTime); - return client - .head(url, headers: requestHeader) - .then((http.Response response) { - logger.onLogger(response, startTime: startTime, w3CHeader: w3cHeader); - return response; - }); - } - - @override - Future patch( - Uri url, { - Map? headers, - Object? body, - Encoding? encoding, - }) async { - final startTime = DateTime.now(); - final requestHeader = headers ?? {}; - final w3cHeader = await getW3cHeader(requestHeader, startTime); - return client - .patch(url, headers: requestHeader, body: body, encoding: encoding) - .then((http.Response response) { - logger.onLogger(response, startTime: startTime, w3CHeader: w3cHeader); - return response; - }); - } - - @override - Future post( - Uri url, { - Map? headers, - Object? body, - Encoding? encoding, - }) async { - final startTime = DateTime.now(); - final requestHeader = headers ?? {}; - final w3cHeader = await getW3cHeader(requestHeader, startTime); - return client - .post(url, headers: requestHeader, body: body, encoding: encoding) - .then((http.Response response) { - logger.onLogger(response, startTime: startTime, w3CHeader: w3cHeader); - return response; - }); - } - - @override - Future put( - Uri url, { - Map? headers, - Object? body, - Encoding? encoding, - }) async { - final startTime = DateTime.now(); - final requestHeader = headers ?? {}; - final w3cHeader = await getW3cHeader(requestHeader, startTime); - return client - .put(url, headers: requestHeader, body: body, encoding: encoding) - .then((http.Response response) { - logger.onLogger(response, startTime: startTime, w3CHeader: w3cHeader); - return response; - }); - } - - @override - Future read(Uri url, {Map? headers}) => - client.read(url, headers: headers); - - @override - Future readBytes(Uri url, {Map? headers}) => - client.readBytes(url, headers: headers); - - @override - Future send(http.BaseRequest request) async { - final startTime = DateTime.now(); - final requestHeader = request.headers; - final w3cHeader = await getW3cHeader(requestHeader, startTime); - return client.send(request).then( - (http.StreamedResponse streamedResponse) => - http.Response.fromStream(streamedResponse) - .then((http.Response response) { - logger.onLogger(response, - startTime: startTime, w3CHeader: w3cHeader); - // Need to return new StreamedResponse, as body only can be listened once - return http.StreamedResponse( - Stream>.value(response.bodyBytes), - response.statusCode, - contentLength: response.contentLength, - request: response.request, - headers: response.headers, - isRedirect: response.isRedirect, - persistentConnection: response.persistentConnection, - reasonPhrase: response.reasonPhrase, - ); - }), - ); - } -} diff --git a/packages/instabug_http_client/lib/instabug_http_logger.dart b/packages/instabug_http_client/lib/instabug_http_logger.dart deleted file mode 100644 index a0b9fa6e7..000000000 --- a/packages/instabug_http_client/lib/instabug_http_logger.dart +++ /dev/null @@ -1,73 +0,0 @@ -import 'dart:convert'; - -import 'package:http/http.dart' as http; -import 'package:instabug_flutter/instabug_flutter.dart'; - -class InstabugHttpLogger { - void onLogger(http.Response response, - {DateTime? startTime, W3CHeader? w3CHeader}) { - final networkLogger = NetworkLogger(); - - final requestHeaders = {}; - response.request?.headers.forEach((String header, dynamic value) { - requestHeaders[header] = value; - }); - - final request = response.request; - - if (request == null) { - return; - } - final requestBody = request is http.MultipartRequest - ? json.encode(request.fields) - : request is http.Request - ? request.body - : ''; - - final requestData = NetworkData( - startTime: startTime!, - method: request.method, - url: request.url.toString(), - requestHeaders: requestHeaders, - requestBody: requestBody, - w3cHeader: w3CHeader, - ); - - final endTime = DateTime.now(); - - final responseHeaders = {}; - response.headers.forEach((String header, dynamic value) { - responseHeaders[header] = value; - }); - var requestBodySize = 0; - if (requestHeaders.containsKey('content-length')) { - requestBodySize = int.parse(responseHeaders['content-length'] ?? '0'); - } else { - requestBodySize = requestBody.length; - } - - var responseBodySize = 0; - if (responseHeaders.containsKey('content-length')) { - responseBodySize = int.parse(responseHeaders['content-length'] ?? '0'); - } else { - responseBodySize = response.body.length; - } - - networkLogger.networkLog( - requestData.copyWith( - status: response.statusCode, - duration: endTime.difference(requestData.startTime).inMicroseconds, - responseContentType: response.headers.containsKey('content-type') - ? response.headers['content-type'] - : '', - responseHeaders: responseHeaders, - responseBody: response.body, - requestBodySize: requestBodySize, - responseBodySize: responseBodySize, - requestContentType: request.headers.containsKey('content-type') - ? request.headers['content-type'] - : '', - ), - ); - } -} diff --git a/packages/instabug_http_client/pubspec.lock b/packages/instabug_http_client/pubspec.lock deleted file mode 100644 index 576d3ee35..000000000 --- a/packages/instabug_http_client/pubspec.lock +++ /dev/null @@ -1,713 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _fe_analyzer_shared: - dependency: transitive - description: - name: _fe_analyzer_shared - sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 - url: "https://pub.dev" - source: hosted - version: "72.0.0" - _macros: - dependency: transitive - description: dart - source: sdk - version: "0.3.2" - analyzer: - dependency: transitive - description: - name: analyzer - sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 - url: "https://pub.dev" - source: hosted - version: "6.7.0" - args: - dependency: transitive - description: - name: args - sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6 - url: "https://pub.dev" - source: hosted - version: "2.6.0" - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - build: - dependency: transitive - description: - name: build - sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - build_config: - dependency: transitive - description: - name: build_config - sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1 - url: "https://pub.dev" - source: hosted - version: "1.1.1" - build_daemon: - dependency: transitive - description: - name: build_daemon - sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9" - url: "https://pub.dev" - source: hosted - version: "4.0.2" - build_resolvers: - dependency: transitive - description: - name: build_resolvers - sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" - url: "https://pub.dev" - source: hosted - version: "2.4.2" - build_runner: - dependency: "direct dev" - description: - name: build_runner - sha256: "028819cfb90051c6b5440c7e574d1896f8037e3c96cf17aaeb054c9311cfbf4d" - url: "https://pub.dev" - source: hosted - version: "2.4.13" - build_runner_core: - dependency: transitive - description: - name: build_runner_core - sha256: f8126682b87a7282a339b871298cc12009cb67109cfa1614d6436fb0289193e0 - url: "https://pub.dev" - source: hosted - version: "7.3.2" - built_collection: - dependency: transitive - description: - name: built_collection - sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" - url: "https://pub.dev" - source: hosted - version: "5.1.1" - built_value: - dependency: transitive - description: - name: built_value - sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb - url: "https://pub.dev" - source: hosted - version: "8.9.2" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - checked_yaml: - dependency: transitive - description: - name: checked_yaml - sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff - url: "https://pub.dev" - source: hosted - version: "2.0.3" - cli_util: - dependency: transitive - description: - name: cli_util - sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 - url: "https://pub.dev" - source: hosted - version: "0.4.1" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - code_builder: - dependency: transitive - description: - name: code_builder - sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37 - url: "https://pub.dev" - source: hosted - version: "4.10.0" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - convert: - dependency: transitive - description: - name: convert - sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68 - url: "https://pub.dev" - source: hosted - version: "3.1.2" - coverage: - dependency: transitive - description: - name: coverage - sha256: "88b0fddbe4c92910fefc09cc0248f5e7f0cd23e450ded4c28f16ab8ee8f83268" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - crypto: - dependency: transitive - description: - name: crypto - sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855" - url: "https://pub.dev" - source: hosted - version: "3.0.6" - csslib: - dependency: transitive - description: - name: csslib - sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - dart_style: - dependency: transitive - description: - name: dart_style - sha256: "7856d364b589d1f08986e140938578ed36ed948581fbc3bc9aef1805039ac5ab" - url: "https://pub.dev" - source: hosted - version: "2.3.7" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - file: - dependency: transitive - description: - name: file - sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 - url: "https://pub.dev" - source: hosted - version: "7.0.1" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be - url: "https://pub.dev" - source: hosted - version: "1.1.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - frontend_server_client: - dependency: transitive - description: - name: frontend_server_client - sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 - url: "https://pub.dev" - source: hosted - version: "4.0.0" - glob: - dependency: transitive - description: - name: glob - sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - graphs: - dependency: transitive - description: - name: graphs - sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0" - url: "https://pub.dev" - source: hosted - version: "2.3.2" - html: - dependency: transitive - description: - name: html - sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a" - url: "https://pub.dev" - source: hosted - version: "0.15.4" - http: - dependency: "direct main" - description: - name: http - sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 - url: "https://pub.dev" - source: hosted - version: "1.2.2" - http_multi_server: - dependency: transitive - description: - name: http_multi_server - sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" - url: "https://pub.dev" - source: hosted - version: "3.2.1" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" - url: "https://pub.dev" - source: hosted - version: "4.0.2" - instabug_flutter: - dependency: "direct main" - description: - path: "../instabug_flutter" - relative: true - source: path - version: "14.0.0" - io: - dependency: transitive - description: - name: io - sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" - url: "https://pub.dev" - source: hosted - version: "1.0.4" - js: - dependency: transitive - description: - name: js - sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf - url: "https://pub.dev" - source: hosted - version: "0.7.1" - json_annotation: - dependency: transitive - description: - name: json_annotation - sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" - url: "https://pub.dev" - source: hosted - version: "4.9.0" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" - url: "https://pub.dev" - source: hosted - version: "10.0.5" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" - url: "https://pub.dev" - source: hosted - version: "3.0.5" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" - url: "https://pub.dev" - source: hosted - version: "3.0.1" - lints: - dependency: transitive - description: - name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 - url: "https://pub.dev" - source: hosted - version: "3.0.0" - logging: - dependency: transitive - description: - name: logging - sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 - url: "https://pub.dev" - source: hosted - version: "1.3.0" - macros: - dependency: transitive - description: - name: macros - sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" - url: "https://pub.dev" - source: hosted - version: "0.1.2-main.4" - markdown: - dependency: transitive - description: - name: markdown - sha256: ef2a1298144e3f985cc736b22e0ccdaf188b5b3970648f2d9dc13efd1d9df051 - url: "https://pub.dev" - source: hosted - version: "7.2.2" - matcher: - dependency: transitive - description: - name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb - url: "https://pub.dev" - source: hosted - version: "0.12.16+1" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec - url: "https://pub.dev" - source: hosted - version: "0.11.1" - meta: - dependency: "direct main" - description: - name: meta - sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 - url: "https://pub.dev" - source: hosted - version: "1.15.0" - mime: - dependency: transitive - description: - name: mime - sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6" - url: "https://pub.dev" - source: hosted - version: "2.0.0" - mockito: - dependency: "direct dev" - description: - name: mockito - sha256: "6841eed20a7befac0ce07df8116c8b8233ed1f4486a7647c7fc5a02ae6163917" - url: "https://pub.dev" - source: hosted - version: "5.4.4" - node_preamble: - dependency: transitive - description: - name: node_preamble - sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" - url: "https://pub.dev" - source: hosted - version: "2.0.2" - package_config: - dependency: transitive - description: - name: package_config - sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - pana: - dependency: "direct dev" - description: - name: pana - sha256: "3fc3fe8e7a9fd4827fa4d625a423eec95d305b2bc3538a3adf7fd6c49217af97" - url: "https://pub.dev" - source: hosted - version: "0.21.45" - path: - dependency: transitive - description: - name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.dev" - source: hosted - version: "1.9.0" - pool: - dependency: transitive - description: - name: pool - sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" - url: "https://pub.dev" - source: hosted - version: "1.5.1" - pub_semver: - dependency: transitive - description: - name: pub_semver - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - pubspec_parse: - dependency: transitive - description: - name: pubspec_parse - sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 - url: "https://pub.dev" - source: hosted - version: "1.3.0" - retry: - dependency: transitive - description: - name: retry - sha256: "822e118d5b3aafed083109c72d5f484c6dc66707885e07c0fbcb8b986bba7efc" - url: "https://pub.dev" - source: hosted - version: "3.1.2" - safe_url_check: - dependency: transitive - description: - name: safe_url_check - sha256: "49a3e060a7869cbafc8f4845ca1ecbbaaa53179980a32f4fdfeab1607e90f41d" - url: "https://pub.dev" - source: hosted - version: "1.1.2" - shelf: - dependency: transitive - description: - name: shelf - sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 - url: "https://pub.dev" - source: hosted - version: "1.4.1" - shelf_packages_handler: - dependency: transitive - description: - name: shelf_packages_handler - sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - shelf_static: - dependency: transitive - description: - name: shelf_static - sha256: c87c3875f91262785dade62d135760c2c69cb217ac759485334c5857ad89f6e3 - url: "https://pub.dev" - source: hosted - version: "1.1.3" - shelf_web_socket: - dependency: transitive - description: - name: shelf_web_socket - sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611" - url: "https://pub.dev" - source: hosted - version: "2.0.0" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_gen: - dependency: transitive - description: - name: source_gen - sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" - url: "https://pub.dev" - source: hosted - version: "1.5.0" - source_map_stack_trace: - dependency: transitive - description: - name: source_map_stack_trace - sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b - url: "https://pub.dev" - source: hosted - version: "2.1.2" - source_maps: - dependency: transitive - description: - name: source_maps - sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" - url: "https://pub.dev" - source: hosted - version: "0.10.12" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - stream_transform: - dependency: transitive - description: - name: stream_transform - sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - tar: - dependency: transitive - description: - name: tar - sha256: "22f67e2d77b51050436620b2a5de521c58ca6f0b75af1d9ab3c8cae2eae58fcd" - url: "https://pub.dev" - source: hosted - version: "1.0.5" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test: - dependency: transitive - description: - name: test - sha256: "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e" - url: "https://pub.dev" - source: hosted - version: "1.25.7" - test_api: - dependency: transitive - description: - name: test_api - sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" - url: "https://pub.dev" - source: hosted - version: "0.7.2" - test_core: - dependency: transitive - description: - name: test_core - sha256: "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696" - url: "https://pub.dev" - source: hosted - version: "0.6.4" - timing: - dependency: transitive - description: - name: timing - sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" - url: "https://pub.dev" - source: hosted - version: "1.0.1" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" - url: "https://pub.dev" - source: hosted - version: "14.2.5" - watcher: - dependency: transitive - description: - name: watcher - sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - web: - dependency: transitive - description: - name: web - sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb - url: "https://pub.dev" - source: hosted - version: "1.1.0" - web_socket: - dependency: transitive - description: - name: web_socket - sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83" - url: "https://pub.dev" - source: hosted - version: "0.1.6" - web_socket_channel: - dependency: transitive - description: - name: web_socket_channel - sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f" - url: "https://pub.dev" - source: hosted - version: "3.0.1" - webkit_inspection_protocol: - dependency: transitive - description: - name: webkit_inspection_protocol - sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - yaml: - dependency: transitive - description: - name: yaml - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" - url: "https://pub.dev" - source: hosted - version: "3.1.2" -sdks: - dart: ">=3.5.0 <4.0.0" - flutter: ">=3.18.0-18.0.pre.54" diff --git a/packages/instabug_http_client/pubspec.yaml b/packages/instabug_http_client/pubspec.yaml deleted file mode 100644 index 5ced6ee3a..000000000 --- a/packages/instabug_http_client/pubspec.yaml +++ /dev/null @@ -1,29 +0,0 @@ -name: instabug_http_client -description: - This package is an add on to instabug_flutter. It intercepts any requests performed - with http Package and sends them to the report that will be sent to the dashboard. -version: 2.4.0 -homepage: https://www.instabug.com/platforms/flutter -documentation: https://docs.instabug.com/docs/flutter-overview -repository: https://github.com/Instabug/Instabug-Flutter/tree/refactor/monorepo/packages/instabug_http_client - -environment: - sdk: ">=2.12.0 <3.0.0" - -dependencies: - flutter: - sdk: flutter - http: ">=0.13.0 <2.0.0" - instabug_flutter: ">=14.0.0 <15.0.0" - meta: ^1.3.0 - -dev_dependencies: - build_runner: ^2.1.1 - flutter_test: - sdk: flutter - mockito: ^5.0.10 - pana: ^0.21.0 -# For information on the generic Dart part of this file, see the -# following page: https://www.dartlang.org/tools/pub/pubspec - -# The following section is specific to Flutter. diff --git a/packages/instabug_http_client/pubspec_overrides.yaml b/packages/instabug_http_client/pubspec_overrides.yaml deleted file mode 100644 index 1f0beaf62..000000000 --- a/packages/instabug_http_client/pubspec_overrides.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# melos_managed_dependency_overrides: instabug_flutter -dependency_overrides: - instabug_flutter: - path: ../instabug_flutter diff --git a/packages/instabug_http_client/release.sh b/packages/instabug_http_client/release.sh deleted file mode 100644 index 39212c393..000000000 --- a/packages/instabug_http_client/release.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -VERSION=$(egrep -o "version: ([0-9]-*.*)+[0-9]" pubspec.yaml | cut -d ":" -f 2) -if [ ! "${VERSION}" ] || [ -z "${VERSION}" ];then - echo "Instabug: err: Version Number not found." - exit 1 -else - mkdir -p .pub-cache - cat < $HOME/.pub-cache/credentials.json - ${PUB_CREDENTIALS} - -EOF - flutter packages pub publish -f -fi \ No newline at end of file diff --git a/packages/instabug_http_client/test/instabug_http_client_test.dart b/packages/instabug_http_client/test/instabug_http_client_test.dart deleted file mode 100644 index abcd12b25..000000000 --- a/packages/instabug_http_client/test/instabug_http_client_test.dart +++ /dev/null @@ -1,207 +0,0 @@ -import 'dart:convert'; -import 'dart:io'; -// to maintain supported versions prior to Flutter 3.3 -// ignore: unnecessary_import -import 'dart:typed_data'; - -import 'package:flutter_test/flutter_test.dart'; -import 'package:http/http.dart' as http; -import 'package:http/testing.dart'; -import 'package:instabug_flutter/instabug_flutter.dart'; -import 'package:instabug_flutter/src/generated/instabug.api.g.dart'; -import 'package:instabug_http_client/instabug_http_client.dart'; -import 'package:instabug_http_client/instabug_http_logger.dart'; -import 'package:mockito/annotations.dart'; -import 'package:mockito/mockito.dart'; - -import 'instabug_http_client_test.mocks.dart'; - -@GenerateMocks([ - InstabugHttpLogger, - InstabugHttpClient, - InstabugHostApi, -]) -Future main() async { - TestWidgetsFlutterBinding.ensureInitialized(); - final mHost = MockInstabugHostApi(); - - setUpAll(() { - Instabug.$setHostApi(mHost); - NetworkLogger.$setHostApi(mHost); - when(mHost.isW3CFeatureFlagsEnabled()).thenAnswer( - (_) => Future>.value({ - 'isW3cCaughtHeaderEnabled': true, - 'isW3cExternalGeneratedHeaderEnabled': false, - 'isW3cExternalTraceIDEnabled': true, - }), - ); - }); - - const fakeResponse = { - 'id': '123', - 'activationCode': '111111', - }; - late Uri url; - final mockedResponse = http.Response(json.encode(fakeResponse), 200); - - late InstabugHttpClient instabugHttpClient; - - setUp(() { - url = Uri.parse('http://www.instabug.com'); - instabugHttpClient = InstabugHttpClient(); - instabugHttpClient.client = MockInstabugHttpClient(); - instabugHttpClient.logger = MockInstabugHttpLogger(); - }); - - test('expect instabug http client GET to return response', () async { - when( - instabugHttpClient.client.get(url, headers: anyNamed('headers'))) - .thenAnswer((_) async => mockedResponse); - final result = await instabugHttpClient.get(url); - expect(result, isInstanceOf()); - expect(result, mockedResponse); - verify( - instabugHttpClient.logger - .onLogger(mockedResponse, startTime: anyNamed('startTime')), - ).called(1); - }); - - test('expect instabug http client HEAD to return response', () async { - when( - instabugHttpClient.client.head(url, headers: anyNamed('headers'))) - .thenAnswer((_) async => mockedResponse); - final result = await instabugHttpClient.head(url); - expect(result, isInstanceOf()); - expect(result, mockedResponse); - verify( - instabugHttpClient.logger - .onLogger(mockedResponse, startTime: anyNamed('startTime')), - ).called(1); - }); - - test('expect instabug http client DELETE to return response', () async { - when( - instabugHttpClient.client.delete(url, headers: anyNamed('headers'))) - .thenAnswer((_) async => mockedResponse); - final result = await instabugHttpClient.delete(url); - expect(result, isInstanceOf()); - expect(result, mockedResponse); - verify( - instabugHttpClient.logger - .onLogger(mockedResponse, startTime: anyNamed('startTime')), - ).called(1); - }); - - test('expect instabug http client PATCH to return response', () async { - when( - instabugHttpClient.client.patch(url, headers: anyNamed('headers'))) - .thenAnswer((_) async => mockedResponse); - final result = await instabugHttpClient.patch(url); - expect(result, isInstanceOf()); - expect(result, mockedResponse); - verify( - instabugHttpClient.logger - .onLogger(mockedResponse, startTime: anyNamed('startTime')), - ).called(1); - }); - - test('expect instabug http client POST to return response', () async { - when( - instabugHttpClient.client.post(url, headers: anyNamed('headers'))) - .thenAnswer((_) async => mockedResponse); - final result = await instabugHttpClient.post(url); - expect(result, isInstanceOf()); - expect(result, mockedResponse); - verify( - instabugHttpClient.logger - .onLogger(mockedResponse, startTime: anyNamed('startTime')), - ).called(1); - }); - - test('expect instabug http client PUT to return response', () async { - when( - instabugHttpClient.client.put(url, headers: anyNamed('headers'))) - .thenAnswer((_) async => mockedResponse); - final result = await instabugHttpClient.put(url); - expect(result, isInstanceOf()); - expect(result.body, mockedResponse.body); - verify( - instabugHttpClient.logger - .onLogger(mockedResponse, startTime: anyNamed('startTime')), - ).called(1); - }); - - test('expect instabug http client READ to return response', () async { - const response = 'Some response string'; - when( - instabugHttpClient.client.read(url, headers: anyNamed('headers'))) - .thenAnswer((_) async => response); - - final result = await instabugHttpClient.read(url); - expect(result, isInstanceOf()); - expect(result, response); - }); - - test('expect instabug http client READBYTES to return response', () async { - final response = Uint8List(3); - instabugHttpClient.client = - MockClient((_) async => http.Response.bytes(response, 200)); - - final result = await instabugHttpClient.readBytes(url); - expect(result, isInstanceOf()); - expect(result, response); - }); - - test('expect instabug http client SEND to return response', () async { - final response = http.StreamedResponse( - const Stream>.empty(), - 200, - contentLength: 0, - ); - final request = http.StreamedRequest('POST', url) - ..headers[HttpHeaders.contentTypeHeader] = - 'application/json; charset=utf-8' - ..headers[HttpHeaders.userAgentHeader] = 'Dart'; - when(instabugHttpClient.client.send(request)) - .thenAnswer((_) async => response); - final responseFuture = instabugHttpClient.send(request); - request - ..sink.add('{"hello": "world"}'.codeUnits) - ..sink.close(); - - final result = await responseFuture; - expect(result, isInstanceOf()); - expect(result.headers, response.headers); - expect(result.statusCode, response.statusCode); - expect(result.contentLength, response.contentLength); - expect(result.isRedirect, response.isRedirect); - expect(result.persistentConnection, response.persistentConnection); - expect(result.reasonPhrase, response.reasonPhrase); - expect(result.request, response.request); - expect( - await result.stream.bytesToString(), - await response.stream.bytesToString(), - ); - final logger = instabugHttpClient.logger as MockInstabugHttpLogger; - verify(logger.onLogger(any, startTime: anyNamed('startTime'))).called(1); - }); - - test('expect instabug http client CLOSE to be called', () async { - instabugHttpClient.close(); - - verify(instabugHttpClient.client.close()); - }); - - test('stress test for GET method', () async { - when( - instabugHttpClient.client.get(url, headers: anyNamed('headers'))) - .thenAnswer((_) async => mockedResponse); - for (var i = 0; i < 10000; i++) { - await instabugHttpClient.get(url); - } - verify( - instabugHttpClient.logger - .onLogger(mockedResponse, startTime: anyNamed('startTime')), - ).called(10000); - }); -} diff --git a/packages/instabug_private_views/android/src/main/java/com/instabug/instabug_private_views/generated/InstabugPrivateViewPigeon.java b/packages/instabug_private_views/android/src/main/java/com/instabug/instabug_private_views/generated/InstabugPrivateViewPigeon.java new file mode 100644 index 000000000..c4e857e58 --- /dev/null +++ b/packages/instabug_private_views/android/src/main/java/com/instabug/instabug_private_views/generated/InstabugPrivateViewPigeon.java @@ -0,0 +1,124 @@ +// Autogenerated from Pigeon (v10.1.5), do not edit directly. +// See also: https://pub.dev/packages/pigeon + +package com.instabug.instabug_private_views.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 InstabugPrivateViewFlutterApi { + private final @NonNull BinaryMessenger binaryMessenger; + + public InstabugPrivateViewFlutterApi(@NonNull BinaryMessenger argBinaryMessenger) { + this.binaryMessenger = argBinaryMessenger; + } + + /** Public interface for sending reply. */ + @SuppressWarnings("UnknownNullness") + public interface Reply { + void reply(T reply); + } + /** The codec used by InstabugPrivateViewFlutterApi. */ + static @NonNull MessageCodec getCodec() { + return new StandardMessageCodec(); + } + public void getPrivateViews(@NonNull Reply> callback) { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, "dev.flutter.pigeon.instabug_private_views.InstabugPrivateViewFlutterApi.getPrivateViews", getCodec()); + channel.send( + null, + channelReply -> { + @SuppressWarnings("ConstantConditions") + List output = (List) channelReply; + callback.reply(output); + }); + } + } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ + public interface InstabugPrivateViewHostApi { + + void init(); + + /** The codec used by InstabugPrivateViewHostApi. */ + static @NonNull MessageCodec getCodec() { + return new StandardMessageCodec(); + } + /**Sets up an instance of `InstabugPrivateViewHostApi` to handle messages through the `binaryMessenger`. */ + static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable InstabugPrivateViewHostApi api) { + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, "dev.flutter.pigeon.instabug_private_views.InstabugPrivateViewHostApi.init", getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList(); + try { + api.init(); + 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_private_views/example/ios/Podfile b/packages/instabug_private_views/example/ios/Podfile index 8b43e9c1b..5effd94c4 100644 --- a/packages/instabug_private_views/example/ios/Podfile +++ b/packages/instabug_private_views/example/ios/Podfile @@ -30,8 +30,7 @@ flutter_ios_podfile_setup target 'Runner' do use_frameworks! use_modular_headers! -pod 'Instabug', :podspec => 'https://ios-releases.instabug.com/custom/feature-flutter-private-views-base/14.0.0/Instabug.podspec' - + pod 'Instabug', :podspec => 'https://ios-releases.instabug.com/custom/feature-flutter-private-views-base/14.1.0/Instabug.podspec' flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) target 'RunnerTests' do inherit! :search_paths diff --git a/packages/instabug_private_views/example/ios/Podfile.lock b/packages/instabug_private_views/example/ios/Podfile.lock index 4ec18dae9..871a5b599 100644 --- a/packages/instabug_private_views/example/ios/Podfile.lock +++ b/packages/instabug_private_views/example/ios/Podfile.lock @@ -1,9 +1,9 @@ PODS: - Flutter (1.0.0) - - Instabug (14.0.0) + - Instabug (14.1.0) - instabug_flutter (14.0.0): - Flutter - - Instabug (= 14.0.0) + - Instabug (= 14.1.0) - instabug_private_views (0.0.1): - Flutter - instabug_flutter @@ -14,7 +14,7 @@ PODS: DEPENDENCIES: - Flutter (from `Flutter`) - - Instabug (from `https://ios-releases.instabug.com/custom/feature-flutter-private-views-base/14.0.0/Instabug.podspec`) + - Instabug (from `https://ios-releases.instabug.com/custom/feature-flutter-private-views-base/14.1.0/Instabug.podspec`) - instabug_flutter (from `.symlinks/plugins/instabug_flutter/ios`) - instabug_private_views (from `.symlinks/plugins/instabug_private_views/ios`) - OCMock (= 3.6) @@ -28,7 +28,7 @@ EXTERNAL SOURCES: Flutter: :path: Flutter Instabug: - :podspec: https://ios-releases.instabug.com/custom/feature-flutter-private-views-base/14.0.0/Instabug.podspec + :podspec: https://ios-releases.instabug.com/custom/feature-flutter-private-views-base/14.1.0/Instabug.podspec instabug_flutter: :path: ".symlinks/plugins/instabug_flutter/ios" instabug_private_views: @@ -38,12 +38,12 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 - Instabug: 9d2b06afbadfbd4630bc0116dc27d84360ed70b0 - instabug_flutter: ff8ab5ff34a476b1d2d887478ec190cda962b973 + Instabug: e4054d9df01ebe416fffe70c173496364b9e08d4 + instabug_flutter: a24751dfaedd29475da2af062d3e19d697438f72 instabug_private_views: df53ff3f1cc842cb686d43e077099d3b36426a7f OCMock: 5ea90566be239f179ba766fd9fbae5885040b992 video_player_avfoundation: 7c6c11d8470e1675df7397027218274b6d2360b3 -PODFILE CHECKSUM: 38cf660255aba2d321a6f139341d5a867e19b769 +PODFILE CHECKSUM: 8d04e9b0f7c2d5dc02066f051ccdb6a95418b41a COCOAPODS: 1.14.3 diff --git a/packages/instabug_private_views/example/pubspec.lock b/packages/instabug_private_views/example/pubspec.lock index 5e8a12aa4..6786e3ccb 100644 --- a/packages/instabug_private_views/example/pubspec.lock +++ b/packages/instabug_private_views/example/pubspec.lock @@ -97,19 +97,20 @@ packages: source: hosted version: "0.15.5" instabug_flutter: - dependency: "direct overridden" + dependency: transitive description: - path: "../../instabug_flutter" - relative: true - source: path - version: "14.0.0" + name: instabug_flutter + sha256: c17513d000a1d6ecf5ee9cd1d820760143985b5b006d06c65744db949988aa17 + url: "https://pub.dev" + source: hosted + version: "14.1.0" instabug_private_views: dependency: "direct main" description: path: ".." relative: true source: path - version: "1.0.1" + version: "1.0.0" leak_tracker: dependency: transitive description: diff --git a/packages/instabug_private_views/ios/.gitignore b/packages/instabug_private_views/ios/.gitignore deleted file mode 100644 index 034771fc9..000000000 --- a/packages/instabug_private_views/ios/.gitignore +++ /dev/null @@ -1,38 +0,0 @@ -.idea/ -.vagrant/ -.sconsign.dblite -.svn/ - -.DS_Store -*.swp -profile - -DerivedData/ -build/ -GeneratedPluginRegistrant.h -GeneratedPluginRegistrant.m - -.generated/ - -*.pbxuser -*.mode1v3 -*.mode2v3 -*.perspectivev3 - -!default.pbxuser -!default.mode1v3 -!default.mode2v3 -!default.perspectivev3 - -xcuserdata - -*.moved-aside - -*.pyc -*sync/ -Icon? -.tags* - -/Flutter/Generated.xcconfig -/Flutter/ephemeral/ -/Flutter/flutter_export_environment.sh diff --git a/packages/instabug_private_views/ios/Classes/Generated/InstabugPrivateViewPigeon.h b/packages/instabug_private_views/ios/Classes/Generated/InstabugPrivateViewPigeon.h new file mode 100644 index 000000000..fabd67a84 --- /dev/null +++ b/packages/instabug_private_views/ios/Classes/Generated/InstabugPrivateViewPigeon.h @@ -0,0 +1,31 @@ +// 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 InstabugPrivateViewFlutterApi. +NSObject *InstabugPrivateViewFlutterApiGetCodec(void); + +@interface InstabugPrivateViewFlutterApi : NSObject +- (instancetype)initWithBinaryMessenger:(id)binaryMessenger; +- (void)getPrivateViewsWithCompletion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +@end + +/// The codec used by InstabugPrivateViewHostApi. +NSObject *InstabugPrivateViewHostApiGetCodec(void); + +@protocol InstabugPrivateViewHostApi +- (void)initWithError:(FlutterError *_Nullable *_Nonnull)error; +@end + +extern void InstabugPrivateViewHostApiSetup(id binaryMessenger, NSObject *_Nullable api); + +NS_ASSUME_NONNULL_END diff --git a/packages/instabug_private_views/ios/Classes/Generated/InstabugPrivateViewPigeon.m b/packages/instabug_private_views/ios/Classes/Generated/InstabugPrivateViewPigeon.m new file mode 100644 index 000000000..070cd0b0a --- /dev/null +++ b/packages/instabug_private_views/ios/Classes/Generated/InstabugPrivateViewPigeon.m @@ -0,0 +1,85 @@ +// 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 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 *InstabugPrivateViewFlutterApiGetCodec(void) { + static FlutterStandardMessageCodec *sSharedObject = nil; + sSharedObject = [FlutterStandardMessageCodec sharedInstance]; + return sSharedObject; +} + +@interface InstabugPrivateViewFlutterApi () +@property(nonatomic, strong) NSObject *binaryMessenger; +@end + +@implementation InstabugPrivateViewFlutterApi + +- (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_private_views.InstabugPrivateViewFlutterApi.getPrivateViews" + binaryMessenger:self.binaryMessenger + codec:InstabugPrivateViewFlutterApiGetCodec()]; + [channel sendMessage:nil reply:^(id reply) { + NSArray *output = reply; + completion(output, nil); + }]; +} +@end + +NSObject *InstabugPrivateViewHostApiGetCodec(void) { + static FlutterStandardMessageCodec *sSharedObject = nil; + sSharedObject = [FlutterStandardMessageCodec sharedInstance]; + return sSharedObject; +} + +void InstabugPrivateViewHostApiSetup(id binaryMessenger, NSObject *api) { + { + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:@"dev.flutter.pigeon.instabug_private_views.InstabugPrivateViewHostApi.init" + binaryMessenger:binaryMessenger + codec:InstabugPrivateViewHostApiGetCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(initWithError:)], @"InstabugPrivateViewHostApi api (%@) doesn't respond to @selector(initWithError:)", api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + FlutterError *error; + [api initWithError:&error]; + callback(wrapResult(nil, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } +} diff --git a/packages/instabug_private_views/lib/instabug_private_view.dart b/packages/instabug_private_views/lib/instabug_private_view.dart index 0be5a6278..daac5d11f 100644 --- a/packages/instabug_private_views/lib/instabug_private_view.dart +++ b/packages/instabug_private_views/lib/instabug_private_view.dart @@ -4,8 +4,12 @@ import 'package:instabug_private_views/src/private_views_manager.dart'; export 'src/instabug_private_view.dart'; export 'src/instabug_sliver_private_view.dart'; -void enableInstabugMaskingPrivateViews() { - final api = InstabugPrivateViewHostApi(); - api.init(); - InstabugPrivateViewFlutterApi.setup(PrivateViewsManager.I); +class InstabugPrivateViewManager{ + static void enable() { + final api = InstabugPrivateViewHostApi(); + api.init(); + InstabugPrivateViewFlutterApi.setup(PrivateViewsManager.I); + } + + } diff --git a/packages/instabug_private_views/lib/src/generated/instabug_private_view.api.g.dart b/packages/instabug_private_views/lib/src/generated/instabug_private_view.api.g.dart new file mode 100644 index 000000000..c28e2e2af --- /dev/null +++ b/packages/instabug_private_views/lib/src/generated/instabug_private_view.api.g.dart @@ -0,0 +1,67 @@ +// Autogenerated from Pigeon (v10.1.5), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +abstract class InstabugPrivateViewFlutterApi { + static const MessageCodec codec = StandardMessageCodec(); + + List getPrivateViews(); + + static void setup(InstabugPrivateViewFlutterApi? api, + {BinaryMessenger? binaryMessenger}) { + { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_private_views.InstabugPrivateViewFlutterApi.getPrivateViews', + codec, + binaryMessenger: binaryMessenger); + if (api == null) { + channel.setMessageHandler(null); + } else { + channel.setMessageHandler((Object? message) async { + // ignore message + final List output = api.getPrivateViews(); + return output; + }); + } + } + } +} + +class InstabugPrivateViewHostApi { + /// Constructor for [InstabugPrivateViewHostApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + InstabugPrivateViewHostApi({BinaryMessenger? binaryMessenger}) + : _binaryMessenger = binaryMessenger; + final BinaryMessenger? _binaryMessenger; + + static const MessageCodec codec = StandardMessageCodec(); + + Future init() async { + final BasicMessageChannel channel = BasicMessageChannel( + 'dev.flutter.pigeon.instabug_private_views.InstabugPrivateViewHostApi.init', + codec, + binaryMessenger: _binaryMessenger); + final List? replyList = await channel.send(null) as List?; + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel.', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else { + return; + } + } +} diff --git a/packages/instabug_private_views/pubspec.lock b/packages/instabug_private_views/pubspec.lock index 76aedff0e..135dcad01 100644 --- a/packages/instabug_private_views/pubspec.lock +++ b/packages/instabug_private_views/pubspec.lock @@ -289,7 +289,7 @@ packages: path: "../instabug_flutter" relative: true source: path - version: "14.0.0" + version: "14.1.0" io: dependency: transitive description: diff --git a/packages/instabug_private_views/pubspec.yaml b/packages/instabug_private_views/pubspec.yaml index 60288d069..7a150fe9e 100644 --- a/packages/instabug_private_views/pubspec.yaml +++ b/packages/instabug_private_views/pubspec.yaml @@ -1,6 +1,6 @@ name: instabug_private_views description: "An extension for the Instabug Flutter SDK that enables support for masking private views during screen capturing." -version: 1.0.1 +version: 1.0.0 homepage: https://www.instabug.com repository: https://github.com/Instabug/Instabug-Flutter documentation: https://docs.instabug.com/docs/flutter-overview diff --git a/packages/instabug_private_views/test/instabug_private_view_test.mocks.dart b/packages/instabug_private_views/test/instabug_private_view_test.mocks.dart new file mode 100644 index 000000000..1048440cc --- /dev/null +++ b/packages/instabug_private_views/test/instabug_private_view_test.mocks.dart @@ -0,0 +1,70 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in instabug_private_views/test/instabug_private_view_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:ui' as _i3; + +import 'package:flutter/material.dart' as _i4; +import 'package:instabug_private_views/src/private_views_manager.dart' as _i2; +import 'package:mockito/mockito.dart' as _i1; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +/// A class which mocks [PrivateViewsManager]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockPrivateViewsManager extends _i1.Mock + implements _i2.PrivateViewsManager { + MockPrivateViewsManager() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Rect? getLayoutRectInfoFromKey( + _i4.GlobalKey<_i4.State<_i4.StatefulWidget>>? key) => + (super.noSuchMethod(Invocation.method( + #getLayoutRectInfoFromKey, + [key], + )) as _i3.Rect?); + + @override + void mask(_i4.GlobalKey<_i4.State<_i4.StatefulWidget>>? key) => + super.noSuchMethod( + Invocation.method( + #mask, + [key], + ), + returnValueForMissingStub: null, + ); + + @override + void unMask(_i4.GlobalKey<_i4.State<_i4.StatefulWidget>>? key) => + super.noSuchMethod( + Invocation.method( + #unMask, + [key], + ), + returnValueForMissingStub: null, + ); + + @override + List getPrivateViews() => (super.noSuchMethod( + Invocation.method( + #getPrivateViews, + [], + ), + returnValue: [], + ) as List); +}