Skip to content

Commit 9cb1bd5

Browse files
Fabio Carballofacebook-github-bot
authored andcommitted
Convert ComponentLogParams to Kotlin
Summary: As per title Reviewed By: pentiumao Differential Revision: D44229775 fbshipit-source-id: 5ded2d7614dea295449d04f022865d82b82c4386
1 parent 410ed0b commit 9cb1bd5

File tree

2 files changed

+29
-40
lines changed

2 files changed

+29
-40
lines changed

litho-core/src/main/java/com/facebook/litho/ComponentLogParams.java

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.facebook.litho
18+
19+
import kotlin.jvm.JvmField
20+
21+
/** Data class for params used to log error in LithoView. */
22+
class ComponentLogParams
23+
@JvmOverloads
24+
constructor(
25+
@JvmField val logProductId: String,
26+
@JvmField val logType: String,
27+
@JvmField val samplingFrequency: Int = 0,
28+
@JvmField val failHarder: Boolean = false
29+
)

0 commit comments

Comments
 (0)