-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Use Kotlin for ReVanced API (#169)
This commit converts the entire project to a KTor project written in Kotlin. Various APIs have been updated, removed, or changed. A proxy is present to allow migration between the old and this API, which can serve requests to endpoints from the old API.
- Loading branch information
Showing
108 changed files
with
10,628 additions
and
5,627 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[*.{kt,kts}] | ||
ktlint_code_style = intellij_idea | ||
ktlint_standard_no-wildcard-imports = disabled |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Optional token for API calls to the backend | ||
BACKEND_API_TOKEN= | ||
# A URL to the old API to proxy for migration purposes | ||
OLD_API_URL= | ||
|
||
# Database connection details | ||
DB_URL=jdbc:h2:./persistence/revanced-api | ||
DB_USER= | ||
DB_PASSWORD= | ||
|
||
# Digest auth to issue JWT tokens in the format SHA256("username:ReVanced:password") | ||
AUTH_SHA256_DIGEST= | ||
|
||
# JWT configuration for authenticated API endpoints | ||
JWT_SECRET= | ||
JWT_ISSUER= | ||
JWT_VALIDITY_IN_MIN= |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# Linux start script should use lf | ||
/gradlew text eol=lf | ||
|
||
# These are Windows script files and should use crlf | ||
*.bat text eol=crlf | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
name: 🐞 Bug report | ||
description: Report a bug or an issue. | ||
title: 'bug: ' | ||
labels: ['Bug report'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
<p align="center"> | ||
<picture> | ||
<source | ||
width="256px" | ||
media="(prefers-color-scheme: dark)" | ||
srcset="https://raw.githubusercontent.com/revanced/revanced-api/main/assets/revanced-headline/revanced-headline-vertical-dark.svg" | ||
> | ||
<img | ||
width="256px" | ||
src="https://raw.githubusercontent.com/revanced/revanced-api/main/assets/revanced-headline/revanced-headline-vertical-light.svg" | ||
> | ||
</picture> | ||
<br> | ||
<a href="https://revanced.app/"> | ||
<picture> | ||
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/revanced/revanced-api/main/assets/revanced-logo/revanced-logo.svg" /> | ||
<img height="24px" src="https://raw.githubusercontent.com/revanced/revanced-api/main/assets/revanced-logo/revanced-logo.svg" /> | ||
</picture> | ||
</a> | ||
<a href="https://github.com/ReVanced"> | ||
<picture> | ||
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://i.ibb.co/dMMmCrW/Git-Hub-Mark.png" /> | ||
<img height="24px" src="https://i.ibb.co/9wV3HGF/Git-Hub-Mark-Light.png" /> | ||
</picture> | ||
</a> | ||
<a href="http://revanced.app/discord"> | ||
<picture> | ||
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032563-d4e084b7-244e-4358-af50-26bde6dd4996.png" /> | ||
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032563-d4e084b7-244e-4358-af50-26bde6dd4996.png" /> | ||
</picture> | ||
</a> | ||
<a href="https://reddit.com/r/revancedapp"> | ||
<picture> | ||
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032351-9d9d5619-8ef7-470a-9eec-2744ece54553.png" /> | ||
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032351-9d9d5619-8ef7-470a-9eec-2744ece54553.png" /> | ||
</picture> | ||
</a> | ||
<a href="https://t.me/app_revanced"> | ||
<picture> | ||
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032213-faf25ab8-0bc3-4a94-a730-b524c96df124.png" /> | ||
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032213-faf25ab8-0bc3-4a94-a730-b524c96df124.png" /> | ||
</picture> | ||
</a> | ||
<a href="https://x.com/revancedapp"> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/93124920/270180600-7c1b38bf-889b-4d68-bd5e-b9d86f91421a.png"> | ||
<img height="24px" src="https://user-images.githubusercontent.com/93124920/270108715-d80743fa-b330-4809-b1e6-79fbdc60d09c.png" /> | ||
</picture> | ||
</a> | ||
<a href="https://www.youtube.com/@ReVanced"> | ||
<picture> | ||
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032714-c51c7492-0666-44ac-99c2-f003a695ab50.png" /> | ||
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032714-c51c7492-0666-44ac-99c2-f003a695ab50.png" /> | ||
</picture> | ||
</a> | ||
<br> | ||
<br> | ||
Continuing the legacy of Vanced | ||
</p> | ||
# ReVanced API bug report | ||
Before creating a new bug report, please keep the following in mind: | ||
- **Do not submit a duplicate bug report**: Search for existing bug reports [here](https://github.com/ReVanced/revanced-api/issues?q=label%3A%22Bug+report%22). | ||
- **Review the contribution guidelines**: Make sure your bug report adheres to it. You can find the guidelines [here](https://github.com/ReVanced/revanced-api/blob/main/CONTRIBUTING.md). | ||
- **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). | ||
- type: textarea | ||
attributes: | ||
label: Bug description | ||
description: | | ||
- Describe your bug in detail | ||
- Add steps to reproduce the bug if possible (Step 1. ... Step 2. ...) | ||
- Add images and videos if possible | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Error logs | ||
description: Exceptions can be captured by running `logcat | grep AndroidRuntime` in a shell. | ||
render: shell | ||
- type: textarea | ||
attributes: | ||
label: Solution | ||
description: If applicable, add a possible solution to the bug. | ||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: Add additional context here. | ||
- type: checkboxes | ||
id: acknowledgements | ||
attributes: | ||
label: Acknowledgements | ||
description: Your bug report will be closed if you don't follow the checklist below. | ||
options: | ||
- label: I have checked all open and closed bug reports and this is not a duplicate. | ||
required: true | ||
- label: I have chosen an appropriate title. | ||
required: true | ||
- label: All requested information has been provided properly. | ||
required: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: 🗨 Discussions | ||
url: https://github.com/revanced/revanced-suggestions/discussions | ||
about: Have something unspecific to ReVanced APi in mind? Search for or start a new discussion! |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: ⭐ Feature request | ||
description: Create a detailed request for a new feature. | ||
title: 'feat: ' | ||
labels: ['Feature request'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
<p align="center"> | ||
<picture> | ||
<source | ||
width="256px" | ||
media="(prefers-color-scheme: dark)" | ||
srcset="https://raw.githubusercontent.com/revanced/revanced-api/main/assets/revanced-headline/revanced-headline-vertical-dark.svg" | ||
> | ||
<img | ||
width="256px" | ||
src="https://raw.githubusercontent.com/revanced/revanced-api/main/assets/revanced-headline/revanced-headline-vertical-light.svg" | ||
> | ||
</picture> | ||
<br> | ||
<a href="https://revanced.app/"> | ||
<picture> | ||
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/revanced/revanced-api/main/assets/revanced-logo/revanced-logo.svg" /> | ||
<img height="24px" src="https://raw.githubusercontent.com/revanced/revanced-api/main/assets/revanced-logo/revanced-logo.svg" /> | ||
</picture> | ||
</a> | ||
<a href="https://github.com/ReVanced"> | ||
<picture> | ||
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://i.ibb.co/dMMmCrW/Git-Hub-Mark.png" /> | ||
<img height="24px" src="https://i.ibb.co/9wV3HGF/Git-Hub-Mark-Light.png" /> | ||
</picture> | ||
</a> | ||
<a href="http://revanced.app/discord"> | ||
<picture> | ||
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032563-d4e084b7-244e-4358-af50-26bde6dd4996.png" /> | ||
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032563-d4e084b7-244e-4358-af50-26bde6dd4996.png" /> | ||
</picture> | ||
</a> | ||
<a href="https://reddit.com/r/revancedapp"> | ||
<picture> | ||
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032351-9d9d5619-8ef7-470a-9eec-2744ece54553.png" /> | ||
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032351-9d9d5619-8ef7-470a-9eec-2744ece54553.png" /> | ||
</picture> | ||
</a> | ||
<a href="https://t.me/app_revanced"> | ||
<picture> | ||
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032213-faf25ab8-0bc3-4a94-a730-b524c96df124.png" /> | ||
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032213-faf25ab8-0bc3-4a94-a730-b524c96df124.png" /> | ||
</picture> | ||
</a> | ||
<a href="https://x.com/revancedapp"> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/93124920/270180600-7c1b38bf-889b-4d68-bd5e-b9d86f91421a.png"> | ||
<img height="24px" src="https://user-images.githubusercontent.com/93124920/270108715-d80743fa-b330-4809-b1e6-79fbdc60d09c.png" /> | ||
</picture> | ||
</a> | ||
<a href="https://www.youtube.com/@ReVanced"> | ||
<picture> | ||
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032714-c51c7492-0666-44ac-99c2-f003a695ab50.png" /> | ||
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032714-c51c7492-0666-44ac-99c2-f003a695ab50.png" /> | ||
</picture> | ||
</a> | ||
<br> | ||
<br> | ||
Continuing the legacy of Vanced | ||
</p> | ||
# ReVanced APi feature request | ||
Before creating a new feature request, please keep the following in mind: | ||
- **Do not submit a duplicate feature request**: Search for existing feature requests [here](https://github.com/ReVanced/revanced-api/issues?q=label%3A%22Feature+request%22). | ||
- **Review the contribution guidelines**: Make sure your feature request adheres to it. You can find the guidelines [here](https://github.com/ReVanced/revanced-api/blob/main/CONTRIBUTING.md). | ||
- **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). | ||
- type: textarea | ||
attributes: | ||
label: Feature description | ||
description: | | ||
- Describe your feature in detail | ||
- Add images, videos, links, examples, references, etc. if possible | ||
- type: textarea | ||
attributes: | ||
label: Motivation | ||
description: | | ||
A strong motivation is necessary for a feature request to be considered. | ||
- Why should this feature be implemented? | ||
- What is the explicit use case? | ||
- What are the benefits? | ||
- What makes this feature important? | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
id: acknowledgements | ||
attributes: | ||
label: Acknowledgements | ||
description: Your feature request will be closed if you don't follow the checklist below. | ||
options: | ||
- label: I have checked all open and closed feature requests and this is not a duplicate | ||
required: true | ||
- label: I have chosen an appropriate title. | ||
required: true | ||
- label: All requested information has been provided properly. | ||
required: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
firstPRMergeComment: > | ||
Thank you for contributing to ReVanced. Join us on [Discord](https://revanced.app/discord) to receive a role for your contribution. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.