hex/ios/HEXMobile/Feedback.xcconfig
Ryan Vogel fe1298535a iOS feedback: ship the report key in Feedback.xcconfig
The key only came from a gitignored local file or an Xcode Cloud secret that
doesn't exist, so a TestFlight build would have had no Send feedback row.
Bellhop report keys are publishable and safe to ship inside an app, and
Android keeps its key in android/gradle.properties, so:

- HEXMobile/Feedback.xcconfig now sets BELLHOP_REPORT_KEY. The optional
  include of Feedback.local.xcconfig stays after it, so a local file or
  ci_post_clone.sh (from an Xcode Cloud BELLHOP_REPORT_KEY secret, if one
  is ever set) overrides it, for a rotation. Still no key in Swift; it
  reaches the app as Info.plist's BellhopReportKey.
- ci_post_clone.sh and the docs say so; rotation: new key, revoke the old
  in Bellhop › Settings › Report keys, change the xcconfig, ship a build.
- FeedbackSender logs "feedback sent as #<number>" (notice, public), so a
  Release build's send can be traced to its issue.

Verified from a clean tree of this commit (git archive, no local override)
on the Studio: a Release simulator build's Info.plist carries the key, the
app shows Send feedback on Home and a send through the form got 201.
2026-11-23 15:52:49 -05:00

12 lines
938 B
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Send feedback's Bellhop report key (https://blhp.app/docs/feedback). It is a publishable key,
// safe to ship inside the app: it can only file feedback into Hex's Bellhop workspace (as
// Android keeps its key in android/gradle.properties). It lives here, in the build
// configuration, and reaches the app as Info.plist's BellhopReportKey (Feedback.reportKey);
// no Swift file holds it. To rotate it, make a new key and revoke this one in Bellhop ›
// Settings › Report keys, then change it here (or override it below) and ship a build.
BELLHOP_REPORT_KEY = bh_pub_b3291b43ea6d780f51d69b8145c6faac831e33f7877a6a35b108ca010547a0ff
// Optional override, after the key so it wins: a gitignored Feedback.local.xcconfig, written
// locally or by ci_scripts/ci_post_clone.sh from Xcode Cloud's BELLHOP_REPORT_KEY secret.
// Set BELLHOP_REPORT_KEY = (empty) there for a build without Send feedback.
#include? "Feedback.local.xcconfig"