Skip to content

Feat: file picker#2

Open
YajanaRao wants to merge 5 commits intodevfrom
feat/file-picker
Open

Feat: file picker#2
YajanaRao wants to merge 5 commits intodevfrom
feat/file-picker

Conversation

@YajanaRao
Copy link
Owner

This pull request includes configuration changes to the mobile app's platform settings and a minor enhancement to the FileContextPills component to support press actions on individual file pills. The most important changes are grouped below.

Mobile App Platform Configuration:

  • Android: Enabled cleartext (non-HTTPS) network traffic by adding usesCleartextTraffic: true to the app's Android manifest configuration.
  • iOS: Updated the infoPlist to allow arbitrary loads and local networking by setting NSAllowsArbitraryLoads: true and NSAllowsLocalNetworking: true under NSAppTransportSecurity.

Component Enhancement:

  • FileContextPills component: Added an optional onPress prop to handle press events on individual file pills, and updated the component to call this handler when a pill is pressed. [1] [2]

- Resolved app.json: kept both usesCleartextTraffic and iOS NSAppTransportSecurity
- Resolved FileContextPills: kept onPress prop addition for chip interactions
- Accepted upstream changes for connections.tsx and [id].tsx
@github-actions
Copy link

Hey! Your PR title Feat: file picker 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.

- Created Expo config plugin to inject network security config
- Enables cleartext HTTP traffic for local development
- Adds usesCleartextTraffic and networkSecurityConfig to AndroidManifest
- Allows connections to local IP ranges (192.168.x.x, 10.x.x.x, 172.16.x.x)
- Required for GitHub Actions APK builds to connect to opencode server

Fixes WiFi connection issues on physical Android devices
- Replaced custom config plugin with official expo-build-properties
- Removed unnecessary @expo/config-plugins dependency
- Added expo-build-properties with usesCleartextTraffic: true
- This is the official Expo-recommended approach for Android 9+ HTTP support
- Fixes WiFi connectivity issues on physical Android devices
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.

1 participant

Comments