Skip to content

Add iOS/macOS build support and fixes#69

Merged
sjg20 merged 7 commits into
masterfrom
mac
Mar 8, 2026
Merged

Add iOS/macOS build support and fixes#69
sjg20 merged 7 commits into
masterfrom
mac

Conversation

@sjg20
Copy link
Copy Markdown
Owner

@sjg20 sjg20 commented Mar 8, 2026

  • Add CocoaPods configuration for iOS and macOS builds
  • Allow connecting with only a local URL (no server URL required), fixing CERTIFICATE_VERIFY_FAILED when using self-signed certs
  • Pass PDF page dimensions to the print system for correct scaling on iOS
  • Add app-ios and app-ios-install Makefile targets using xcrun devicectl
  • Fix grep -P usage for macOS compatibility (BSD grep lacks -P flag)
  • Default local URL scheme to https instead of http
  • Add pdf as direct dependency (fixes depend_on_referenced_packages lint)

sjg20 and others added 6 commits March 8, 2026 15:10
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Support specifying just the local URL without a server URL. The local
URL is used as both the base and local URL so that the certificate-
trusting client handles self-signed certificates correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
On iOS the printing plugin renders PDF pages at their native point
size without scaling to fit the paper. Read the first page dimensions
and pass them as the format so iOS picks matching paper and the
rendering fills the page correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add targets for building the iOS app with dart defines (build date)
and installing via devicectl which preserves app settings, unlike
flutter install which uninstalls first.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
macOS BSD grep does not support -P (Perl regex). Replace with sed
which works on both GNU and BSD systems.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When a local URL is entered without a scheme and no server URL is
provided, default to https instead of http since local servers
typically use self-signed TLS certificates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The pdf package is imported directly in viewer_screen.dart for
PdfPageFormat, so it must be listed as a direct dependency to
satisfy the depend_on_referenced_packages lint.

Also add a comment explaining how to set IOS_DEVICE in the Makefile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sjg20 sjg20 merged commit 095a4ac into master Mar 8, 2026
2 checks passed
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