@momo-kits/native-kits 0.113.2-beta.4 → 0.113.2-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,9 +3,12 @@ package vn.momo.kits.platform
|
|
|
3
3
|
import android.annotation.SuppressLint
|
|
4
4
|
import android.content.res.Resources
|
|
5
5
|
import android.graphics.BlurMaskFilter
|
|
6
|
+
import androidx.compose.foundation.layout.WindowInsets
|
|
7
|
+
import androidx.compose.foundation.layout.statusBars
|
|
6
8
|
import androidx.compose.runtime.Composable
|
|
7
9
|
import androidx.compose.ui.graphics.NativePaint
|
|
8
10
|
import androidx.compose.ui.platform.LocalConfiguration
|
|
11
|
+
import androidx.compose.ui.platform.LocalDensity
|
|
9
12
|
import androidx.compose.ui.unit.Dp
|
|
10
13
|
import androidx.compose.ui.unit.dp
|
|
11
14
|
|
|
@@ -28,10 +31,6 @@ actual fun NativePaint.setMaskFilter(blurRadius: Float) {
|
|
|
28
31
|
@SuppressLint("InternalInsetResource")
|
|
29
32
|
@Composable
|
|
30
33
|
actual fun getStatusBarHeight(): Dp {
|
|
31
|
-
val
|
|
32
|
-
|
|
33
|
-
"dimen",
|
|
34
|
-
"android"
|
|
35
|
-
)
|
|
36
|
-
return if(resourceId > 0) Resources.getSystem().getDimensionPixelSize(resourceId).dp else 0.dp
|
|
34
|
+
val density = LocalDensity.current
|
|
35
|
+
return with(density) { WindowInsets.statusBars.getTop(density).toDp() }
|
|
37
36
|
}
|
|
@@ -9,6 +9,7 @@ import androidx.compose.runtime.remember
|
|
|
9
9
|
import androidx.compose.runtime.setValue
|
|
10
10
|
import androidx.compose.runtime.staticCompositionLocalOf
|
|
11
11
|
import androidx.compose.ui.unit.Dp
|
|
12
|
+
import androidx.compose.ui.unit.dp
|
|
12
13
|
import vn.momo.kits.components.TrustBannerData
|
|
13
14
|
import vn.momo.kits.const.AppStatusBar
|
|
14
15
|
import vn.momo.kits.const.AppTheme
|
|
@@ -98,6 +99,8 @@ fun ApplicationContainer(
|
|
|
98
99
|
|
|
99
100
|
val appStatusBarHeight = statusBarHeight ?: getStatusBarHeight()
|
|
100
101
|
|
|
102
|
+
println("appStatusBarHeight ${appStatusBarHeight.value}")
|
|
103
|
+
|
|
101
104
|
disableOverscroll()
|
|
102
105
|
CompositionLocalProvider(
|
|
103
106
|
AppTheme provides appTheme,
|
package/local.properties
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
# Location of the SDK. This is only used by Gradle.
|
|
5
5
|
# For customization when using a Version Control System, please read the
|
|
6
6
|
# header note.
|
|
7
|
-
#
|
|
8
|
-
sdk.dir=/Users/
|
|
7
|
+
#Tue Apr 23 16:40:15 ICT 2024
|
|
8
|
+
sdk.dir=/Users/hung.dao1/Library/Android/sdk
|