Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions rust/cymbal/src/modes/processing/normalization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ fn lib_rules() -> &'static [LibRule] {
// but each module reports its own version stream.
"posthog-android" => Some(Version::new(3, 56, 0)),
"posthog-server" => Some(Version::new(2, 9, 0)),
// posthog-flutter ships its Dart flip in 5.33.0 and raises
// its Android SDK floor to the canonical 3.56.0 release.
"posthog-flutter" => Some(Version::new(5, 33, 0)),
Comment thread
cat-ph marked this conversation as resolved.
// `posthog-java` is the tombstoned legacy SDK: it will
// never ship the flip, so no cutoff, ever.
_ => None,
Expand Down Expand Up @@ -327,12 +330,13 @@ mod test {
}

#[test]
fn android_and_server_cutoffs_gate_normalization_by_version() {
// Both modules flip in one release train but carry separate version
// streams; each gate keys on its own module's version.
fn android_server_and_flutter_cutoffs_gate_normalization_by_version() {
// Android and server flip in one release train; Flutter follows with
// its own wrapper release. Each gate keys on its reported version.
for (lib, below, at) in [
("posthog-android", "3.55.2", "3.56.0"),
("posthog-server", "2.8.1", "2.9.0"),
("posthog-flutter", "5.32.1", "5.33.0"),
] {
for version in [Some(below), Some("1.0.0"), Some("garbage"), None] {
let mut list: ExceptionList =
Expand Down
Loading