revanced-patches-template

ReVancedGPL-3.0更新放缓

ReVanced 补丁模板仓库,提供 Kotlin 项目骨架,方便开发者快速创建自定义 Android 应用补丁,用于修改和扩展应用功能。

👋🧩Template repository for ReVanced Patches

v1.0.4发布于 2024-11-05 19:17 UTC4,614star496fork同步于 2026-11-10 23:38 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/ReVanced/revanced-patches-template
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

ReVanced 补丁仓库模板,帮你快速搭一个自己的补丁项目

ReVanced 补丁模板仓库,提供 Kotlin 项目骨架,方便开发者快速创建自定义 Android 应用补丁,用于修改和扩展应用功能。

核心能力

  • 基于模板一键创建新的 ReVanced Patches 仓库
  • 支持在同一仓库内维护多个补丁并与其他仓库补丁共用
  • 内置 release.yml 工作流自动发布并生成 changelog
  • 提供 buildAndroid 任务构建可在 Android 上使用的补丁
  • 采用语义化版本与语义化提交规范管理补丁

容易踩的坑

需先修改 patches/build.gradle.kts 中的项目 group 与 About 信息;发布前需配置 GPG_PRIVATE_KEY、GPG_PASSPHRASE、GPG_FINGERPRINT 三个仓库 secret;构建流程需参照 ReVanced 官方文档,README 未给出具体命令

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v1.0.4
  1. v1.0.5-dev.1pre-release2026-02-21 · 2026-02-21 23:15 UTC
    查看更新说明

    1.0.5-dev.1 (2026-02-21)

  2. v1.0.4最新正式版2024-11-05 · 2024-11-05 19:17 UTC

    1.0.4 (2024-11-05)

  3. v1.0.4-dev.2pre-release2024-11-05 · 2024-11-05 19:01 UTC
    查看更新说明

    1.0.4-dev.2 (2024-11-05)

  4. v1.0.4-dev.1pre-release2024-09-30 · 2024-09-30 20:51 UTC
    查看更新说明

    1.0.4-dev.1 (2024-09-30)

  5. v1.0.32024-09-08 · 2024-09-08 17:17 UTC
    查看更新说明

    1.0.3 (2024-09-08)

    Bug Fixes

    • Upload asset signature by fixing asset path glob pattern (1378304)

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    👋🧩 ReVanced Patches template

    GitHub Workflow Status (with event) GPLv3 License

    Template repository for ReVanced Patches.

    ❓ About

    This is a template to create a new ReVanced Patches repository.
    The repository can have multiple patches, and patches from other repositories can be used together.

    For an example repository, see ReVanced Patches.

    🚀 Get started

    To start using this template, follow these steps:

    1. Create a new repository using this template
    2. Set up the build.gradle.kts file (Specifically, the group of the project, and the About)
    3. Update dependencies in the libs.versions.toml file
    4. Create a pass-phrased GPG master key and subkey
      1. Add the private key as a secret named GPG_PRIVATE_KEY to your repository
      2. Add the passphrase as a secret named GPG_PASSPHRASE to your repository
      3. Add the fingerprint of the GPG subkey as a secret named GPG_FINGERPRINT to your repository
    5. Set up the README.md file1 (e.g, title, description, license, summary of the patches that are included in the repository), the issue templates2 and the contribution guidelines3

    🎉 You are now ready to start creating patches!

    🔘 Optional steps

    You can also add the following things to the repository:

    • API documentation, if you want to publish your patches as a library

    🧑‍💻 Usage

    To develop and release ReVanced Patches using this template, some things need to be considered:

    • Development starts in feature branches. Once a feature branch is ready, it is squashed and merged into the dev branch
    • The dev branch is merged into the main branch once it is ready for release
    • Semantic versioning is used to version ReVanced Patches. ReVanced Patches have a public API for other patches to use
    • Semantic commit messages are used for commits
    • Commits on the dev branch and main branch are automatically released via the release.yml workflow, which is also responsible for generating the changelog and updating the version of ReVanced Patches. It is triggered by pushing to the dev or main branch. The workflow uses the publish task to publish the release of ReVanced Patches
    • The buildAndroid task is used to build ReVanced Patches so that it can be used on Android. The publish task depends on the buildAndroid task, so it will be run automatically when publishing a release.

    📚 Everything else

    📙 Contributing

    Thank you for considering contributing to ReVanced Patches template.
    You can find the contribution guidelines here.

    🛠️ Building

    To build ReVanced Patches template, you can follow the ReVanced documentation.

    📜 Licence

    ReVanced Patches template is licensed under the GPLv3 licence. Please see the license file for more information. tl;dr you may copy, distribute and modify ReVanced Patches template as long as you track changes/dates in source files. Any modifications to ReVanced Patches template must also be made available under the GPL, along with build & install instructions.

    Footnotes

    1. Example README.md file ↩

    2. Example issue templates ↩

    3. Example contribution guidelines ↩