Skip to content

Commit

Permalink
fix(backend): improve ios support (#1599)
Browse files Browse the repository at this point in the history
- support ipa build type in PUT `/builds` API
- increase `lifecycle_view_controller.class_name` character size to 256
- increase `lifecycle_swift_ui.class_name` chracterer size to 256

Signed-off-by: detj <[email protected]>
  • Loading branch information
detj authored Dec 12, 2024
1 parent d6e1438 commit 08061c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion backend/api/event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const (
maxLifecycleFragmentTypeChars = 32
maxLifecycleFragmentClassNameChars = 128
maxLifecycleViewControllerTypeChars = 32
maxLifecycleViewControllerClassNameChars = 128
maxLifecycleViewControllerClassNameChars = 256
maxLifecycleSwiftUITypeChars = 32
maxLifecycleSwiftUIClassNameChars = 128
maxLifecycleAppTypeChars = 32
Expand Down Expand Up @@ -159,6 +159,7 @@ var iOSValidTypes = []string{
TypeException,
TypeGestureLongClick, TypeGestureScroll, TypeGestureClick,
TypeLifecycleViewController, TypeLifecycleSwiftUI,
TypeLifecycleApp,
TypeColdLaunch, TypeWarmLaunch, TypeHotLaunch,
TypeNetworkChange, TypeHttp,
TypeMemoryUsageAbs,
Expand Down
2 changes: 1 addition & 1 deletion backend/api/measure/mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ type BuildSize struct {
VersionName string `form:"version_name" binding:"required"`
VersionCode string `form:"version_code" binding:"required"`
BuildSize int `form:"build_size" binding:"required_with=BuildType,gt=100"`
BuildType string `form:"build_type" binding:"required_with=BuildSize,oneof=aab apk"`
BuildType string `form:"build_type" binding:"required_with=BuildSize,oneof=aab apk ipa"`
CreatedAt chrono.ISOTime
}

Expand Down
4 changes: 2 additions & 2 deletions self-host/clickhouse/20241210052709_alter_events_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
alter table events
add column if not exists `attribute.device_cpu_arch` LowCardinality(FixedString(16)) after `attribute.device_thermal_throttling_enabled`,
add column if not exists `lifecycle_view_controller.type` LowCardinality(FixedString(32)) after `lifecycle_fragment.tag`,
add column if not exists `lifecycle_view_controller.class_name` LowCardinality(FixedString(128)) after `lifecycle_view_controller.type`,
add column if not exists `lifecycle_view_controller.class_name` LowCardinality(FixedString(256)) after `lifecycle_view_controller.type`,
add column if not exists `lifecycle_swift_ui.type` LowCardinality(FixedString(16)) after `lifecycle_view_controller.class_name`,
add column if not exists `lifecycle_swift_ui.class_name` LowCardinality(FixedString(128)) after `lifecycle_swift_ui.type`,
add column if not exists `lifecycle_swift_ui.class_name` LowCardinality(FixedString(256)) after `lifecycle_swift_ui.type`,
add column if not exists `memory_usage_absolute.max_memory` UInt64 after `memory_usage.interval`,
add column if not exists `memory_usage_absolute.used_memory` UInt64 after `memory_usage_absolute.max_memory`,
add column if not exists `memory_usage_absolute.interval` UInt64 after `memory_usage_absolute.used_memory`,
Expand Down

0 comments on commit 08061c3

Please sign in to comment.