Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/build_to_archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@ jobs:
repository: "recloudstream/cloudstream-archive"

- uses: actions/checkout@v5
- name: Set up JDK 17

- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'adopt'
java-version: 25
distribution: adopt
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Fetch keystore
id: fetch_keystore
run: |
Expand All @@ -55,14 +57,14 @@ jobs:
echo "key_pwd=$KEY_PWD" >> $GITHUB_OUTPUT

- name: Run Gradle
run: |
./gradlew assemblePrerelease
run: ./gradlew assemblePrerelease
env:
SIGNING_KEY_ALIAS: "key0"
SIGNING_KEY_PASSWORD: ${{ steps.fetch_keystore.outputs.key_pwd }}
SIGNING_STORE_PASSWORD: ${{ steps.fetch_keystore.outputs.key_pwd }}
SIMKL_CLIENT_ID: ${{ secrets.SIMKL_CLIENT_ID }}
SIMKL_CLIENT_SECRET: ${{ secrets.SIMKL_CLIENT_SECRET }}

- uses: actions/checkout@v5
with:
repository: "recloudstream/cloudstream-archive"
Expand All @@ -72,12 +74,12 @@ jobs:
- name: Move build
run: |
cp app/build/outputs/apk/prerelease/release/*.apk "archive/$(git rev-parse --short HEAD).apk"

- name: Push archive
run: |
cd $GITHUB_WORKSPACE/archive
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add .
git commit --amend -m "Build $GITHUB_SHA" || exit 0 # do not error if nothing to commit
git push --force
git push --force
15 changes: 8 additions & 7 deletions .github/workflows/generate_dokka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,33 @@ jobs:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_KEY }}
repository: "recloudstream/dokka"

- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v5
with:
path: "src"

- name: Checkout dokka
uses: actions/checkout@master
uses: actions/checkout@v5
with:
repository: "recloudstream/dokka"
path: "dokka"
token: ${{ steps.generate_token.outputs.token }}

- name: Clean old builds
run: |
cd $GITHUB_WORKSPACE/dokka/
rm -rf "./app"
rm -rf "./library"

- name: Setup JDK 17
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: 17
distribution: 'adopt'
java-version: 25
distribution: adopt
cache: gradle

- name: Setup Android SDK
- name: Set up Android SDK
uses: android-actions/setup-android@v3

- name: Generate Dokka
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/issue_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_KEY }}

- name: Similarity analysis
id: similarity
uses: actions-cool/issues-similarity-analysis@v1
Expand All @@ -25,6 +26,7 @@ jobs:
### Your issue looks similar to these issues:
Please close if duplicate.
comment-body: '${index}. ${similarity} #${number}'

- name: Label if possible duplicate
if: steps.similarity.outputs.similar-issues-found =='true'
uses: actions/github-script@v8
Expand All @@ -37,7 +39,9 @@ jobs:
repo: context.repo.repo,
labels: ["possible duplicate"]
})

- uses: actions/checkout@v5

- name: Automatically close issues that dont follow the issue template
uses: lucasbento/auto-close-issues@v1.0.2
with:
Expand All @@ -46,6 +50,7 @@ jobs:
@${issue.user.login}: hello! :wave:
This issue is being automatically closed because it does not follow the issue template."
closed-issues-label: "invalid"

- name: Check if issue mentions a provider
id: provider_check
env:
Expand All @@ -55,6 +60,7 @@ jobs:
pip3 install httpx
RES="$(python3 ./check_issue.py)"
echo "name=${RES}" >> $GITHUB_OUTPUT

- name: Comment if issue mentions a provider
if: steps.provider_check.outputs.name != 'none'
uses: actions-cool/issues-helper@v3
Expand All @@ -66,6 +72,7 @@ jobs:
Please do not report any provider bugs here. This repository does not contain any providers. Please find the appropriate repository and report your issue there or join the [discord](https://discord.gg/5Hus6fM).

Found provider name: `${{ steps.provider_check.outputs.name }}`

- name: Label if mentions provider
if: steps.provider_check.outputs.name != 'none'
uses: actions/github-script@v8
Expand All @@ -78,11 +85,10 @@ jobs:
repo: context.repo.repo,
labels: ["possible provider issue"]
})

- name: Add eyes reaction to all issues
uses: actions-cool/emoji-helper@v1.0.0
with:
type: 'issue'
token: ${{ steps.generate_token.outputs.token }}
emoji: 'eyes'


10 changes: 6 additions & 4 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ jobs:
repository: "recloudstream/secrets"

- uses: actions/checkout@v5
- name: Set up JDK 17

- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'adopt'
java-version: 25
distribution: adopt
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Fetch keystore
id: fetch_keystore
run: |
Expand All @@ -58,7 +60,7 @@ jobs:
MDL_API_KEY: ${{ secrets.MDL_API_KEY }}

- name: Create pre-release
uses: "marvinpinto/action-automatic-releases@latest"
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "pre-release"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
steps:
- uses: actions/checkout@v5

- name: Set up JDK 17
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'adopt'
java-version: 25
distribution: adopt
cache: gradle

- name: Grant execute permission for gradlew
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/update_locales.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ jobs:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_KEY }}
repository: "recloudstream/cloudstream"

- uses: actions/checkout@v5
with:
token: ${{ steps.generate_token.outputs.token }}

- name: Install dependencies
run: |
pip3 install lxml requests
run: pip3 install lxml requests

- name: Edit files
run: |
python3 .github/locales.py
run: python3 .github/locales.py

- name: Commit to the repo
run: |
git config --local user.email "111277985+recloudstream[bot]@users.noreply.github.com"
Expand Down
9 changes: 8 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ plugins {
id("com.android.application")
id("kotlin-android")
id("org.jetbrains.dokka")

}

val javaTarget = JvmTarget.fromTarget(libs.versions.jvmTarget.get())
Expand Down Expand Up @@ -139,6 +138,14 @@ android {
targetCompatibility = JavaVersion.toVersion(javaTarget.target)
}

java {
// Use Java 17 toolchain even if a higher JDK runs the build.
// We still use Java 8 for now which higher JDKs have deprecated.
toolchain {
languageVersion.set(JavaLanguageVersion.of(libs.versions.jdkToolchain.get()))
}
}

lint {
abortOnError = false
checkReleaseBuilds = false
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ org.gradle.configuration-cache=true
# Dokka Gradle plugin V1 is deprecated, and will be removed in Dokka version 2.1.0
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true

# Compiling with Java 8 is deprecated but we still use it for now
android.javaCompile.suppressSourceTargetDeprecationWarning=true
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ workRuntime = "2.10.5"
workRuntimeKtx = "2.10.5"

jvmTarget = "1.8"
jdkToolchain = "17"
minSdk = "21"
compileSdk = "36"
targetSdk = "35"
Expand Down
2 changes: 1 addition & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
DEFAULT_JVM_OPTS="--enable-native-access=ALL-UNNAMED"

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
Expand Down
2 changes: 1 addition & 1 deletion gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DEFAULT_JVM_OPTS="--enable-native-access=ALL-UNNAMED"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
Expand Down