mirror of
https://github.com/seven332/EhViewer
synced 2026-11-27 17:48:06 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
005f05cf9b | ||
|
|
65dc30aac7 | ||
|
|
e96ebf6113 | ||
|
|
a5ba4771d2 | ||
|
|
034aea691c | ||
|
|
282d4ed402 | ||
|
|
1992dfa28f | ||
|
|
8566f4534b | ||
|
|
e26cb475e0 | ||
|
|
78ab1e4292 | ||
|
|
7a98ae266d | ||
|
|
10981f4f8d | ||
|
|
5bc5b23432 | ||
|
|
437617c49d | ||
|
|
e04f8f96c4 | ||
|
|
7f77eb52a5 |
No files matched your search
@@ -1,5 +0,0 @@
|
||||
.gradle
|
||||
.idea
|
||||
build
|
||||
out
|
||||
*.iml
|
||||
@@ -1,27 +0,0 @@
|
||||
# EhViewer Evelin
|
||||
|
||||
EhViewer 2.0 Evelin 是一个支持插件的跨平台图片资源浏览器,其中漫画为主要对象。
|
||||
|
||||
本项目基于 [Kotlin](https://kotlinlang.org/) 的 [Multiplatform Projects](https://kotlinlang.org/docs/reference/multiplatform.html) 来实现跨平台。
|
||||
|
||||

|
||||
|
||||
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.
|
Before Width: | Height: | Size: 41 KiB |
@@ -1 +0,0 @@
|
||||
<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/y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jButsp8njNvsZgveQa8cmTeREDdl0MA3Dl8gVU7O+BCpI3R82zOYrsLDdUHHvYvMVtz0acxTEeJmw05BhhBh9lmGDwyCe8oE1jqLsNlqwRXZ0gLcc79kq3LYGbtgJ3GpXw83DLYVKZvFuKqMwWpb/uVXQgftz0L2rga6GOG8CdNmQl1bbCOhqyPQmQPekvnXbc8yBDtRw7E2A7vYKelNwd6toq92pBj0oUF9PX9ZS5535os8Timadf/ZUikw931ASzReRAVC7fkOS0ABrSlK3K9eeI8m1xl9eT64vLPhqE2DjkcHGiFKKRKm2+pNqNdgWClA1rN1/d9m37LNMlj9wsZyyGTHKXsiLUbk2lZdTNMs8MeX5sD3hmq0C4OagriJ2minVGX397FZ1T3LgllGXovtwfjhywjNF71JSfRdYiommZHg9MbnwW66Lm/lbWmFXZ4U7/wi4PWy6AsNwtOtUxXtXrizckesIRpWrucmnzpOy/6NdS8PN8MaXQ1NN+asj3rDT6h/75AXF6r8nWff/Aw==</diagram></mxfile>
|
||||
Whitespace-only changes.
Vendored
BIN
Binary file not shown.
-5
@@ -1,5 +0,0 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
|
||||
@@ -1,172 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >/dev/null
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS=""
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
NONSTOP* )
|
||||
nonstop=true
|
||||
;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=$((i+1))
|
||||
done
|
||||
case $i in
|
||||
(0) set -- ;;
|
||||
(1) set -- "$args0" ;;
|
||||
(2) set -- "$args0" "$args1" ;;
|
||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Escape application args
|
||||
save () {
|
||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||
echo " "
|
||||
}
|
||||
APP_ARGS=$(save "$@")
|
||||
|
||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||
|
||||
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
|
||||
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
|
||||
cd "$(dirname "$0")"
|
||||
fi
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
Vendored
-84
@@ -1,84 +0,0 @@
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS=
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:init
|
||||
@rem Get command-line arguments, handling Windows variants
|
||||
|
||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||
|
||||
:win9xME_args
|
||||
@rem Slurp the command line arguments.
|
||||
set CMD_LINE_ARGS=
|
||||
set _SKIP=2
|
||||
|
||||
:win9xME_args_slurp
|
||||
if "x%~1" == "x" goto execute
|
||||
|
||||
set CMD_LINE_ARGS=%*
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
Whitespace-only changes.
@@ -0,0 +1 @@
|
||||
{"info": "* \u4eca\u56de\u306f\u3053\u3053\u307e\u3067<br>* \u6dfb\u52a0\u9884\u8bbe\u4e0b\u8f7d\u8def\u5f84", "size": 5792700, "url": "https://github.com/seven332/EhViewer/releases/tag/1.7.3", "version_code": 104, "version_name": "1.7.3"}
|
||||
@@ -0,0 +1 @@
|
||||
{"info": "* \u4eca\u56de\u306f\u3053\u3053\u307e\u3067<br>* \u6dfb\u52a0\u9884\u8bbe\u4e0b\u8f7d\u8def\u5f84", "size": 5792700, "url": "https://github.com/seven332/EhViewer/releases/tag/1.7.3", "version_code": 104, "version_name": "1.7.3"}
|
||||
Reference in new issue
Block a user