rename epublib to book,库里面包含umd
This commit is contained in:
1 parent
7059f631ce
commit
c508930d5d
134 files changed
+35
-33
No files matched your search
+1
-1
@@ -197,7 +197,7 @@ dependencies {
|
||||
implementation('org.jsoup:jsoup:1.15.4')
|
||||
implementation('com.jayway.jsonpath:json-path:2.7.0')
|
||||
implementation('cn.wanghaomiao:JsoupXpath:2.5.3')
|
||||
implementation(project(path: ':epublib'))
|
||||
implementation implementation(project(path: ':book'))
|
||||
|
||||
//JS rhino
|
||||
//implementation('com.github.gedoor:rhino-android:1.8')
|
||||
|
||||
File renamed without changes.
@@ -5,7 +5,7 @@ plugins {
|
||||
android {
|
||||
compileSdk = compile_sdk_version
|
||||
buildToolsVersion = build_tool_version
|
||||
namespace 'me.ag2s.epublib'
|
||||
namespace 'me.ag2s'
|
||||
defaultConfig {
|
||||
minSdk 21
|
||||
targetSdk 33
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-2
@@ -1,11 +1,10 @@
|
||||
package me.ag2s.epublib.domain;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Represents one of the authors of the book
|
||||
*
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-1
@@ -1,8 +1,9 @@
|
||||
package me.ag2s.epublib.domain;
|
||||
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
import java.io.Serializable;
|
||||
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
|
||||
|
||||
/**
|
||||
* These are references to elements of the book's guide.
|
||||
+2
-1
@@ -1,10 +1,11 @@
|
||||
package me.ag2s.epublib.domain;
|
||||
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
|
||||
/**
|
||||
* A Book's identifier.
|
||||
*
|
||||
+2
-1
@@ -2,11 +2,12 @@ package me.ag2s.epublib.domain;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import me.ag2s.epublib.util.IOUtil;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import me.ag2s.epublib.util.IOUtil;
|
||||
|
||||
/**
|
||||
* A Resource that loads its data only on-demand from a EPUB book file.
|
||||
* This way larger books can fit into memory and can be opened faster.
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-1
@@ -1,9 +1,10 @@
|
||||
package me.ag2s.epublib.domain;
|
||||
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
|
||||
|
||||
/**
|
||||
* Manages mediatypes that are used by epubs
|
||||
+2
-2
@@ -1,7 +1,5 @@
|
||||
package me.ag2s.epublib.domain;
|
||||
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@@ -10,6 +8,8 @@ import java.util.Map;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
|
||||
/**
|
||||
* A Book's collection of Metadata.
|
||||
* In the future it should contain all Dublin Core attributes, for now
|
||||
File renamed without changes.
+5
-4
@@ -1,15 +1,16 @@
|
||||
package me.ag2s.epublib.domain;
|
||||
|
||||
import me.ag2s.epublib.Constants;
|
||||
import me.ag2s.epublib.util.IOUtil;
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
import me.ag2s.epublib.util.commons.io.XmlStreamReader;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
import java.io.Serializable;
|
||||
|
||||
import me.ag2s.epublib.Constants;
|
||||
import me.ag2s.epublib.util.IOUtil;
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
import me.ag2s.epublib.util.commons.io.XmlStreamReader;
|
||||
|
||||
/**
|
||||
* Represents a resource that is part of the epub.
|
||||
* A resource can be a html file, image, xml, etc.
|
||||
File renamed without changes.
File renamed without changes.
+4
-3
@@ -1,7 +1,6 @@
|
||||
package me.ag2s.epublib.domain;
|
||||
|
||||
import me.ag2s.epublib.Constants;
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
import android.util.Base64;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
@@ -12,7 +11,9 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import android.util.Base64;
|
||||
|
||||
import me.ag2s.epublib.Constants;
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
|
||||
/**
|
||||
* All the resources that make up the book.
|
||||
+2
-1
@@ -1,11 +1,12 @@
|
||||
package me.ag2s.epublib.domain;
|
||||
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import me.ag2s.epublib.util.StringUtil;
|
||||
|
||||
/**
|
||||
* The spine sections are the sections of the book in the order in which the book should be read.
|
||||
*
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+5
-5
@@ -2,7 +2,10 @@ package me.ag2s.epublib.epub;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import me.ag2s.epublib.Constants;
|
||||
import org.xml.sax.EntityResolver;
|
||||
import org.xml.sax.InputSource;
|
||||
import org.xmlpull.v1.XmlPullParserFactory;
|
||||
import org.xmlpull.v1.XmlSerializer;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@@ -17,10 +20,7 @@ import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
|
||||
import org.xml.sax.EntityResolver;
|
||||
import org.xml.sax.InputSource;
|
||||
import org.xmlpull.v1.XmlPullParserFactory;
|
||||
import org.xmlpull.v1.XmlSerializer;
|
||||
import me.ag2s.epublib.Constants;
|
||||
|
||||
/**
|
||||
* Various low-level support methods for reading/writing epubs.
|
||||
File renamed without changes.
File renamed without changes.
+2
-1
@@ -1,7 +1,8 @@
|
||||
package me.ag2s.epublib.epub;
|
||||
|
||||
import me.ag2s.epublib.domain.Resource;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import me.ag2s.epublib.domain.Resource;
|
||||
@SuppressWarnings("unused")
|
||||
public interface HtmlProcessor {
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
-3
@@ -1,7 +1,5 @@
|
||||
package me.ag2s.epublib.util;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.Closeable;
|
||||
import java.io.EOFException;
|
||||
@@ -20,7 +18,6 @@ import java.nio.CharBuffer;
|
||||
import java.nio.channels.ReadableByteChannel;
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
import me.ag2s.epublib.epub.PackageDocumentReader;
|
||||
import me.ag2s.epublib.util.commons.io.IOConsumer;
|
||||
|
||||
/**
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-2
@@ -17,6 +17,7 @@
|
||||
package me.ag2s.epublib.util.commons.io;
|
||||
|
||||
|
||||
import static me.ag2s.epublib.util.IOUtil.EOF;
|
||||
|
||||
import android.os.Build;
|
||||
|
||||
@@ -28,8 +29,6 @@ import java.util.List;
|
||||
|
||||
import me.ag2s.epublib.util.IOUtil;
|
||||
|
||||
import static me.ag2s.epublib.util.IOUtil.EOF;
|
||||
|
||||
|
||||
/**
|
||||
* This class is used to wrap a stream that includes an encoded {@link ByteOrderMark} as its first bytes.
|
||||
File renamed without changes.
File renamed without changes.
+2
-2
@@ -18,14 +18,14 @@ package me.ag2s.epublib.util.commons.io;
|
||||
*/
|
||||
|
||||
|
||||
import static me.ag2s.epublib.util.IOUtil.EOF;
|
||||
|
||||
import java.io.FilterInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import me.ag2s.epublib.util.IOUtil;
|
||||
|
||||
import static me.ag2s.epublib.util.IOUtil.EOF;
|
||||
|
||||
|
||||
/**
|
||||
* A Proxy stream which acts as expected, that is it passes the method
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
-1
@@ -6,7 +6,6 @@ import androidx.annotation.NonNull;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
|
||||
import me.ag2s.umdlib.domain.UmdBook;
|
||||
import me.ag2s.umdlib.domain.UmdCover;
|
||||
import me.ag2s.umdlib.domain.UmdHeader;
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 134 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user