Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
2b7279c
feat(app): expand international discovery, network settings, and list…
cwuom Nov 23, 2026
9364b1d
fix(platform): bind catalog preferences and verify registered migrations
cwuom Nov 23, 2026
cb0673c
fix(stats): localize listening dialogs and show hourly rhythm for sin…
cwuom Nov 23, 2026
26690ef
fix(stats): show listening metrics that match the selected dates
cwuom Nov 23, 2026
d9c6280
fix(startup): serialize settings snapshots and schedule renewal on ap…
cwuom Nov 24, 2026
060401c
fix(youtube): preserve complete playlists when filtering library content
cwuom Nov 24, 2026
28f69b5
chore(branch): merge the latest master into international discovery
cwuom Nov 24, 2026
1e95063
feat(home): adapt recommendation switches and startup to internationa…
cwuom Nov 24, 2026
15d9df0
ci(android): cache Robolectric runtimes and use the Central mirror fo…
cwuom Nov 24, 2026
a6dd8dc
ci(android): resolve Gradle Central dependencies through the CI mirror
cwuom Nov 24, 2026
694119d
fix(youtube): honor the configured network route during session renewal
cwuom Nov 24, 2026
a25b68e
refactor(auth): inject the WebView route from the app composition root
cwuom Nov 24, 2026
baa9d64
refactor(settings): keep home shortcuts and startup routes consistent…
cwuom Nov 24, 2026
db1001d
fix(library): preserve listening dates, hourly intervals, and downloa…
cwuom Nov 24, 2026
d14b30a
test(stats): seed historical rows using explicit database columns
cwuom Nov 24, 2026
535748b
refactor(home): share recommendation controls across row and switch i…
cwuom Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .github/scripts/jvm_test_diagnostics.init.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
allprojects {
tasks.withType(Test).configureEach {
def robolectricRepository = providers.environmentVariable("ROBOLECTRIC_DEPENDENCY_REPO_URL").orNull
if (robolectricRepository) {
systemProperty "robolectric.dependency.repo.url", robolectricRepository
}
testLogging {
events "started", "passed", "skipped", "failed"
}
Expand Down
20 changes: 20 additions & 0 deletions .github/scripts/maven-central-mirror.init.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import org.gradle.api.artifacts.repositories.MavenArtifactRepository

def mirrorMavenCentral = { repositories ->
repositories.withType(MavenArtifactRepository).configureEach { repository ->
def url = repository.url?.toString()?.replaceAll('/+$', '')
if (url in ['https://repo.maven.apache.org/maven2', 'https://repo1.maven.org/maven2']) {
repository.url = URI.create('https://maven-central.storage-download.googleapis.com/maven2/')
}
}
}

gradle.beforeSettings { settings ->
mirrorMavenCentral(settings.pluginManagement.repositories)
mirrorMavenCentral(settings.dependencyResolutionManagement.repositories)
}

gradle.beforeProject { project ->
mirrorMavenCentral(project.buildscript.repositories)
mirrorMavenCentral(project.repositories)
}
27 changes: 21 additions & 6 deletions .github/workflows/android_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,24 @@ jobs:
with:
cache-read-only: ${{ github.event_name == 'pull_request' || github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}

- name: Grant execute permission
run: chmod +x gradlew
- name: Cache Robolectric Android SDKs
uses: actions/cache@v5
with:
path: ~/.m2/repository/org/robolectric/android-all-instrumented
key: robolectric-android-sdks-v1-${{ hashFiles('gradle/libs.versions.toml', 'build-logic/convention/src/main/kotlin/Version.kt', '**/src/test/resources/robolectric.properties') }}
restore-keys: robolectric-android-sdks-v1-

- name: Prepare CI Gradle wrapper and repositories
run: |
chmod +x gradlew
install -Dm644 .github/scripts/maven-central-mirror.init.gradle "${GRADLE_USER_HOME:-$HOME/.gradle}/init.d/maven-central-mirror.init.gradle"

- name: Install Android NDK
uses: ./.github/actions/android-ndk

- name: Run unit tests, CRAP gate and lint
env:
ROBOLECTRIC_DEPENDENCY_REPO_URL: https://maven-central.storage-download.googleapis.com/maven2/
run: >-
./gradlew :playback:logic:verifyCrap :playback:runtime:verifyCrap
:lyrics:verifyCrap :platform:verifyCrap :platform:verifyDomainDependencies :sync:verifyCrap :sync:verifyDomainDependencies
Expand Down Expand Up @@ -235,8 +246,10 @@ jobs:
with:
cache-read-only: ${{ github.event_name == 'pull_request' || github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}

- name: Grant execute permission
run: chmod +x gradlew
- name: Prepare CI Gradle wrapper and repositories
run: |
chmod +x gradlew
install -Dm644 .github/scripts/maven-central-mirror.init.gradle "${GRADLE_USER_HOME:-$HOME/.gradle}/init.d/maven-central-mirror.init.gradle"

- name: Install Android NDK
uses: ./.github/actions/android-ndk
Expand Down Expand Up @@ -473,8 +486,10 @@ jobs:
env:
KEYSTORE_B64: ${{ secrets.KEYSTORE_B64 }}

- name: Grant execute permission
run: chmod +x gradlew
- name: Prepare CI Gradle wrapper and repositories
run: |
chmod +x gradlew
install -Dm644 .github/scripts/maven-central-mirror.init.gradle "${GRADLE_USER_HOME:-$HOME/.gradle}/init.d/maven-central-mirror.init.gradle"

- name: Install Android NDK
uses: ./.github/actions/android-ndk
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/android_native_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- master
paths:
- '.github/workflows/android_native_ci.yml'
- '.github/scripts/maven-central-mirror.init.gradle'
- 'modules/native/**'
- 'app/src/main/jniLibs/**'
- 'app/build.gradle*'
Expand All @@ -21,6 +22,7 @@ on:
pull_request:
paths:
- '.github/workflows/android_native_ci.yml'
- '.github/scripts/maven-central-mirror.init.gradle'
- 'modules/native/**'
- 'app/src/main/jniLibs/**'
- 'app/build.gradle*'
Expand Down Expand Up @@ -132,6 +134,7 @@ jobs:
- name: Build Android Native Debug libraries
run: |
./gradlew :native:externalNativeBuildDebug \
--init-script .github/scripts/maven-central-mirror.init.gradle \
--no-daemon \
--warning-mode all \
--stacktrace
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
>
> 项目不提供媒体内容、密钥、规避付费 / DRM / 地区限制的方案,也不提供公共云端曲库、媒体代理或再分发服务。
>
> 在线功能依赖你在第三方平台上的账号授权,会员或受限内容须遵循原平台规则。文档中的 YouTube Music 能力仅涉及账号会话、播放兼容与错误恢复。
> YouTube Music 支持游客浏览、搜索和播放所选地区的公开内容。个人媒体库需要账号授权,会员或受限内容须遵循原平台规则。
>
> 本项目及维护者不接受任何形式的赞助、捐赠或商业资助。

Expand Down Expand Up @@ -83,7 +83,7 @@

## 项目简介 / About

NeriPlayer 是基于 **Jetpack Compose + Media3** 的原生 Android 音频播放器,把 **网易云音乐**、**Bilibili**、**YouTube Music**、**自建音乐服务器** 与 **本地音乐** 整合进统一的播放与管理体验。本地播放无需任何账号,在线功能使用你在对应平台上的账号授权。
NeriPlayer 是基于 **Jetpack Compose + Media3** 的原生 Android 音频播放器,把 **网易云音乐**、**Bilibili**、**YouTube Music**、**自建音乐服务器** 与 **本地音乐** 整合进统一的播放与管理体验。本地播放和 YouTube Music 公开内容支持免登录使用,访问个人媒体库需要登录对应平台。

- **自建音乐服务器(预览版)**:连接 Navidrome / OpenSubsonic,在“资源库 → 音乐服务器”浏览与搜索专辑、单曲、歌手,复用现有播放器、封面与歌词,支持本地收藏、歌单与原文件离线下载(见[连接音乐服务器](#连接音乐服务器))。
- **本地优先**:缓存、下载文件、歌单、历史记录、设置与授权信息保存在设备本地。
Expand Down Expand Up @@ -156,8 +156,8 @@ NeriPlayer 是基于 **Jetpack Compose + Media3** 的原生 Android 音频播放
- 需要登录并联网。
- 切换到 Bilibili 或本地兜底音源后,入口隐藏。
- **分类浏览**:本地、收藏、网易云音乐、YouTube Music、Bilibili 入口;YouTube Music 可完全禁用,Bilibili 音乐可单独关闭首页分区。
- **首页推荐**:最近常用歌单、榜单、新歌、日推、私人 FM、精品歌单与雷达歌单,刷新会更新全部分区。
- **搜索**:按平台独立搜索,网易云音乐与 Bilibili 支持触底分页。
- **首页推荐**:国内首页展示榜单、日推与雷达歌单。国际首页展示 YouTube Music 推荐。在「首页与启动」展开「为你推荐」,可分别显示或隐藏歌曲、歌单、专辑和艺人。两种首页的布局独立保存。
- **搜索**:按平台独立搜索,网易云音乐、Bilibili 和 YouTube Music 支持触底分页。
- **链接识别**:粘贴含标题或短链接的分享文案,即可识别网易云音乐、Bilibili 与 YouTube Music 内容。
- **导入与批量词图**:支持分享导入与文件夹扫描,可为本地歌曲一键批量匹配并嵌入歌词与封面。
- **本地歌手与歌单**:按展示艺术家聚合,支持排序、整体插入与删除撤销。
Expand All @@ -175,7 +175,7 @@ NeriPlayer 是基于 **Jetpack Compose + Media3** 的原生 Android 音频播放
### 🔄 同步、统计与备份

- **GitHub / WebDAV 同步**:歌单、收藏、最近播放、删除记录与播放统计保存在你自己的远端。
- **播放统计**:按歌曲记录播放次数与时长,支持日 / 周 / 月 / 年视图。
- **播放统计**:查看曲目、艺人和专辑排行,以及活跃日、星期分布和本机小时分布。可回看历史日、周、月、年,或自行选择日期范围。小时分布从本版本的实际收听开始记录。
- **流量统计**:区分 Wi-Fi、移动网络与漫游。
- **备份与恢复**:歌单 JSON 导入导出。
- **配置导出**:默认不含登录态,可选择加密并包含授权信息。
Expand Down Expand Up @@ -280,7 +280,9 @@ NeriPlayer 是基于 **Jetpack Compose + Media3** 的原生 Android 音频播放

### YouTube Music

- 登录、首页 / 媒体库歌单浏览、歌单详情、搜索与播放兼容。
- 在「设置 → 语言与内容」开启国际化模式,首页会展示 YouTube Music 推荐。探索支持搜索歌曲、视频、艺人、专辑、精选歌单和社区歌单。
- 界面语言可随时调整。开启国际化后,可在同一页选择内容语言和地区,并在「内容与发现」下设置歌单推荐依据、隐藏露骨内容或音乐视频。国际首页右上角的地球图标可直接打开此页。系统地区为中国大陆时,默认内容语言为简体中文,内容地区为日本。
- 已登录的账号可在平台允许时自动续期,在账号管理中查看状态。网络设置支持 HTTP、SOCKS5 代理和 DNS over HTTPS(DoH)。
- 内容访问受平台规则与账号权限约束。

### 自建音乐服务器(Navidrome / OpenSubsonic)
Expand Down
14 changes: 8 additions & 6 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ user-owned data.
>
> The project provides no media content, keys, or paywall / DRM / region-bypass mechanisms, and no public cloud library, media proxy, or redistribution service.
>
> Online features depend on your authorization on third-party platforms, and VIP or restricted content follows the original platform's rules. YouTube Music capabilities in this document cover account sessions, playback compatibility, and error recovery only.
> You can browse, search, and play public YouTube Music content available in the selected region as a guest. Personal libraries require account authorization. Member-only and restricted content remains subject to the provider's rules.
>
> This project and its maintainer do not accept any sponsorship, donation, or commercial funding.

Expand Down Expand Up @@ -85,7 +85,7 @@ user-owned data.

## About

NeriPlayer is a native Android audio player built with **Jetpack Compose + Media3**. It brings **NetEase Cloud Music**, **Bilibili**, **YouTube Music**, **self-hosted music servers**, and **local audio** into one playback and library experience. Local playback needs no account; online features use your authorization on the corresponding platform.
NeriPlayer is a native Android audio player built with **Jetpack Compose + Media3**. It brings **NetEase Cloud Music**, **Bilibili**, **YouTube Music**, **self-hosted music servers**, and **local audio** into one playback and library experience. Local playback and public YouTube Music content are available to guests. Personal libraries require signing in to the corresponding platform.

- **Self-hosted music (Preview)**: connect Navidrome / OpenSubsonic under Library → Music servers to browse and search albums, songs, and artists, with the existing player, artwork, lyrics, local favorites, playlists, and original-file offline downloads (see [Connecting a music server](#connecting-a-music-server)).
- **Local-first**: cache, downloads, playlists, history, settings, and auth data are stored on the device.
Expand Down Expand Up @@ -158,8 +158,8 @@ See the [API contract](docs/music-server-api.md) for protocol and client behavio
- Requires sign-in and a network connection.
- The entry is hidden when playback falls back to Bilibili or local audio.
- **Category browsing**: local, favorites, NetEase Cloud Music, YouTube Music, and Bilibili entries. YouTube Music can be disabled entirely, and Bilibili music can be hidden from the home page alone.
- **Home discovery**: recently used playlists, charts, new songs, daily picks, Private FM, curated playlists, and radar playlists; a refresh updates every section.
- **Search**: per-platform search, with paging on NetEase Cloud Music and Bilibili.
- **Home discovery**: the domestic home shows charts, daily picks, and radar playlists. To choose which types of YouTube Music recommendations appear on the international home, open **Home & startup → Your recommendations** and toggle tracks, playlists, albums, or artists. Each home keeps its own layout.
- **Search**: per-platform search, with paging on NetEase Cloud Music, Bilibili, and YouTube Music.
- **Link recognition**: paste a share text with a title or short link to resolve NetEase Cloud Music, Bilibili, and YouTube Music content.
- **Import and batch artwork**: share import and folder scanning, plus one-tap batch matching and embedding of lyrics and artwork for local songs.
- **Local artists and playlists**: grouped by display artist, with sorting, block insertion, and undo for deletions.
Expand All @@ -177,7 +177,7 @@ See the [API contract](docs/music-server-api.md) for protocol and client behavio
### 🔄 Sync, stats, and backup

- **GitHub / WebDAV sync**: playlists, favorites, recent plays, deletion records, and playback stats, stored on remotes you own.
- **Playback stats**: play counts and listening time per track, with day / week / month / year views.
- **Playback stats**: explore track, artist, and album rankings, active days, and listening by weekday and hour. Browse previous days, weeks, months, and years or choose a custom date range. This version starts recording hourly listening on each device.
- **Traffic stats**: split into Wi-Fi, mobile, and roaming.
- **Backup and restore**: playlist JSON import and export.
- **Configuration export**: excludes login state by default; optionally encrypted with auth included.
Expand Down Expand Up @@ -282,7 +282,9 @@ For release build and signing details, see [CONTRIBUTING_EN.md](./CONTRIBUTING_E

### YouTube Music

- Login, home and library playlist browsing, playlist details, search, and playback compatibility.
- Enable international mode in Settings → Language and content to show YouTube Music recommendations on Home. Explore supports songs, videos, artists, albums, featured playlists, and community playlists.
- You can change the app language at any time. With international mode on, select your content language and region on the same page. Under Content & discovery, choose how playlists are recommended and whether to hide explicit content or music videos. The globe icon on the international home screen opens this page. Devices with their system region set to mainland China default to Simplified Chinese for the content language and Japan for the content region.
- Eligible signed-in sessions renew automatically. Account settings show the renewal status. Network settings support HTTP and SOCKS5 proxies and DNS over HTTPS (DoH).
- Content access is subject to platform rules and account permissions.

### Self-Hosted Music Server (Navidrome / OpenSubsonic)
Expand Down
Loading
Loading