* QManga

* move to ParsedHttpSource

* chore: format androidmanifest

* I DIDN'T REALIZE THEY WERE TABS 😭

* more shenanigans

* Update AndroidManifest.xml
This commit is contained in:
beerpsi 2023-01-12 00:34:42 +07:00 committed by GitHub
parent 951ca60b56
commit 9a99a7ecca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 1132 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="eu.kanade.tachiyomi.extension">
<application>
<activity
android:name="eu.kanade.tachiyomi.extension.vi.qmanga.QMangaUrlActivity"
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="qmanga5.net" />
<data
android:pathPattern="/..*"
android:scheme="https" />
</intent-filter>
</activity>
</application>
</manifest>

View File

@ -0,0 +1,12 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
ext {
extName = 'QManga'
pkgNameSuffix = 'vi.qmanga'
extClass = '.QManga'
extVersionCode = 1
isNsfw = true
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,33 @@
package eu.kanade.tachiyomi.extension.vi.qmanga
import android.app.Activity
import android.content.ActivityNotFoundException
import android.content.Intent
import android.os.Bundle
import android.util.Log
import kotlin.system.exitProcess
class QMangaUrlActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val pathSegments = intent?.data?.pathSegments
if (pathSegments != null && pathSegments.size > 0 && pathSegments[0].endsWith(".html")) {
val id = pathSegments[0].removeSuffix(".html")
try {
startActivity(
Intent().apply {
action = "eu.kanade.tachiyomi.SEARCH"
putExtra("query", "${QManga.PREFIX_ID_SEARCH}$id")
putExtra("filter", packageName)
}
)
} catch (e: ActivityNotFoundException) {
Log.e("QMangaUrlActivity", e.toString())
}
} else {
Log.e("QMangaUrlActivity", "Could not parse URI from intent $intent")
}
finish()
exitProcess(0)
}
}