반응형

분류 전체보기 186

Android Studio + Kotlin | 옛 프로젝트에서 프로필 이미지 변경 안되는 현상

AndroidManifest.xml 기존에 추가되어있던 것들 외에 이 두가지를 추가해주었습니다  그리고 Provider 부분에서tools:replace = "android:authorities"> 를 제거해주었습니다 getExternalStorage() 메서드가 Android 10 이상에서 Deprecated되었기 때문에,대신 getExternalFilesDir()을 사용하여 앱 전용 디렉토리 경로를 활용해야 합니다. fun getExternalStorage(): String { return context.getExternalFilesDir(Environment.DIRECTORY_PICTURES)?.absolutePath + "/exam"} 이렇게 적용한 후 확인하면 프로필 이미지 사진을 찍은 후..

Android Studio 2024.12.09

iOS/Swift/UIKit | Storyboard 및 UIView - UILabel 글자 크기 자동 변경 Autoshrink

iOS에서 autoshrink는 주로 UILabel, UITextView, 또는 UIButton과 같은 텍스트 기반 UI 요소에 사용되는 속성으로, 텍스트가 해당 뷰의 크기나 제한된 공간을 넘을 경우 자동으로 텍스트 크기를 축소하여 공간에 맞게 표시되도록 합니다. 이를 통해 레이아웃의 유동성 있는 텍스트 처리가 가능해집니다.주요 속성Minimum Font Size (최소 폰트 크기):autoshrink가 작동할 때 텍스트가 줄어들 수 있는 최소 폰트 크기를 설정합니다.이 속성은 텍스트 크기가 너무 작아지는 것을 방지하고, 지정된 최소 크기 이하로 줄어들지 않도록 합니다.Adjusts Font Size To Fit Width (너비에 맞게 폰트 크기 조정):UILabel 또는 UIButton의 adjust..

UIKit 2024.12.06

Kotlin | Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will

Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on cohttp://m.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored MyGlide.java 파일을 하나 만들어준다 import com.bumptech.glide.annotation.GlideModule;import com.bumptech.glide.module.AppGlideModule;@G..

Kotlin 2024.12.06

RxSwift | RxSwfit 배우는 이유 + 사용하는 이유

회사 프로젝트는 RxSwfit로 이루어져 있다 그래서 현재 감으로 코드를 작성하고 있는 중이다(다행히 안되거나 그러진 않지만)구조적으로 더 잘 파악하고 메모리 누수가 이루어 지지 않도록 하루에 하나씩 공부하기 위해서 RxSwfit를 정리하고자 한다 https://github.com/ReactiveX/RxSwift GitHub - ReactiveX/RxSwift: Reactive Programming in SwiftReactive Programming in Swift. Contribute to ReactiveX/RxSwift development by creating an account on GitHub.github.com 여기서 보고 차차 정리하는걸로.. 요즘 다들 SwiftUI쓰는데..내년 5월달에 재..

RxSwift 2024.12.04

[Xcode] xcodeproj vs xcworkspace

Xcode에서 프로젝트를 관리할 때, .xcodeproj와 .xcworkspace 파일은 중요한 역할을 합니다. 이 두 파일의 차이를 이해하는 것은 여러 프로젝트를 효율적으로 관리하고, 의도한 대로 빌드를 수행하며, 팀 작업을 원활하게 하는 데 큰 도움이 됩니다. 아래에서 .xcodeproj와 .xcworkspace의 차이점과 사용 용도를 설명하겠습니다..xcodeproj 파일이란?1. 기본 Xcode 프로젝트 파일.xcodeproj 파일은 Xcode 프로젝트의 기본 파일입니다. Xcode에서 프로젝트를 처음 생성하면 이 파일이 자동으로 생성됩니다. 이 파일은 프로젝트의 구조, 빌드 설정, 타겟, 파일 간의 관계 등을 정의하고 있습니다.2. 단일 프로젝트 환경에서 사용.xcodeproj는 보통 하나의 독..

Xcode Tips 2024.12.03

proguard | debug에서는 가능했는데 Release에서는 왜 안될까?

proguard  예.. 제 상태입니다분명 월요일 아침부터 상쾌하게 올릴려고했습니다만..분명 Debug 모드에서  암호화 부분에서 문제 없이 되는걸 확인하고 올리기 직전에qaProd에서 테스트했을 때 문제가 되는 부분이 확인되었습니다 너무너무 화가나서 화는 못내고 구글에 소심하게 적어보는 '난독화 어렵다'...ㅋㅎ.. ㅠ메모리 누구 확인하려고 했는데 왜 다음스텝 못들어가게 날 막아?나한테 왜그래?  도움요청으로 통해 한가지 알게된 사실디버그에서 내가 난독화와 앱 압축을 하여서 테스트를 한다고해도 완벽하지 않을 수 있다는 사실..?   그래서 Mapping.txt 를 확인했을때 보니 확연히 자이가 나더라구요?..문제를 해결하기위해서 하나씩 뜯으며 수정을 하기로 했습니다 갑자기 폰 꺼지면 다시 수정해서 다시..

Android정책 2024.12.02

Bug affecting some locales causing HTTP errors Please downgrade to 21.0.2 or, if available, update to the next version which will contain a fix. For more info please see:

Bug affecting some locales causing HTTP errors Please downgrade to 21.0.2 or, if available, update to the next version which will contain a fix. For more info please see: Update함  https://firebase.google.com/support/release-notes/android#latest_sdk_versions  or firebase-bom을 사용해서여러 파이어베이스 라이브러리 버전 명시할 필요가 없음 implementation platform('com.google.firebase:firebase-bom:33.6.0') implementation "co..

Android정책 2024.11.29

Kotlin | navGraphViewModels

Jetpack Navigation에서 ViewModel을 공유하는 방법: navGraphViewModels 사용법안녕하세요! 오늘은 Jetpack Navigation 라이브러리와 ViewModel을 결합하여 여러 화면(Fragment) 간에 ViewModel을 공유하는 방법에 대해 알아보겠습니다. 특히 **navGraphViewModels**를 사용해 Navigation Graph 내에서 어떻게 ViewModel을 관리하고, 여러 Fragment에서 데이터를 쉽게 공유할 수 있는지에 대해 설명드릴 예정입니다.1. Navigation Component와 ViewModel 개념 복습Navigation Component란?Jetpack의 Navigation Component는 앱 내에서 화면 간의 전환을 관리..

Kotlin 2024.11.27
반응형