Skip to content

Commit

Permalink
react-native-config 에러, 미정리
Browse files Browse the repository at this point in the history
  • Loading branch information
deptno committed Jan 20, 2024
1 parent cc9cdc5 commit 2c68df0
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 10 deletions.
46 changes: 45 additions & 1 deletion diary/2024-01-20.md
Original file line number Diff line number Diff line change
@@ -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
```
21 changes: 12 additions & 9 deletions me.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -69,6 +70,8 @@
- tubemon.io 크롤러가 이걸로 만들어짐
- [[functional]]
- [[node]]
- bundle
- [ ] webpack vite esbuild 정리 필요

## link
- [[about-me]]
Expand Down

0 comments on commit 2c68df0

Please sign in to comment.