mirror of
https://github.com/recloudstream/plugin-template.git
synced 2024-08-15 03:16:05 +00:00
update to recloudstream/cloudstream@bceeec8
This commit is contained in:
parent
c2dea80290
commit
8863cdf57c
1 changed files with 2 additions and 3 deletions
|
@ -2,13 +2,12 @@ package com.example
|
||||||
|
|
||||||
import com.lagradost.cloudstream3.plugins.CloudstreamPlugin
|
import com.lagradost.cloudstream3.plugins.CloudstreamPlugin
|
||||||
import com.lagradost.cloudstream3.plugins.Plugin
|
import com.lagradost.cloudstream3.plugins.Plugin
|
||||||
import com.lagradost.cloudstream3.APIHolder
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
|
||||||
@CloudstreamPlugin
|
@CloudstreamPlugin
|
||||||
class TestPlugin: Plugin() {
|
class TestPlugin: Plugin() {
|
||||||
override fun load(context: Context) {
|
override fun load(context: Context) {
|
||||||
// All providers should be added in this manner
|
// All providers should be added in this manner. Please don't edit the providers list directly.
|
||||||
APIHolder.allProviders.add(ExampleProvider())
|
registerMainAPI(ExampleProvider())
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue