D-Modem-RE (D-Modem) updated to its main with the Apple USB Modem's
driver (usb_apple.cpp), built into the engine. UsbModems knows it
(05AC:1401 and 05AC:8220, 9600 Hz), the app is offered when one is
plugged in, and native-test's usb_line_test.py runs calls on its fake
(apple_line).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSpDnDnJUjH5xnnnwz
The submodule from 7f53883 to 04a7341 (116 commits: point-of-sale V.22
fast connect and V.29 FastPOS, T.434 and T.44 fax, and the rest since).
The host's engine tests pass on it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSpDnDnJUjH5xnnnwz
D-Modem-RE moved dmodemd/ to frontend/dmodemd/ (D-Modem/D-Modem#49).
DMODEM_RE_DMODEMD is that directory, or dmodemd/ in a tree from before
the move, so the submodule can be bumped whenever. Its build directory
is still d-modem-re/dmodemd (the iOS package's library path).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSnYKZ4hXc7DHCsuMA
GitHub warns that Node 20 actions are deprecated. checkout v6, cache
(and cache/restore, cache/save) v5, setup-java v5, setup-node v6,
upload-artifact v7, gradle setup-gradle v5 (v6 defaults to a proprietary
cache provider).
setup-swift has no Node 24 release yet: the DModemKit test uses the
runner image's Swift instead (6.4 on ubuntu-24.04; the package needs
tools 5.9).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S
ImageOS and ImageVersion are the runner's environment variables, not the
workflow's env context, so ${{ env.ImageVersion }} was empty and the
cache key never changed with the image. Build the key in the shell.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S
Package installs sometimes stall on GitHub's runners. A local action
(.github/actions/apt, and .github/actions/brew where macOS builds) caches
the downloaded packages, and apt's package lists with them, keyed on the
runner image and the package list. A cache hit installs offline; a miss
installs as before, with retries and timeouts, and saves the cache.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S
The debug and release signing configs take a PKCS12 keystore from
ANDROID_KEYSTORE_FILE and its password, alias and key password (the
store's if empty) from the environment; without them debug builds keep
the SDK's debug key and release builds stay unsigned. CI decodes
ANDROID_KEYSTORE_BASE64 into that file: the build job with the
repository's (debug) secrets, a new release job (assembleRelease,
bundleRelease) with the protected release environment's on main and v*
tags, the debug key on a pull request. Fork pull requests, with no
secrets, build as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRuUkndpo3FJrWFe84
The application id, namespace and Kotlin package of the Android app
are now org.dmodem.app.android (was com.neodesktop.dmodem), with the
JNI symbols (pty.c, jni.cpp's class name), ProGuard keeps, the USB
permission action, README and the generator scripts to match. The
shared Kotlin Multiplatform code moves to org.dmodem.app alongside it,
so the app now imports what it used to see as its own package.
The iOS bundle ids are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRipoddxponCaexwE4
Moves the core from 502a827 to D-Modem main's latest: V.110/V.120 on
the clear channel, V.18 text telephones, class 2 and 2.0 fax, the
mISDN line and dmodem-capid (not built for Android: gradle builds only
dmodem_jni and dmodem_pty), the AT reference rework.
.gitmodules now follows main, not the old feature branch.
native-test builds and passes 13/13; tools/doc_check.py is clean.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRU1DLnbp5FrrPXuTh6
D-Modem-RE's A5 AT command manual (docs/at_commands.pdf, merged in
D-Modem/D-Modem #26) bundled in the assets and shown in the app: its
pages rendered with PdfRenderer, one under another, with a zoom, or
opened in the phone's PDF app (through the FileProvider, from the cache)
for its search and its contents' links.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVNHPWcCitx9W4sAfc
D-Modem-RE now names V.cvm VCVM (like K56 and VWB); the mobile-call
line sends +MS=VCVM. A saved V_CVM setting from an older version reads
as VCVM. The submodule moves to the D-Modem commit with the rename.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUhzHK9FsNkkr7T6X3
engine_test.cpp's five calls are now four GoogleTest tests, each with a
dmodemd of its own, and c_api_test.c is c_api_test.cpp, seven tests
(its header still compiled as C, c_api_header.c). ctest registers each
test on its own (gtest_discover_tests). GoogleTest is the system's
(libgtest-dev, added to the native job) or else fetched, v1.14.0 as
D-Modem-RE has it. The USB line tests stay as they were.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
- Pushes run CI only on main; a branch's commits run as its pull
request (each PR commit ran everything twice). workflow_dispatch to
run a branch by hand.
- A newer commit on a pull request cancels the run before it.
- Every job has a time limit: a hung test had a build job running for
over an hour, with GitHub's default 6 hours to go.
- The emulator job builds x86_64 only (-Pdmodem.abis, new: the ABIs of
the native code and proot, all four by default); the build job still
builds all four.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
A phone turning down a wrong PIN writes DENIED and closes. The test's
pipe returned -1 as soon as it saw the close, before reading what was
already queued, so the caller now and then missed DENIED, took the call
as unanswered (503) and aPinToCall waited out its 15 s for a 403. A
socket delivers the data before the end; the fake now does too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
The Apple job now gets past the shared Kotlin tests and stops where #4
fixed it: CMAKE_MACOSX_BUNDLE=OFF for dmodemd's install rule, and
libresolv, SystemConfiguration and CoreFoundation for libre. The files
are #4's, unchanged, so the two merge cleanly in either order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
The test looks for a "sip: " line through the log hook. Since dmodemd's
SIP moved to libre, nothing at level 3 is said without a call or a
registrar's answer, and the test stops the modem within a few ms, so the
emulator job failed on main. At level 4 the SIP thread names its
addresses ("SIP on ...") before sip::start returns.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
poll(ms) waited with withTimeoutOrNull { ch.receive() }. When a chunk
arrived just as the timeout fired, the cancelled receive had already
taken it from the channel, and kotlinx.coroutines drops an element
delivered to a cancelled receive. Readers that poll in short waits
(the fake fax line's modems, TransferIo under every job, the PPP
loopback's pumps) lost bytes now and then: a lost AT command or frame
became a 4-10 s stall, and on slower CI runners a failed test
(EcmTest, JobsTest.dialUpInternet on iOS, PppLoopbackTest).
The wait is now a select of the receive and a timeout, which can't both
win, so the chunk stays in the channel when the timeout does. The new
ByteQueueTest loses a chunk within the first hundred on the old code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
On iOS CMake makes every executable an app bundle; D-Modem-RE's
dmodemd install(TARGETS ... RUNTIME) then fails at configure ("no
BUNDLE DESTINATION for MACOSX_BUNDLE executable"). The engine builds
only dmodem_engine, so CMAKE_MACOSX_BUNDLE=OFF. (The Apple job had
not got this far lately: its Kotlin tests failed first.)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUcd5i5X7Q7F2QBNEF