From 000806550ab9515bf8e66d5741577a4ca9705b1b Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 20 Jan 2022 15:36:16 +0100 Subject: [PATCH] Split long lines Done by https://github.com/matrix-org/matrix-analytics-events/pull/16 --- .../analytics/plan/PerformanceTimer.kt | 12 ++++++---- .../app/features/analytics/plan/Screen.kt | 24 ++++++++++++------- .../analytics/plan/UnauthenticatedError.kt | 10 +++++--- 3 files changed, 31 insertions(+), 15 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/analytics/plan/PerformanceTimer.kt b/vector/src/main/java/im/vector/app/features/analytics/plan/PerformanceTimer.kt index 8c25534ece..2cfc366cd3 100644 --- a/vector/src/main/java/im/vector/app/features/analytics/plan/PerformanceTimer.kt +++ b/vector/src/main/java/im/vector/app/features/analytics/plan/PerformanceTimer.kt @@ -30,7 +30,8 @@ data class PerformanceTimer( */ val context: String? = null, /** - * Client defined, an optional value to indicate how many items were handled during the operation. + * Client defined, an optional value to indicate how many items were + * handled during the operation. */ val itemCount: Int? = null, /** @@ -55,7 +56,8 @@ data class PerformanceTimer( InitialSyncRequest, /** - * The time taken to display an event in the timeline that was opened from a notification. + * The time taken to display an event in the timeline that was opened + * from a notification. */ NotificationsOpenEvent, @@ -65,7 +67,8 @@ data class PerformanceTimer( StartupIncrementalSync, /** - * The duration of an initial /sync request during startup (if the store has been wiped). + * The duration of an initial /sync request during startup (if the store + * has been wiped). */ StartupInitialSync, @@ -80,7 +83,8 @@ data class PerformanceTimer( StartupStorePreload, /** - * The time to load all data from the store (including StartupStorePreload time). + * The time to load all data from the store (including + * StartupStorePreload time). */ StartupStoreReady, } diff --git a/vector/src/main/java/im/vector/app/features/analytics/plan/Screen.kt b/vector/src/main/java/im/vector/app/features/analytics/plan/Screen.kt index bf44dfd2f9..db4dcd0fac 100644 --- a/vector/src/main/java/im/vector/app/features/analytics/plan/Screen.kt +++ b/vector/src/main/java/im/vector/app/features/analytics/plan/Screen.kt @@ -54,12 +54,14 @@ data class Screen( Group, /** - * The Home tab on iOS | possibly the same on Android? | The Home space on Web? + * The Home tab on iOS | possibly the same on Android? | The Home space + * on Web? */ Home, /** - * The screen that displays the login flow (when the user already has an account). + * The screen that displays the login flow (when the user already has an + * account). */ Login, @@ -89,7 +91,8 @@ data class Screen( MobilePeople, /** - * The Rooms tab on mobile that lists all the (non-direct) rooms you've joined. + * The Rooms tab on mobile that lists all the (non-direct) rooms you've + * joined. */ MobileRooms, @@ -129,7 +132,8 @@ data class Screen( MyGroups, /** - * The screen that displays the registration flow (when the user wants to create an account) + * The screen that displays the registration flow (when the user wants + * to create an account) */ Register, @@ -139,7 +143,8 @@ data class Screen( Room, /** - * The screen shown when tapping the name of a room from the Room screen. + * The screen shown when tapping the name of a room from the Room + * screen. */ RoomDetails, @@ -149,7 +154,8 @@ data class Screen( RoomDirectory, /** - * The screen that lists all the user's rooms and let them filter the rooms. + * The screen that lists all the user's rooms and let them filter the + * rooms. */ RoomFilter, @@ -164,7 +170,8 @@ data class Screen( RoomNotifications, /** - * The screen that allows you to search for messages/files in a specific room. + * The screen that allows you to search for messages/files in a specific + * room. */ RoomSearch, @@ -174,7 +181,8 @@ data class Screen( RoomSettings, /** - * The screen that allows you to see all of the files sent in a specific room. + * The screen that allows you to see all of the files sent in a specific + * room. */ RoomUploads, diff --git a/vector/src/main/java/im/vector/app/features/analytics/plan/UnauthenticatedError.kt b/vector/src/main/java/im/vector/app/features/analytics/plan/UnauthenticatedError.kt index 9c7e0812bd..56ef4af4be 100644 --- a/vector/src/main/java/im/vector/app/features/analytics/plan/UnauthenticatedError.kt +++ b/vector/src/main/java/im/vector/app/features/analytics/plan/UnauthenticatedError.kt @@ -22,15 +22,19 @@ import im.vector.app.features.analytics.itf.VectorAnalyticsEvent // https://github.com/matrix-org/matrix-analytics-events/ /** - * Triggered when the user becomes unauthenticated without actually clicking sign out(E.g. Due to expiry of an access token without a way to refresh). + * Triggered when the user becomes unauthenticated without actually clicking + * sign out(E.g. Due to expiry of an access token without a way to refresh). */ data class UnauthenticatedError( /** - * The error code as defined in matrix spec. The source of this error is from the homeserver. + * The error code as defined in matrix spec. The source of this error is + * from the homeserver. */ val errorCode: ErrorCode, /** - * The reason for the error. The source of this error is from the homeserver, the reason can vary and is subject to change so there is no enum of possible values. + * The reason for the error. The source of this error is from the + * homeserver, the reason can vary and is subject to change so there is + * no enum of possible values. */ val errorReason: String, /**