mirror of
https://github.com/fumiama/copymanga.git
synced 2026-06-12 11:40:27 +08:00
v1.1
This commit is contained in:
6
.idea/compiler.xml
generated
Normal file
6
.idea/compiler.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CompilerConfiguration">
|
||||||
|
<bytecodeTargetLevel target="1.8" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
1
.idea/gradle.xml
generated
1
.idea/gradle.xml
generated
@@ -15,6 +15,7 @@
|
|||||||
</set>
|
</set>
|
||||||
</option>
|
</option>
|
||||||
<option name="resolveModulePerSourceSet" value="false" />
|
<option name="resolveModulePerSourceSet" value="false" />
|
||||||
|
<option name="useQualifiedModuleNames" value="true" />
|
||||||
</GradleProjectSettings>
|
</GradleProjectSettings>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ android {
|
|||||||
applicationId "top.fumiama.copymanga"
|
applicationId "top.fumiama.copymanga"
|
||||||
minSdkVersion 23
|
minSdkVersion 23
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 1
|
versionCode 2
|
||||||
versionName "1.0"
|
versionName '1.1'
|
||||||
resConfigs "zh", "zh-rCN"
|
resConfigs "zh", "zh-rCN"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class DlActivity : Activity() {
|
|||||||
private var cdwnHeight = 0
|
private var cdwnHeight = 0
|
||||||
private var canDl = false
|
private var canDl = false
|
||||||
private lateinit var toolsBox: ToolsBox
|
private lateinit var toolsBox: ToolsBox
|
||||||
val mangaDlTools = MangaDlTools()
|
lateinit var mangaDlTools: MangaDlTools
|
||||||
|
|
||||||
|
|
||||||
@ExperimentalStdlibApi
|
@ExperimentalStdlibApi
|
||||||
@@ -54,6 +54,7 @@ class DlActivity : Activity() {
|
|||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
setContentView(R.layout.activity_dl)
|
setContentView(R.layout.activity_dl)
|
||||||
mh?.saveUrlsOnly = true
|
mh?.saveUrlsOnly = true
|
||||||
|
mangaDlTools = MangaDlTools(this)
|
||||||
handler.sendEmptyMessage(-2)
|
handler.sendEmptyMessage(-2)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,11 +116,9 @@ class ViewMangaActivity : Activity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun loadOneImg() {
|
private fun loadOneImg() {
|
||||||
Glide.with(this@ViewMangaActivity.applicationContext).load(
|
Glide.with(this@ViewMangaActivity).load(
|
||||||
imgUrls[currentItem]
|
imgUrls[currentItem]
|
||||||
).thumbnail(
|
).placeholder(R.drawable.bg_comment).into(onei)
|
||||||
Glide.with(this@ViewMangaActivity.applicationContext).load(R.drawable.bg_comment)
|
|
||||||
).into(onei)
|
|
||||||
updateSeekBar()
|
updateSeekBar()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,7 +143,7 @@ class ViewMangaActivity : Activity() {
|
|||||||
idtblr.setOnClickListener {
|
idtblr.setOnClickListener {
|
||||||
if (idtblr.isChecked) p["r2l"] = "true"
|
if (idtblr.isChecked) p["r2l"] = "true"
|
||||||
else p["r2l"] = "false"
|
else p["r2l"] = "false"
|
||||||
Toast.makeText(this.applicationContext, "下次浏览生效", Toast.LENGTH_SHORT).show()
|
Toast.makeText(this, "下次浏览生效", Toast.LENGTH_SHORT).show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -153,7 +151,7 @@ class ViewMangaActivity : Activity() {
|
|||||||
idtbvp.setOnClickListener {
|
idtbvp.setOnClickListener {
|
||||||
if (idtbvp.isChecked) p["noAnimation"] = "true"
|
if (idtbvp.isChecked) p["noAnimation"] = "true"
|
||||||
else p["noAnimation"] = "false"
|
else p["noAnimation"] = "false"
|
||||||
Toast.makeText(this.applicationContext, "下次浏览生效", Toast.LENGTH_SHORT).show()
|
Toast.makeText(this, "下次浏览生效", Toast.LENGTH_SHORT).show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -230,7 +228,7 @@ class ViewMangaActivity : Activity() {
|
|||||||
if (idtbfullscreen.isChecked) p["useFullScreen"] =
|
if (idtbfullscreen.isChecked) p["useFullScreen"] =
|
||||||
"true"
|
"true"
|
||||||
else p["useFullScreen"] = "false"
|
else p["useFullScreen"] = "false"
|
||||||
Toast.makeText(this.applicationContext, "下次浏览生效", Toast.LENGTH_SHORT).show()
|
Toast.makeText(this, "下次浏览生效", Toast.LENGTH_SHORT).show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -279,12 +277,7 @@ class ViewMangaActivity : Activity() {
|
|||||||
@SuppressLint("ClickableViewAccessibility", "SetTextI18n")
|
@SuppressLint("ClickableViewAccessibility", "SetTextI18n")
|
||||||
override fun onBindViewHolder(holder: ViewData, position: Int) {
|
override fun onBindViewHolder(holder: ViewData, position: Int) {
|
||||||
val pos = if (r2l) count - position - 1 else position
|
val pos = if (r2l) count - position - 1 else position
|
||||||
Glide.with(this@ViewMangaActivity.applicationContext).load(
|
Glide.with(this@ViewMangaActivity).load(imgUrls[pos]).placeholder(R.drawable.bg_comment).into(holder.itemView.onei)
|
||||||
imgUrls[pos]
|
|
||||||
).thumbnail(
|
|
||||||
Glide.with(this@ViewMangaActivity.applicationContext)
|
|
||||||
.load(R.drawable.bg_comment)
|
|
||||||
).into(holder.itemView.onei)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getItemCount(): Int {
|
override fun getItemCount(): Int {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package top.fumiama.copymanga.tool
|
package top.fumiama.copymanga.tool
|
||||||
|
|
||||||
import top.fumiama.copymanga.R
|
import top.fumiama.copymanga.R
|
||||||
import top.fumiama.copymanga.activity.MainActivity.Companion.wm
|
import top.fumiama.copymanga.activity.DlActivity
|
||||||
import top.fumiama.copymanga.data.ComicStructure
|
import top.fumiama.copymanga.data.ComicStructure
|
||||||
import top.fumiama.copymanga.view.JSWebView
|
import top.fumiama.copymanga.view.JSWebView
|
||||||
import top.fumiama.copymanga.web.JSHidden
|
import top.fumiama.copymanga.web.JSHidden
|
||||||
@@ -12,14 +12,16 @@ import java.util.zip.CheckedOutputStream
|
|||||||
import java.util.zip.ZipEntry
|
import java.util.zip.ZipEntry
|
||||||
import java.util.zip.ZipOutputStream
|
import java.util.zip.ZipOutputStream
|
||||||
|
|
||||||
class MangaDlTools {
|
class MangaDlTools(activity: DlActivity) {
|
||||||
var exit = false
|
var exit = false
|
||||||
private val p = PropertiesTools(File("${wm?.get()?.filesDir}/chapters.hash"))
|
private val da = WeakReference(activity)
|
||||||
|
private val d = da.get()
|
||||||
|
private val p = PropertiesTools(File("${d?.filesDir}/chapters.hash"))
|
||||||
private var imgUrlsList: Array<Array<String>?>? = null
|
private var imgUrlsList: Array<Array<String>?>? = null
|
||||||
private var chaptersCount = 0
|
private var chaptersCount = 0
|
||||||
private val newWebViewHidden: JSWebView?
|
private val newWebViewHidden: JSWebView?
|
||||||
get() {
|
get() {
|
||||||
val re = wm?.get()?.let { JSWebView(it, it.getString(R.string.pc_ua)) }
|
val re = d?.let { JSWebView(it, it.getString(R.string.pc_ua)) }
|
||||||
re?.setWebViewClient("h.js")
|
re?.setWebViewClient("h.js")
|
||||||
re?.loadJSInterface(JSHidden())
|
re?.loadJSInterface(JSHidden())
|
||||||
return re
|
return re
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ buildscript {
|
|||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath "com.android.tools.build:gradle:4.0.2"
|
classpath 'com.android.tools.build:gradle:4.1.0'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.19'
|
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.19'
|
||||||
|
|
||||||
|
|||||||
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,6 +1,6 @@
|
|||||||
#Mon Oct 12 18:40:51 CST 2020
|
#Wed Oct 14 16:47:38 CST 2020
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user