build: compile native code from Gradle (#227)
Next Alone committed
- Author
- Next Alone · 12210746+NextAlone@users.noreply.github.comOct 22, 2026 at 15:41
- Committer
- GitHub · noreply@github.comOct 22, 2026 at 15:41
- Parents
- 28d921251c54
build: compile native code from Gradle (#227) A fresh checkout now builds with the submodules and gradlew alone: - Release variants package the CMake output instead of a libtmessages copied into src/main/libs by bin/libs/native.sh. That copy dates from NekoX, which shared one native build across several product flavors; Nagram has a single release variant and the copy was byte-identical to the buildCMakeRelWithDebInfo output. - The tgcalls patches in jni/patches are applied by a patchTgcalls task before CMake configures, replacing ./run init libs. Applied patches are skipped. - CI drops the separate native job and caches compiles with ccache. Release APKs built both ways differ only in the per-build Crashlytics mapping_file_id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 files changed+182−380