@bugfender/rn-bugfender 1.1.3 → 2.0.0-alpha.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 +110 -86
- package/RnBugfender.podspec +21 -0
- package/android/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/{5.6.4 → 7.1/dependencies-accessors}/gc.properties +0 -0
- package/android/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{5.6.4 → 7.1}/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
- package/android/.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/{5.6.4/fileHashes/fileHashes.bin → 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 -2
- package/android/.idea/jarRepositories.xml +40 -0
- package/android/.idea/misc.xml +4 -110
- package/android/.idea/runConfigurations.xml +1 -3
- package/android/.idea/uiDesigner.xml +124 -0
- package/android/build.gradle +47 -24
- 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} +88 -13
- package/android/src/main/java/com/bugfender/react/RnBugfenderPackage.java +28 -0
- package/ios/RnBugfender.h +5 -0
- package/ios/{RNBugfender.m → RnBugfender.m} +67 -8
- package/ios/{RNBugfender.xcodeproj → RnBugfender.xcodeproj}/project.pbxproj +42 -37
- package/ios/{RNBugfender.xcodeproj → RnBugfender.xcodeproj}/project.xcworkspace/contents.xcworkspacedata +0 -3
- package/ios/{RNBugfender.xcodeproj → RnBugfender.xcodeproj}/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- package/ios/RnBugfender.xcodeproj/project.xcworkspace/xcuserdata/fj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/{RNBugfender.xcodeproj/xcuserdata/rubenvot.xcuserdatad → RnBugfender.xcodeproj/xcuserdata/fj.xcuserdatad}/xcschemes/xcschememanagement.plist +1 -6
- 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 +81 -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 +55 -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/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 +72 -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 +46 -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/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/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 +68 -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 +81 -0
- package/src/user-feedback.ts +33 -0
- package/.idea/codeStyles/Project.xml +0 -116
- package/.idea/modules.xml +0 -8
- package/.idea/rn-bugfender.iml +0 -9
- package/.idea/vcs.xml +0 -6
- package/RNBugfender.podspec +0 -26
- package/android/.gradle/5.6.4/fileHashes/fileHashes.lock +0 -0
- package/android/.idea/caches/build_file_checksums.ser +0 -0
- package/android/.idea/codeStyles/Project.xml +0 -116
- package/android/.idea/libraries/Gradle__com_android_support_appcompat_v7_23_0_1_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_android_support_recyclerview_v7_23_0_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_android_support_support_annotations_23_0_1_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_android_support_support_v4_23_0_1_aar.xml +0 -16
- 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_0_8_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_0_8_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_0_8_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_0_8_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp_0_8_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_20_1_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_1_2_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_okhttp_1_2_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_core_2_2_3_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_parse_bolts_bolts_android_1_1_4_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_2_5_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_ws_2_5_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_6_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__commons_cli_commons_cli_1_2_jar.xml +0 -13
- package/android/.idea/libraries/Gradle__org_webkit_android_jsc_r174650_aar.xml +0 -10
- package/android/.idea/modules.xml +0 -8
- package/android/android.iml +0 -116
- 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/annotation_processor_list/debug/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-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/com/bugfender/react/BuildConfig.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/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/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/mergeJniLibs/debug/__content__.json +0 -1
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -37
- package/android/local.properties +0 -8
- package/android/src/main/java/com/bugfender/react/RNBugfenderPackage.java +0 -29
- package/bugfender.js +0 -188
- package/example/.babelrc +0 -3
- package/example/.watchmanconfig +0 -1
- package/example/App.js +0 -121
- package/ios/RNBugfender.h +0 -7
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="Palette2">
|
|
4
|
+
<group name="Swing">
|
|
5
|
+
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
6
|
+
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
|
7
|
+
</item>
|
|
8
|
+
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
9
|
+
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
|
10
|
+
</item>
|
|
11
|
+
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
12
|
+
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
|
13
|
+
</item>
|
|
14
|
+
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
|
|
15
|
+
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
|
16
|
+
</item>
|
|
17
|
+
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
18
|
+
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
|
19
|
+
<initial-values>
|
|
20
|
+
<property name="text" value="Button" />
|
|
21
|
+
</initial-values>
|
|
22
|
+
</item>
|
|
23
|
+
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
24
|
+
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
|
25
|
+
<initial-values>
|
|
26
|
+
<property name="text" value="RadioButton" />
|
|
27
|
+
</initial-values>
|
|
28
|
+
</item>
|
|
29
|
+
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
30
|
+
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
|
31
|
+
<initial-values>
|
|
32
|
+
<property name="text" value="CheckBox" />
|
|
33
|
+
</initial-values>
|
|
34
|
+
</item>
|
|
35
|
+
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
36
|
+
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
|
37
|
+
<initial-values>
|
|
38
|
+
<property name="text" value="Label" />
|
|
39
|
+
</initial-values>
|
|
40
|
+
</item>
|
|
41
|
+
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
42
|
+
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
|
43
|
+
<preferred-size width="150" height="-1" />
|
|
44
|
+
</default-constraints>
|
|
45
|
+
</item>
|
|
46
|
+
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
47
|
+
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
|
48
|
+
<preferred-size width="150" height="-1" />
|
|
49
|
+
</default-constraints>
|
|
50
|
+
</item>
|
|
51
|
+
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
52
|
+
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
|
53
|
+
<preferred-size width="150" height="-1" />
|
|
54
|
+
</default-constraints>
|
|
55
|
+
</item>
|
|
56
|
+
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
57
|
+
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
58
|
+
<preferred-size width="150" height="50" />
|
|
59
|
+
</default-constraints>
|
|
60
|
+
</item>
|
|
61
|
+
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
62
|
+
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
63
|
+
<preferred-size width="150" height="50" />
|
|
64
|
+
</default-constraints>
|
|
65
|
+
</item>
|
|
66
|
+
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
67
|
+
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
68
|
+
<preferred-size width="150" height="50" />
|
|
69
|
+
</default-constraints>
|
|
70
|
+
</item>
|
|
71
|
+
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
72
|
+
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
|
73
|
+
</item>
|
|
74
|
+
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
75
|
+
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
76
|
+
<preferred-size width="150" height="50" />
|
|
77
|
+
</default-constraints>
|
|
78
|
+
</item>
|
|
79
|
+
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
80
|
+
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
|
81
|
+
<preferred-size width="150" height="50" />
|
|
82
|
+
</default-constraints>
|
|
83
|
+
</item>
|
|
84
|
+
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
85
|
+
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
86
|
+
<preferred-size width="150" height="50" />
|
|
87
|
+
</default-constraints>
|
|
88
|
+
</item>
|
|
89
|
+
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
90
|
+
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
|
91
|
+
<preferred-size width="200" height="200" />
|
|
92
|
+
</default-constraints>
|
|
93
|
+
</item>
|
|
94
|
+
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
95
|
+
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
|
96
|
+
<preferred-size width="200" height="200" />
|
|
97
|
+
</default-constraints>
|
|
98
|
+
</item>
|
|
99
|
+
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
100
|
+
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
|
101
|
+
</item>
|
|
102
|
+
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
103
|
+
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
|
104
|
+
</item>
|
|
105
|
+
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
106
|
+
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
|
107
|
+
</item>
|
|
108
|
+
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
109
|
+
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
|
110
|
+
</item>
|
|
111
|
+
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
112
|
+
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
|
113
|
+
<preferred-size width="-1" height="20" />
|
|
114
|
+
</default-constraints>
|
|
115
|
+
</item>
|
|
116
|
+
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
117
|
+
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
|
118
|
+
</item>
|
|
119
|
+
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
120
|
+
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
|
121
|
+
</item>
|
|
122
|
+
</group>
|
|
123
|
+
</component>
|
|
124
|
+
</project>
|
package/android/build.gradle
CHANGED
|
@@ -1,38 +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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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"
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
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
|
-
|
|
46
|
+
mavenLocal()
|
|
47
|
+
maven {
|
|
48
|
+
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
49
|
+
url("$rootDir/../node_modules/react-native/android")
|
|
50
|
+
}
|
|
51
|
+
google()
|
|
52
|
+
mavenCentral()
|
|
53
|
+
jcenter()
|
|
33
54
|
}
|
|
34
55
|
|
|
35
56
|
dependencies {
|
|
36
|
-
|
|
37
|
-
|
|
57
|
+
//noinspection GradleDynamicVersion
|
|
58
|
+
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
59
|
+
//noinspection GradleDynamicVersion
|
|
60
|
+
implementation 'com.bugfender.sdk:android:3.+'
|
|
38
61
|
}
|
|
Binary file
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
#Fri May 29 18:45:18 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-5.6.4-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,25 +1,42 @@
|
|
|
1
1
|
package com.bugfender.react;
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import androidx.annotation.NonNull;
|
|
4
4
|
|
|
5
|
+
import android.app.Activity;
|
|
6
|
+
import android.app.Application;
|
|
7
|
+
import android.content.Intent;
|
|
5
8
|
import com.bugfender.sdk.Bugfender;
|
|
6
9
|
import com.bugfender.sdk.LogLevel;
|
|
10
|
+
import com.bugfender.sdk.ui.FeedbackActivity;
|
|
11
|
+
import com.facebook.react.bridge.ActivityEventListener;
|
|
7
12
|
import com.facebook.react.bridge.Promise;
|
|
8
13
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
9
14
|
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
10
15
|
import com.facebook.react.bridge.ReactMethod;
|
|
16
|
+
import com.facebook.react.module.annotations.ReactModule;
|
|
11
17
|
|
|
12
18
|
import java.net.URL;
|
|
13
19
|
|
|
14
|
-
|
|
20
|
+
@ReactModule(name = RnBugfenderModule.NAME)
|
|
21
|
+
public class RnBugfenderModule extends ReactContextBaseJavaModule implements ActivityEventListener {
|
|
22
|
+
public static final String NAME = "RnBugfender";
|
|
15
23
|
|
|
16
|
-
public
|
|
17
|
-
super(
|
|
24
|
+
public RnBugfenderModule(ReactApplicationContext reactContext) {
|
|
25
|
+
super(reactContext);
|
|
26
|
+
this.getReactApplicationContext().addActivityEventListener(this);
|
|
18
27
|
}
|
|
19
28
|
|
|
20
29
|
@Override
|
|
30
|
+
@NonNull
|
|
21
31
|
public String getName() {
|
|
22
|
-
return
|
|
32
|
+
return NAME;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
private Promise pendingPromise; // Promise that is waiting information that will be available in onActivityResult
|
|
36
|
+
|
|
37
|
+
@ReactMethod
|
|
38
|
+
public void overrideDeviceName(String deviceName) {
|
|
39
|
+
Bugfender.overrideDeviceName(deviceName);
|
|
23
40
|
}
|
|
24
41
|
|
|
25
42
|
@ReactMethod
|
|
@@ -27,6 +44,11 @@ public class RNBugfenderModule extends ReactContextBaseJavaModule {
|
|
|
27
44
|
Bugfender.init(getReactApplicationContext(), apiKey, debug);
|
|
28
45
|
}
|
|
29
46
|
|
|
47
|
+
@ReactMethod
|
|
48
|
+
public void setBaseUrl(String baseUrl) {
|
|
49
|
+
Bugfender.setBaseUrl(baseUrl);
|
|
50
|
+
}
|
|
51
|
+
|
|
30
52
|
@ReactMethod
|
|
31
53
|
public void setApiUrl(String apiUrl) {
|
|
32
54
|
Bugfender.setApiUrl(apiUrl);
|
|
@@ -59,7 +81,7 @@ public class RNBugfenderModule extends ReactContextBaseJavaModule {
|
|
|
59
81
|
|
|
60
82
|
@ReactMethod
|
|
61
83
|
public void enableUIEventLogging() {
|
|
62
|
-
|
|
84
|
+
Bugfender.enableUIEventLogging(getApplication());
|
|
63
85
|
}
|
|
64
86
|
|
|
65
87
|
@ReactMethod
|
|
@@ -82,6 +104,21 @@ public class RNBugfenderModule extends ReactContextBaseJavaModule {
|
|
|
82
104
|
Bugfender.setDeviceFloat(key, value);
|
|
83
105
|
}
|
|
84
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
|
+
|
|
85
122
|
@ReactMethod
|
|
86
123
|
public void debug(String tag, String text) {
|
|
87
124
|
Bugfender.d(tag, text);
|
|
@@ -98,14 +135,14 @@ public class RNBugfenderModule extends ReactContextBaseJavaModule {
|
|
|
98
135
|
}
|
|
99
136
|
|
|
100
137
|
@ReactMethod
|
|
101
|
-
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) {
|
|
102
139
|
final LogLevel logLevel = parseLogLevel(rawLogLevel);
|
|
103
140
|
Bugfender.log(lineNumber, method, file, logLevel, tag, message);
|
|
104
141
|
}
|
|
105
142
|
|
|
106
143
|
@ReactMethod
|
|
107
144
|
public void sendIssue(String title, String text, Promise promise) {
|
|
108
|
-
URL url = Bugfender.sendIssue
|
|
145
|
+
URL url = Bugfender.sendIssue(title, text);
|
|
109
146
|
promise.resolve(url != null ? url.toString() : null);
|
|
110
147
|
}
|
|
111
148
|
|
|
@@ -117,7 +154,7 @@ public class RNBugfenderModule extends ReactContextBaseJavaModule {
|
|
|
117
154
|
|
|
118
155
|
@ReactMethod
|
|
119
156
|
public void sendUserFeedback(String title, String text, Promise promise) {
|
|
120
|
-
URL url = Bugfender.sendUserFeedback
|
|
157
|
+
URL url = Bugfender.sendUserFeedback(title, text);
|
|
121
158
|
promise.resolve(url != null ? url.toString() : null);
|
|
122
159
|
}
|
|
123
160
|
|
|
@@ -138,16 +175,54 @@ public class RNBugfenderModule extends ReactContextBaseJavaModule {
|
|
|
138
175
|
promise.resolve(url != null ? url.toString() : null);
|
|
139
176
|
}
|
|
140
177
|
|
|
141
|
-
private static
|
|
178
|
+
private static final int SHOW_USER_FEEDBACK_REQUEST_CODE = 10001;
|
|
179
|
+
|
|
180
|
+
@ReactMethod
|
|
181
|
+
public void showUserFeedback(String title, String hint, String subjectHint, String messageHint, String sendButtonText, String cancelButtonText,
|
|
182
|
+
Promise promise) {
|
|
183
|
+
getCurrentActivity().startActivityForResult(
|
|
184
|
+
Bugfender.getUserFeedbackActivityIntent(getApplication(), title, hint, subjectHint, messageHint, sendButtonText), SHOW_USER_FEEDBACK_REQUEST_CODE
|
|
185
|
+
);
|
|
186
|
+
pendingPromise = promise;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
private Application getApplication() {
|
|
190
|
+
return (Application) getReactApplicationContext().getApplicationContext();
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
private static LogLevel parseLogLevel(int loglevel) {
|
|
142
194
|
switch (loglevel) {
|
|
143
|
-
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:
|
|
144
202
|
return LogLevel.Debug;
|
|
145
|
-
case
|
|
203
|
+
case 1:
|
|
146
204
|
return LogLevel.Warning;
|
|
147
|
-
case
|
|
205
|
+
case 2:
|
|
148
206
|
return LogLevel.Error;
|
|
149
207
|
default:
|
|
150
208
|
return null;
|
|
151
209
|
}
|
|
152
210
|
}
|
|
211
|
+
|
|
212
|
+
@Override
|
|
213
|
+
public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) {
|
|
214
|
+
if (requestCode == SHOW_USER_FEEDBACK_REQUEST_CODE && pendingPromise != null) {
|
|
215
|
+
if (resultCode == Activity.RESULT_OK) {
|
|
216
|
+
pendingPromise.resolve(data.getStringExtra(FeedbackActivity.RESULT_FEEDBACK_URL));
|
|
217
|
+
} else {
|
|
218
|
+
pendingPromise.reject("0", "Feedback not sent");
|
|
219
|
+
}
|
|
220
|
+
pendingPromise = null;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@Override
|
|
225
|
+
public void onNewIntent(Intent intent) {
|
|
226
|
+
// Nothing to do
|
|
227
|
+
}
|
|
153
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
|
+
}
|