Dev 283

Flutter Pub outdated

1. 업그레이드 가능한 패키지가 있는지 찾는다. $flutter pub outdated 2. 패키지들을 업그레이드 시켜준다. $flutter pub upgrade 3. 다시 확인해서 업그레이드 가능한 패키지들을 찾아보면 업그레이드 됐음을 알 수 있다. $flutter pub outdated Flutter 명령어 add pubspec.yaml에 의존성을 추가한다. cache Work with the Pub system cache. deps 패키지 의존성들을 출력한다. downgrade 플러터 프로젝트의 패키지들을 다운그레이드한다. get 플러터 프로젝트로 패키지들을 가져온다. global Work with Pub global packages. login Log into pub.dev.. logout Log..

Dev/Flutter 2022.05.10

Flutter(ios) - 릴리즈(Release) 모드

이슈 Debug 모드에서는 문제가 생기지 API 연결이 Release 모드 에서 연결이 되지 않는 문제가 발생했습니다. 얼마전까지만해도 Release 모드에서도 문제가 되지 않았었는데 난감했다. 참고한 글에는 Local Network 권한 이슈라고 하는데... 참 이상한게 추가한 라이브러리도 없는데... 갑자기 해당 이슈가 발생했다는건데... 어디서 무엇이 어떻게 된건지... 아직 아리송하다. 에러 local network broadcast in apps need to be declared in the app's Info.plist 해결방법 NSBonjourServices _dartobservatory._tcp 공식문서 https://docs.flutter.dev/development/add-to-app..

Dev/Flutter 2022.04.28

Retrofit2 이슈 - com.google.gson.JsonIOException: JSON document was not fully consumed.

이슈 retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall@dffd7f3 com.google.gson.JsonIOException: JSON document was not fully consumed. 원인 REST API 의 Response 형태가 json 형태가 아닌 String 형태로 내려올 경우에 발생한다. 해결 ScalarsConverterFactory 추가 .addConverterFactory(ScalarsConverterFactory.create()) Retrofit.Builder() .baseUrl(IhpUrl.rest_api_url) .addConverterFactory(ScalarsConverterFactory.create()) .addCo..

Dev/Android 2022.04.25

Flutter 다국어 지원 - Localization

Flutter 다국어 지원, Flutter Localization 등으로 검색하면 많은 자료가 나옵니다. 참고자료 1. 기본적으로 참고해야하는 자료는 공식 문서 - https://docs.flutter.dev/development/accessibility-and-localization/internationalization 하지만 영어가 익숙하지 않다보니 공식문서만 보면 이해가 잘 되지 않아서 다른 한글 자료 및 영상 자료를 추가로 참고. 2. 유튜브 영상 - https://youtu.be/Zw4KoorVxgg 상세하게 순서 등 다 나오다보니 감사하게 공식 문서와 함께 참고. 다국어 지원 절차 1. 라이브러리 추가 - pubspec.yaml 파일에 추가 a. dependencies 에 flutter_loc..

Dev/Flutter 2022.04.22

Flutter iOS 개발시 주의할 사항

Simulator 사용 (에뮬레이터) Flutter 로 iOS 개발할때 Simulator 에 빌드해서 앱을 설치하고 확인합니다. iOS Simulator 는 macOS 에서만 사용할 수 있는 가상 디바이스(Xcode 필요) 빌드모드 설명 Flutter의 빌드 모드 기본적으로는 디버그(Debug) 모드 로 빌드를 진행하지만, 외부 테스트 및 앱스토어 등록을 위해서 프로파일(Profile) 혹은 릴리즈(Release) 모드로 빌드를 진행합니다. 디버그 모드로 빌드한 경우에는 앱이 Simualtor 에 설치가 가능하지만 프로파일, 릴리즈 모드로 빌드한 경우에는 Simulator 에 설치가 불가능합니다. 즉, 프로파일, 릴리즈 버전으로 빌드한 경우에는 실제 디바이스를 연결해서 앱을 설치해야 합니다. 빌드모드 S..

Dev/Flutter 2022.04.14

[AndroidStudio] 사용중이던 Github 계정 바꾸기

IDE 경로 : AndroidStudio -> Preferences -> Version Control -> Github 순서대로 변경하려고 하는 계정을 선택하고 체크 표시를 선택하고 하단에 있는 Apply 를 클릭한다. terminal Push failed remote: Permission to 개인계정/BasicsCodelab.git denied to 회사. unable to access 'https://github.com/개인계정/BasicsCodelab.git/': The requested URL returned error: 403 AndroidStuiod 에 회사, 개인 Github 계정을 2개 등록시켜둔 상황. 여기서 개인 Repository 에 올릴려고 Push를 했으나 403 권한 문제로 소..

Dev/Android 2022.03.30

nodemon 이란 무엇인가?

nodemon nodemon is a tool that helps develop node.js based applications by automatically restarting the node application when file changes in the directory are detected. nodemon 을 사용해서 node.js 기반으로 만들어진 어플리케이션을 동작할 경우, 파일이 변경될때마다 어플리케이션을 자동으로 재시작을 해준다. https://www.npmjs.com/package/nodemon nodemon Simple monitor script for use during development of a node.js app.. Latest version: 2.0.15, last pu..

Dev/Others 2022.03.28

[kotlin] Loop 문 사용 Tip

코틀린 반복문 Kotlin 언어의 Loop 문 사용하는 방법입니다. class Test { private val fruits = listOf("Apple", "Banana", "Cherry") @Test fun `Loop - 전통(?)적인 방식 사용`() { for (index in 0 .. fruits.size -1) { val fruit = fruits[index] println("$index: $fruit") } } @Test fun `Loop - until 사용`() { for (index in 0 until fruits.size) { val fruit = fruits[index] println("$index: $fruit") } } @Test fun `Loop - lastIndex 사용`() {..

Dev/Kotlin 2022.03.25