Skip to content

Commit eedab48

Browse files
abueideclaude
andauthored
feat(init): add connection status, flush controls, and fix config bundling (#82)
- Rename SegmentConfig.xcconfig to SegmentConfig.conf so Xcode bundles it as a resource (xcconfig files are treated as build configs, not resources, so the file was never included in the app bundle) - Add connection status indicator that validates the write key against Segment's API on launch (connected/invalid key/demo mode/error) - Add flush mode selector (auto/manual) with manual flush button - Add event stats: tracked, in queue, and sent counters - Plugin status now shows Running (green), Error (red), or Available (gray) based on whether the plugin was successfully loaded Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 80a76f6 commit eedab48

2 files changed

Lines changed: 277 additions & 105 deletions

File tree

segkit/src/config_cmd.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ fn parse_plugin_csv(raw: &str) -> BTreeSet<String> {
1818
.collect()
1919
}
2020

21-
/// Locate and parse SegmentConfig.xcconfig from the project directory.
21+
/// Locate and parse SegmentConfig.conf from the project directory.
2222
fn load_config() -> Result<(PathBuf, XCConfig), ExitCode> {
23-
let path = find_file("SegmentConfig.xcconfig").ok_or_else(|| {
24-
err("No SegmentConfig.xcconfig found. Are you in a segkit project directory?");
23+
let path = find_file("SegmentConfig.conf").ok_or_else(|| {
24+
err("No SegmentConfig.conf found. Are you in a segkit project directory?");
2525
ExitCode::FAILURE
2626
})?;
2727

0 commit comments

Comments
 (0)