⚠️ This is currently under development, dont use it yet if you're not comfortable with constantly merging new changes
Cloudstream3 Plugin Repo Template
Template for a Cloudstream3 plugin repo
⚠️ Make sure you check "Include all branches" when using this template
Getting started with writing your first plugin
This template includes 1 example plugin.
- Open the root build.gradle.kts, read the comments and replace all the placeholders
- Familiarize yourself with the project structure. Most files are commented
- Build or deploy your first plugin using:
- Windows:
.\gradlew.bat ExampleProvider:makeor.\gradlew.bat ExampleProvider:deployWithAdb - Linux & Mac:
./gradlew ExampleProvider:makeor./gradlew ExampleProvider:deployWithAdb
- Windows:
Granting All Files Access on Newer Android Devices
For local plugin testing, you need to grant the app "All Files Access" on newer Android devices (Android 11 and above). Here’s how to do it:
Using ADB
adb shell appops set --uid PACKAGE_NAME MANAGE_EXTERNAL_STORAGE allow- Replace
PACKAGE_NAMEwith the name of the package for the Cloudstream3 version you are using:- debug:
com.lagradost.cloudstream3.prerelease.debug - prerelease:
com.lagradost.cloudstream3.prerelease - stable:
com.lagradost.cloudstream3
- debug:
Manually
-
Open Settings: Go to your device’s Settings menu.
-
Navigate to Special Access:
- Tap on "Apps & notifications" or "Apps".
- Select "Special app access" or "Special access".
-
Select All Files Access:
- Tap on "All files access".
- It may be under the three vertical dots menu towards the top of the screen.
-
Grant Access to the App: Find the app in the list and tap on it to toggle it, if it is not already enabled.
-
Restart the App: Close and reopen the app to apply the changes.
License
Everything in this repo is released into the public domain. You may use it however you want with no conditions whatsoever
Attribution
This template as well as the gradle plugin and the whole plugin system is heavily based on Aliucord. Go use it, it's a great mobile discord client mod!