2022-08-06 15:48:00 +00:00
|
|
|
package com.lagradost.cloudstream3.plugins
|
2022-08-04 10:51:11 +00:00
|
|
|
|
2022-08-06 15:48:00 +00:00
|
|
|
import android.content.Context
|
|
|
|
import android.content.res.Resources
|
|
|
|
import kotlin.Throws
|
2022-08-04 10:51:11 +00:00
|
|
|
|
2022-08-06 15:48:00 +00:00
|
|
|
abstract class Plugin {
|
2022-08-04 10:51:11 +00:00
|
|
|
/**
|
|
|
|
* Called when your Plugin is loaded
|
|
|
|
* @param context Context
|
|
|
|
*/
|
2022-08-06 15:48:00 +00:00
|
|
|
@Throws(Throwable::class)
|
|
|
|
open fun load(context: Context?) {
|
2022-08-04 10:51:11 +00:00
|
|
|
}
|
|
|
|
|
2022-08-06 15:48:00 +00:00
|
|
|
class Manifest {
|
|
|
|
var name: String? = null
|
|
|
|
var pluginClassName: String? = null
|
2022-08-07 16:01:32 +00:00
|
|
|
var pluginVersion: Int? = null
|
2022-08-06 15:48:00 +00:00
|
|
|
}
|
2022-08-04 10:51:11 +00:00
|
|
|
|
2022-08-06 15:48:00 +00:00
|
|
|
var resources: Resources? = null
|
|
|
|
var needsResources = false
|
|
|
|
var __filename: String? = null
|
2022-08-04 10:51:11 +00:00
|
|
|
}
|