@bugfender/rn-bugfender 1.1.5 → 2.1.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.
Files changed (323) hide show
  1. package/README.md +159 -95
  2. package/RnBugfender.podspec +21 -0
  3. package/android/build.gradle +43 -85
  4. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  5. package/android/gradle/wrapper/gradle-wrapper.properties +1 -2
  6. package/android/gradlew +34 -21
  7. package/android/gradlew.bat +24 -19
  8. package/android/src/main/AndroidManifest.xml +4 -3
  9. package/android/src/main/java/com/bugfender/react/{RNBugfenderModule.java → RnBugfenderModule.java} +46 -17
  10. package/android/src/main/java/com/bugfender/react/RnBugfenderPackage.java +28 -0
  11. package/ios/RnBugfender.h +5 -0
  12. package/ios/{RNBugfender.m → RnBugfender.m} +30 -9
  13. package/ios/{RNBugfender.xcodeproj → RnBugfender.xcodeproj}/project.pbxproj +42 -37
  14. package/lib/commonjs/bugfender.js +346 -0
  15. package/lib/commonjs/bugfender.js.map +1 -0
  16. package/lib/commonjs/index.js +28 -0
  17. package/lib/commonjs/index.js.map +1 -0
  18. package/lib/commonjs/index.web.js +30 -0
  19. package/lib/commonjs/index.web.js.map +1 -0
  20. package/lib/commonjs/override-console-methods.js +91 -0
  21. package/lib/commonjs/override-console-methods.js.map +1 -0
  22. package/lib/commonjs/print-to-console.js +78 -0
  23. package/lib/commonjs/print-to-console.js.map +1 -0
  24. package/lib/commonjs/sdk-options.js +76 -0
  25. package/lib/commonjs/sdk-options.js.map +1 -0
  26. package/lib/commonjs/string-formatter.js +55 -0
  27. package/lib/commonjs/string-formatter.js.map +1 -0
  28. package/lib/commonjs/types/device.js +2 -0
  29. package/lib/commonjs/types/device.js.map +1 -0
  30. package/lib/commonjs/types/log.js +35 -0
  31. package/lib/commonjs/types/log.js.map +1 -0
  32. package/lib/commonjs/types/sdk-options.js +58 -0
  33. package/lib/commonjs/types/sdk-options.js.map +1 -0
  34. package/lib/commonjs/user-feedback.js +31 -0
  35. package/lib/commonjs/user-feedback.js.map +1 -0
  36. package/lib/commonjs/utilities.js +18 -0
  37. package/lib/commonjs/utilities.js.map +1 -0
  38. package/lib/module/bugfender.js +332 -0
  39. package/lib/module/bugfender.js.map +1 -0
  40. package/lib/module/index.js +6 -0
  41. package/lib/module/index.js.map +1 -0
  42. package/lib/module/index.web.js +5 -0
  43. package/lib/module/index.web.js.map +1 -0
  44. package/lib/module/override-console-methods.js +75 -0
  45. package/lib/module/override-console-methods.js.map +1 -0
  46. package/lib/module/print-to-console.js +67 -0
  47. package/lib/module/print-to-console.js.map +1 -0
  48. package/lib/module/sdk-options.js +66 -0
  49. package/lib/module/sdk-options.js.map +1 -0
  50. package/lib/module/string-formatter.js +45 -0
  51. package/lib/module/string-formatter.js.map +1 -0
  52. package/lib/module/types/device.js +2 -0
  53. package/lib/module/types/device.js.map +1 -0
  54. package/lib/module/types/log.js +24 -0
  55. package/lib/module/types/log.js.map +1 -0
  56. package/lib/module/types/sdk-options.js +48 -0
  57. package/lib/module/types/sdk-options.js.map +1 -0
  58. package/lib/module/user-feedback.js +22 -0
  59. package/lib/module/user-feedback.js.map +1 -0
  60. package/lib/module/utilities.js +11 -0
  61. package/lib/module/utilities.js.map +1 -0
  62. package/lib/typescript/bugfender.d.ts +164 -0
  63. package/lib/typescript/index.d.ts +5 -0
  64. package/lib/typescript/index.web.d.ts +4 -0
  65. package/lib/typescript/override-console-methods.d.ts +10 -0
  66. package/lib/typescript/print-to-console.d.ts +14 -0
  67. package/lib/typescript/sdk-options.d.ts +16 -0
  68. package/lib/typescript/string-formatter.d.ts +4 -0
  69. package/lib/typescript/types/device.d.ts +4 -0
  70. package/lib/typescript/types/log.d.ts +59 -0
  71. package/lib/typescript/types/sdk-options.d.ts +42 -0
  72. package/lib/typescript/user-feedback.d.ts +31 -0
  73. package/lib/typescript/utilities.d.ts +1 -0
  74. package/package.json +146 -12
  75. package/src/bugfender.ts +368 -0
  76. package/src/index.tsx +7 -0
  77. package/src/index.web.tsx +5 -0
  78. package/src/override-console-methods.ts +53 -0
  79. package/src/print-to-console.ts +67 -0
  80. package/src/sdk-options.ts +64 -0
  81. package/src/string-formatter.ts +44 -0
  82. package/src/types/device.ts +4 -0
  83. package/src/types/log.ts +75 -0
  84. package/src/types/sdk-options.ts +80 -0
  85. package/src/user-feedback.ts +33 -0
  86. package/src/utilities.ts +8 -0
  87. package/RNBugfender.podspec +0 -24
  88. package/android/.gradle/6.1.1/executionHistory/executionHistory.bin +0 -0
  89. package/android/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
  90. package/android/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
  91. package/android/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  92. package/android/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
  93. package/android/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
  94. package/android/.gradle/6.1.1/fileHashes/resourceHashesCache.bin +0 -0
  95. package/android/.gradle/6.1.1/gc.properties +0 -0
  96. package/android/.gradle/6.1.1/javaCompile/classAnalysis.bin +0 -0
  97. package/android/.gradle/6.1.1/javaCompile/javaCompile.lock +0 -0
  98. package/android/.gradle/6.1.1/javaCompile/taskHistory.bin +0 -0
  99. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  100. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  101. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  102. package/android/.gradle/checksums/checksums.lock +0 -0
  103. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  104. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  105. package/android/.gradle/vcs-1/gc.properties +0 -0
  106. package/android/.idea/android.iml +0 -29
  107. package/android/.idea/caches/build_file_checksums.ser +0 -0
  108. package/android/.idea/codeStyles/Project.xml +0 -116
  109. package/android/.idea/gradle.xml +0 -20
  110. package/android/.idea/jarRepositories.xml +0 -45
  111. package/android/.idea/libraries/Gradle__android_arch_core_common_1_1_1_jar.xml +0 -11
  112. package/android/.idea/libraries/Gradle__android_arch_core_runtime_1_1_1_aar.xml +0 -12
  113. package/android/.idea/libraries/Gradle__android_arch_lifecycle_common_1_1_1_jar.xml +0 -11
  114. package/android/.idea/libraries/Gradle__android_arch_lifecycle_livedata_1_1_1_aar.xml +0 -12
  115. package/android/.idea/libraries/Gradle__android_arch_lifecycle_livedata_core_1_1_1_aar.xml +0 -12
  116. package/android/.idea/libraries/Gradle__android_arch_lifecycle_runtime_1_1_1_aar.xml +0 -12
  117. package/android/.idea/libraries/Gradle__android_arch_lifecycle_viewmodel_1_1_1_aar.xml +0 -12
  118. package/android/.idea/libraries/Gradle__com_android_support_animated_vector_drawable_28_0_0_aar.xml +0 -10
  119. package/android/.idea/libraries/Gradle__com_android_support_appcompat_v7_28_0_0_aar.xml +0 -13
  120. package/android/.idea/libraries/Gradle__com_android_support_asynclayoutinflater_28_0_0_aar.xml +0 -10
  121. package/android/.idea/libraries/Gradle__com_android_support_collections_28_0_0_jar.xml +0 -9
  122. package/android/.idea/libraries/Gradle__com_android_support_coordinatorlayout_28_0_0_aar.xml +0 -13
  123. package/android/.idea/libraries/Gradle__com_android_support_cursoradapter_28_0_0_aar.xml +0 -10
  124. package/android/.idea/libraries/Gradle__com_android_support_customview_28_0_0_aar.xml +0 -10
  125. package/android/.idea/libraries/Gradle__com_android_support_documentfile_28_0_0_aar.xml +0 -10
  126. package/android/.idea/libraries/Gradle__com_android_support_drawerlayout_28_0_0_aar.xml +0 -13
  127. package/android/.idea/libraries/Gradle__com_android_support_interpolator_28_0_0_aar.xml +0 -10
  128. package/android/.idea/libraries/Gradle__com_android_support_loader_28_0_0_aar.xml +0 -10
  129. package/android/.idea/libraries/Gradle__com_android_support_localbroadcastmanager_28_0_0_aar.xml +0 -10
  130. package/android/.idea/libraries/Gradle__com_android_support_print_28_0_0_aar.xml +0 -13
  131. package/android/.idea/libraries/Gradle__com_android_support_slidingpanelayout_28_0_0_aar.xml +0 -10
  132. package/android/.idea/libraries/Gradle__com_android_support_support_annotations_28_0_0_jar.xml +0 -9
  133. package/android/.idea/libraries/Gradle__com_android_support_support_compat_28_0_0_aar.xml +0 -13
  134. package/android/.idea/libraries/Gradle__com_android_support_support_core_ui_28_0_0_aar.xml +0 -10
  135. package/android/.idea/libraries/Gradle__com_android_support_support_core_utils_28_0_0_aar.xml +0 -10
  136. package/android/.idea/libraries/Gradle__com_android_support_support_fragment_28_0_0_aar.xml +0 -13
  137. package/android/.idea/libraries/Gradle__com_android_support_support_vector_drawable_28_0_0_aar.xml +0 -10
  138. package/android/.idea/libraries/Gradle__com_android_support_swiperefreshlayout_28_0_0_aar.xml +0 -13
  139. package/android/.idea/libraries/Gradle__com_android_support_versionedparcelable_28_0_0_aar.xml +0 -10
  140. package/android/.idea/libraries/Gradle__com_android_support_viewpager_28_0_0_aar.xml +0 -10
  141. package/android/.idea/libraries/Gradle__com_bugfender_sdk_android_3_0_5_aar.xml +0 -12
  142. package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_1_10_0_aar.xml +0 -12
  143. package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_1_10_0_aar.xml +0 -15
  144. package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_1_10_0_aar.xml +0 -15
  145. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_1_10_0_aar.xml +0 -15
  146. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_base_1_10_0_aar.xml +0 -15
  147. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp3_1_10_0_aar.xml +0 -12
  148. package/android/.idea/libraries/Gradle__com_facebook_infer_annotation_infer_annotation_0_11_2_jar.xml +0 -11
  149. package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_59_9_aar.xml +0 -17
  150. package/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_6_0_aar.xml +0 -12
  151. package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_2_jar.xml +0 -13
  152. package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_3_12_1_jar.xml +0 -11
  153. package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_urlconnection_3_12_1_jar.xml +0 -11
  154. package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_15_0_jar.xml +0 -13
  155. package/android/.idea/libraries/Gradle__javax_inject_javax_inject_1_jar.xml +0 -13
  156. package/android/.idea/misc.xml +0 -5
  157. package/android/.idea/vcs.xml +0 -6
  158. package/android/build/.transforms/0e896c8cbe0b79b9d6120b7386a6ad6f/results.bin +0 -1
  159. package/android/build/.transforms/0e896c8cbe0b79b9d6120b7386a6ad6f/transformed/classes/classes.dex +0 -0
  160. package/android/build/.transforms/9dbdc8f4a0c95e455ccff88c281fd14d/results.bin +0 -1
  161. package/android/build/.transforms/9dbdc8f4a0c95e455ccff88c281fd14d/transformed/classes/classes.dex +0 -0
  162. package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/android/support/v4/R.java +0 -12
  163. package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/android/support/v7/appcompat/R.java +0 -1248
  164. package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/android/support/v7/recyclerview/R.java +0 -40
  165. package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/bugfender/android/R.java +0 -55
  166. package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/bugfender/react/R.java +0 -1384
  167. package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/facebook/drawee/R.java +0 -82
  168. package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/facebook/drawee/backends/pipeline/R.java +0 -82
  169. package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/facebook/fbcore/R.java +0 -12
  170. package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/facebook/imagepipeline/R.java +0 -12
  171. package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/facebook/imagepipeline/backends/okhttp/R.java +0 -12
  172. package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/com/facebook/react/R.java +0 -1361
  173. package/android/build/generated/not_namespaced_r_class_sources/debug/generateDebugRFile/out/org/webkit/android_jsc/R.java +0 -12
  174. package/android/build/generated/source/buildConfig/debug/com/bugfender/react/BuildConfig.java +0 -10
  175. package/android/build/generated/source/buildConfig/release/com/bugfender/react/BuildConfig.java +0 -10
  176. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -9
  177. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -16
  178. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -11
  179. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output.json +0 -1
  180. package/android/build/intermediates/aapt_friendly_merged_manifests/release/aapt/AndroidManifest.xml +0 -9
  181. package/android/build/intermediates/aapt_friendly_merged_manifests/release/aapt/output-metadata.json +0 -16
  182. package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -2
  183. package/android/build/intermediates/aar_metadata/release/aar-metadata.properties +0 -2
  184. package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
  185. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  186. package/android/build/intermediates/annotation_processor_list/release/annotationProcessors.json +0 -1
  187. package/android/build/intermediates/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt +0 -0
  188. package/android/build/intermediates/compile_library_classes/debug/classes.jar +0 -0
  189. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  190. package/android/build/intermediates/compile_library_classes_jar/release/classes.jar +0 -0
  191. package/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  192. package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  193. package/android/build/intermediates/compile_r_class_jar/release/R.jar +0 -0
  194. package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -1813
  195. package/android/build/intermediates/compile_symbol_list/release/R.txt +0 -1813
  196. package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
  197. package/android/build/intermediates/incremental/debug-mergeJniLibs/merge-state +0 -0
  198. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  199. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  200. package/android/build/intermediates/incremental/mergeReleaseJniLibFolders/merger.xml +0 -2
  201. package/android/build/intermediates/incremental/mergeReleaseShaders/merger.xml +0 -2
  202. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
  203. package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +0 -1
  204. package/android/build/intermediates/incremental/packageDebugResources/merger.xml +0 -2
  205. package/android/build/intermediates/incremental/packageReleaseAssets/merger.xml +0 -2
  206. package/android/build/intermediates/incremental/packageReleaseResources/compile-file-map.properties +0 -1
  207. package/android/build/intermediates/incremental/packageReleaseResources/merger.xml +0 -2
  208. package/android/build/intermediates/javac/debug/classes/com/bugfender/react/BuildConfig.class +0 -0
  209. package/android/build/intermediates/javac/debug/classes/com/bugfender/react/RNBugfenderModule.class +0 -0
  210. package/android/build/intermediates/javac/debug/classes/com/bugfender/react/RNBugfenderPackage.class +0 -0
  211. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v4/R.class +0 -0
  212. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$anim.class +0 -0
  213. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$attr.class +0 -0
  214. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$bool.class +0 -0
  215. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$color.class +0 -0
  216. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$dimen.class +0 -0
  217. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$drawable.class +0 -0
  218. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$id.class +0 -0
  219. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$integer.class +0 -0
  220. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$layout.class +0 -0
  221. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$string.class +0 -0
  222. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$style.class +0 -0
  223. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R$styleable.class +0 -0
  224. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/appcompat/R.class +0 -0
  225. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/recyclerview/R$attr.class +0 -0
  226. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/recyclerview/R$dimen.class +0 -0
  227. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/recyclerview/R$id.class +0 -0
  228. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/recyclerview/R$styleable.class +0 -0
  229. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/android/support/v7/recyclerview/R.class +0 -0
  230. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/android/R$color.class +0 -0
  231. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/android/R$drawable.class +0 -0
  232. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/android/R$id.class +0 -0
  233. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/android/R$layout.class +0 -0
  234. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/android/R$string.class +0 -0
  235. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/android/R.class +0 -0
  236. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/BuildConfig.class +0 -0
  237. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$anim.class +0 -0
  238. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$attr.class +0 -0
  239. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$bool.class +0 -0
  240. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$color.class +0 -0
  241. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$dimen.class +0 -0
  242. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$drawable.class +0 -0
  243. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$id.class +0 -0
  244. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$integer.class +0 -0
  245. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$layout.class +0 -0
  246. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$string.class +0 -0
  247. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$style.class +0 -0
  248. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$styleable.class +0 -0
  249. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R$xml.class +0 -0
  250. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/R.class +0 -0
  251. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/RNBugfenderModule.class +0 -0
  252. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/bugfender/react/RNBugfenderPackage.class +0 -0
  253. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/R$attr.class +0 -0
  254. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/R$id.class +0 -0
  255. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/R$styleable.class +0 -0
  256. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/R.class +0 -0
  257. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/backends/pipeline/R$attr.class +0 -0
  258. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/backends/pipeline/R$id.class +0 -0
  259. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/backends/pipeline/R$styleable.class +0 -0
  260. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/drawee/backends/pipeline/R.class +0 -0
  261. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/fbcore/R.class +0 -0
  262. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/imagepipeline/R.class +0 -0
  263. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/imagepipeline/backends/okhttp/R.class +0 -0
  264. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$anim.class +0 -0
  265. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$attr.class +0 -0
  266. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$bool.class +0 -0
  267. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$color.class +0 -0
  268. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$dimen.class +0 -0
  269. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$drawable.class +0 -0
  270. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$id.class +0 -0
  271. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$integer.class +0 -0
  272. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$layout.class +0 -0
  273. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$string.class +0 -0
  274. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$style.class +0 -0
  275. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$styleable.class +0 -0
  276. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R$xml.class +0 -0
  277. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/R.class +0 -0
  278. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/org/webkit/android_jsc/R.class +0 -0
  279. package/android/build/intermediates/javac/release/classes/com/bugfender/react/BuildConfig.class +0 -0
  280. package/android/build/intermediates/javac/release/classes/com/bugfender/react/RNBugfenderModule.class +0 -0
  281. package/android/build/intermediates/javac/release/classes/com/bugfender/react/RNBugfenderPackage.class +0 -0
  282. package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +0 -11
  283. package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -2
  284. package/android/build/intermediates/local_only_symbol_list/release/R-def.txt +0 -2
  285. package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -11
  286. package/android/build/intermediates/manifest_merge_blame_file/release/manifest-merger-blame-release-report.txt +0 -11
  287. package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -9
  288. package/android/build/intermediates/merged_manifest/release/AndroidManifest.xml +0 -9
  289. package/android/build/intermediates/merged_manifests/debug/output.json +0 -1
  290. package/android/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml +0 -11
  291. package/android/build/intermediates/merged_manifests/debug/processDebugManifest/merged/output.json +0 -1
  292. package/android/build/intermediates/navigation_json/debug/navigation.json +0 -1
  293. package/android/build/intermediates/navigation_json/release/navigation.json +0 -1
  294. package/android/build/intermediates/packaged-classes/debug/classes.jar +0 -0
  295. package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +0 -16
  296. package/android/build/intermediates/packaged_manifests/release/output-metadata.json +0 -16
  297. package/android/build/intermediates/res/symbol-table-with-package/debug/package-aware-r.txt +0 -1309
  298. package/android/build/intermediates/runtime_library_classes/debug/classes.jar +0 -0
  299. package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  300. package/android/build/intermediates/runtime_library_classes_jar/release/classes.jar +0 -0
  301. package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -1339
  302. package/android/build/intermediates/symbol_list_with_package_name/release/package-aware-r.txt +0 -1339
  303. package/android/build/intermediates/symbols/debug/R.txt +0 -1783
  304. package/android/build/intermediates/transforms/mergeJavaRes/debug/0.jar +0 -0
  305. package/android/build/intermediates/transforms/mergeJavaRes/debug/__content__.json +0 -1
  306. package/android/build/intermediates/transforms/mergeJniLibs/debug/__content__.json +0 -1
  307. package/android/build/outputs/aar/android.aar +0 -0
  308. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -25
  309. package/android/build/outputs/logs/manifest-merger-release-report.txt +0 -25
  310. package/android/build/tmp/compileDebugJavaWithJavac/source-classes-mapping.txt +0 -6
  311. package/android/build/tmp/compileReleaseJavaWithJavac/source-classes-mapping.txt +0 -6
  312. package/android/local.properties +0 -1
  313. package/android/src/main/java/com/bugfender/react/RNBugfenderPackage.java +0 -29
  314. package/bugfender.js +0 -217
  315. package/example/.babelrc +0 -3
  316. package/example/.watchmanconfig +0 -1
  317. package/example/App.js +0 -163
  318. package/ios/RNBugfender.h +0 -7
  319. package/ios/RNBugfender.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  320. package/ios/RNBugfender.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  321. package/ios/RNBugfender.xcodeproj/project.xcworkspace/xcuserdata/fj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  322. package/ios/RNBugfender.xcodeproj/xcuserdata/fj.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  323. package/ios/RNBugfender.xcodeproj/xcuserdata/rubenvot.xcuserdatad/xcschemes/xcschememanagement.plist +0 -19
package/README.md CHANGED
@@ -1,130 +1,194 @@
1
1
  # React Native plugin for Bugfender
2
2
 
3
- ## Getting started
3
+ Bugfender module for React Native and React Native for the Web. It depends on the iOS, Android and Javascript Bugfender SDKs.
4
4
 
5
- The Bugfender bindings for React Native depend on the native iOS and Android Bugfender SDKs.
6
-
7
- ## Creating a RN new project compatible with Bugfender
8
-
9
- You can create a new project using
10
-
11
- `$ npx react-native init AwesomeProject`
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.
14
-
15
- More info can be found in the [official docs](https://facebook.github.io/react-native/docs/getting-started.html)
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.
19
-
20
- ## Adding Bugfender to your project
5
+ ## Adding Bugfender to your project
21
6
 
22
7
  **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).
23
8
 
24
9
  `$ cd path_to_your_project`
25
10
 
26
- **1.** Add the bugfender plugin from npm
11
+ Add the bugfender plugin from npm
27
12
 
28
13
  `$ npm install @bugfender/rn-bugfender --save`
29
14
 
30
- **If you want to use cocoapods (recommended), skip the step 2 and go to the step 3B**.
31
- For manual installation, proceed with the steps 2 and 3A.
32
-
33
- **2.** Link to your project
34
- ```
35
- // Add the classes of the plugin to your android and iOS projects
36
- $ npx react-native link @bugfender/rn-bugfender`
37
- ```
38
-
39
- ### Android
40
- You are done!
15
+ ### Android & React Native for the Web
16
+ You are done!
41
17
 
42
- ### iOS
43
- **3A. Manual installation**
18
+ ### iOS
19
+ You can finish the installation manually or via CocoaPods (recommended)
44
20
 
45
- 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:
46
-
47
- * Go to your **Project** > **Your Target** > **General** > **Linked Frameworks and Libraries** and drag `BugfenderSDK.framework` there (uncheck the "Copy items if needed" checkbox).
48
-
49
- * Make sure you have linked `SystemConfiguration.framework`, `Security.framework`, `MobileCoreServices.framework` and `libc++.tbd` as well.
50
-
51
- **3B. Cocoapods (recommended)**
21
+ **CocoaPods (recommended)**
52
22
 
53
23
  1. Ensure your iOS project contains a Podfile, otherwise you need to add it now:
54
24
  ```
55
25
  $ cd path_to_your_project/ios
56
26
  $ pod init
57
27
  ```
58
-
59
- 2. Link your project:
60
- ```
61
- // Add the classes of the plugin to your android and iOS projects
62
- $ npx react-native link @bugfender/rn-bugfender`
63
- ```
64
-
65
28
  Make sure you're targeting at least iOS platform version 10 (specify `platform :ios, '10.0'`).
66
29
 
67
- A new line should have been added automatically to your Podfile:
68
-
69
- `pod 'RNBugfender', :path => '../node_modules/@bugfender/rn-bugfender'`
70
-
71
- 3. After configuring the podfile you can now go to the console and run
30
+ 2. After configuring the podfile you can now go to the console and run
72
31
 
73
32
  `$ pod install`
74
33
 
75
- When the installation has finished you should be able to run your project in iOS and Android.
34
+ When the installation has finished you should be able to run your project in iOS and Android.
76
35
 
77
36
  **Remember that you should be using the Xcode workspace instead of the xcodeproj file from now on.**
78
37
 
79
- **Important**: the *podspec* of RNBugfender declares React as a dependency. Your Podfile must explicitly override that React dependency. Like this:
38
+ *At the end of this document you can find a **[recommended podfile](#recommended-podfile)**. You can use it as an example*.
80
39
 
81
- `pod 'React', path: '../node_modules/react-native'`
40
+ If you have any problems compiling or executing, try our [Troubleshooting section](#cocoapods-troubleshooting) at the end of this document.
82
41
 
83
- If you created your project with the react-native cli from React Native 0.60 or newer your podfile should be already prepared. For older versions of react-native you must ensure to override it. Otherwise, cocoapods will download and install a new version in your iOS folder and you will end up with all the React libraries duplicated.
42
+ **Manual installation (alternative to CocoaPods)**
84
43
 
85
- *At the end of this document you can find a **[recommended podfile](#recommended-podfile)**. You can use it as an example*.
44
+ 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:
86
45
 
87
- If you have any problems compiling or executing, try our [Troubleshooting section](#cocoapods-troubleshooting) at the end of this document.
46
+ * Go to your **Project** > **Your Target** > **General** > **Linked Frameworks and Libraries** and drag `BugfenderSDK.framework` there (uncheck the "Copy items if needed" checkbox).
88
47
 
89
- ## RNBugfender Usage
90
- ```javascript
91
- import Bugfender from '@bugfender/rn-bugfender';
92
-
93
- // Init Bugfender with your APP key
94
- Bugfender.init("your_app_key");
95
-
96
- // Sending logs with default level
97
- Bugfender.d ("REACT", "This is a debug log in Bugfender from React Native");
98
-
99
- // Sending logs with warning level
100
- Bugfender.w ("REACT", "This is a debug log in Bugfender from React Native");
101
-
102
- // Sending logs with error level
103
- Bugfender.e ("REACT", "This is a debug log in Bugfender from React Native");
104
-
105
- // Low level logs
106
- Bugfender.log (1001, "method", "file", "Debug", "tag", "Sending low level log.");
107
- Bugfender.log (1001, "method", "file", "Error", "tag", "Sending low level log.");
108
- Bugfender.log (1001, "method", "file", "Warning", "tag", "Sending low level log.");
109
-
110
- // Creating issues
111
- Bugfender.sendIssue ("New issue", "This will create a new issue in Bugfender");
112
-
113
- // Send user feedback
114
- Bugfender.sendUserFeedback ("New feedback", "This will create a new feedback in Bugfender");
115
-
116
- // Set values
117
- Bugfender.setDeviceString ("device.key.string", "fake.string.value");
118
- Bugfender.setDeviceBoolean ("device.key.boolean", true);
119
- Bugfender.setDeviceFloat ("device.key.float", 101);
120
- Bugfender.setDeviceInteger ("device.key.integer", 102);
121
-
48
+ * Make sure you have linked `SystemConfiguration.framework`, `Security.framework`, `MobileCoreServices.framework` and `libc++.tbd` as well.
49
+
50
+ ## Upgrading from version 1.x
51
+ After updating to version 2.x from version 1.x you should perform the following extra steps:
52
+ ### Android
53
+ Open `MainApplication` class inside `android/app/src/main/java/com.<your_app>/` folder and remove any references to `com.bugfender.react.RNBugfenderPackage`
54
+ ### iOS
55
+ Open `Podfile` inside `ios` folder and remove the following line:
56
+ ```
57
+ pod 'RNBugfender', :path => '../node_modules/@bugfender/rn-bugfender'
58
+ ```
59
+ and then execute the following command under `ios` folder:
60
+ ```
61
+ pod deintegrate && pod install
122
62
  ```
123
63
 
124
- ## Cocoapods Troubleshooting
64
+ ## RNBugfender Usage
65
+ ```typescript
66
+ import { Bugfender, LogLevel } from '@bugfender/rn-bugfender';
67
+
68
+ // Init Bugfender with your APP key
69
+ Bugfender.init({
70
+ appKey: '<YOUR APP KEY>',
71
+ // apiURL: 'https://api.bugfender.com',
72
+ // baseURL: 'https://dashboard.bugfender.com',
73
+ // overrideConsoleMethods: true,
74
+ // printToConsole: true,
75
+ // logUIEvents: true,
76
+ // registerErrorHandler: true,
77
+ // deviceName: 'Anonymous',
78
+ // maximumLocalStorageSize: 5 * 1024 * 1024, // Native specific
79
+ // enableLogcatLogging: false, // Android specific
80
+ // logBrowserEvents: true, // Web specific
81
+ // build: '42', // Web specific
82
+ // version: '1.0', // Web sprecific
83
+ });
84
+
85
+ // Alternatively, SDKOptionsBuilder can be used to make it apparent what options are specific of certain platforms
86
+ Bugfender.init(
87
+ new SDKOptionsBuilder({
88
+ appKey: '<YOUR APP KEY>',
89
+ }).native({
90
+ enableLogcatLogging: false,
91
+ }).web({
92
+ logBrowserEvents: true,
93
+ build: '42',
94
+ version: '1.0',
95
+ }).build()
96
+ );
97
+
98
+ // Send logs with different levels
99
+ Bugfender.log('This is a debug log in Bugfender from React Native');
100
+ Bugfender.warn('This is a warn log in Bugfender from React Native');
101
+ Bugfender.error('This is a error log in Bugfender from React Native');
102
+ Bugfender.fatal('This is a fatal log in Bugfender from React Native');
103
+ Bugfender.trace('This is a trace log in Bugfender from React Native');
104
+ Bugfender.info('This is a info log in Bugfender from React Native');
105
+
106
+ // Send low level log
107
+ Bugfender.sendLog({
108
+ line: 1001,
109
+ level: LogLevel.Debug,
110
+ tag: 'tag',
111
+ method: 'method',
112
+ file: 'file',
113
+ text: 'Sending low level debug log.',
114
+ });
115
+
116
+ // Send issues
117
+ Bugfender.sendIssue('Issue titile', 'This will create a new issue in Bugfender').then((url) =>
118
+ console.log('Issue url: %s', url)
119
+ );
120
+
121
+ // Send crashes
122
+ Bugfender.sendCrash('Crash title', 'This will create a new crash in Bugfender').then((url) =>
123
+ console.log('Crash url: %s', url)
124
+ );
125
+
126
+ // Send user feedback
127
+ Bugfender.sendUserFeedback('Feedback title', 'This will create a new feedback in Bugfender').then((url) =>
128
+ console.log('Feedback url: %s', url)
129
+ );
130
+
131
+ // Show user feedback native screen
132
+ Bugfender.getUserFeedback({
133
+ title: 'Feedback',
134
+ hint: 'Please send us your feedback',
135
+ subjectPlaceholder: 'This is the reason',
136
+ feedbackPlaceholder: 'This is the full message',
137
+ submitLabel: 'Send',
138
+ closeLabel: 'Cancel',
139
+ }
140
+ ).then(response => {
141
+ if (response.isSent) {
142
+ console.log('RN: feedback sent with url:', response.feedbackURL);
143
+ } else {
144
+ console.log('RN: feedback not sent');
145
+ }
146
+ });
147
+
148
+ // Set device values
149
+ Bugfender.setDeviceKey('device.key.string', 'fake.string.value');
150
+ Bugfender.setDeviceKey('device.key.boolean', true);
151
+ Bugfender.setDeviceKey('device.key.float', 10.1);
152
+ Bugfender.setDeviceKey('device.key.integer', 102);
153
+
154
+ // Remove device values
155
+ Bugfender.removeDeviceKey('device.key.integer');
156
+
157
+ // Get different URLs
158
+ Bugfender.getDeviceURL().then((url) => console.log('Device url: %s', url));
159
+ Bugfender.getSessionURL().then((url) => console.log('Session url: %s', url));
160
+
161
+ // Synchronizes all logs and issues with the server once
162
+ Bugfender.forceSendOnce();
163
+ ```
164
+ ## Changelog
165
+ The changelog of the Bugfender Web SDK can be found in ReleaseNotes under the [react-native](https://bugfender.releasenotes.io/tag/react-native) tag. For all the Bugfender product changes please visit the general release notes.
166
+
167
+ ### 2.x Breaking Changes
168
+ The React Native SDK API has changed in order be unified with [Bugfender Web SDK](https://www.npmjs.com/package/@bugfender/sdk):
169
+ * The following methods have been removed and replaced with init method attributes:
170
+ * `setApiUrl`
171
+ * `setBaseUrl`
172
+ * `overrideDeviceName`
173
+ * `setMaximumLocalStorageSize`
174
+ * `enableLogcatLogging`
175
+ * `enableCrashReporting`
176
+ * `enableUIEventLogging`
177
+
178
+ * The following methods have been renamed:
179
+ * `setForceEnabled` renamed to `sendForceOnce`
180
+ * `showUserFeedback` renamed to `sendUserFeedback`
181
+ * `d` rename to `debug`
182
+ * `w` renamed to `warn`
183
+ * `e` renamed to `error`
184
+ * `log` renamed to `sendLog`
185
+
186
+ * `setDeviceKey` method replaces `setDeviceBoolean`, `setDeviceString`, `setDeviceInteger` & `setDeviceFloat`
187
+
188
+ ## Cocoapods Troubleshooting
125
189
  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.
126
190
 
127
- 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.
191
+ 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.
128
192
 
129
193
  ### Recommended Podfile
130
194
  ```
@@ -138,7 +202,7 @@ target 'SampleProject' do
138
202
  pod 'AFNetworking'
139
203
 
140
204
  # Add new pods below this line
141
- pod 'RNBugfender', :path => '../node_modules/@bugfender/rn-bugfender'
205
+ pod 'RnBugfender', :path => '../node_modules/@bugfender/rn-bugfender'
142
206
 
143
207
  rn_path = '../node_modules/react-native'
144
208
 
@@ -159,10 +223,10 @@ target 'SampleProject' do
159
223
  'RCTVibration',
160
224
  'RCTWebSocket',
161
225
  ]
162
-
226
+
163
227
  end
164
228
  ```
165
229
 
166
- 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.
230
+ 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.
167
231
 
168
- Happy debugging!
232
+ 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
@@ -1,103 +1,61 @@
1
1
  buildscript {
2
- repositories {
3
- jcenter()
4
- maven { url 'https://maven.google.com' }
5
- }
2
+ if (project == rootProject) {
3
+ repositories {
4
+ google()
5
+ mavenCentral()
6
+ jcenter()
7
+ }
6
8
 
7
- dependencies {
8
- classpath 'com.android.tools.build:gradle:3.2.1'
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
- compileSdkVersion 28
16
- buildToolsVersion '28.0.3'
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
- defaultConfig {
19
- minSdkVersion 16
20
- targetSdkVersion 28
21
- versionCode 1
22
- versionName "1.0"
23
- }
29
+ }
24
30
 
25
- lintOptions {
26
- abortOnError false
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
- jcenter()
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
- url defaultDir.toString()
50
- name androidSourcesName
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
- logger.info(":${project.name}:reactNativeAndroidRoot ${defaultDir.canonicalPath}")
54
- found = true
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
- implementation 'com.facebook.react:react-native:+'
102
- implementation 'com.bugfender.sdk:android:3.+'
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
  }
@@ -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=$((i+1))
159
+ i=`expr $i + 1`
142
160
  done
143
161
  case $i in
144
- (0) set -- ;;
145
- (1) set -- "$args0" ;;
146
- (2) set -- "$args0" "$args1" ;;
147
- (3) set -- "$args0" "$args1" "$args2" ;;
148
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
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=$(save "$@")
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" "$@"