heap / react-native-heap

A React Native integration for Heap
MIT License
82 stars 36 forks source link

Add option to enable iOS debug logs #286

Closed bnickel closed 2 years ago

bnickel commented 2 years ago

This adds a new option to heap.config.json to enable debug logging on iOS and enables it by default for dev builds. This also significantly refactors generate_settings_common.rb while adding a quick-and-dirty unit test to validate it.

Test Plan

The settings code was tested using ios/HeapSettings.bundle/test_generate_settings.rb and manually validated in a sample app.

Checklist