Compare commits

..
5 Commits
Author SHA1 Message Date
seven332 9ad1f142bb Update readme 2018-02-26 13:43:03 +08:00
seven332 7eb00dec7b Update architecture 2018-02-23 16:26:47 +08:00
seven332 038368648a Rename "Virtual Plugins" to "Virtual Source Plugins" 2018-02-21 01:13:02 +08:00
seven332 7da11853a6 Add README 2018-02-20 23:05:40 +08:00
seven332 4cafe8d8a4 Init 2018-02-20 18:55:44 +08:00
449 changed files with 294 additions and 30474 deletions

No files matched your search

-9
View File
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
+5
View File
@@ -0,0 +1,5 @@
.gradle
.idea
build
out
*.iml
-33
View File
@@ -1,33 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>EhViewer</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
-4
View File
@@ -1,4 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.source=1.6
-100
View File
@@ -1,100 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hippo.ehviewer"
android:versionCode="12"
android:versionName="0.4.2" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:name=".AppContext"
android:allowBackup="true"
android:largeHeap="false"
android:hardwareAccelerated="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".StartActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar.Transparent"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activity.MangaListActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>
<activity
android:name=".activity.MangaDetailActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|adjustUnspecified|stateHidden"
android:configChanges="orientation|screenSize" >
</activity>
<activity
android:name=".activity.MangaActivity"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
</activity>
<activity
android:name=".activity.SettingsActivity"
android:label="@string/preference_settings_title"
android:icon="@drawable/ic_action_settings"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
</activity>
<activity
android:name=".activity.FavouriteActivity"
android:label="@string/favourite"
android:icon="@drawable/ic_action_favourite"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
</activity>
<activity
android:name=".activity.DownloadActivity"
android:label="@string/download"
android:icon="@drawable/ic_action_download"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize"
android:launchMode="singleTask" >
</activity>
<activity
android:name=".activity.MangaDownloadActivity"
android:label="@string/download"
android:icon="@drawable/ic_action_download"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
</activity>
<service
android:name=".service.DownloadService"
android:label="DownloadService" />
</application>
</manifest>
+27
View File
@@ -0,0 +1,27 @@
# EhViewer Evelin
EhViewer 2.0 Evelin 是一个支持插件的跨平台图片资源浏览器,其中漫画为主要对象。
本项目基于 [Kotlin](https://kotlinlang.org/) 的 [Multiplatform Projects](https://kotlinlang.org/docs/reference/multiplatform.html) 来实现跨平台。
![architecture](./art/architecture.png)
Core 是 Multiplatform Projects 中的 common 模块。代码上完全用 Kotlin 来写。其主要目的是提供一套 API 接口供 Plugins 使用。同时也实现与平台无关的业务逻辑。
Core JS,Core JVM,Core Swift 是 Multiplatform Projects 中的 platform 模块。代码上要用 Kotlin 来写,也可使用其他语言,并且可以随意添加依赖。其主要目的是完善 Core 中未实现的业务逻辑。
Client 是 Multiplatform Projects 中的 regular 模块。代码上可以使用任意语言。其主要目的是提供用户界面,并将用户界面与业务逻辑相结合。
API 是 Plugins 使用的接口,由 Core 导出。每个平台的接口都是相同的。
SDK 是 Plugins 的编译环境,分别由 Core JS,Core JVM,Core Swift 导出。每个平台有不同的编译环境。
Test 是 Plugins 的测试环境。每个平台有不同的测试环境。其主要目的是方便开发者测试 Plugins。
Plugins 即插件。Plugins 应针对不同平台分别编译。若 Plugins 只使用了 Kotlin 与 API 接口的话,则在代码上是可以在不同平台上重用的。同时 Plugins 也可以使用与平台相关的代码,单独针对某个平台开发,以提供更好的功能。
Dependency Plugins 是用于提供其他 Plugins 运行环境的 Plugins。该种 Plugins 可能不需要由 Core 导出的 API,反而可由自身导出 API 供其他 Plugins 使用。其主要目的是减小应用与 Plugins 的大小,减少冗余,方便开发。
Source Plugins 是提供图片源的 Plugins。
Collection Plugins 为提供图片源的源的 Plugins,可理解为多个虚拟插件的集合。被管理的插件为 Virtual Source Plugins。每个 Collection Plugins 都提供了一个新的独立的插件系统,相当于一个 Collection Plugins 可充当多个 Source Plugins。值得注意的是 Collection Plugins 中的 Virtual Source Plugins 并没有特定的语言要求,所以可以使用脚本语言以解决跨平台问题。
Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

+1
View File
@@ -0,0 +1 @@
<mxfile userAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36" version="8.3.1" editor="www.draw.io" type="device"><diagram id="6afb9059-c570-4f71-6211-6ae69ab91452" name="Page-1">7Vxbc6M2FP41ftyOJa5+tJ10u213mhl39vJIQLHVxcjFcmz311cYcdEFLxNjQZzkxXAkBPrOlXMOGVnz9eFjGmxWn0mE4hEcR4eRdTeCEIyhzX4yyjGn2PYkJyxTHPFJFWGB/0PFlZy6wxHaChMpITHFG5EYkiRBIRVoQZqSvTjticTiXTfBEimERRjEKvUrjugqp/rQq+i/IbxcFXcGLt/fYxD+WKZkl/D7jaD1dPrLh9dBsRbf6HYVRGRfI1n3I2ueEkLzo/VhjuIM2wK2/LpfG0bL505RQttcMPHzK56DeIeKRz49GD0WYJy2g7ILxiNrtl9hihabIMxG94z9jLai65idAXb4hON4TmKSsvOEJGzSTH0m/pjPKKXoUCPxZ/yIyBrR9Mim8FHb53hxeXLG/HxfcccuMF3VOAOLiQGXiGW5doUKO+DA6EHy3WGDxEGBExUUqAMF+B2AMpkoGKCIKRE/5dsSYalBgA6YfsvIvzj87HsxkrAnqQ1lp9/5Av8gSo/cXAQ7ShiJpHRFliQJ4j8J2fA1GtHckl0aokKduWUJ0iWioj5kWzmLeYrigOJn0V7o8DxdOk3T4FibsCE4odvayg8ZoZJ31xLl3fYkNZbnT87OZwf5E1ScLbfSTgPgsDWAjzpQhMECbTXC7kIj7Is0olPZ9iaqbPudy3ZrZJzLbEUHFqHZ3rwcT3cQtsLyRKGHP7EVAJydf7G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HKXsiLUbk2lZdTNMs8MeX5sD3hmq0C4OagriJ2minVGX397FZ1T3LgllGXovtwfjhywjNF71JSfRdYiommZHg9MbnwW66Lm/lbWmFXZ4U7/wi4PWy6AsNwtOtUxXtXrizckesIRpWrucmnzpOy/6NdS8PN8MaXQ1NN+asj3rDT6h/75AXF6r8nWff/Aw==</diagram></mxfile>
-100
View File
@@ -1,100 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hippo.ehviewer"
android:versionCode="12"
android:versionName="0.4.2" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:name=".AppContext"
android:allowBackup="true"
android:largeHeap="false"
android:hardwareAccelerated="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".StartActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar.Transparent"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activity.MangaListActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>
<activity
android:name=".activity.MangaDetailActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|adjustUnspecified|stateHidden"
android:configChanges="orientation|screenSize" >
</activity>
<activity
android:name=".activity.MangaActivity"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
</activity>
<activity
android:name=".activity.SettingsActivity"
android:label="@string/preference_settings_title"
android:icon="@drawable/ic_action_settings"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
</activity>
<activity
android:name=".activity.FavouriteActivity"
android:label="@string/favourite"
android:icon="@drawable/ic_action_favourite"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
</activity>
<activity
android:name=".activity.DownloadActivity"
android:label="@string/download"
android:icon="@drawable/ic_action_download"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize"
android:launchMode="singleTask" >
</activity>
<activity
android:name=".activity.MangaDownloadActivity"
android:label="@string/download"
android:icon="@drawable/ic_action_download"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
</activity>
<service
android:name=".service.DownloadService"
android:label="DownloadService" />
</application>
</manifest>
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
-2
View File
@@ -1,2 +0,0 @@
/com
/.gitignore
-3
View File
@@ -1,3 +0,0 @@
# cache for current jar dependency. DO NOT EDIT.
# format is <lastModified> <length> <SHA-1> <path>
# Encoding is UTF-8
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 726 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 980 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 565 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 546 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1019 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 801 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 907 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 887 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Loaded 100 of 449 files, more files were not shown because too many files have changed in this diff. Show more