Skip to content

feat: opencode mobile and github actions workflow#1

Open
Copilot wants to merge 13 commits intodevfrom
copilot/add-github-actions-build-apk
Open

feat: opencode mobile and github actions workflow#1
Copilot wants to merge 13 commits intodevfrom
copilot/add-github-actions-build-apk

Conversation

Copy link

Copilot AI commented Feb 16, 2026

This pull request introduces the initial setup for the OpenCode mobile app, focusing on Android support with a React Native/Expo client. It adds a new build workflow for APK generation, project configuration, documentation, and core screens for managing server connections. The changes provide a foundation for developing, building, and connecting the mobile client to OpenCode servers.

Mobile App Project Initialization

  • Added packages/mobile/ with Expo configuration (app.json), a comprehensive .gitignore, and documentation files (README.md, AGENTS.md) describing architecture, features, and development instructions. [1] [2] [3] [4]

GitHub Actions & Build Automation

  • Introduced .github/workflows/build-mobile-apk.yml to automate Android APK builds on pushes to the mobile app branch or via manual dispatch, including environment setup, dependency installation, Expo prebuild, Gradle build, and APK artifact upload.
  • Updated .github/actions/setup-bun/action.yml to use the official actions/cache for caching Bun dependencies, improving reliability and maintainability.

Mobile App Core UI

  • Implemented the main tab layout with dark/light theme support in app/(tabs)/_layout.tsx, providing navigation for Sessions, Connections, and Settings.
  • Added the Connections screen (app/(tabs)/connections.tsx) for managing server connections, including add/edit/delete, active connection selection, and user preferences for message pagination.

Copilot AI requested a review from YajanaRao February 16, 2026 14:24
Copilot stopped work on behalf of YajanaRao due to an error February 16, 2026 14:31
imanolmzd-svg and others added 2 commits February 16, 2026 14:48
- Add React Native mobile app from feat/mobile-app
- Remove iOS and web platform configurations
- Add Android-only GitHub Actions workflow for APK builds
- Configure Android-specific settings (versionCode, adaptiveIcon)
- Add EAS build configuration for Android
- Update documentation for Android-only support

The mobile app allows connecting to OpenCode servers from Android devices
with support for local network, tunnels, and cloud-hosted instances.

Co-authored-by: YajanaRao <38914337+YajanaRao@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub Actions to build APK for branch Add mobile app with Android APK build workflow Feb 16, 2026
@github-actions
Copy link

Hey! Your PR title [WIP] Add GitHub Actions to build APK for branch doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link

Hey! Your PR title Add mobile app with Android APK build workflow doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link

Hey! Your PR title [WIP] Add GitHub Actions to build APK for branch doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

- Add branch name input to workflow_dispatch trigger
- Update checkout to use input branch when manually triggered
- Add branch name to build summary output
- Allows building APK from any branch via GitHub Actions UI

Users can now:
1. Go to Actions tab
2. Select "Build Mobile APK (Android Only)" workflow
3. Click "Run workflow"
4. Enter any branch name to build APK from

Co-authored-by: YajanaRao <38914337+YajanaRao@users.noreply.github.com>
Copilot AI changed the title Add mobile app with Android APK build workflow Add workflow_dispatch with branch input for mobile APK builds Feb 16, 2026
Yajana Rao added 3 commits February 16, 2026 21:54
Switching to GitHub-hosted ubuntu-latest runner to ensure the workflow can run immediately without queuing issues. Blacksmith runners can be added later once the workflow is proven and stable.
Replace Blacksmith-specific stickydisk with standard GitHub actions/cache
to ensure compatibility with all runner types (ubuntu-latest, self-hosted, etc.).
This provides more reliable caching across different CI environments.
…brand

- Download OpenCode logo from https://opencode.ai/brand
- Replace all placeholder JSON files with PNG images
- Update app.json to reference PNG files instead of JSON
- Add icon, adaptive-icon, splash-icon, and favicon assets
- Fixes Expo prebuild error: Invalid mimeType for adaptive-icon.json
Yajana Rao added 5 commits February 16, 2026 22:37
Workflow improvements:
- Add Gradle caching to speed up subsequent Android builds
- Cache ~/.gradle/caches, ~/.gradle/wrapper, and android/.gradle
- Reduces build time from 10-20min (first) to 5-10min (cached)

Mobile app improvements:
- Support DNS addresses and full URLs in quick connect mode
- Accept formats: domain (opencode.yajana.in), IP:port (192.168.1.100:4096), or full URL (https://opencode.yajana.in)
- Auto-detect URL format and apply http:// prefix when needed
- Update UI hints and examples to show all connection formats
- Improve error messages for both local and hosted connections

This allows users to connect to OpenCode hosted on platforms like Render.com
using domains instead of requiring IP addresses.
Add 'bun run web' script to quickly start Expo dev server in web mode.
Makes it easier to test the mobile app in a browser locally.
@YajanaRao YajanaRao changed the title Add workflow_dispatch with branch input for mobile APK builds feat: opencode mobile and github actions workflow Feb 16, 2026
@github-actions
Copy link

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@YajanaRao YajanaRao marked this pull request as ready for review February 16, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants