-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #757 from DataDog/marcosaia/dev/fix-packages-path
[FIX] Fixed wrong packages location
- Loading branch information
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
.../kotlin/extensions/LengthPercentageExt.kt → ...nreplay/extensions/LengthPercentageExt.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...utils/ReactViewBackgroundDrawableUtils.kt → ...utils/ReactViewBackgroundDrawableUtils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...d/src/rn76/kotlin/com/datadog/reactnative/sessionreplay/extensions/LengthPercentageExt.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. | ||
* This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
* Copyright 2016-Present Datadog, Inc. | ||
*/ | ||
package com.datadog.reactnative.sessionreplay.extensions | ||
|
||
import com.facebook.react.uimanager.LengthPercentage | ||
|
||
internal fun LengthPercentage?.getRadius(width: Float, height: Float) = this | ||
?.resolve(width, height) | ||
?.let { (it.horizontal + it.vertical) / 2f } | ||
?: 0f |
5 changes: 5 additions & 0 deletions
5
...utils/ReactViewBackgroundDrawableUtils.kt → ...utils/ReactViewBackgroundDrawableUtils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters