Files
offscale-mobile/modules/officer-net/ios/OfficerNet.podspec
T
pastilhas ef3582f2aa init: OffScale — standalone MIT Tailscale/Headscale client
Extracted from the officer-suite monorepo into its own public repo. The app is
open source and free; the rest of the suite is not, so it could not stay in a
tree that ships an account layer.

What moved:

- apps/offscale/*                  -> repo root (App shell, app.json, assets)
- packages/officer-net/            -> modules/officer-net/, a `file:` dependency
- packages/core VPN closure        -> src/vpn/ (screen, hook, native bridge, invite)
- packages/core shared primitives  -> src/ui/ (theme, cards, tabs, backdrop, splash)
- scripts/build-{ios,android}.sh   -> scripts/, cut down to this one app

What deliberately did NOT move: the platform account layer. VpnScreen used to
render core's AppSettingsScreen, which drags in ServersSection -> servers.ts,
useAuth, api.ts, shared-session, install-guard, api-keys. None of that exists
here. src/settings/SettingsScreen.tsx is a fresh replacement rendering exactly
what VpnScreen passed it — the app's own sections plus About — with no Servers
tab, no Appearance control (the app is pinned to dark) and no sign-out.

The one platform reference left in the closure was a dead `import { request }
from './api'` in officer-net.ts, unused since enrollVpn() was removed. Gone. The
app now contacts nothing but the control server you point it at, its peers, and
the enrolment sidecar named inside an invite link you tapped.

Dependencies are pinned to the exact versions the monorepo has installed, not to
ranges: this repo starts from versions already proven to build, and an unpinned
install is a supply-chain decision nobody made. react-query, react-dom,
react-native-screens, expo-secure-store, track-player, expo-audio and
expo-file-system were all declared by the old app and imported by none of this
code, so they are not here.

NOTICE carries Tailscale's BSD-3 text, names the built artifacts that contain
their compiled code, and treats the trademark question separately — including
that src/ui/TailscaleMark.tsx reproduces their logo in the attribution strip.
2026-08-14 20:32:17 +01:00

34 lines
1.8 KiB
Ruby

Pod::Spec.new do |s|
s.name = 'OfficerNet'
s.version = '0.1.0'
s.summary = 'OffTail VPN engine — Tailscale core bridge'
s.description = 'Embeds the gomobile-built Tailscale core (libtailscale) as OfficerNet.xcframework and drives it behind an NEPacketTunnelProvider. Run scripts/build-libtailscale-ios.sh to populate libs/ before pod install. Talks directly to a self-hosted Headscale control server.'
s.author = 'André Padez'
s.homepage = 'https://pastilhas.dev'
s.license = { :type => 'BSD-3-Clause' }
s.platforms = { :ios => '15.1' }
s.source = { git: '' }
s.static_framework = true
s.dependency 'ExpoModulesCore'
# The gomobile-built Tailscale core. Produced once by scripts/build-libtailscale-ios.sh and vendored
# under libs/ (gitignored). Vendored ONLY when present — until the build script runs, the pod compiles
# as a stub (the Swift references no libtailscale symbols directly), so the app still builds + installs
# with an inert engine. Once the xcframework exists it links automatically on the next pod install.
# TODO(libtailscale): ship OfficerNet.xcframework here (arm64 device + arm64 sim slices).
if File.directory?(File.join(__dir__, 'libs', 'TailCore.xcframework'))
s.vendored_frameworks = 'libs/TailCore.xcframework'
end
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
'SWIFT_COMPILATION_MODE' => 'wholemodule'
}
# Only the RN-process module compiles into this pod (the main app). PacketTunnelProvider.swift compiles
# into the Network Extension target instead — the config plugin (plugin/withNetworkExtensionTarget.js)
# copies it into ios/OffTailTunnel/ and adds it to that target's sources, along with TailCore.xcframework.
s.source_files = 'OfficerNetModule.swift'
end