Skip to content

Commit

Permalink
fix(en/hstream): Rewrite the extension to make it work with the new s…
Browse files Browse the repository at this point in the history
…ite (#2540)
  • Loading branch information
Claudemirovsky authored Nov 24, 2023
1 parent 3c71aa5 commit 380a834
Show file tree
Hide file tree
Showing 12 changed files with 417 additions and 140 deletions.
113 changes: 0 additions & 113 deletions multisrc/overrides/animestream/hstream/src/Hstream.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class AnimeStreamGenerator : ThemeSourceGenerator {
SingleLang("ChineseAnime", "https://chineseanime.top", "all", isNsfw = false, overrideVersionCode = 3),
SingleLang("desu-online", "https://desu-online.pl", "pl", className = "DesuOnline", isNsfw = false, overrideVersionCode = 3),
SingleLang("DonghuaStream", "https://donghuastream.co.in", "en", isNsfw = false, overrideVersionCode = 2),
SingleLang("Hstream", "https://hstream.moe", "en", isNsfw = true, overrideVersionCode = 3),
SingleLang("LMAnime", "https://lmanime.com", "all", isNsfw = false, overrideVersionCode = 4),
SingleLang("LuciferDonghua", "https://luciferdonghua.in", "en", isNsfw = false, overrideVersionCode = 3),
SingleLang("MiniOppai", "https://minioppai.org", "id", isNsfw = true, overrideVersionCode = 3),
Expand Down
22 changes: 22 additions & 0 deletions src/en/hstream/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application>
<activity
android:name=".en.hstream.HstreamUrlActivity"
android:excludeFromRecents="true"
android:exported="true"
android:theme="@android:style/Theme.NoDisplay">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data
android:host="hstream.moe"
android:pathPattern="/hentai/..*"
android:scheme="https" />
</intent-filter>
</activity>
</application>
</manifest>
16 changes: 16 additions & 0 deletions src/en/hstream/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.serialization)
}

ext {
extName = 'Hstream'
pkgNameSuffix = 'en.hstream'
extClass = '.Hstream'
extVersionCode = 6
libVersion = '13'
containsNsfw = true
}

apply from: "$rootDir/common.gradle"
Loading

0 comments on commit 380a834

Please sign in to comment.