@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
package/README.md
CHANGED
|
@@ -2,131 +2,155 @@
|
|
|
2
2
|
|
|
3
3
|
## Getting started
|
|
4
4
|
|
|
5
|
-
The Bugfender bindings for React Native depend on the native iOS and Android Bugfender SDKs.
|
|
5
|
+
The Bugfender bindings for React Native depend on the native iOS and Android Bugfender SDKs.
|
|
6
6
|
|
|
7
7
|
## Creating a RN new project compatible with Bugfender
|
|
8
8
|
|
|
9
|
-
You can create a new project using
|
|
9
|
+
You can create a new project using
|
|
10
10
|
|
|
11
|
-
`$ react-native init AwesomeProject`
|
|
11
|
+
`$ npx react-native init AwesomeProject`
|
|
12
12
|
|
|
13
|
-
or if you already started your project using the tool `create-react-native-app` you will need to `eject` your project in order to add native modules.
|
|
13
|
+
or if you already started your project using the tool `create-react-native-app` you will need to `eject` your project in order to add native modules.
|
|
14
14
|
|
|
15
|
-
More info can be found in the [official docs](https://facebook.github.io/react-native/docs/getting-started
|
|
15
|
+
More info can be found in the [official docs](https://facebook.github.io/react-native/docs/getting-started)
|
|
16
16
|
|
|
17
|
-
Before moving to the next point **compile the project and ensure you can execute**.
|
|
18
|
-
In this way, we can discard issues in the next steps.
|
|
17
|
+
Before moving to the next point **compile the project and ensure you can execute**.
|
|
18
|
+
In this way, we can discard issues in the next steps.
|
|
19
19
|
|
|
20
|
-
## Adding Bugfender to your project
|
|
20
|
+
## Adding Bugfender to your project
|
|
21
|
+
|
|
22
|
+
**Please note:** if you're using Expo for development, be sure to be using the ["bare workflow"](https://docs.expo.io/introduction/managed-vs-bare/#bare-workflow).
|
|
21
23
|
|
|
22
24
|
`$ cd path_to_your_project`
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
Add the bugfender plugin from npm
|
|
25
27
|
|
|
26
28
|
`$ npm install @bugfender/rn-bugfender --save`
|
|
27
29
|
|
|
28
|
-
**If you want to use cocoapods (recommended), skip the step 2 and go to the step 3B**.
|
|
29
|
-
For manual installation, proceed with the steps 2 and 3A.
|
|
30
|
-
|
|
31
|
-
**2.** Link to your project
|
|
32
|
-
```
|
|
33
|
-
// Add the classes of the plugin to your android and iOS projects
|
|
34
|
-
$ react-native link @bugfender/rn-bugfender`
|
|
35
|
-
```
|
|
36
|
-
|
|
37
30
|
### Android
|
|
38
|
-
You are done!
|
|
39
|
-
|
|
40
|
-
### iOS
|
|
41
|
-
**3A. Manual installation**
|
|
42
|
-
|
|
43
|
-
Download the latest release from [Github](https://github.com/bugfender/BugfenderSDK-iOS/releases) and copy `BugfenderSDK.framework` to `YourAwesomeProjectDirectory/ios` (same directory as AwesomeProject.xcodeproj). Then, follow the instructions to setup your project manually:
|
|
44
|
-
|
|
45
|
-
* Go to your **Project** > **Your Target** > **General** > **Linked Frameworks and Libraries** and drag `BugfenderSDK.framework` there (uncheck the "Copy items if needed" checkbox).
|
|
46
|
-
|
|
47
|
-
* Make sure you have linked `SystemConfiguration.framework`, `Security.framework`, `MobileCoreServices.framework` and `libc++.tbd` as well.
|
|
31
|
+
You are done!
|
|
48
32
|
|
|
49
|
-
|
|
33
|
+
### iOS
|
|
34
|
+
You can finish the installation manually or via CocoaPods (recommended)
|
|
50
35
|
|
|
51
|
-
**
|
|
36
|
+
**CocoaPods (recommended)**
|
|
52
37
|
|
|
53
38
|
1. Ensure your iOS project contains a Podfile, otherwise you need to add it now:
|
|
54
39
|
```
|
|
55
40
|
$ cd path_to_your_project/ios
|
|
56
41
|
$ pod init
|
|
57
42
|
```
|
|
43
|
+
Make sure you're targeting at least iOS platform version 10 (specify `platform :ios, '10.0'`).
|
|
58
44
|
|
|
59
|
-
2.
|
|
60
|
-
```
|
|
61
|
-
// Add the classes of the plugin to your android and iOS projects
|
|
62
|
-
$ react-native link @bugfender/rn-bugfender`
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
A new line should have been added automatically to your Podfile:
|
|
66
|
-
|
|
67
|
-
`pod 'RNBugfender', :path => '../node_modules/@bugfender/rn-bugfender'`
|
|
68
|
-
|
|
69
|
-
3. After configuring the podfile you can now go to the console and run
|
|
45
|
+
2. After configuring the podfile you can now go to the console and run
|
|
70
46
|
|
|
71
47
|
`$ pod install`
|
|
72
48
|
|
|
73
|
-
When the installation has finished you should be able to run your project in iOS and Android.
|
|
49
|
+
When the installation has finished you should be able to run your project in iOS and Android.
|
|
74
50
|
|
|
75
51
|
**Remember that you should be using the Xcode workspace instead of the xcodeproj file from now on.**
|
|
76
52
|
|
|
77
|
-
|
|
53
|
+
*At the end of this document you can find a **[recommended podfile](#recommended-podfile)**. You can use it as an example*.
|
|
78
54
|
|
|
79
|
-
|
|
55
|
+
If you have any problems compiling or executing, try our [Troubleshooting section](#cocoapods-troubleshooting) at the end of this document.
|
|
80
56
|
|
|
81
|
-
|
|
57
|
+
**Manual installation (alternative to CocoaPods)**
|
|
82
58
|
|
|
83
|
-
|
|
59
|
+
Download the latest release from [Github](https://github.com/bugfender/BugfenderSDK-iOS/releases) and copy `BugfenderSDK.framework` to `YourAwesomeProjectDirectory/ios` (same directory as AwesomeProject.xcodeproj). Then, follow the instructions to setup your project manually:
|
|
84
60
|
|
|
85
|
-
|
|
61
|
+
* Go to your **Project** > **Your Target** > **General** > **Linked Frameworks and Libraries** and drag `BugfenderSDK.framework` there (uncheck the "Copy items if needed" checkbox).
|
|
62
|
+
|
|
63
|
+
* Make sure you have linked `SystemConfiguration.framework`, `Security.framework`, `MobileCoreServices.framework` and `libc++.tbd` as well.
|
|
86
64
|
|
|
87
65
|
## RNBugfender Usage
|
|
88
|
-
```
|
|
89
|
-
import Bugfender from '@bugfender/rn-bugfender';
|
|
90
|
-
|
|
91
|
-
// Init Bugfender with your APP key
|
|
92
|
-
Bugfender.init(
|
|
93
|
-
|
|
94
|
-
//
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
//
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
//
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
Bugfender.log
|
|
106
|
-
Bugfender.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
Bugfender.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
66
|
+
```typescript
|
|
67
|
+
import { Bugfender, LogLevel } from '@bugfender/rn-bugfender';
|
|
68
|
+
|
|
69
|
+
// Init Bugfender with your APP key
|
|
70
|
+
Bugfender.init({
|
|
71
|
+
appKey: '<YOUR APP KEY>',
|
|
72
|
+
// apiURL: 'https://api.bugfender.com',
|
|
73
|
+
// baseURL: 'https://dashboard.bugfender.com',
|
|
74
|
+
// overrideConsoleMethods: true,
|
|
75
|
+
// printToConsole: true,
|
|
76
|
+
// logUIEvents: true,
|
|
77
|
+
// registerErrorHandler: true,
|
|
78
|
+
// deviceName: 'Anonymous Phone',
|
|
79
|
+
// enableLogcatLogging: false,
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
// Send logs with different levels
|
|
83
|
+
Bugfender.log('This is a debug log in Bugfender from React Native');
|
|
84
|
+
Bugfender.warn('This is a warn log in Bugfender from React Native');
|
|
85
|
+
Bugfender.error('This is a error log in Bugfender from React Native');
|
|
86
|
+
Bugfender.fatal('This is a fatal log in Bugfender from React Native');
|
|
87
|
+
Bugfender.trace('This is a trace log in Bugfender from React Native');
|
|
88
|
+
Bugfender.info('This is a info log in Bugfender from React Native');
|
|
89
|
+
|
|
90
|
+
// Send low level log
|
|
91
|
+
Bugfender.sendLog({
|
|
92
|
+
line: 1001,
|
|
93
|
+
level: LogLevel.Debug,
|
|
94
|
+
tag: 'tag',
|
|
95
|
+
method: 'method',
|
|
96
|
+
file: 'file',
|
|
97
|
+
text: 'Sending low level debug log.',
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
// Send issues
|
|
101
|
+
Bugfender.sendIssue('Issue titile', 'This will create a new issue in Bugfender').then((url) =>
|
|
102
|
+
console.log('Issue url: %s', url)
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
// Send crashes
|
|
106
|
+
Bugfender.sendCrash('Crash title', 'This will create a new crash in Bugfender').then((url) =>
|
|
107
|
+
console.log('Crash url: %s', url)
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
// Send user feedback
|
|
111
|
+
Bugfender.sendUserFeedback('Feedback title', 'This will create a new feedback in Bugfender').then((url) =>
|
|
112
|
+
console.log('Feedback url: %s', url)
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
// Show user feedback native screen
|
|
116
|
+
Bugfender.getUserFeedback({
|
|
117
|
+
title: 'Feedback',
|
|
118
|
+
hint: 'Please send us your feedback',
|
|
119
|
+
subjectPlaceholder: 'This is the reason',
|
|
120
|
+
feedbackPlaceholder: 'This is the full message',
|
|
121
|
+
submitLabel: 'Send',
|
|
122
|
+
closeLabel: 'Cancel',
|
|
123
|
+
}
|
|
124
|
+
).then(response => {
|
|
125
|
+
if (response.isSent) {
|
|
126
|
+
console.log('RN: feedback sent with url:', response.feedbackURL);
|
|
127
|
+
} else {
|
|
128
|
+
console.log('RN: feedback not sent');
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
// Set device values
|
|
133
|
+
Bugfender.setDeviceKey('device.key.string', 'fake.string.value');
|
|
134
|
+
Bugfender.setDeviceKey('device.key.boolean', true);
|
|
135
|
+
Bugfender.setDeviceKey('device.key.float', 10.1);
|
|
136
|
+
Bugfender.setDeviceKey('device.key.integer', 102);
|
|
137
|
+
|
|
138
|
+
// Get different URLs
|
|
139
|
+
Bugfender.getDeviceURL().then((url) => console.log('Device url: %s', url));
|
|
140
|
+
Bugfender.getSessionURL().then((url) => console.log('Session url: %s', url));
|
|
141
|
+
|
|
142
|
+
// Synchronizes all logs and issues with the server once
|
|
143
|
+
Bugfender.forceSendOnce();
|
|
120
144
|
```
|
|
121
145
|
|
|
122
|
-
## Cocoapods Troubleshooting
|
|
146
|
+
## Cocoapods Troubleshooting
|
|
123
147
|
We did our best to create a installation process that worked for most of the users. However, the React Native configuration can be tricky sometimes.
|
|
124
148
|
|
|
125
|
-
Most of the issues are related to the high number of dependencies and the compatibility between them. As every project is different and has different needs it's difficult to provide a magic receipt that can work out of the box, however we find out that the following Podfile compiles and run correctly most of the time. You can use it as a basis to experiment and find a configuration that works for you.
|
|
149
|
+
Most of the issues are related to the high number of dependencies and the compatibility between them. As every project is different and has different needs it's difficult to provide a magic receipt that can work out of the box, however we find out that the following Podfile compiles and run correctly most of the time. You can use it as a basis to experiment and find a configuration that works for you.
|
|
126
150
|
|
|
127
151
|
### Recommended Podfile
|
|
128
152
|
```
|
|
129
|
-
platform :ios, '
|
|
153
|
+
platform :ios, '10.0'
|
|
130
154
|
|
|
131
155
|
target 'SampleProject' do
|
|
132
156
|
# Comment the next line if you don't want to use dynamic frameworks
|
|
@@ -136,7 +160,7 @@ target 'SampleProject' do
|
|
|
136
160
|
pod 'AFNetworking'
|
|
137
161
|
|
|
138
162
|
# Add new pods below this line
|
|
139
|
-
pod '
|
|
163
|
+
pod 'RnBugfender', :path => '../node_modules/@bugfender/rn-bugfender'
|
|
140
164
|
|
|
141
165
|
rn_path = '../node_modules/react-native'
|
|
142
166
|
|
|
@@ -157,10 +181,10 @@ target 'SampleProject' do
|
|
|
157
181
|
'RCTVibration',
|
|
158
182
|
'RCTWebSocket',
|
|
159
183
|
]
|
|
160
|
-
|
|
184
|
+
|
|
161
185
|
end
|
|
162
186
|
```
|
|
163
187
|
|
|
164
|
-
If you are not able to get your project working you can still try to add RNBugfender with the Manual Installation or to open an issue in Github and maybe we can help you.
|
|
188
|
+
If you are not able to get your project working you can still try to add RNBugfender with the Manual Installation or to open an issue in Github and maybe we can help you.
|
|
165
189
|
|
|
166
|
-
Happy debugging!
|
|
190
|
+
Happy debugging!
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.name = "RnBugfender"
|
|
7
|
+
s.version = package["version"]
|
|
8
|
+
s.summary = package["description"]
|
|
9
|
+
s.homepage = package["homepage"]
|
|
10
|
+
s.license = package["license"]
|
|
11
|
+
s.authors = package["author"]
|
|
12
|
+
|
|
13
|
+
s.platforms = { :ios => "10.0" }
|
|
14
|
+
s.source = { :git => "https://github.com/bugfender/BugfenderSDK-iOS", :tag => "master" }
|
|
15
|
+
|
|
16
|
+
s.source_files = "ios/**/*.{h,m,mm}"
|
|
17
|
+
|
|
18
|
+
s.dependency "React-Core"
|
|
19
|
+
s.dependency 'BugfenderSDK', '~> 1.10.5'
|
|
20
|
+
|
|
21
|
+
end
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Fri
|
|
2
|
-
gradle.version=
|
|
1
|
+
#Fri Dec 10 18:55:52 CET 2021
|
|
2
|
+
gradle.version=7.1
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/.idea/gradle.xml
CHANGED
|
@@ -4,15 +4,14 @@
|
|
|
4
4
|
<component name="GradleSettings">
|
|
5
5
|
<option name="linkedExternalProjectsSettings">
|
|
6
6
|
<GradleProjectSettings>
|
|
7
|
-
<option name="testRunner" value="PLATFORM" />
|
|
8
7
|
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
|
9
8
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
9
|
+
<option name="gradleJvm" value="#JAVA_HOME" />
|
|
10
10
|
<option name="modules">
|
|
11
11
|
<set>
|
|
12
12
|
<option value="$PROJECT_DIR$" />
|
|
13
13
|
</set>
|
|
14
14
|
</option>
|
|
15
|
-
<option name="resolveModulePerSourceSet" value="false" />
|
|
16
15
|
</GradleProjectSettings>
|
|
17
16
|
</option>
|
|
18
17
|
</component>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="RemoteRepositoriesConfiguration">
|
|
4
|
+
<remote-repository>
|
|
5
|
+
<option name="id" value="central" />
|
|
6
|
+
<option name="name" value="Maven Central repository" />
|
|
7
|
+
<option name="url" value="https://repo1.maven.org/maven2" />
|
|
8
|
+
</remote-repository>
|
|
9
|
+
<remote-repository>
|
|
10
|
+
<option name="id" value="jboss.community" />
|
|
11
|
+
<option name="name" value="JBoss Community repository" />
|
|
12
|
+
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
|
13
|
+
</remote-repository>
|
|
14
|
+
<remote-repository>
|
|
15
|
+
<option name="id" value="MavenRepo" />
|
|
16
|
+
<option name="name" value="MavenRepo" />
|
|
17
|
+
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
|
18
|
+
</remote-repository>
|
|
19
|
+
<remote-repository>
|
|
20
|
+
<option name="id" value="BintrayJCenter" />
|
|
21
|
+
<option name="name" value="BintrayJCenter" />
|
|
22
|
+
<option name="url" value="https://jcenter.bintray.com/" />
|
|
23
|
+
</remote-repository>
|
|
24
|
+
<remote-repository>
|
|
25
|
+
<option name="id" value="maven" />
|
|
26
|
+
<option name="name" value="maven" />
|
|
27
|
+
<option name="url" value="file:$PROJECT_DIR$/../node_modules/react-native/android/" />
|
|
28
|
+
</remote-repository>
|
|
29
|
+
<remote-repository>
|
|
30
|
+
<option name="id" value="MavenLocal" />
|
|
31
|
+
<option name="name" value="MavenLocal" />
|
|
32
|
+
<option name="url" value="file:$MAVEN_REPOSITORY$/" />
|
|
33
|
+
</remote-repository>
|
|
34
|
+
<remote-repository>
|
|
35
|
+
<option name="id" value="Google" />
|
|
36
|
+
<option name="name" value="Google" />
|
|
37
|
+
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
|
|
38
|
+
</remote-repository>
|
|
39
|
+
</component>
|
|
40
|
+
</project>
|
package/android/.idea/misc.xml
CHANGED
|
@@ -1,114 +1,8 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
|
-
<component name="
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
</configurations>
|
|
7
|
-
</component>
|
|
8
|
-
<component name="MarkdownNavigator.ProfileManager" plain-text-search-scope="Project Files" />
|
|
9
|
-
<component name="MarkdownProjectSettings" wasCopied="true">
|
|
10
|
-
<PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.0" maxImageWidth="0" showGitHubPageIfSynced="false" allowBrowsingInPreview="false" synchronizePreviewPosition="true" highlightPreviewType="NONE" highlightFadeOut="5" highlightOnTyping="true" synchronizeSourcePosition="true" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="false" showSelectionInPreview="true" openRemoteLinks="true" replaceUnicodeEmoji="false" lastLayoutSetsDefault="false">
|
|
11
|
-
<PanelProvider>
|
|
12
|
-
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.panel" providerName="Default - Swing" />
|
|
13
|
-
</PanelProvider>
|
|
14
|
-
</PreviewSettings>
|
|
15
|
-
<ParserSettings gitHubSyntaxChange="false" emojiShortcuts="1" emojiImages="0">
|
|
16
|
-
<PegdownExtensions>
|
|
17
|
-
<option name="ABBREVIATIONS" value="false" />
|
|
18
|
-
<option name="ANCHORLINKS" value="true" />
|
|
19
|
-
<option name="ASIDE" value="false" />
|
|
20
|
-
<option name="ATXHEADERSPACE" value="true" />
|
|
21
|
-
<option name="AUTOLINKS" value="true" />
|
|
22
|
-
<option name="DEFINITIONS" value="false" />
|
|
23
|
-
<option name="DEFINITION_BREAK_DOUBLE_BLANK_LINE" value="false" />
|
|
24
|
-
<option name="FENCED_CODE_BLOCKS" value="true" />
|
|
25
|
-
<option name="FOOTNOTES" value="false" />
|
|
26
|
-
<option name="HARDWRAPS" value="false" />
|
|
27
|
-
<option name="HTML_DEEP_PARSER" value="false" />
|
|
28
|
-
<option name="INSERTED" value="false" />
|
|
29
|
-
<option name="QUOTES" value="false" />
|
|
30
|
-
<option name="RELAXEDHRULES" value="true" />
|
|
31
|
-
<option name="SMARTS" value="false" />
|
|
32
|
-
<option name="STRIKETHROUGH" value="true" />
|
|
33
|
-
<option name="SUBSCRIPT" value="false" />
|
|
34
|
-
<option name="SUPERSCRIPT" value="false" />
|
|
35
|
-
<option name="SUPPRESS_HTML_BLOCKS" value="false" />
|
|
36
|
-
<option name="SUPPRESS_INLINE_HTML" value="false" />
|
|
37
|
-
<option name="TABLES" value="true" />
|
|
38
|
-
<option name="TASKLISTITEMS" value="true" />
|
|
39
|
-
<option name="TOC" value="false" />
|
|
40
|
-
<option name="WIKILINKS" value="true" />
|
|
41
|
-
</PegdownExtensions>
|
|
42
|
-
<ParserOptions>
|
|
43
|
-
<option name="ADMONITION_EXT" value="false" />
|
|
44
|
-
<option name="ATTRIBUTES_EXT" value="false" />
|
|
45
|
-
<option name="COMMONMARK_LISTS" value="true" />
|
|
46
|
-
<option name="DUMMY" value="false" />
|
|
47
|
-
<option name="EMOJI_SHORTCUTS" value="true" />
|
|
48
|
-
<option name="ENUMERATED_REFERENCES_EXT" value="false" />
|
|
49
|
-
<option name="FLEXMARK_FRONT_MATTER" value="false" />
|
|
50
|
-
<option name="GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA" value="false" />
|
|
51
|
-
<option name="GFM_TABLE_RENDERING" value="true" />
|
|
52
|
-
<option name="GITBOOK_URL_ENCODING" value="false" />
|
|
53
|
-
<option name="GITHUB_LISTS" value="false" />
|
|
54
|
-
<option name="GITHUB_WIKI_LINKS" value="true" />
|
|
55
|
-
<option name="GITLAB_EXT" value="false" />
|
|
56
|
-
<option name="GITLAB_MATH_EXT" value="false" />
|
|
57
|
-
<option name="GITLAB_MERMAID_EXT" value="false" />
|
|
58
|
-
<option name="HEADER_ID_NON_ASCII_TO_LOWERCASE" value="false" />
|
|
59
|
-
<option name="HEADER_ID_NO_DUPED_DASHES" value="false" />
|
|
60
|
-
<option name="JEKYLL_FRONT_MATTER" value="false" />
|
|
61
|
-
<option name="MACROS_EXT" value="false" />
|
|
62
|
-
<option name="NO_TEXT_ATTRIBUTES" value="false" />
|
|
63
|
-
<option name="PARSE_HTML_ANCHOR_ID" value="false" />
|
|
64
|
-
<option name="PLANTUML_FENCED_CODE" value="false" />
|
|
65
|
-
<option name="PUML_FENCED_CODE" value="false" />
|
|
66
|
-
<option name="SIM_TOC_BLANK_LINE_SPACER" value="true" />
|
|
67
|
-
</ParserOptions>
|
|
68
|
-
</ParserSettings>
|
|
69
|
-
<HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" embedUrlContent="false" addPageHeader="true" embedImages="false" embedHttpImages="false" imageUriSerials="false" addDocTypeHtml="true" noParaTags="false" plantUmlConversion="0" mathConversion="-1">
|
|
70
|
-
<GeneratorProvider>
|
|
71
|
-
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.generator" providerName="Default Swing HTML Generator" />
|
|
72
|
-
</GeneratorProvider>
|
|
73
|
-
<headerTop />
|
|
74
|
-
<headerBottom />
|
|
75
|
-
<bodyTop />
|
|
76
|
-
<bodyBottom />
|
|
77
|
-
</HtmlSettings>
|
|
78
|
-
<CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssUriSerial="true" isCssTextEnabled="false" isDynamicPageWidth="true">
|
|
79
|
-
<StylesheetProvider>
|
|
80
|
-
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.css" providerName="Default Swing Stylesheet" />
|
|
81
|
-
</StylesheetProvider>
|
|
82
|
-
<ScriptProviders />
|
|
83
|
-
<cssText />
|
|
84
|
-
<cssUriHistory />
|
|
85
|
-
</CssSettings>
|
|
86
|
-
<AnnotatorSettings targetHasSpaces="true" linkCaseMismatch="true" wikiCaseMismatch="true" wikiLinkHasDashes="true" notUnderWikiHome="true" targetNotWikiPageExt="true" notUnderSourceWikiHome="true" targetNameHasAnchor="true" targetPathHasAnchor="true" wikiLinkHasSlash="true" wikiLinkHasSubdir="true" wikiLinkHasOnlyAnchor="true" linkTargetsWikiHasExt="true" linkTargetsWikiHasBadExt="true" notUnderSameRepo="true" targetNotUnderVcs="false" linkNeedsExt="true" linkHasBadExt="true" linkTargetNeedsExt="true" linkTargetHasBadExt="true" wikiLinkNotInWiki="true" imageTargetNotInRaw="true" repoRelativeAcrossVcsRoots="true" multipleWikiTargetsMatch="true" unresolvedLinkReference="true" linkIsIgnored="true" anchorIsIgnored="true" anchorIsUnresolved="true" anchorLineReferenceIsUnresolved="true" anchorLineReferenceFormat="true" anchorHasDuplicates="true" abbreviationDuplicates="true" abbreviationNotUsed="true" attributeIdDuplicateDefinition="true" attributeIdNotUsed="true" footnoteDuplicateDefinition="true" footnoteUnresolved="true" footnoteDuplicates="true" footnoteNotUsed="true" macroDuplicateDefinition="true" macroUnresolved="true" macroDuplicates="true" macroNotUsed="true" referenceDuplicateDefinition="true" referenceUnresolved="true" referenceDuplicates="true" referenceNotUsed="true" referenceUnresolvedNumericId="true" enumRefDuplicateDefinition="true" enumRefUnresolved="true" enumRefDuplicates="true" enumRefNotUsed="true" enumRefLinkUnresolved="true" enumRefLinkDuplicates="true" simTocUpdateNeeded="true" simTocTitleSpaceNeeded="true" />
|
|
87
|
-
<HtmlExportSettings updateOnSave="false" parentDir="" targetDir="" cssDir="css" scriptDir="js" plainHtml="false" imageDir="" copyLinkedImages="false" imageUniquifyType="0" targetPathType="2" targetExt="" useTargetExt="false" noCssNoScripts="false" useElementStyleAttribute="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" linkFormatType="HTTP_ABSOLUTE" />
|
|
88
|
-
<LinkMapSettings>
|
|
89
|
-
<textMaps />
|
|
90
|
-
</LinkMapSettings>
|
|
91
|
-
</component>
|
|
92
|
-
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="JDK" project-jdk-type="JavaSDK">
|
|
93
|
-
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
94
|
-
</component>
|
|
95
|
-
<component name="ProjectType">
|
|
96
|
-
<option name="id" value="Android" />
|
|
97
|
-
</component>
|
|
98
|
-
<component name="masterDetails">
|
|
99
|
-
<states>
|
|
100
|
-
<state key="ProjectJDKs.UI">
|
|
101
|
-
<settings>
|
|
102
|
-
<last-edited>Android API 16 Platform</last-edited>
|
|
103
|
-
<splitter-proportions>
|
|
104
|
-
<option name="proportions">
|
|
105
|
-
<list>
|
|
106
|
-
<option value="0.2" />
|
|
107
|
-
</list>
|
|
108
|
-
</option>
|
|
109
|
-
</splitter-proportions>
|
|
110
|
-
</settings>
|
|
111
|
-
</state>
|
|
112
|
-
</states>
|
|
3
|
+
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
4
|
+
<component name="FrameworkDetectionExcludesConfiguration">
|
|
5
|
+
<file type="web" url="file://$PROJECT_DIR$" />
|
|
113
6
|
</component>
|
|
7
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK" />
|
|
114
8
|
</project>
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
<component name="RunConfigurationProducerService">
|
|
4
4
|
<option name="ignoredProducers">
|
|
5
5
|
<set>
|
|
6
|
-
<option value="
|
|
7
|
-
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
|
|
8
|
-
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
|
|
6
|
+
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
|
|
9
7
|
</set>
|
|
10
8
|
</option>
|
|
11
9
|
</component>
|