Skip to content

Commit

Permalink
fix: android changes
Browse files Browse the repository at this point in the history
  • Loading branch information
WoLewicki committed Feb 23, 2024
1 parent ed3b50e commit 5201ad4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SafeAreaContextModule(reactContext: ReactApplicationContext?) :
}

public override fun getTypedExportedConstants(): Map<String, Any> {
return MapBuilder.of<String, Any>("initialWindowMetrics", getInitialWindowMetrics())
return MapBuilder.of<String, Any>("initialWindowMetrics", getInitialWindowMetrics() as Any)
}

private fun getInitialWindowMetrics(): Map<String, Any>? {
Expand Down
4 changes: 3 additions & 1 deletion android/src/main/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.13)
set(CMAKE_VERBOSE_MAKEFILE on)
set(CMAKE_VERBOSE_MAKEFILE ON)

set(LIB_LITERAL safeareacontext)
set(LIB_TARGET_NAME react_codegen_${LIB_LITERAL})
Expand Down Expand Up @@ -50,6 +50,8 @@ target_link_libraries(
react_render_debug
react_render_graphics
react_render_mapbuffer
react_render_componentregistry
react_utils
rrc_view
turbomodulejsijni
yoga
Expand Down

0 comments on commit 5201ad4

Please sign in to comment.