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.
This commit is contained in:
oSumAtrIX
2024-07-08 14:07:33 +02:00
108 changed files with 10621 additions and 5616 deletions

View File

@@ -1,19 +1,19 @@
FROM python:3.11-slim
# Build the application
FROM gradle:latest AS build
ARG GITHUB_ACTOR
ARG GITHUB_TOKEN
ARG SENTRY_DSN
ENV GITHUB_TOKEN $GITHUB_TOKEN
ENV SENTRY_DSN $SENTRY_DSN
WORKDIR /usr/src/app
ENV GITHUB_ACTOR=$GITHUB_ACTOR
ENV GITHUB_TOKEN=$GITHUB_TOKEN
WORKDIR /app
COPY . .
RUN gradle startShadowScript --no-daemon
RUN apt update && \
apt-get install git build-essential libffi-dev libssl-dev openssl --no-install-recommends -y \
&& pip install --no-cache-dir -r requirements.txt
# Build the runtime container
FROM eclipse-temurin:latest
VOLUME persistence
CMD [ "python3", "-m" , "sanic", "app:app", "--fast", "--access-logs", "--motd", "--noisy-exceptions", "-H", "0.0.0.0"]
WORKDIR /app
COPY --from=build /app/build/libs/revanced-api-*.jar revanced-api.jar
CMD java -jar revanced-api.jar $COMMAND