Repository navigation
Conversation
Move session, publication, progress and acquire logic into lib/library so the same handlers can run in Next route handlers and inside a mobile WebView where native code owns the session token. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Build the reader as a static export from a staged copy without app/api and prerender Thorium locales and fonts so the Capacitor shells can bundle them. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Scaffold Capacitor 8 projects (com.tlslibrary.reader) that load the static export, and route /api/library calls through shared handlers backed by a native TlsNative plugin. Pad layout by device safe areas. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Native layers hold the session token (Keychain / AndroidKeyStore), perform upstream requests with bearer auth limited to trusted origins, and proxy /api/library/pub/* subresources for the reader WebView. Debug-only cleartext allowances support a local mock backend. Also removes the list indent on narrow catalog screens. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The Mobile CI and release workflow builds an unsigned iOS simulator app and an Android debug APK for PRs and main. On v* tags, in the protected release environment, it validates store credentials, archives and uploads iOS to TestFlight (scripts/ios-testflight.sh) and uploads a signed AAB to the Google Play internal track. Versions derive from the tag via scripts/mobile-version.cjs. The secrets uploader accepts optional, all-or-none iOS and Android groups. pnpm icons now also renders iOS/Android icons and splash screens from assets/icon.svg. docs/MOBILE.md covers local development, store setup and credentials. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLS Reader currently ships only as an Electron desktop app. This adds native iOS (priority) and Android apps that reuse the same reader, plus CI builds and tag-driven TestFlight / Google Play releases.
Approach
app/api/library/*is extracted into transport-neutral handlers inlib/library/*. Next route handlers become thin adapters, so web, desktop and mobile share one implementation.pnpm mobile:build(scripts/build-mobile.cjs) stages the sources withoutapp/apiand produces a static Next export inout/.ios/,android/, app idcom.tlslibrary.reader). Inside the WebView, a fetch interceptor answers/api/library/*with the shared handlers.TlsNativeplugin (Swift + Java):/api/library/pub/*publication resources for the Thorium reader.localhoston Android..github/workflows/mobile.yml, same triggers and path filters as desktop CI):main: an unsigned iOS simulator build onmacos-26and an AndroidassembleDebug.v*tags run in the protectedreleaseenvironment. The workflow validates the tag, the HTTPS backend URLs and the store credentials, then:scripts/ios-testflight.sh(temporary keychain, App Store profile checks,xcodebuild -exportArchivewith the existing App Store Connect API key).scripts/mobile-version.cjs):X.Y.Z, with prerelease and build metadata stripped.versionName: the full tag version.github.run_number.setup-release-secrets.shaccepts optional, all-or-none iOS and Android secret groups.pnpm iconsnow also generates iOS/Android icons and splash screens fromassets/icon.svg.docs/MOBILE.md; README and RELEASING are updated.Verification
Not yet verified / needs setup
releaseenvironment secrets (seedocs/MOBILE.md).Review notes
NSAllowsLocalNetworking. Other hosts still require HTTPS, and release tags require HTTPS backends.r0adkll/upload-google-playpinned by SHA. iOS uploads use plainxcodebuildrather than fastlane, which avoids Ruby dependencies in CI.ANDROID_PLAY_RELEASE_STATUS=draftis needed until the Play app has been published once.