Skip to content

[NM-600] 릴리스 번들 hasCode 수정 · 2.1.0(16) — 내부 테스트용 - #80

Closed
taew0o wants to merge 2 commits into
developfrom
chore/NM-600-internal-test-build
Closed

taew0o wants to merge 2 commits into
developfrom
chore/NM-600-internal-test-build

Conversation

@taew0o

@taew0o taew0o commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

요약

내부 테스트 트랙(QNN 조건부 전달 검증, NM-600)에 올릴 AAB를 만들다 릴리스 번들이 만들어지지 않는 문제가 드러나 고친다.

원인

:app:bundleRelease 가 실패했다.

Module 'qnn_v69' has no dex files but the attribute 'hasCode' is not set to false in the AndroidManifest.xml.

qnn_v69 ~ qnn_v81 은 세대별 Skel/Stub .so 만 싣고 코드가 없다. bundletool 은 dex 없는 모듈에 hasCode="false" 를 요구한다. CI(ci.yml)는 debug 만 빌드해 이 검사를 거치지 않는다 — 릴리스 전용 문제다. qnn_core 는 dex 가 있어 그대로 둔다.

바꾼 것

  • qnn_v69 · v73 · v75 · v79 · v81 매니페스트에 <application android:hasCode="false" />
  • 폰 versionCode 16 · versionName 2.1.0, 워치 1_000_000_016 · 2.1.0 — 내부 테스트 업로드용(Play 업로드마다 +1)

검증

  • 로컬 :app:bundleRelease 성공(346MB) · spotlessCheck detekt lint test + 빌드 셋 통과
  • 실기기 릴리스 스모크는 S24 재연결 뒤(업로드 전 필수)

참고

  • 2.1.0 에서 QNN 을 실제로 켜는 작업(EPContext · 폴백)은 별도 티켓으로 진행한다. 이번 내부 테스트는 전달만 검증한다.

🤖 Generated with Claude Code

taew0o and others added 2 commits October 17, 2026 14:08
- qnn_v69 ~ v81 은 Skel/Stub .so 만 실어 dex 가 없다. 표시가 없으면 bundleRelease 가
  「Module 'qnn_v69' has no dex files but the attribute 'hasCode' is not set to false」로 실패한다.
  CI 는 debug 만 빌드해 이 검사를 거치지 않았다 — 내부 테스트 AAB 를 만들다 드러났다.
- 내부 테스트 트랙(QNN 조건부 전달 검증) 업로드를 위해 versionCode 16 · 2.1.0, 워치 1_000_000_016

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@taew0o

taew0o commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor Author

코드 리뷰 (code-review 스킬) — 지적 7건

# 지적 조치
1 합친(universal · fused) APK 에서 hasCode=false 가 base 로 넘어가 앱 코드가 안 실릴 수 있다 재현해 보니 안 넘어간다. 이 AAB 로 bundletool build-apks --mode=universal → 다섯 세대 .so 가 모두 합쳐진 universal.apk 의 매니페스트에 hasCode 가 없다(aapt2 dump). 에뮬레이터에 설치 · 실행 → MainActivity 정상, ClassNotFound 없음. 근거를 플러그인 KDoc 에 적었다
2 tools:replace 가 없어 병합 충돌 가능 1 의 실측대로 병합에서 충돌 · 전파가 없어 넣지 않는다
3 다섯 매니페스트 손 복사 — 새 세대에서 또 빠질 수 있다 settings.gradle.kts 세대 추가 체크리스트에 한 줄 더했다. 플러그인이 매니페스트를 생성하는 방식은 범위가 커 이번엔 안 한다
4 R8 이 세대 모듈에 클래스를 옮기면 hasCode=false 로 못 싣는다 세대 모듈 release dex 는 528B(빈 dex)다. 코드가 생기는 변경이면 bundleRelease 가 아니라 실행에서 터지므로, NM-628(QNN 운영 적용) 스모크에서 세대 기기로 본다
5 CI 가 여전히 릴리스 번들을 안 만든다 맞다. release-smoke.yml(main 행 PR)만 릴리스를 빌드한다. develop CI 에 bundleRelease 를 넣는 것은 모델 · 서명 준비가 필요해 따로 다룬다
6 같은 주석 다섯 벌 플러그인 KDoc 「세대 모듈은 hasCode="false" 다」 한 곳으로 옮기고 매니페스트는 한 줄 참조만
7 버전 올림과 수정이 한 PR · 릴리스 스모크 내부 테스트 업로드가 목적이라 함께 둔다. 릴리스 스모크: 에뮬레이터에서 assembleRelease · universal 모두 실행 확인, 실기기는 내부 테스트로 S24 를 Play 업데이트해 본다(서명이 달라 로컬 설치 불가)

b836e13 에서 spotlessCheck detekt :app:bundleRelease 통과.

@taew0o

taew0o commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

닫는다. hasCode 수정은 ORT · QNN 동적 기능 모듈 때문에 필요했는데, LiteRT 전환(#83)으로 그 모듈이 없어졌다. 2.1.0(16) 버전 올리기는 release/2.1.0 에서 새로 한다.

@taew0o taew0o closed this Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant