This commit is contained in:
Cloudburst 2022-08-09 14:19:25 +02:00 committed by GitHub
parent c2dea80290
commit 8863cdf57c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -2,13 +2,12 @@ package com.example
import com.lagradost.cloudstream3.plugins.CloudstreamPlugin
import com.lagradost.cloudstream3.plugins.Plugin
import com.lagradost.cloudstream3.APIHolder
import android.content.Context
@CloudstreamPlugin
class TestPlugin: Plugin() {
override fun load(context: Context) {
// All providers should be added in this manner
APIHolder.allProviders.add(ExampleProvider())
// All providers should be added in this manner. Please don't edit the providers list directly.
registerMainAPI(ExampleProvider())
}
}