From 2c68df0a6e3f0d2d791bfda680d892d8dd78ce90 Mon Sep 17 00:00:00 2001 From: deptno Date: Sat, 20 Jan 2024 22:11:12 +0900 Subject: [PATCH] =?UTF-8?q?react-native-config=20=EC=97=90=EB=9F=AC,=20=20?= =?UTF-8?q?=EB=AF=B8=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- diary/2024-01-20.md | 46 ++++++++++++++++++++++++++++++++++++++++++++- me.md | 21 ++++++++++++--------- 2 files changed, 57 insertions(+), 10 deletions(-) diff --git a/diary/2024-01-20.md b/diary/2024-01-20.md index 1b9febf..ab358d4 100644 --- a/diary/2024-01-20.md +++ b/diary/2024-01-20.md @@ -1,3 +1,47 @@ - [X] 도서상풍권 등록 -- [ ] production console.* console.log 제거 +- [X] production console.* console.log 제거 + `babel-plugin-transform-remove-console` + - `production` 에서만 지우도록한다 + +- [[../react-native|react-native]] [[../android|android]] 빌드시 에러 react-native-config 와 충돌 + ```sh + > Task :app:stripDevDebugSymbols + Unable to strip the following libraries, packaging them as they are: libc++_shared.so, libcrashlytics-common.so, libcrashlytics-handler.so, libcrashlytics-trampoline.so, libcrashlytics.so, libfabricjni.so, libfb.so, libfbjni.so, libfolly_runtime.so, libglog.so, libglog_init.so, libhermes.so, libhermes_executor.so, libhermesinstancejni.so, libimagepipeline.so, libjscinstance.so, libjserrorhandler.so, libjsi.so, libjsijniprofiler.so, libjsinspector.so, liblogger.so, libmapbufferjni.so, libnative-filters.so, libnative-imagetranscoder.so, libreact_codegen_rncore.so, libreact_config.so, libreact_debug.so, libreact_nativemodule_core.so, libreact_newarchdefaults.so, libreact_render_animations.so, libreact_render_attributedstring.so, libreact_render_componentregistry.so, libreact_render_core.so, libreact_render_debug.so, libreact_render_graphics.so, libreact_render_imagemanager.so, libreact_render_leakchecker.so, libreact_render_mapbuffer.so, libreact_render_mounting.so, libreact_render_runtimescheduler.so, libreact_render_scheduler.so, libreact_render_telemetry.so, libreact_render_templateprocessor.so, libreact_render_textlayoutmanager.so, libreact_render_uimanager.so, libreact_utils.so, libreactnativeblob.so, libreactnativejni.so, libreactperfloggerjni.so, librninstance.so, librrc_image.so, librrc_legacyviewmanagerinterop.so, librrc_native.so, librrc_root.so, librrc_scrollview.so, librrc_text.so, librrc_textinput.so, librrc_unimplementedview.so, librrc_view.so, libruntimeexecutor.so, libturbomodulejsijni.so, libuimanagerjni.so, libyoga.so. + + > Task :app:extractDevNativeSymbolTables + > Task :app:mergeDevNativeDebugMetadata NO-SOURCE + > Task :app:processDevResources + + > Task :app:compileDevKotlin FAILED + e: file:///android/app/src/main/java/ro/[PROJECT_NAME]/app/MainApplication.kt:29:58 Type mismatch: inferred type is String but Boolean was expected + + > Task :app:optimizeDevResources + > Task :app:mergeExtDexDev + + FAILURE: Build failed with an exception. + + * What went wrong: + Execution failed for task ':app:compileDevKotlin'. + > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction + > Compilation error. See log for more details + + * Try: + > Run with --stacktrace option to get the stack trace. + > Run with --info or --debug option to get more log output. + > Run with --scan to get full insights. + > Get more help at https://help.gradle.org. + + Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. + + You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. + + For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. + + BUILD FAILED in 20s + 715 actionable tasks: 603 executed, 112 up-to-date + + ``` + - 해당 파일에 가보면 `DEBUG` 변수를 이미 사용하고 있다 이로인해서 `.env*` 에 `DEBUG` 를 선언하면 `Boolean` 타입 대신 `string` 이 주입되면서 위 에러가 발생하게된다, 변수 명 수정필요 + ```kotlin + override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG + ``` diff --git a/me.md b/me.md index f55a1f1..b1b62ef 100644 --- a/me.md +++ b/me.md @@ -23,16 +23,16 @@ - [X] 만들었던 것 + [[about-me]] 에 정리 - 가진 기술 - - kubernetes - - typescript - - next.js - - css - - tailwind + - [[kubernetes]] + - [[typescript]] + - [[nextjs]] + - [[css]] + - [[tailwindcss]] - tachyon - - intellij - - neovim - - db - - postgresql + - [[intellij]] + - [[neovim]] + - [[db]] + - [[postgresql]] + https://github.com/deptno/pg-toolbox/tree/master/packages/asql - asql, orm 이 불편해서 tagged template string 기반으로 sql이 보이도록 구현 - dynamodb @@ -48,6 +48,7 @@ + https://github.com/deptno/dataloader-toolbox - graphq n+1 문제해결을위해 data-loader를 사용하는데 request 당 하나로 캐시되는 라이브러리, react 18 에서 도입된 cache 와 유사한 개념 + - [X] n+1 문제가 지금와서 잘생각이 안남 정리 필요 - uml - [ ] plantuml - [X] mermaid @@ -69,6 +70,8 @@ - tubemon.io 크롤러가 이걸로 만들어짐 - [[functional]] - [[node]] + - bundle + - [ ] webpack vite esbuild 정리 필요 ## link - [[about-me]]