From 03e3a855854784fc327fb9125949a3601c4ab36c Mon Sep 17 00:00:00 2001
From: Haleydu <924323178@qq.com>
Date: Thu, 3 Sep 2020 15:33:49 +0800
Subject: [PATCH] Verify that software reports virus
---
README.md | 5 -
app/src/main/AndroidManifest.xml | 18 ---
app/src/main/GenAndroidManifest.fish | 10 --
.../cimoc/ui/activity/BrowserFilter.java | 138 ------------------
.../res/layout/activity_browser_filter.xml | 8 -
5 files changed, 179 deletions(-)
delete mode 100644 app/src/main/GenAndroidManifest.fish
delete mode 100644 app/src/main/java/com/hiroshi/cimoc/ui/activity/BrowserFilter.java
delete mode 100644 app/src/main/res/layout/activity_browser_filter.xml
diff --git a/README.md b/README.md
index e090f1ba..c5dc42ca 100644
--- a/README.md
+++ b/README.md
@@ -65,11 +65,6 @@ Online manga reader based on Android
- 在 SourceManger 的 getParser() 方法中加入相应分支
> case 里面无脑添加
- 在 UpdateHelper 的 initSource() 方法中初始化图源
-> 同上
-- (可选)在BrowserFilter中registUrlListener添加相应type,实现关联浏览器操作
-> 在app\src\main\java\com\hiroshi\cimoc\ui\activity\BrowserFilter.java中
-> 修改后运行app\src\main\GenAndroidManifest.fish,使用自动生成的BrowserFilter-data.xml替换AndroidManifest.xml中相应部分
-
## cimoc设置
- 阅读模式-翻页模式
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 6807e299..e0ba0ce5 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -84,24 +84,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
' | tee $File
-
-for url in (cat java/com/hiroshi/cimoc/source/*.java | grep "new UrlFilter" | perl -pe 's|.*?"(.*?)".*|\1|');
- echo '' | tee -a $File
-end
-
-echo '' | tee -a $File
diff --git a/app/src/main/java/com/hiroshi/cimoc/ui/activity/BrowserFilter.java b/app/src/main/java/com/hiroshi/cimoc/ui/activity/BrowserFilter.java
deleted file mode 100644
index aa31c00a..00000000
--- a/app/src/main/java/com/hiroshi/cimoc/ui/activity/BrowserFilter.java
+++ /dev/null
@@ -1,138 +0,0 @@
-package com.hiroshi.cimoc.ui.activity;
-
-import android.content.Intent;
-import android.net.Uri;
-import android.os.Bundle;
-import android.widget.Toast;
-
-import com.hiroshi.cimoc.R;
-import com.hiroshi.cimoc.manager.SourceManager;
-import com.hiroshi.cimoc.source.Animx2;
-import com.hiroshi.cimoc.source.BaiNian;
-import com.hiroshi.cimoc.source.BuKa;
-import com.hiroshi.cimoc.source.Cartoonmad;
-import com.hiroshi.cimoc.source.ChuiXue;
-import com.hiroshi.cimoc.source.JMTT;
-import com.hiroshi.cimoc.source.CopyMH;
-import com.hiroshi.cimoc.source.DM5;
-import com.hiroshi.cimoc.source.Dmzjv2;
-import com.hiroshi.cimoc.source.Hhxxee;
-import com.hiroshi.cimoc.source.IKanman;
-import com.hiroshi.cimoc.source.MH50;
-import com.hiroshi.cimoc.source.MH517;
-import com.hiroshi.cimoc.source.MH57;
-import com.hiroshi.cimoc.source.ManHuaDB;
-import com.hiroshi.cimoc.source.MiGu;
-import com.hiroshi.cimoc.source.QiManWu;
-import com.hiroshi.cimoc.source.PuFei;
-import com.hiroshi.cimoc.source.Tencent;
-import com.hiroshi.cimoc.source.TuHao;
-import com.hiroshi.cimoc.source.U17;
-import com.hiroshi.cimoc.source.Ohmanhua;
-import com.hiroshi.cimoc.source.WebtoonDongManManHua;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class BrowserFilter extends BaseActivity {
-
- @Override
- protected int getLayoutRes() {
- return R.layout.activity_browser_filter;
- }
-
- @Override
- protected String getDefaultTitle() {
- return "jumping...";
- }
-
-// private Parser parser;
-// private SourceManager mSourceManager;
-
- public void openDetailActivity(int source, String comicId) {
- Intent intent = DetailActivity.createIntent(this, null, source, comicId);
- startActivity(intent);
- }
-
-// public void openReaderActivity(int source,String comicId) {
-// Intent intent = DetailActivity.createIntent(this, null, source, comicId);
-// startActivity(intent);
-// }
-
- private List registUrlListener() {
- List list = new ArrayList<>();
-
- list.add(Dmzjv2.TYPE);
- list.add(BuKa.TYPE);
- list.add(PuFei.TYPE);
- list.add(Cartoonmad.TYPE);
- list.add(Animx2.TYPE);
- list.add(MH517.TYPE);
- list.add(BaiNian.TYPE);
- list.add(MiGu.TYPE);
- list.add(Tencent.TYPE);
- list.add(U17.TYPE);
- list.add(MH57.TYPE);
- list.add(MH50.TYPE);
- list.add(DM5.TYPE);
- list.add(IKanman.TYPE);
- list.add(QiManWu.TYPE);
- list.add(Hhxxee.TYPE);
- list.add(BaiNian.TYPE);
- list.add(ChuiXue.TYPE);
- list.add(ManHuaDB.TYPE);
- list.add(TuHao.TYPE);
- list.add(JMTT.TYPE);
- list.add(Ohmanhua.TYPE);
- list.add(CopyMH.TYPE);
- list.add(WebtoonDongManManHua.TYPE);
-
- return list;
- }
-
- private void openReader(Uri uri) {
- SourceManager mSourceManager = SourceManager.getInstance(this);
- String comicId;
-
- for (int i : registUrlListener()) {
- if (mSourceManager.getParser(i).isHere(uri)
- && ((comicId = mSourceManager.getParser(i).getComicId(uri)) != null)) {
- openDetailActivity(i, comicId);
- }
- }
- }
-
- private void openReaderByIntent(Intent intent) {
- String action = intent.getAction();
- String type = intent.getType();
-
- //来自url
- if (Intent.ACTION_VIEW.equals(action)) {
- Uri uri = intent.getData();
- if (uri != null) {
- openReader(uri);
- } else {
- Toast.makeText(this, "url不合法", Toast.LENGTH_SHORT);
- }
- }
-
- //来自分享
- if (Intent.ACTION_SEND.equals(action) && "text/plain".equals(type)) {
- try {
- openReader(Uri.parse(intent.getStringExtra(Intent.EXTRA_TEXT)));
- } catch (Exception ex) {
- Toast.makeText(this, "url不合法", Toast.LENGTH_SHORT);
- }
- }
- }
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_browser_filter);
-
- openReaderByIntent(getIntent());
-
- finish();
- }
-}
diff --git a/app/src/main/res/layout/activity_browser_filter.xml b/app/src/main/res/layout/activity_browser_filter.xml
deleted file mode 100644
index 4bf59db5..00000000
--- a/app/src/main/res/layout/activity_browser_filter.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
\ No newline at end of file