mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
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.
12 lines
938 B
Text
12 lines
938 B
Text
// 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"
|