-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: random ahh circular dependency when pushing to jitpack
- Loading branch information
Showing
16 changed files
with
99 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
build-logic/convention/src/main/kotlin/ExtractorConventionPlugin.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
plugins { | ||
alias(libs.plugins.flixclusive.extractor) | ||
alias(libs.plugins.flixclusive.provider) | ||
} | ||
|
||
android { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
plugins { | ||
alias(libs.plugins.flixclusive.extractor) | ||
alias(libs.plugins.flixclusive.provider) | ||
} | ||
|
||
android { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
provider/base/src/main/kotlin/com/flixclusive/provider/base/Provider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 41 additions & 41 deletions
82
...m/flixclusive/extractor/base/Extractor.kt → ...sive/provider/base/extractor/Extractor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
package com.flixclusive.extractor.base | ||
|
||
import com.flixclusive.model.provider.SourceLink | ||
import com.flixclusive.model.provider.Subtitle | ||
import java.net.URL | ||
|
||
/** | ||
* An extractor class for providers that contains embeds. | ||
*/ | ||
abstract class Extractor { | ||
/** | ||
* The name of the extractor. | ||
*/ | ||
abstract val name: String | ||
|
||
/** | ||
* Alternate names for the extractor. Defaults to an empty list. | ||
*/ | ||
open val alternateNames: List<String> = emptyList() | ||
|
||
/** | ||
* The host associated with the extractor. | ||
*/ | ||
abstract val host: String | ||
|
||
/** | ||
* Extracts source links and subtitles from the provided URL. | ||
* @param url The URL to extract from. | ||
* @param mediaId The ID of the media. | ||
* @param episodeId The ID of the episode. | ||
* @param onLinkLoaded A callback function invoked when a source link is loaded. | ||
* @param onSubtitleLoaded A callback function invoked when a subtitle is loaded. | ||
*/ | ||
abstract suspend fun extract( | ||
url: URL, | ||
mediaId: String, | ||
episodeId: String, | ||
onLinkLoaded: (SourceLink) -> Unit, | ||
onSubtitleLoaded: (Subtitle) -> Unit, | ||
) | ||
} | ||
package com.flixclusive.provider.base.extractor | ||
|
||
import com.flixclusive.model.provider.SourceLink | ||
import com.flixclusive.model.provider.Subtitle | ||
import java.net.URL | ||
|
||
/** | ||
* An extractor class for providers that contains embeds. | ||
*/ | ||
abstract class Extractor { | ||
/** | ||
* The name of the extractor. | ||
*/ | ||
abstract val name: String | ||
|
||
/** | ||
* Alternate names for the extractor. Defaults to an empty list. | ||
*/ | ||
open val alternateNames: List<String> = emptyList() | ||
|
||
/** | ||
* The host associated with the extractor. | ||
*/ | ||
abstract val host: String | ||
|
||
/** | ||
* Extracts source links and subtitles from the provided URL. | ||
* @param url The URL to extract from. | ||
* @param mediaId The ID of the media. | ||
* @param episodeId The ID of the episode. | ||
* @param onLinkLoaded A callback function invoked when a source link is loaded. | ||
* @param onSubtitleLoaded A callback function invoked when a subtitle is loaded. | ||
*/ | ||
abstract suspend fun extract( | ||
url: URL, | ||
mediaId: String, | ||
episodeId: String, | ||
onLinkLoaded: (SourceLink) -> Unit, | ||
onSubtitleLoaded: (Subtitle) -> Unit, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters