Build the Android app from a clean machine and fix the docs

Đang mở
#19 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, node.js, react-native, typescript
Lĩnh vực
documentation, mobile

Hướng nghiên cứu

Start with the "Set up" and "Build the Android app" sections in CONTRIBUTING.md, then follow the listed commands from the repository root on a clean Linux or macOS machine. Record any missing setup steps or failed commands, including Android SDK requirements and environment variables. Update CONTRIBUTING.md with only the missing instructions; done means a second person can follow it on another clean machine, or you report that the existing steps worked with your system and tool versions.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

docs help wanted

Why

docs/devices.md sends people who would rather build their own APK to CONTRIBUTING.md, whose Android steps mirror .github/workflows/android.yml. Following them on a machine that was never set up is the only way to find what they leave out (ROADMAP.md, Now: preview APKs and open development).

What to do

  1. On a machine that has never built Hermit (Linux or macOS; say which), follow only CONTRIBUTING.md: "Set up", then "Build the Android app", until you have the debug APK. If you have an arm64 phone, install it and load JavaScript from Metro as that section says.
  2. Write down every step you needed that the docs don't give, and every command that failed. Worth checking:
    • free disk: README.md says about 15 GB, CONTRIBUTING.md says nothing;
    • how to install the Android SDK pieces (the workflow installs platforms;android-37.0, build-tools;37.0.0, ndk;29.0.14206865 and cmake;3.22.1), and setting ANDROID_HOME and JAVA_HOME;
    • node apps/mobile/worklets/wallet/build.mjs runs npm ci in the system's temp folder (its header says about 320 MB of packages), so it needs the network;
    • the first Gradle run downloads Gradle and its dependencies.
  3. Add what was missing to CONTRIBUTING.md, in the same plain style. Don't reorder or rewrite steps that worked.

Done when

  • The pull request says which system, JDK and Node versions you used, and whether the APK installed on a phone.
  • CONTRIBUTING.md covers every step you had to find out by yourself, so a second person can follow it on another clean machine.
  • If everything worked as written, say so in a comment here, with your system and versions, instead of a pull request.

How to check

The steps from CONTRIBUTING.md, from the repository root:

pnpm install
(cd apps/mobile && npx expo prebuild --platform android --no-install)
node scripts/qvac-bundle.mjs
node apps/mobile/worklets/wallet/build.mjs
(cd apps/mobile/android && ./gradlew :app:assembleDebug)
ls apps/mobile/android/app/build/outputs/apk/debug/app-debug.apk

Keep in mind

  • apps/mobile/android is generated by expo prebuild. Never edit it by hand or commit it.
  • Docs only. If a script or a workflow is wrong, open a bug report for it.
  • No paths from your machine, user names or build logs in the docs.
Ngôn ngữ chính
TypeScript
Star
11
Fork
0
Merge trung bình
10 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DojoCodingLabs/hermit

Tất cả issue của DojoCodingLabs/hermit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.