Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
Expand Down Expand Up @@ -35,3 +29,15 @@ key.properties
*.p12
*.mobileprovision
AuthKey_*.p8

# Build output, IDE state and stray working files. The release APK is built by
# CI (release.yml); nothing under app/release/ belongs in the repository.
/app/release/
*.apk
*.aab
!**/src/test/resources/**/*.apk
# The shared code style stays tracked; the rest of .idea is per-machine.
/.idea/*
!/.idea/codeStyles/
.idea_backup/
/*.srt
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/AICommit.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/AndroidProjectSystem.xml

This file was deleted.

26 changes: 0 additions & 26 deletions .idea/appInsightsSettings.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/copilot.data.migration.agent.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/copilot.data.migration.ask2agent.xml

This file was deleted.

18 changes: 0 additions & 18 deletions .idea/deploymentTargetSelector.xml

This file was deleted.

13 changes: 0 additions & 13 deletions .idea/deviceManager.xml

This file was deleted.

19 changes: 0 additions & 19 deletions .idea/gradle.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/graphql-settings.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/kotlinc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/markdown.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/migrations.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/misc.xml

This file was deleted.

17 changes: 0 additions & 17 deletions .idea/runConfigurations.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea_backup/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .idea_backup/copilot.data.migration.ask2agent.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea_backup/markdown.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea_backup/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea_backup/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea_backup/vcs.xml

This file was deleted.

57 changes: 46 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Sozo Tv
# Sozo TV
<img width="2542" height="1154" alt="image" src="https://github.com/user-attachments/assets/57f0e94b-fcde-4394-9f32-0014e5e60528" />
<br> </br>
<p align="center">
Expand All @@ -8,17 +7,54 @@
<a href="https://t.me/sozoapp"><img src="https://img.shields.io/badge/Download-Latest%20Release-brightgreen?style=for-the-badge&logo=download&logoColor=white"></a>
</p>

Sozo is crafted with a perfect blend of simplicity and state-of-the-art elegance. It is designed as an Anilist only client, offering users the ability to stream and download their favorite Anime & Manga.
Sozo TV is the big-screen companion to the Sozo phone app: browse the catalogue, pick a
source and watch on a television with a remote. This repository holds two apps that talk to
the same Sozo backend (`apisozo`):

The name Sozo (meaning "creation" or "imagination" in Japanese) represents innovation and artistry in the anime world. While we think this is the best open-source anime app for Android, we encourage you to try it out yourself and decide!
| App | Path | Stack |
| --- | --- | --- |
| Android TV | `app/` | Kotlin, Leanback launcher, Media3 ExoPlayer, min SDK 24. Also runs CloudStream (`.cs3`) and Aniyomi (`.apk`) extensions and an embedded torrent server. |
| Apple TV | `apple-tv/` | Native SwiftUI + AVKit, generated with XcodeGen. Uses only server-provided sources; see [`apple-tv/README.md`](apple-tv/README.md) for what it leaves out on purpose. |

## Note
Due to **DMCA restrictions**, we cannot host the APK file directly in this repository. Instead, you can download the latest release from our **official Telegram channel**:
<p align="center">
<a href="https://github.com/Sozo-app/sozo-tv/releases"><img src="https://img.shields.io/badge/GitHub-All%20Releases-333?style=for-the-badge&logo=github&logoColor=white"></a>
</p>
Both have household profiles, continue watching, search and localized UI.

## Download

Release APKs are not kept in this repository. Get the latest Android TV build from the
**official Telegram channel** ([t.me/sozoapp](https://t.me/sozoapp)).

## Building

**Android TV** needs JDK 17 and the Android SDK:

```sh
./gradlew :app:assembleDebug # debug APK in app/build/outputs/apk/debug/
./gradlew :app:testDebugUnitTest # unit tests
python3 tools/check_strings.py # translated strings vs. English
```

Stay updated with the newest versions, announcements, and fixes by following our channel. 🚀
Release signing reads `key.properties` and a keystore, which are never committed. The two
vendored AARs in `app/libs/` are described in [`app/libs/README.md`](app/libs/README.md).

**Apple TV** needs Xcode and `xcodegen`:

```sh
cd apple-tv && xcodegen generate && open SozoTV.xcodeproj
```

Full verification, including simulator UI tests, is `apple-tv/scripts/ci.sh`; details are in
[`apple-tv/README.md`](apple-tv/README.md).

## CI and releases

| Workflow | Runs on | Does |
| --- | --- | --- |
| `ci.yml` | PRs, pushes to `master` | String check, unit tests, debug build of the Android TV app |
| `release.yml` | Manual, or a `v*` tag | Bumps the version, builds and verifies the signed APK, sends it to Telegram |
| `tvos-ci.yml` | PRs, pushes to `master`, manual | Apple TV build and simulator tests |
| `tvos-release.yml` | Manual | Signs an Apple TV archive and optionally uploads it to TestFlight |

The required secrets are listed at the top of each workflow and in `apple-tv/README.md`.

### Official Discord Server

Expand Down Expand Up @@ -48,4 +84,3 @@ Stay updated with the newest versions, announcements, and fixes by following our
## License

[MIT](https://choosealicense.com/licenses/mit/)

14 changes: 14 additions & 0 deletions app/libs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Vendored AARs

Both are real dependencies (`implementation(files(...))` in `app/build.gradle.kts`) and are
byte-identical to the phone app's `android/app/libs`. Each is the published library with its
native code rebuilt 16 KB page-aligned, because Android 15+ devices with 16 KB pages refuse to
load the upstream 4 KB-aligned `.so` files. `configurations.all` excludes the published
artifacts so they cannot come back transitively.

| File | Origin | SHA-256 |
| --- | --- | --- |
| `torrentserver-7861970-16k.aar` | [recloudstream/torrentserver](https://github.com/recloudstream/torrentserver) at `7861970` (TorrServer via torrentserver-aniyomi). Published `classes.jar` unchanged; `libgojni.so` for all four ABIs rebuilt with Go 1.23.5, gomobile `cd096645`, NDK r28. Used by `engine/torrent/TorrentEngine.kt`. | `cfaa598c97dae34d45849951759682b1f015b58c128e9c5db9871509297e5e40` |
| `quickjs-android-0.9.2-16k.aar` | `app.cash.quickjs:quickjs-android:0.9.2` (cashapp/zipline `a738129cc4`). Published `classes.jar` unchanged; `libquickjs.so` rebuilt with NDK r28 and `-Wl,-z,max-page-size=16384`. | `fdade24d05289ef32058324627b95a89c34504f76b6f24bf5da14da014fb1155` |

Check with `shasum -a 256 app/libs/*.aar`. Replace both here and in the phone app together.
Binary file removed app/release/app-release.apk
Binary file not shown.
Loading
Loading