Skip to content

Commit 705b448

Browse files
committed
feat: Initialize project
0 parents  commit 705b448

33 files changed

+10092
-0
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[*.{kt,kts}]
2+
ktlint_code_style = intellij_idea
3+
ktlint_standard_no-wildcard-imports = disabled

.gitattributes

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# Linux start script should use lf
5+
/gradlew text eol=lf
6+
7+
# These are Windows script files and should use crlf
8+
*.bat text eol=crlf
9+

.github/ISSUE_TEMPLATE/bug_report.yml

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
name: 🐞 Bug report
2+
description: Report a bug or an issue.
3+
title: 'bug: '
4+
labels: ['Bug report']
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
<p align="center">
10+
<picture>
11+
<source
12+
width="256px"
13+
media="(prefers-color-scheme: dark)"
14+
srcset="https://raw.githubusercontent.com/revanced/revanced-patches-gradle-plugin/main/assets/revanced-headline/revanced-headline-vertical-dark.svg"
15+
>
16+
<img
17+
width="256px"
18+
src="https://raw.githubusercontent.com/revanced/revanced-patches-gradle-plugin/main/assets/revanced-headline/revanced-headline-vertical-light.svg"
19+
>
20+
</picture>
21+
<br>
22+
<a href="https://revanced.app/">
23+
<picture>
24+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/revanced/revanced-patches-gradle-plugin/main/assets/revanced-logo/revanced-logo.svg" />
25+
<img height="24px" src="https://raw.githubusercontent.com/revanced/revanced-patches-gradle-plugin/main/assets/revanced-logo/revanced-logo.svg" />
26+
</picture>
27+
</a>&nbsp;&nbsp;&nbsp;
28+
<a href="https://github.com/ReVanced">
29+
<picture>
30+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://i.ibb.co/dMMmCrW/Git-Hub-Mark.png" />
31+
<img height="24px" src="https://i.ibb.co/9wV3HGF/Git-Hub-Mark-Light.png" />
32+
</picture>
33+
</a>&nbsp;&nbsp;&nbsp;
34+
<a href="http://revanced.app/discord">
35+
<picture>
36+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032563-d4e084b7-244e-4358-af50-26bde6dd4996.png" />
37+
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032563-d4e084b7-244e-4358-af50-26bde6dd4996.png" />
38+
</picture>
39+
</a>&nbsp;&nbsp;&nbsp;
40+
<a href="https://reddit.com/r/revancedapp">
41+
<picture>
42+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032351-9d9d5619-8ef7-470a-9eec-2744ece54553.png" />
43+
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032351-9d9d5619-8ef7-470a-9eec-2744ece54553.png" />
44+
</picture>
45+
</a>&nbsp;&nbsp;&nbsp;
46+
<a href="https://t.me/app_revanced">
47+
<picture>
48+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032213-faf25ab8-0bc3-4a94-a730-b524c96df124.png" />
49+
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032213-faf25ab8-0bc3-4a94-a730-b524c96df124.png" />
50+
</picture>
51+
</a>&nbsp;&nbsp;&nbsp;
52+
<a href="https://x.com/revancedapp">
53+
<picture>
54+
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/93124920/270180600-7c1b38bf-889b-4d68-bd5e-b9d86f91421a.png">
55+
<img height="24px" src="https://user-images.githubusercontent.com/93124920/270108715-d80743fa-b330-4809-b1e6-79fbdc60d09c.png" />
56+
</picture>
57+
</a>&nbsp;&nbsp;&nbsp;
58+
<a href="https://www.youtube.com/@ReVanced">
59+
<picture>
60+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032714-c51c7492-0666-44ac-99c2-f003a695ab50.png" />
61+
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032714-c51c7492-0666-44ac-99c2-f003a695ab50.png" />
62+
</picture>
63+
</a>
64+
<br>
65+
<br>
66+
Continuing the legacy of Vanced
67+
</p>
68+
69+
# ReVanced Patches Gradle plugin bug report
70+
71+
Before creating a new bug report, please keep the following in mind:
72+
73+
- **Do not submit a duplicate bug report**: Search for existing bug reports [here](https://github.com/ReVanced/revanced-patches-gradle-plugin/issues?q=label%3A%22Bug+report%22).
74+
- **Review the contribution guidelines**: Make sure your bug report adheres to it. You can find the guidelines [here](https://github.com/ReVanced/revanced-patches-gradle-plugin/blob/main/CONTRIBUTING.md).
75+
- **Do not use the issue page for support**: If you need help or have questions, check out other platforms on [revanced.app](https://revanced.app).
76+
- type: textarea
77+
attributes:
78+
label: Bug description
79+
description: |
80+
- Describe your bug in detail
81+
- Add steps to reproduce the bug if possible (Step 1. ... Step 2. ...)
82+
- Add images and videos if possible
83+
validations:
84+
required: true
85+
- type: textarea
86+
attributes:
87+
label: Error logs
88+
description: Stack traces, error messages, and logs are helpful to understand the bug.
89+
render: shell
90+
- type: textarea
91+
attributes:
92+
label: Solution
93+
description: If applicable, add a possible solution to the bug.
94+
- type: textarea
95+
attributes:
96+
label: Additional context
97+
description: Add additional context here.
98+
- type: checkboxes
99+
id: acknowledgements
100+
attributes:
101+
label: Acknowledgements
102+
description: Your bug report will be closed if you don't follow the checklist below.
103+
options:
104+
- label: I have checked all open and closed bug reports and this is not a duplicate.
105+
required: true
106+
- label: I have chosen an appropriate title.
107+
required: true
108+
- label: All requested information has been provided properly.
109+
required: true

.github/ISSUE_TEMPLATE/config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 🗨 Discussions
4+
url: https://github.com/revanced/revanced-suggestions/discussions
5+
about: Have something unspecific to ReVanced Patches Gradle plugin in mind? Search for or start a new discussion!
+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: ⭐ Feature request
2+
description: Create a detailed request for a new feature.
3+
title: 'feat: '
4+
labels: ['Feature request']
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
<p align="center">
10+
<picture>
11+
<source
12+
width="256px"
13+
media="(prefers-color-scheme: dark)"
14+
srcset="https://raw.githubusercontent.com/revanced/revanced-patches-gradle-plugin/main/assets/revanced-headline/revanced-headline-vertical-dark.svg"
15+
>
16+
<img
17+
width="256px"
18+
src="https://raw.githubusercontent.com/revanced/revanced-patches-gradle-plugin/main/assets/revanced-headline/revanced-headline-vertical-light.svg"
19+
>
20+
</picture>
21+
<br>
22+
<a href="https://revanced.app/">
23+
<picture>
24+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/revanced/revanced-patches-gradle-plugin/main/assets/revanced-logo/revanced-logo.svg" />
25+
<img height="24px" src="https://raw.githubusercontent.com/revanced/revanced-patches-gradle-plugin/main/assets/revanced-logo/revanced-logo.svg" />
26+
</picture>
27+
</a>&nbsp;&nbsp;&nbsp;
28+
<a href="https://github.com/ReVanced">
29+
<picture>
30+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://i.ibb.co/dMMmCrW/Git-Hub-Mark.png" />
31+
<img height="24px" src="https://i.ibb.co/9wV3HGF/Git-Hub-Mark-Light.png" />
32+
</picture>
33+
</a>&nbsp;&nbsp;&nbsp;
34+
<a href="http://revanced.app/discord">
35+
<picture>
36+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032563-d4e084b7-244e-4358-af50-26bde6dd4996.png" />
37+
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032563-d4e084b7-244e-4358-af50-26bde6dd4996.png" />
38+
</picture>
39+
</a>&nbsp;&nbsp;&nbsp;
40+
<a href="https://reddit.com/r/revancedapp">
41+
<picture>
42+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032351-9d9d5619-8ef7-470a-9eec-2744ece54553.png" />
43+
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032351-9d9d5619-8ef7-470a-9eec-2744ece54553.png" />
44+
</picture>
45+
</a>&nbsp;&nbsp;&nbsp;
46+
<a href="https://t.me/app_revanced">
47+
<picture>
48+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032213-faf25ab8-0bc3-4a94-a730-b524c96df124.png" />
49+
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032213-faf25ab8-0bc3-4a94-a730-b524c96df124.png" />
50+
</picture>
51+
</a>&nbsp;&nbsp;&nbsp;
52+
<a href="https://x.com/revancedapp">
53+
<picture>
54+
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/93124920/270180600-7c1b38bf-889b-4d68-bd5e-b9d86f91421a.png">
55+
<img height="24px" src="https://user-images.githubusercontent.com/93124920/270108715-d80743fa-b330-4809-b1e6-79fbdc60d09c.png" />
56+
</picture>
57+
</a>&nbsp;&nbsp;&nbsp;
58+
<a href="https://www.youtube.com/@ReVanced">
59+
<picture>
60+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032714-c51c7492-0666-44ac-99c2-f003a695ab50.png" />
61+
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032714-c51c7492-0666-44ac-99c2-f003a695ab50.png" />
62+
</picture>
63+
</a>
64+
<br>
65+
<br>
66+
Continuing the legacy of Vanced
67+
</p>
68+
69+
# ReVanced Patches Gradle plugin feature request
70+
71+
Before creating a new feature request, please keep the following in mind:
72+
73+
- **Do not submit a duplicate feature request**: Search for existing feature requests [here](https://github.com/ReVanced/revanced-patches-gradle-plugin/issues?q=label%3A%22Feature+request%22).
74+
- **Review the contribution guidelines**: Make sure your feature request adheres to it. You can find the guidelines [here](https://github.com/ReVanced/revanced-patches-gradle-plugin/blob/main/CONTRIBUTING.md).
75+
- **Do not use the issue page for support**: If you need help or have questions, check out other platforms on [revanced.app](https://revanced.app).
76+
- type: textarea
77+
attributes:
78+
label: Feature description
79+
description: |
80+
- Describe your feature in detail
81+
- Add images, videos, links, examples, references, etc. if possible
82+
- type: textarea
83+
attributes:
84+
label: Motivation
85+
description: |
86+
A strong motivation is necessary for a feature request to be considered.
87+
88+
- Why should this feature be implemented?
89+
- What is the explicit use case?
90+
- What are the benefits?
91+
- What makes this feature important?
92+
validations:
93+
required: true
94+
- type: checkboxes
95+
id: acknowledgements
96+
attributes:
97+
label: Acknowledgements
98+
description: Your feature request will be closed if you don't follow the checklist below.
99+
options:
100+
- label: I have checked all open and closed feature requests and this is not a duplicate
101+
required: true
102+
- label: I have chosen an appropriate title.
103+
required: true
104+
- label: All requested information has been provided properly.
105+
required: true

.github/config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
firstPRMergeComment: >
2+
Thank you for contributing to ReVanced. Join us on [Discord](https://revanced.app/discord) to receive a role for your contribution.
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build pull request
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- dev
8+
9+
jobs:
10+
release:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Cache Gradle
20+
uses: burrunan/gradle-cache-action@v1
21+
22+
- name: Build
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
run: ./gradlew build --no-daemon
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Open a PR to main
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
workflow_dispatch:
8+
9+
env:
10+
MESSAGE: Merge branch `${{ github.head_ref || github.ref_name }}` to `main`
11+
12+
jobs:
13+
pull-request:
14+
name: Open pull request
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Open pull request
21+
uses: repo-sync/pull-request@v2
22+
with:
23+
destination_branch: 'main'
24+
pr_title: 'chore: ${{ env.MESSAGE }}'
25+
pr_body: 'This pull request will ${{ env.MESSAGE }}.'
26+
pr_draft: true

.github/workflows/release.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- dev
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
# Make sure the release step uses its own credentials:
19+
# https://github.com/cycjimmy/semantic-release-action#private-packages
20+
persist-credentials: false
21+
fetch-depth: 0
22+
23+
- name: Cache Gradle
24+
uses: burrunan/gradle-cache-action@v1
25+
26+
- name: Build
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
run: ./gradlew build
30+
31+
- name: Setup Node.js
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: "lts/*"
35+
cache: 'npm'
36+
37+
- name: Install dependencies
38+
run: npm install
39+
40+
- name: Import GPG key
41+
uses: crazy-max/ghaction-import-gpg@v6
42+
with:
43+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
44+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
45+
fingerprint: ${{ env.GPG_FINGERPRINT }}
46+
47+
- name: Release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
50+
run: npm exec semantic-release

0 commit comments

Comments
 (0)