SW-Marastro / MyKkumi-Android

[Android] 마이꾸미 | 템빨 취미 및 제품 정보 공유 서비스 | 💻 SW Maestro 15th
6 stars 1 forks source link

[BASE] CI/CD를 위한 Github Actions + Firebase App Distribution 세팅 #7

Open jung0115 opened 3 weeks ago

jung0115 commented 3 weeks ago

어떤 기능인가요?

CI/CD를 위한 Gihub Actions

작업 상세 내용

참고할만한 자료(선택)

jung0115 commented 3 weeks ago

Firebase App Distribution GitHub Action

https://github.com/marketplace/actions/firebase-app-distribution

jung0115 commented 3 weeks ago

Error: File app/build/outputs/apk/release/app-debug.apk does not exist: verify that file points to a binary

jung0115 commented 3 weeks ago
jung0115 commented 3 weeks ago

서명된 apk 생성 방법

jung0115 commented 1 week ago

Fail

1: Task failed with an exception.

* Where:
Build file '/home/runner/work/MyKkumi-Android/MyKkumi-Android/core/data/build.gradle' line: 10

* What went wrong:
A problem occurred evaluating project ':core:data'.
> /home/runner/work/MyKkumi-Android/MyKkumi-Android/local.properties (No such file or directory)

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

=> ci/ci yml 파일에 local.properties 추가하는 명령을 추가

- name: Create local.properties
run: echo "$LOCAL_PROPERTIES_CONTENTS" > local.properties

2: Task failed with an exception.

* What went wrong:
A problem occurred configuring project ':core:data'.
> compileSdkVersion is not specified. Please add it to build.gradle

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
jung0115 commented 4 days ago

🚫 A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction

android studio > Refactor > Migrate로 해결 https://github.com/SW-Marastro/MyKkumi-Android/commit/4b270b24323108a38f19ada9331aeef798410466

jung0115 commented 4 days ago

🚫 launchWhenCreated(suspend CoroutineScope.() -> Unit): Job' is deprecated. launchWhenCreated is deprecated as it can lead to wasted resources in some cases. Replace with suspending repeatOnLifecycle to run the block whenever the Lifecycle state is at least Lifecycle.State.CREATED.

BaseFragment 내용 변경 https://github.com/SW-Marastro/MyKkumi-Android/commit/cd147fda3da064bb65ee3ab1d5d997bf49ae935e

lifecycleScope.launchWhenCreated {
    initView()
}

⬇️

lifecycleScope.launch {
    lifecycle.repeatOnLifecycle(Lifecycle.State.CREATED) {
        initView()
    }
}
jung0115 commented 4 days ago

🚫 Execution failed for task ':core:data:kaptReleaseKotlin'. Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

jung0115 commented 1 day ago

⚠️ Debug 버전은 되고, Release 버전은 안 됨