@bugfender/rn-bugfender 1.1.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +147 -96
- package/RnBugfender.podspec +21 -0
- package/android/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/{6.1.1 → 7.1/dependencies-accessors}/gc.properties +0 -0
- package/android/.gradle/{6.1.1/javaCompile/taskHistory.bin → 7.1/executionHistory/executionHistory.bin} +0 -0
- package/android/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{6.1.1 → 7.1}/fileChanges/last-build.bin +0 -0
- package/android/.gradle/{6.1.1/fileHashes/resourceHashesCache.bin → 7.1/fileHashes/fileHashes.bin} +0 -0
- package/android/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
- package/android/{build/intermediates/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt → .gradle/7.1/gc.properties} +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +1 -3
- package/android/.idea/jarRepositories.xml +12 -17
- package/android/.idea/misc.xml +4 -1
- package/android/.idea/runConfigurations.xml +10 -0
- package/android/.idea/uiDesigner.xml +124 -0
- package/android/build.gradle +43 -85
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -2
- package/android/gradlew +34 -21
- package/android/gradlew.bat +24 -19
- package/android/src/main/AndroidManifest.xml +4 -3
- package/android/src/main/java/com/bugfender/react/{RNBugfenderModule.java → RnBugfenderModule.java} +44 -15
- package/android/src/main/java/com/bugfender/react/RnBugfenderPackage.java +28 -0
- package/ios/RnBugfender.h +5 -0
- package/ios/{RNBugfender.m → RnBugfender.m} +30 -9
- package/ios/{RNBugfender.xcodeproj → RnBugfender.xcodeproj}/project.pbxproj +42 -37
- package/ios/RnBugfender.xcodeproj/project.xcworkspace/xcuserdata/fj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/{RNBugfender.xcodeproj → RnBugfender.xcodeproj}/xcuserdata/fj.xcuserdatad/xcschemes/xcschememanagement.plist +1 -1
- package/lib/commonjs/bugfender.js +338 -0
- package/lib/commonjs/bugfender.js.map +1 -0
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/index.web.js +30 -0
- package/lib/commonjs/index.web.js.map +1 -0
- package/lib/commonjs/override-console-methods.js +91 -0
- package/lib/commonjs/override-console-methods.js.map +1 -0
- package/lib/commonjs/print-to-console.js +78 -0
- package/lib/commonjs/print-to-console.js.map +1 -0
- package/lib/commonjs/sdk-options.js +75 -0
- package/lib/commonjs/sdk-options.js.map +1 -0
- package/lib/commonjs/string-formatter.js +55 -0
- package/lib/commonjs/string-formatter.js.map +1 -0
- package/lib/commonjs/types/device.js +2 -0
- package/lib/commonjs/types/device.js.map +1 -0
- package/lib/commonjs/types/log.js +35 -0
- package/lib/commonjs/types/log.js.map +1 -0
- package/lib/commonjs/types/sdk-options.js +57 -0
- package/lib/commonjs/types/sdk-options.js.map +1 -0
- package/lib/commonjs/user-feedback.js +31 -0
- package/lib/commonjs/user-feedback.js.map +1 -0
- package/lib/commonjs/utilities.js +18 -0
- package/lib/commonjs/utilities.js.map +1 -0
- package/lib/module/bugfender.js +323 -0
- package/lib/module/bugfender.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/index.web.js +5 -0
- package/lib/module/index.web.js.map +1 -0
- package/lib/module/override-console-methods.js +75 -0
- package/lib/module/override-console-methods.js.map +1 -0
- package/lib/module/print-to-console.js +67 -0
- package/lib/module/print-to-console.js.map +1 -0
- package/lib/module/sdk-options.js +65 -0
- package/lib/module/sdk-options.js.map +1 -0
- package/lib/module/string-formatter.js +45 -0
- package/lib/module/string-formatter.js.map +1 -0
- package/lib/module/types/device.js +2 -0
- package/lib/module/types/device.js.map +1 -0
- package/lib/module/types/log.js +24 -0
- package/lib/module/types/log.js.map +1 -0
- package/lib/module/types/sdk-options.js +47 -0
- package/lib/module/types/sdk-options.js.map +1 -0
- package/lib/module/user-feedback.js +22 -0
- package/lib/module/user-feedback.js.map +1 -0
- package/lib/module/utilities.js +11 -0
- package/lib/module/utilities.js.map +1 -0
- package/lib/typescript/bugfender.d.ts +163 -0
- package/lib/typescript/index.d.ts +5 -0
- package/lib/typescript/index.web.d.ts +4 -0
- package/lib/typescript/override-console-methods.d.ts +10 -0
- package/lib/typescript/print-to-console.d.ts +14 -0
- package/lib/typescript/sdk-options.d.ts +16 -0
- package/lib/typescript/string-formatter.d.ts +4 -0
- package/lib/typescript/types/device.d.ts +4 -0
- package/lib/typescript/types/log.d.ts +59 -0
- package/lib/typescript/types/sdk-options.d.ts +40 -0
- package/lib/typescript/user-feedback.d.ts +31 -0
- package/lib/typescript/utilities.d.ts +1 -0
- package/package.json +146 -12
- package/src/bugfender.ts +360 -0
- package/src/index.tsx +7 -0
- package/src/index.web.tsx +5 -0
- package/src/override-console-methods.ts +53 -0
- package/src/print-to-console.ts +67 -0
- package/src/sdk-options.ts +63 -0
- package/src/string-formatter.ts +44 -0
- package/src/types/device.ts +4 -0
- package/src/types/log.ts +75 -0
- package/src/types/sdk-options.ts +77 -0
- package/src/user-feedback.ts +33 -0
- package/src/utilities.ts +8 -0
- package/RNBugfender.podspec +0 -24
- package/android/.gradle/6.1.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
- package/android/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.1.1/javaCompile/classAnalysis.bin +0 -0
- package/android/.gradle/6.1.1/javaCompile/javaCompile.lock +0 -0
- package/android/.idea/android.iml +0 -29
- package/android/.idea/caches/build_file_checksums.ser +0 -0
- package/android/.idea/codeStyles/Project.xml +0 -116
- package/android/.idea/libraries/Gradle__android_arch_core_common_1_1_1_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__android_arch_core_runtime_1_1_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__android_arch_lifecycle_common_1_1_1_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__android_arch_lifecycle_livedata_1_1_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__android_arch_lifecycle_livedata_core_1_1_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__android_arch_lifecycle_runtime_1_1_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__android_arch_lifecycle_viewmodel_1_1_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_android_support_animated_vector_drawable_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_appcompat_v7_28_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_android_support_asynclayoutinflater_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_collections_28_0_0_jar.xml +0 -9
- package/android/.idea/libraries/Gradle__com_android_support_coordinatorlayout_28_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_android_support_cursoradapter_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_customview_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_documentfile_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_drawerlayout_28_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_android_support_interpolator_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_loader_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_localbroadcastmanager_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_print_28_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_android_support_slidingpanelayout_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_support_annotations_28_0_0_jar.xml +0 -9
- package/android/.idea/libraries/Gradle__com_android_support_support_compat_28_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_android_support_support_core_ui_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_support_core_utils_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_support_fragment_28_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_android_support_support_vector_drawable_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_swiperefreshlayout_28_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_android_support_versionedparcelable_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_android_support_viewpager_28_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_bugfender_sdk_android_3_0_5_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_1_10_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_1_10_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_1_10_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_1_10_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_base_1_10_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp3_1_10_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_infer_annotation_infer_annotation_0_11_2_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_59_9_aar.xml +0 -17
- package/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_6_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_2_jar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_3_12_1_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_urlconnection_3_12_1_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_15_0_jar.xml +0 -13
- package/android/.idea/libraries/Gradle__javax_inject_javax_inject_1_jar.xml +0 -13
- package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/android/support/v4/R.java +0 -12
- package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/android/support/v7/appcompat/R.java +0 -1248
- package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/android/support/v7/recyclerview/R.java +0 -40
- package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/bugfender/android/R.java +0 -55
- package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/bugfender/react/R.java +0 -1384
- package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/facebook/drawee/R.java +0 -82
- package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/facebook/drawee/backends/pipeline/R.java +0 -82
- package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/facebook/fbcore/R.java +0 -12
- package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/facebook/imagepipeline/R.java +0 -12
- package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/facebook/imagepipeline/backends/okhttp/R.java +0 -12
- package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/facebook/react/R.java +0 -1361
- package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/org/webkit/android_jsc/R.java +0 -12
- package/android/build/generated/source/buildConfig/debug/com/bugfender/react/BuildConfig.java +0 -13
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -11
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output.json +0 -1
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -11
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output.json +0 -1
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- package/android/build/intermediates/compile_library_classes/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/incremental/debug-mergeJniLibs/merge-state +0 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v4/R.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$anim.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$attr.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$bool.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$color.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$dimen.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$drawable.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$id.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$integer.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$layout.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$string.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$style.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$styleable.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/recyclerview/R$attr.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/recyclerview/R$dimen.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/recyclerview/R$id.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/recyclerview/R$styleable.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/recyclerview/R.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/android/R$color.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/android/R$drawable.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/android/R$id.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/android/R$layout.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/android/R$string.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/android/R.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$anim.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$attr.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$bool.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$color.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$dimen.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$drawable.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$id.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$integer.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$layout.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$string.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$style.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$styleable.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$xml.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/RNBugfenderModule.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/RNBugfenderPackage.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/R$attr.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/R$id.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/R$styleable.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/R.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/backends/pipeline/R$attr.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/backends/pipeline/R$id.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/backends/pipeline/R$styleable.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/backends/pipeline/R.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/fbcore/R.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/imagepipeline/R.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/imagepipeline/backends/okhttp/R.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$anim.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$attr.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$bool.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$color.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$dimen.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$drawable.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$id.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$integer.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$layout.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$string.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$style.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$styleable.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$xml.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/org/webkit/android_jsc/R.class +0 -0
- package/android/build/intermediates/library_java_res/debug/res.jar +0 -0
- package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +0 -11
- package/android/build/intermediates/merged_manifests/debug/output.json +0 -1
- package/android/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml +0 -11
- package/android/build/intermediates/merged_manifests/debug/processDebugManifest/merged/output.json +0 -1
- package/android/build/intermediates/packaged-classes/debug/classes.jar +0 -0
- package/android/build/intermediates/res/symbol-table-with-package/debug/package-aware-r.txt +0 -1309
- package/android/build/intermediates/runtime_library_classes/debug/classes.jar +0 -0
- package/android/build/intermediates/symbols/debug/R.txt +0 -1783
- package/android/build/intermediates/transforms/mergeJavaRes/debug/0.jar +0 -0
- package/android/build/intermediates/transforms/mergeJavaRes/debug/__content__.json +0 -1
- package/android/build/intermediates/transforms/mergeJniLibs/debug/__content__.json +0 -1
- package/android/build/outputs/aar/android.aar +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -37
- package/android/local.properties +0 -1
- package/android/src/main/java/com/bugfender/react/RNBugfenderPackage.java +0 -29
- package/bugfender.js +0 -217
- package/example/.babelrc +0 -3
- package/example/.watchmanconfig +0 -1
- package/example/App.js +0 -121
- package/ios/RNBugfender.h +0 -7
- package/ios/RNBugfender.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/RNBugfender.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/RNBugfender.xcodeproj/project.xcworkspace/xcuserdata/fj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNBugfender.xcodeproj/xcuserdata/rubenvot.xcuserdatad/xcschemes/xcschememanagement.plist +0 -19
package/android/build.gradle
CHANGED
|
@@ -1,103 +1,61 @@
|
|
|
1
1
|
buildscript {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
if (project == rootProject) {
|
|
3
|
+
repositories {
|
|
4
|
+
google()
|
|
5
|
+
mavenCentral()
|
|
6
|
+
jcenter()
|
|
7
|
+
}
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
dependencies {
|
|
10
|
+
classpath 'com.android.tools.build:gradle:3.5.3'
|
|
11
|
+
}
|
|
12
|
+
}
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
apply plugin: 'com.android.library'
|
|
13
16
|
|
|
17
|
+
def safeExtGet(prop, fallback) {
|
|
18
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
19
|
+
}
|
|
20
|
+
|
|
14
21
|
android {
|
|
15
|
-
|
|
16
|
-
|
|
22
|
+
compileSdkVersion safeExtGet('RnBugfender_compileSdkVersion', 29)
|
|
23
|
+
defaultConfig {
|
|
24
|
+
minSdkVersion safeExtGet('RnBugfender_minSdkVersion', 16)
|
|
25
|
+
targetSdkVersion safeExtGet('RnBugfender_targetSdkVersion', 29)
|
|
26
|
+
versionCode 1
|
|
27
|
+
versionName "1.0"
|
|
17
28
|
|
|
18
|
-
|
|
19
|
-
minSdkVersion 16
|
|
20
|
-
targetSdkVersion 28
|
|
21
|
-
versionCode 1
|
|
22
|
-
versionName "1.0"
|
|
23
|
-
}
|
|
29
|
+
}
|
|
24
30
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
buildTypes {
|
|
32
|
+
release {
|
|
33
|
+
minifyEnabled false
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
lintOptions {
|
|
37
|
+
disable 'GradleCompatible'
|
|
38
|
+
}
|
|
39
|
+
compileOptions {
|
|
40
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
|
41
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
|
42
|
+
}
|
|
28
43
|
}
|
|
29
44
|
|
|
30
45
|
repositories {
|
|
31
|
-
|
|
32
|
-
google()
|
|
33
|
-
|
|
34
|
-
def found = false
|
|
35
|
-
def defaultDir = null
|
|
36
|
-
def androidSourcesName = 'React Native sources'
|
|
37
|
-
|
|
38
|
-
if (rootProject.ext.has('reactNativeAndroidRoot')) {
|
|
39
|
-
defaultDir = rootProject.ext.get('reactNativeAndroidRoot')
|
|
40
|
-
} else {
|
|
41
|
-
defaultDir = new File(
|
|
42
|
-
projectDir,
|
|
43
|
-
'/../../../node_modules/react-native/android'
|
|
44
|
-
)
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
if (defaultDir.exists()) {
|
|
46
|
+
mavenLocal()
|
|
48
47
|
maven {
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
49
|
+
url("$rootDir/../node_modules/react-native/android")
|
|
51
50
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} else {
|
|
56
|
-
def parentDir = rootProject.projectDir
|
|
57
|
-
|
|
58
|
-
1.upto(5, {
|
|
59
|
-
if (found) return true
|
|
60
|
-
parentDir = parentDir.parentFile
|
|
61
|
-
|
|
62
|
-
def androidSourcesDir = new File(
|
|
63
|
-
parentDir,
|
|
64
|
-
'node_modules/react-native'
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
def androidPrebuiltBinaryDir = new File(
|
|
68
|
-
parentDir,
|
|
69
|
-
'node_modules/react-native/android'
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
if (androidPrebuiltBinaryDir.exists()) {
|
|
73
|
-
maven {
|
|
74
|
-
url androidPrebuiltBinaryDir.toString()
|
|
75
|
-
name androidSourcesName
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
logger.info(":${project.name}:reactNativeAndroidRoot ${androidPrebuiltBinaryDir.canonicalPath}")
|
|
79
|
-
found = true
|
|
80
|
-
} else if (androidSourcesDir.exists()) {
|
|
81
|
-
maven {
|
|
82
|
-
url androidSourcesDir.toString()
|
|
83
|
-
name androidSourcesName
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
logger.info(":${project.name}:reactNativeAndroidRoot ${androidSourcesDir.canonicalPath}")
|
|
87
|
-
found = true
|
|
88
|
-
}
|
|
89
|
-
})
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
if (!found) {
|
|
93
|
-
throw new GradleException(
|
|
94
|
-
"${project.name}: unable to locate React Native android sources. " +
|
|
95
|
-
"Ensure you have you installed React Native as a dependency in your project and try again."
|
|
96
|
-
)
|
|
97
|
-
}
|
|
51
|
+
google()
|
|
52
|
+
mavenCentral()
|
|
53
|
+
jcenter()
|
|
98
54
|
}
|
|
99
55
|
|
|
100
56
|
dependencies {
|
|
101
|
-
|
|
102
|
-
|
|
57
|
+
//noinspection GradleDynamicVersion
|
|
58
|
+
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
59
|
+
//noinspection GradleDynamicVersion
|
|
60
|
+
implementation 'com.bugfender.sdk:android:3.+'
|
|
103
61
|
}
|
|
Binary file
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
#Tue Jul 14 10:32:57 CEST 2020
|
|
2
1
|
distributionBase=GRADLE_USER_HOME
|
|
3
2
|
distributionPath=wrapper/dists
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
|
|
4
4
|
zipStoreBase=GRADLE_USER_HOME
|
|
5
5
|
zipStorePath=wrapper/dists
|
|
6
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
|
package/android/gradlew
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env sh
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Copyright 2015 the original author or authors.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
3
19
|
##############################################################################
|
|
4
20
|
##
|
|
5
21
|
## Gradle start up script for UN*X
|
|
@@ -28,7 +44,7 @@ APP_NAME="Gradle"
|
|
|
28
44
|
APP_BASE_NAME=`basename "$0"`
|
|
29
45
|
|
|
30
46
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
31
|
-
DEFAULT_JVM_OPTS=""
|
|
47
|
+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
32
48
|
|
|
33
49
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
34
50
|
MAX_FD="maximum"
|
|
@@ -56,7 +72,7 @@ case "`uname`" in
|
|
|
56
72
|
Darwin* )
|
|
57
73
|
darwin=true
|
|
58
74
|
;;
|
|
59
|
-
MINGW* )
|
|
75
|
+
MSYS* | MINGW* )
|
|
60
76
|
msys=true
|
|
61
77
|
;;
|
|
62
78
|
NONSTOP* )
|
|
@@ -66,6 +82,7 @@ esac
|
|
|
66
82
|
|
|
67
83
|
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
68
84
|
|
|
85
|
+
|
|
69
86
|
# Determine the Java command to use to start the JVM.
|
|
70
87
|
if [ -n "$JAVA_HOME" ] ; then
|
|
71
88
|
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
|
@@ -109,10 +126,11 @@ if $darwin; then
|
|
|
109
126
|
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
|
110
127
|
fi
|
|
111
128
|
|
|
112
|
-
# For Cygwin, switch paths to Windows format before running java
|
|
113
|
-
if $cygwin ; then
|
|
129
|
+
# For Cygwin or MSYS, switch paths to Windows format before running java
|
|
130
|
+
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
|
114
131
|
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
|
115
132
|
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
|
133
|
+
|
|
116
134
|
JAVACMD=`cygpath --unix "$JAVACMD"`
|
|
117
135
|
|
|
118
136
|
# We build the pattern for arguments to be converted via cygpath
|
|
@@ -138,19 +156,19 @@ if $cygwin ; then
|
|
|
138
156
|
else
|
|
139
157
|
eval `echo args$i`="\"$arg\""
|
|
140
158
|
fi
|
|
141
|
-
i
|
|
159
|
+
i=`expr $i + 1`
|
|
142
160
|
done
|
|
143
161
|
case $i in
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
162
|
+
0) set -- ;;
|
|
163
|
+
1) set -- "$args0" ;;
|
|
164
|
+
2) set -- "$args0" "$args1" ;;
|
|
165
|
+
3) set -- "$args0" "$args1" "$args2" ;;
|
|
166
|
+
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
|
167
|
+
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
|
168
|
+
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
|
169
|
+
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
|
170
|
+
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
|
171
|
+
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
|
154
172
|
esac
|
|
155
173
|
fi
|
|
156
174
|
|
|
@@ -159,14 +177,9 @@ save () {
|
|
|
159
177
|
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
|
160
178
|
echo " "
|
|
161
179
|
}
|
|
162
|
-
APP_ARGS
|
|
180
|
+
APP_ARGS=`save "$@"`
|
|
163
181
|
|
|
164
182
|
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
|
165
183
|
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
|
166
184
|
|
|
167
|
-
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
|
|
168
|
-
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
|
|
169
|
-
cd "$(dirname "$0")"
|
|
170
|
-
fi
|
|
171
|
-
|
|
172
185
|
exec "$JAVACMD" "$@"
|
package/android/gradlew.bat
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
@rem
|
|
2
|
+
@rem Copyright 2015 the original author or authors.
|
|
3
|
+
@rem
|
|
4
|
+
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
@rem you may not use this file except in compliance with the License.
|
|
6
|
+
@rem You may obtain a copy of the License at
|
|
7
|
+
@rem
|
|
8
|
+
@rem https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
@rem
|
|
10
|
+
@rem Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
@rem See the License for the specific language governing permissions and
|
|
14
|
+
@rem limitations under the License.
|
|
15
|
+
@rem
|
|
16
|
+
|
|
1
17
|
@if "%DEBUG%" == "" @echo off
|
|
2
18
|
@rem ##########################################################################
|
|
3
19
|
@rem
|
|
@@ -13,15 +29,18 @@ if "%DIRNAME%" == "" set DIRNAME=.
|
|
|
13
29
|
set APP_BASE_NAME=%~n0
|
|
14
30
|
set APP_HOME=%DIRNAME%
|
|
15
31
|
|
|
32
|
+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
|
33
|
+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
|
34
|
+
|
|
16
35
|
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
17
|
-
set DEFAULT_JVM_OPTS=
|
|
36
|
+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
|
18
37
|
|
|
19
38
|
@rem Find java.exe
|
|
20
39
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
|
21
40
|
|
|
22
41
|
set JAVA_EXE=java.exe
|
|
23
42
|
%JAVA_EXE% -version >NUL 2>&1
|
|
24
|
-
if "%ERRORLEVEL%" == "0" goto
|
|
43
|
+
if "%ERRORLEVEL%" == "0" goto execute
|
|
25
44
|
|
|
26
45
|
echo.
|
|
27
46
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
@@ -35,7 +54,7 @@ goto fail
|
|
|
35
54
|
set JAVA_HOME=%JAVA_HOME:"=%
|
|
36
55
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|
37
56
|
|
|
38
|
-
if exist "%JAVA_EXE%" goto
|
|
57
|
+
if exist "%JAVA_EXE%" goto execute
|
|
39
58
|
|
|
40
59
|
echo.
|
|
41
60
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
|
@@ -45,28 +64,14 @@ echo location of your Java installation.
|
|
|
45
64
|
|
|
46
65
|
goto fail
|
|
47
66
|
|
|
48
|
-
:init
|
|
49
|
-
@rem Get command-line arguments, handling Windows variants
|
|
50
|
-
|
|
51
|
-
if not "%OS%" == "Windows_NT" goto win9xME_args
|
|
52
|
-
|
|
53
|
-
:win9xME_args
|
|
54
|
-
@rem Slurp the command line arguments.
|
|
55
|
-
set CMD_LINE_ARGS=
|
|
56
|
-
set _SKIP=2
|
|
57
|
-
|
|
58
|
-
:win9xME_args_slurp
|
|
59
|
-
if "x%~1" == "x" goto execute
|
|
60
|
-
|
|
61
|
-
set CMD_LINE_ARGS=%*
|
|
62
|
-
|
|
63
67
|
:execute
|
|
64
68
|
@rem Setup the command line
|
|
65
69
|
|
|
66
70
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
67
71
|
|
|
72
|
+
|
|
68
73
|
@rem Execute Gradle
|
|
69
|
-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain
|
|
74
|
+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
|
70
75
|
|
|
71
76
|
:end
|
|
72
77
|
@rem End local scope for the variables with windows NT shell
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
<manifest
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
package="com.bugfender.react">
|
|
3
|
+
|
|
4
|
+
</manifest>
|
package/android/src/main/java/com/bugfender/react/{RNBugfenderModule.java → RnBugfenderModule.java}
RENAMED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
package com.bugfender.react;
|
|
2
2
|
|
|
3
|
+
import androidx.annotation.NonNull;
|
|
4
|
+
|
|
3
5
|
import android.app.Activity;
|
|
4
6
|
import android.app.Application;
|
|
5
7
|
import android.content.Intent;
|
|
@@ -11,23 +13,27 @@ import com.facebook.react.bridge.Promise;
|
|
|
11
13
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
12
14
|
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
13
15
|
import com.facebook.react.bridge.ReactMethod;
|
|
16
|
+
import com.facebook.react.module.annotations.ReactModule;
|
|
14
17
|
|
|
15
18
|
import java.net.URL;
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
@ReactModule(name = RnBugfenderModule.NAME)
|
|
21
|
+
public class RnBugfenderModule extends ReactContextBaseJavaModule implements ActivityEventListener {
|
|
22
|
+
public static final String NAME = "RnBugfender";
|
|
20
23
|
|
|
21
|
-
public
|
|
22
|
-
super(
|
|
24
|
+
public RnBugfenderModule(ReactApplicationContext reactContext) {
|
|
25
|
+
super(reactContext);
|
|
23
26
|
this.getReactApplicationContext().addActivityEventListener(this);
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
@Override
|
|
30
|
+
@NonNull
|
|
27
31
|
public String getName() {
|
|
28
|
-
return
|
|
32
|
+
return NAME;
|
|
29
33
|
}
|
|
30
34
|
|
|
35
|
+
private Promise pendingPromise; // Promise that is waiting information that will be available in onActivityResult
|
|
36
|
+
|
|
31
37
|
@ReactMethod
|
|
32
38
|
public void overrideDeviceName(String deviceName) {
|
|
33
39
|
Bugfender.overrideDeviceName(deviceName);
|
|
@@ -98,6 +104,21 @@ public class RNBugfenderModule extends ReactContextBaseJavaModule implements Act
|
|
|
98
104
|
Bugfender.setDeviceFloat(key, value);
|
|
99
105
|
}
|
|
100
106
|
|
|
107
|
+
@ReactMethod
|
|
108
|
+
public void info(String tag, String text) {
|
|
109
|
+
Bugfender.i(tag, text);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@ReactMethod
|
|
113
|
+
public void trace(String tag, String text) {
|
|
114
|
+
Bugfender.t(tag, text);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@ReactMethod
|
|
118
|
+
public void fatal(String tag, String text) {
|
|
119
|
+
Bugfender.f(tag, text);
|
|
120
|
+
}
|
|
121
|
+
|
|
101
122
|
@ReactMethod
|
|
102
123
|
public void debug(String tag, String text) {
|
|
103
124
|
Bugfender.d(tag, text);
|
|
@@ -114,7 +135,7 @@ public class RNBugfenderModule extends ReactContextBaseJavaModule implements Act
|
|
|
114
135
|
}
|
|
115
136
|
|
|
116
137
|
@ReactMethod
|
|
117
|
-
public void log(int lineNumber, String method, String file,
|
|
138
|
+
public void log(int lineNumber, String method, String file, int rawLogLevel, String tag, String message) {
|
|
118
139
|
final LogLevel logLevel = parseLogLevel(rawLogLevel);
|
|
119
140
|
Bugfender.log(lineNumber, method, file, logLevel, tag, message);
|
|
120
141
|
}
|
|
@@ -158,9 +179,9 @@ public class RNBugfenderModule extends ReactContextBaseJavaModule implements Act
|
|
|
158
179
|
|
|
159
180
|
@ReactMethod
|
|
160
181
|
public void showUserFeedback(String title, String hint, String subjectHint, String messageHint, String sendButtonText, String cancelButtonText,
|
|
161
|
-
|
|
182
|
+
Promise promise) {
|
|
162
183
|
getCurrentActivity().startActivityForResult(
|
|
163
|
-
|
|
184
|
+
Bugfender.getUserFeedbackActivityIntent(getApplication(), title, hint, subjectHint, messageHint, sendButtonText), SHOW_USER_FEEDBACK_REQUEST_CODE
|
|
164
185
|
);
|
|
165
186
|
pendingPromise = promise;
|
|
166
187
|
}
|
|
@@ -169,20 +190,27 @@ public class RNBugfenderModule extends ReactContextBaseJavaModule implements Act
|
|
|
169
190
|
return (Application) getReactApplicationContext().getApplicationContext();
|
|
170
191
|
}
|
|
171
192
|
|
|
172
|
-
private static LogLevel parseLogLevel(
|
|
193
|
+
private static LogLevel parseLogLevel(int loglevel) {
|
|
173
194
|
switch (loglevel) {
|
|
174
|
-
case
|
|
195
|
+
case 3:
|
|
196
|
+
return LogLevel.Trace;
|
|
197
|
+
case 4:
|
|
198
|
+
return LogLevel.Info;
|
|
199
|
+
case 5:
|
|
200
|
+
return LogLevel.Fatal;
|
|
201
|
+
case 0:
|
|
175
202
|
return LogLevel.Debug;
|
|
176
|
-
case
|
|
203
|
+
case 1:
|
|
177
204
|
return LogLevel.Warning;
|
|
178
|
-
case
|
|
205
|
+
case 2:
|
|
179
206
|
return LogLevel.Error;
|
|
180
207
|
default:
|
|
181
208
|
return null;
|
|
182
209
|
}
|
|
183
210
|
}
|
|
184
211
|
|
|
185
|
-
@Override
|
|
212
|
+
@Override
|
|
213
|
+
public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) {
|
|
186
214
|
if (requestCode == SHOW_USER_FEEDBACK_REQUEST_CODE && pendingPromise != null) {
|
|
187
215
|
if (resultCode == Activity.RESULT_OK) {
|
|
188
216
|
pendingPromise.resolve(data.getStringExtra(FeedbackActivity.RESULT_FEEDBACK_URL));
|
|
@@ -193,7 +221,8 @@ public class RNBugfenderModule extends ReactContextBaseJavaModule implements Act
|
|
|
193
221
|
}
|
|
194
222
|
}
|
|
195
223
|
|
|
196
|
-
@Override
|
|
224
|
+
@Override
|
|
225
|
+
public void onNewIntent(Intent intent) {
|
|
197
226
|
// Nothing to do
|
|
198
227
|
}
|
|
199
228
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
package com.bugfender.react;
|
|
2
|
+
|
|
3
|
+
import androidx.annotation.NonNull;
|
|
4
|
+
|
|
5
|
+
import com.facebook.react.ReactPackage;
|
|
6
|
+
import com.facebook.react.bridge.NativeModule;
|
|
7
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
8
|
+
import com.facebook.react.uimanager.ViewManager;
|
|
9
|
+
|
|
10
|
+
import java.util.ArrayList;
|
|
11
|
+
import java.util.Collections;
|
|
12
|
+
import java.util.List;
|
|
13
|
+
|
|
14
|
+
public class RnBugfenderPackage implements ReactPackage {
|
|
15
|
+
@NonNull
|
|
16
|
+
@Override
|
|
17
|
+
public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
|
|
18
|
+
List<NativeModule> modules = new ArrayList<>();
|
|
19
|
+
modules.add(new RnBugfenderModule(reactContext));
|
|
20
|
+
return modules;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@NonNull
|
|
24
|
+
@Override
|
|
25
|
+
public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
|
|
26
|
+
return Collections.emptyList();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#import "
|
|
1
|
+
#import "RnBugfender.h"
|
|
2
2
|
#import <BugfenderSDK/BugfenderSDK.h>
|
|
3
3
|
#import <React/RCTUtils.h>
|
|
4
4
|
|
|
5
|
-
@implementation
|
|
5
|
+
@implementation RnBugfender
|
|
6
6
|
|
|
7
|
-
RCT_EXPORT_MODULE(
|
|
7
|
+
RCT_EXPORT_MODULE()
|
|
8
8
|
|
|
9
9
|
RCT_EXPORT_METHOD(activateLogger:(NSString *)key)
|
|
10
10
|
{
|
|
@@ -92,6 +92,21 @@ RCT_EXPORT_METHOD(setDeviceFloat:(NSString *)deviceKey floatValue:(float)floatVa
|
|
|
92
92
|
[Bugfender setDeviceDouble:floatValue forKey:deviceKey];
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
RCT_EXPORT_METHOD(info:(NSString *)tag text:(NSString *)text)
|
|
96
|
+
{
|
|
97
|
+
BFLog2(BFLogLevelInfo, tag, @"%@", text);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
RCT_EXPORT_METHOD(trace:(NSString *)tag text:(NSString *)text)
|
|
101
|
+
{
|
|
102
|
+
BFLog2(BFLogLevelTrace, tag, @"%@", text);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
RCT_EXPORT_METHOD(fatal:(NSString *)tag text:(NSString *)text)
|
|
106
|
+
{
|
|
107
|
+
BFLog2(BFLogLevelFatal, tag, @"%@", text);
|
|
108
|
+
}
|
|
109
|
+
|
|
95
110
|
RCT_EXPORT_METHOD(debug:(NSString *)tag text:(NSString *)text)
|
|
96
111
|
{
|
|
97
112
|
BFLog2(BFLogLevelDefault, tag, @"%@", text);
|
|
@@ -107,14 +122,20 @@ RCT_EXPORT_METHOD(error:(NSString *)tag text:(NSString *)text)
|
|
|
107
122
|
BFLog2(BFLogLevelError, tag, @"%@", text);
|
|
108
123
|
}
|
|
109
124
|
|
|
110
|
-
RCT_EXPORT_METHOD(log:(int)lineNumber method:(NSString *)method file:(NSString *)file logLevel:(
|
|
125
|
+
RCT_EXPORT_METHOD(log:(int)lineNumber method:(NSString *)method file:(NSString *)file logLevel:(int)rawLogLevel tag:(NSString *)tag message:(NSString *)message)
|
|
111
126
|
{
|
|
112
127
|
BFLogLevel logLevel = BFLogLevelDefault;
|
|
113
|
-
if (
|
|
114
|
-
logLevel = BFLogLevelError;
|
|
115
|
-
else if ([rawLogLevel isEqualToString:@"Warning"])
|
|
128
|
+
if (rawLogLevel == 1)
|
|
116
129
|
logLevel = BFLogLevelWarning;
|
|
117
|
-
|
|
130
|
+
else if (rawLogLevel == 2)
|
|
131
|
+
logLevel = BFLogLevelError;
|
|
132
|
+
else if (rawLogLevel == 3)
|
|
133
|
+
logLevel = BFLogLevelTrace;
|
|
134
|
+
else if (rawLogLevel == 4)
|
|
135
|
+
logLevel = BFLogLevelInfo;
|
|
136
|
+
else if (rawLogLevel == 5)
|
|
137
|
+
logLevel = BFLogLevelFatal;
|
|
138
|
+
|
|
118
139
|
[Bugfender logWithLineNumber:lineNumber method:method file:file level:logLevel tag:tag message:message];
|
|
119
140
|
}
|
|
120
141
|
|
|
@@ -153,7 +174,7 @@ RCT_EXPORT_METHOD(showUserFeedback:(NSString *)title hint:(NSString *)hint subje
|
|
|
153
174
|
reject(0, @"Feedback not sent", nil);
|
|
154
175
|
}
|
|
155
176
|
}];
|
|
156
|
-
|
|
177
|
+
|
|
157
178
|
UIViewController* vc = RCTPresentedViewController();
|
|
158
179
|
[vc presentViewController:controller animated:YES completion:nil];
|
|
159
180
|
|