[
  {
    "path": ".gitignore",
    "content": "\n# Created by https://www.gitignore.io/api/macos,android,androidstudio\n# Edit at https://www.gitignore.io/?templates=macos,android,androidstudio\n\n### Android ###\n# Built application files\n*.apk\n*.ap_\n*.aab\n\n# Files for the ART/Dalvik VM\n*.dex\n\n# Java class files\n*.class\n\n# Generated files\nbin/\ngen/\nout/\n\n# Gradle files\n.gradle/\nbuild/\n\n# Local configuration file (sdk path, etc)\nlocal.properties\n\n# Proguard folder generated by Eclipse\nproguard/\n\n# Log Files\n*.log\n\n# Android Studio Navigation editor temp files\n.navigation/\n\n# Android Studio captures folder\ncaptures/\n\n# IntelliJ\n*.iml\n.idea/workspace.xml\n.idea/tasks.xml\n.idea/gradle.xml\n.idea/assetWizardSettings.xml\n.idea/dictionaries\n.idea/libraries\n.idea/caches\n# Android Studio 3 in .gitignore file.\n.idea/caches/build_file_checksums.ser\n.idea/modules.xml\n\n# Keystore files\n# Uncomment the following lines if you do not want to check your keystore files in.\n#*.jks\n#*.keystore\n\n# External native build folder generated in Android Studio 2.2 and later\n.externalNativeBuild\n\n# Google Services (e.g. APIs or Firebase)\n# google-services.json\n\n# Freeline\nfreeline.py\nfreeline/\nfreeline_project_description.json\n\n# fastlane\nfastlane/report.xml\nfastlane/Preview.html\nfastlane/screenshots\nfastlane/test_output\nfastlane/readme.md\n\n# Version control\nvcs.xml\n\n# lint\nlint/intermediates/\nlint/generated/\nlint/outputs/\nlint/tmp/\n# lint/reports/\n\n### Android Patch ###\ngen-external-apklibs\noutput.json\n\n### AndroidStudio ###\n# Covers files to be ignored for android development using Android Studio.\n\n# Built application files\n\n# Files for the ART/Dalvik VM\n\n# Java class files\n\n# Generated files\n\n# Gradle files\n.gradle\n\n# Signing files\n.signing/\n\n# Local configuration file (sdk path, etc)\n\n# Proguard folder generated by Eclipse\n\n# Log Files\n\n# Android Studio\n/*/build/\n/*/local.properties\n/*/out\n/*/*/build\n/*/*/production\n*.ipr\n*~\n*.swp\n\n# Android Patch\n\n# External native build folder generated in Android Studio 2.2 and later\n\n# NDK\nobj/\n\n# IntelliJ IDEA\n*.iws\n/out/\n\n# User-specific configurations\n.idea/caches/\n.idea/libraries/\n.idea/shelf/\n.idea/.name\n.idea/compiler.xml\n.idea/copyright/profiles_settings.xml\n.idea/encodings.xml\n.idea/misc.xml\n.idea/scopes/scope_settings.xml\n.idea/vcs.xml\n.idea/jsLibraryMappings.xml\n.idea/datasources.xml\n.idea/dataSources.ids\n.idea/sqlDataSources.xml\n.idea/dynamic.xml\n.idea/uiDesigner.xml\n\n# OS-specific files\n.DS_Store\n.DS_Store?\n._*\n.Spotlight-V100\n.Trashes\nehthumbs.db\nThumbs.db\n\n# Legacy Eclipse project files\n.classpath\n.project\n.cproject\n.settings/\n\n# Mobile Tools for Java (J2ME)\n.mtj.tmp/\n\n# Package Files #\n*.war\n*.ear\n\n# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)\nhs_err_pid*\n\n## Plugin-specific files:\n\n# mpeltonen/sbt-idea plugin\n.idea_modules/\n\n# JIRA plugin\natlassian-ide-plugin.xml\n\n# Mongo Explorer plugin\n.idea/mongoSettings.xml\n\n# Crashlytics plugin (for Android Studio and IntelliJ)\ncom_crashlytics_export_strings.xml\ncrashlytics.properties\ncrashlytics-build.properties\nfabric.properties\n\n### AndroidStudio Patch ###\n\n!/gradle/wrapper/gradle-wrapper.jar\n\n### macOS ###\n# General\n.AppleDouble\n.LSOverride\n\n# Icon must end with two \\r\nIcon\r\n\n# Thumbnails\n\n# Files that might appear in the root of a volume\n.DocumentRevisions-V100\n.fseventsd\n.TemporaryItems\n.VolumeIcon.icns\n.com.apple.timemachine.donotpresent\n\n# Directories potentially created on remote AFP share\n.AppleDB\n.AppleDesktop\nNetwork Trash Folder\nTemporary Items\n.apdisk\n\n# End of https://www.gitignore.io/api/macos,android,androidstudio\n"
  },
  {
    "path": ".idea/codeStyles/Project.xml",
    "content": "<component name=\"ProjectCodeStyleConfiguration\">\n  <code_scheme name=\"Project\" version=\"173\">\n    <codeStyleSettings language=\"XML\">\n      <indentOptions>\n        <option name=\"CONTINUATION_INDENT_SIZE\" value=\"4\" />\n      </indentOptions>\n      <arrangement>\n        <rules>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>xmlns:android</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>^$</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>xmlns:.*</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>^$</XML_NAMESPACE>\n                </AND>\n              </match>\n              <order>BY_NAME</order>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*:id</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*:name</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>name</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>^$</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>style</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>^$</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>^$</XML_NAMESPACE>\n                </AND>\n              </match>\n              <order>BY_NAME</order>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n              <order>ANDROID_ATTRIBUTE_ORDER</order>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>.*</XML_NAMESPACE>\n                </AND>\n              </match>\n              <order>BY_NAME</order>\n            </rule>\n          </section>\n        </rules>\n      </arrangement>\n    </codeStyleSettings>\n  </code_scheme>\n</component>"
  },
  {
    "path": ".idea/markdown-navigator.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"MarkdownProjectSettings\" wasCopied=\"false\">\n    <PreviewSettings splitEditorLayout=\"SPLIT\" splitEditorPreview=\"PREVIEW\" useGrayscaleRendering=\"false\" zoomFactor=\"1.0\" maxImageWidth=\"0\" showGitHubPageIfSynced=\"false\" allowBrowsingInPreview=\"false\" synchronizePreviewPosition=\"true\" highlightPreviewType=\"NONE\" highlightFadeOut=\"5\" highlightOnTyping=\"true\" synchronizeSourcePosition=\"true\" verticallyAlignSourceAndPreviewSyncPosition=\"true\" showSearchHighlightsInPreview=\"false\" showSelectionInPreview=\"true\" openRemoteLinks=\"true\" replaceUnicodeEmoji=\"false\" lastLayoutSetsDefault=\"false\">\n      <PanelProvider>\n        <provider providerId=\"com.vladsch.idea.multimarkdown.editor.swing.html.panel\" providerName=\"Default - Swing\" />\n      </PanelProvider>\n    </PreviewSettings>\n    <ParserSettings gitHubSyntaxChange=\"false\" emojiShortcuts=\"1\" emojiImages=\"0\">\n      <PegdownExtensions>\n        <option name=\"ABBREVIATIONS\" value=\"false\" />\n        <option name=\"ANCHORLINKS\" value=\"true\" />\n        <option name=\"ASIDE\" value=\"false\" />\n        <option name=\"ATXHEADERSPACE\" value=\"true\" />\n        <option name=\"AUTOLINKS\" value=\"true\" />\n        <option name=\"DEFINITIONS\" value=\"false\" />\n        <option name=\"DEFINITION_BREAK_DOUBLE_BLANK_LINE\" value=\"false\" />\n        <option name=\"FENCED_CODE_BLOCKS\" value=\"true\" />\n        <option name=\"FOOTNOTES\" value=\"false\" />\n        <option name=\"HARDWRAPS\" value=\"false\" />\n        <option name=\"HTML_DEEP_PARSER\" value=\"false\" />\n        <option name=\"INSERTED\" value=\"false\" />\n        <option name=\"QUOTES\" value=\"false\" />\n        <option name=\"RELAXEDHRULES\" value=\"true\" />\n        <option name=\"SMARTS\" value=\"false\" />\n        <option name=\"STRIKETHROUGH\" value=\"true\" />\n        <option name=\"SUBSCRIPT\" value=\"false\" />\n        <option name=\"SUPERSCRIPT\" value=\"false\" />\n        <option name=\"SUPPRESS_HTML_BLOCKS\" value=\"false\" />\n        <option name=\"SUPPRESS_INLINE_HTML\" value=\"false\" />\n        <option name=\"TABLES\" value=\"true\" />\n        <option name=\"TASKLISTITEMS\" value=\"true\" />\n        <option name=\"TOC\" value=\"false\" />\n        <option name=\"WIKILINKS\" value=\"false\" />\n      </PegdownExtensions>\n      <ParserOptions>\n        <option name=\"ADMONITION_EXT\" value=\"false\" />\n        <option name=\"ATTRIBUTES_EXT\" value=\"false\" />\n        <option name=\"COMMONMARK_LISTS\" value=\"true\" />\n        <option name=\"DUMMY\" value=\"false\" />\n        <option name=\"EMOJI_SHORTCUTS\" value=\"true\" />\n        <option name=\"ENUMERATED_REFERENCES_EXT\" value=\"false\" />\n        <option name=\"FLEXMARK_FRONT_MATTER\" value=\"false\" />\n        <option name=\"GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA\" value=\"false\" />\n        <option name=\"GFM_TABLE_RENDERING\" value=\"true\" />\n        <option name=\"GITBOOK_URL_ENCODING\" value=\"false\" />\n        <option name=\"GITHUB_LISTS\" value=\"false\" />\n        <option name=\"GITHUB_WIKI_LINKS\" value=\"false\" />\n        <option name=\"GITLAB_EXT\" value=\"false\" />\n        <option name=\"GITLAB_MATH_EXT\" value=\"false\" />\n        <option name=\"GITLAB_MERMAID_EXT\" value=\"false\" />\n        <option name=\"HEADER_ID_NON_ASCII_TO_LOWERCASE\" value=\"false\" />\n        <option name=\"HEADER_ID_NO_DUPED_DASHES\" value=\"false\" />\n        <option name=\"JEKYLL_FRONT_MATTER\" value=\"false\" />\n        <option name=\"MACROS_EXT\" value=\"false\" />\n        <option name=\"NO_TEXT_ATTRIBUTES\" value=\"false\" />\n        <option name=\"PARSE_HTML_ANCHOR_ID\" value=\"false\" />\n        <option name=\"SIM_TOC_BLANK_LINE_SPACER\" value=\"true\" />\n      </ParserOptions>\n    </ParserSettings>\n    <HtmlSettings headerTopEnabled=\"false\" headerBottomEnabled=\"false\" bodyTopEnabled=\"false\" bodyBottomEnabled=\"false\" embedUrlContent=\"false\" addPageHeader=\"true\" embedImages=\"false\" embedHttpImages=\"false\" imageUriSerials=\"false\" addDocTypeHtml=\"true\" noParaTags=\"false\">\n      <GeneratorProvider>\n        <provider providerId=\"com.vladsch.idea.multimarkdown.editor.swing.html.generator\" providerName=\"Default Swing HTML Generator\" />\n      </GeneratorProvider>\n      <headerTop />\n      <headerBottom />\n      <bodyTop />\n      <bodyBottom />\n    </HtmlSettings>\n    <CssSettings previewScheme=\"UI_SCHEME\" cssUri=\"\" isCssUriEnabled=\"false\" isCssUriSerial=\"true\" isCssTextEnabled=\"false\" isDynamicPageWidth=\"true\">\n      <StylesheetProvider>\n        <provider providerId=\"com.vladsch.idea.multimarkdown.editor.swing.html.css\" providerName=\"Default Swing Stylesheet\" />\n      </StylesheetProvider>\n      <ScriptProviders />\n      <cssText />\n      <cssUriHistory />\n    </CssSettings>\n    <HtmlExportSettings updateOnSave=\"false\" parentDir=\"\" targetDir=\"\" cssDir=\"\" scriptDir=\"\" plainHtml=\"false\" imageDir=\"\" copyLinkedImages=\"false\" imageUniquifyType=\"0\" targetPathType=\"2\" targetExt=\"\" useTargetExt=\"false\" noCssNoScripts=\"false\" useElementStyleAttribute=\"false\" linkToExportedHtml=\"true\" exportOnSettingsChange=\"true\" regenerateOnProjectOpen=\"false\" linkFormatType=\"HTTP_ABSOLUTE\" />\n    <LinkMapSettings>\n      <textMaps />\n    </LinkMapSettings>\n  </component>\n</project>"
  },
  {
    "path": ".idea/runConfigurations.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"RunConfigurationProducerService\">\n    <option name=\"ignoredProducers\">\n      <set>\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer\" />\n      </set>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "README.md",
    "content": "## 阅读助手\n这是一个全新的版本，如果需要旧版请参考 `old` 分支。"
  },
  {
    "path": "app/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "app/build.gradle",
    "content": "apply plugin: 'com.android.application'\n\nandroid {\n    compileSdkVersion 29\n    defaultConfig {\n        applicationId \"cc.zsakvo.yueduassistant\"\n        minSdkVersion 22\n        targetSdkVersion 29\n        versionCode 1\n        versionName \"1.0\"\n        testInstrumentationRunner \"androidx.test.runner.AndroidJUnitRunner\"\n    }\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'\n        }\n    }\n    compileOptions {\n        sourceCompatibility = '1.8'\n        targetCompatibility = '1.8'\n    }\n}\n\ndependencies {\n    implementation fileTree(dir: 'libs', include: ['*.jar'])\n    implementation 'androidx.appcompat:appcompat:1.1.0-rc01'\n    implementation 'com.google.android.material:material:1.0.0'\n\n    //Zip\n    implementation 'org.zeroturnaround:zt-zip:1.8'\n\n    //Fastjson\n    implementation 'com.alibaba:fastjson:1.1.70.android'\n\n    //AndPermission\n    implementation 'com.yanzhenjie.permission:x:2.0.1'\n\n    //Logger\n    implementation 'com.orhanobut:logger:2.2.0'\n\n    //BRVAH\n    implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.45-androidx'\n\n    //RxJava\n    implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'\n    implementation 'io.reactivex.rxjava2:rxjava:2.2.6'\n\n    //MaterialPreference\n    implementation 'moe.shizuku.preference:preference:3.0.0'\n    implementation 'moe.shizuku.preference:preference-simplemenu:3.0.0'\n\n    //fab\n    implementation \"com.leinardi.android:speed-dial:2.0.1\"\n\n    //fastscroll\n    implementation 'com.simplecityapps:recyclerview-fastscroll:2.0.0'\n\n    //searchbar\n    implementation 'com.lapism:searchview:28.0.0'\n\n    //litepal\n    implementation 'org.litepal.android:java:3.0.0'\n\n    //preference\n    implementation 'androidx.preference:preference:1.1.0-rc01'\n\n    //Jsoup\n    implementation 'org.jsoup:jsoup:1.12.1'\n\n    //Glide\n    implementation 'com.github.bumptech.glide:glide:4.9.0'\n    annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'\n\n    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'\n    testImplementation 'junit:junit:4.12'\n    androidTestImplementation 'androidx.test:runner:1.3.0-alpha02'\n    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-alpha02'\n}\n"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile\n"
  },
  {
    "path": "app/src/androidTest/java/cc/zsakvo/yueduassistant/ExampleInstrumentedTest.java",
    "content": "package cc.zsakvo.yueduassistant;\n\nimport android.content.Context;\n\nimport androidx.test.InstrumentationRegistry;\nimport androidx.test.runner.AndroidJUnit4;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\nimport static org.junit.Assert.*;\n\n/**\n * Instrumented test, which will execute on an Android device.\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\n@RunWith(AndroidJUnit4.class)\npublic class ExampleInstrumentedTest {\n    @Test\n    public void useAppContext() {\n        // Context of the app under test.\n        Context appContext = InstrumentationRegistry.getTargetContext();\n\n        assertEquals(\"cc.zsakvo.yueduassistant\", appContext.getPackageName());\n    }\n}\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    package=\"cc.zsakvo.yueduassistant\">\n\n    <uses-permission android:name=\"android.permission.INTERNET\"/>\n\n    <application\n        android:name=\"cc.zsakvo.yueduassistant.MyApplication\"\n        android:allowBackup=\"false\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:roundIcon=\"@mipmap/ic_launcher_round\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/AppTheme\"\n        android:usesCleartextTraffic=\"true\"\n        tools:ignore=\"GoogleAppIndexingWarning\">\n        <activity\n            android:name=\".view.BookDetailActivity\"\n            android:windowSoftInputMode=\"stateHidden|stateUnchanged\" />\n        <activity android:name=\".view.MainActivity\">\n\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n        <activity android:name=\".view.SettingsActivity\" />\n        <activity android:name=\".view.AboutActivity\" />\n    </application>\n    <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />\n\n    <uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" />\n\n</manifest>"
  },
  {
    "path": "app/src/main/assets/epub/META-INF/container.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<container version=\"1.0\" xmlns=\"urn:oasis:names:tc:opendocument:xmlns:container\">\n    <rootfiles>\n<rootfile full-path=\"OEBPS/content.opf\" media-type=\"application/oebps-package+xml\"/>    </rootfiles>\n</container>\n"
  },
  {
    "path": "app/src/main/assets/epub/OEBPS/Styles/style0001.css",
    "content": "div.sgc-toc-title {\r\n    font-size: 2em;\r\n    font-weight: bold;\r\n    margin-bottom: 1em;\r\n    text-align: center;\r\n}\r\n\r\ndiv.sgc-toc-level-1 {\r\n    margin-left: 0em;\r\n}\r\n\r\ndiv.sgc-toc-level-2 {\r\n    margin-left: 2em;\r\n}\r\n\r\ndiv.sgc-toc-level-3 {\r\n    margin-left: 2em;\r\n}\r\n\r\ndiv.sgc-toc-level-4 {\r\n    margin-left: 2em;\r\n}\r\n\r\ndiv.sgc-toc-level-5 {\r\n    margin-left: 2em;\r\n}\r\n\r\ndiv.sgc-toc-level-6 {\r\n    margin-left: 2em;\r\n}\r\n"
  },
  {
    "path": "app/src/main/assets/epub/OEBPS/Styles/style0002.css",
    "content": "/* Kindle font */\r\n/* Kindle 内嵌字体 */\r\n.CN_Kindle_Hei{ font-family:\"MYing Hei S\", Hei;}\r\n.CN_Kindle_Kai{ font-family:STKai, \"MKai PRC\", Kai;}\r\n.CN_Kindle_Song{font-family:STSong, \"Song S\", Song;}\r\n\r\n/* Kindle font color */\r\n/* Kindle 字体颜色  */\r\n.CN_Kindle_blue{ color:#0000CC;}\r\n.CN_Kindle_red{ color:red;}\r\n.CN_Kindle_orange{ color:#E66C2C;}\r\n.CN_Kindle_grey{ color:grey;}\r\n.CN_Kindle_white{ color:white;}\r\n\r\n/* Global setting */\r\n/* 全局设定 */\r\nbody {\r\n\tfont-size: 1em;\r\n\ttext-align: justify;\r\n\tline-height: 1.618em;\r\n    font-family:STSong, \"Song S\", Song;\r\n}\r\n\r\n/* Recommended Text indent */\r\n/* 全文首行缩进2各个中文字符 */\r\np {\r\n\ttext-indent: 2em;\r\n}\r\n\r\n/* Recommended main heading style */\r\n/* 主标题的样式 */\r\nh1.kindle-cn-main-heading {\r\n\tpadding: 2em 0 0.75em 0;\r\n\twidth: 100%;\r\n\tpage-break-before: always;\r\n\tfont-size: 2em;\r\n    text-align: center;\r\n    font-weight: bold;\r\n\tfont-family:\"MYing Hei S\", Hei;\r\n}\r\n\r\n/* Recommended subheading style */\r\n/* 副标题的样式 */\r\n.kindle-cn-subheading {\r\n\tpadding: 0em 0 0.75em 0;\r\n\twidth: 100%;\r\n\tfont-size: 1em;\r\n    text-align: center;\r\n    font-weight: bold;\r\n}\r\n\r\n/* 版权信息页标题 */\r\n/* Copyright page title */\r\nh1.kindle-cn-copyright-title {\r\n\tpage-break-before: always;\r\n\tfont-size: 1.2em; \r\n\ttext-align: center; \r\n\tborder-width: 1.5px;\r\n\tmargin:0.5em 0em 0.5em 0em;\r\n\tborder-style: none none solid none;\r\n\tfont-family:\"MYing Hei S\", Hei;\r\n}\r\n\r\n/* 版权信息页正文 */\r\n/* Copyright page text */\r\np.kindle-cn-copyright-text {\r\n\tline-height: 1.618em;\r\n\ttext-indent: 0em;\r\n}\r\n\r\n/* Recommended heading level 1 style */\r\n/* 一级标题的样式 */\r\nh1.kindle-cn-heading-1 {\r\n\tborder-bottom: 2px dashed #5e5a59;\r\n\tborder-top: 2px dashed #5e5a59;\r\n\tpadding: 0.75em 0 0.75em 0;\r\n\twidth: 100%;\r\n\tpage-break-before: always;\r\n\tfont-size: 1.5em;\r\n\tfont-family:\"MYing Hei S\", Hei;\r\n}\r\n\r\n/* Recommended heading level 2 style */\r\n/* 二级标题的样式 */\r\nh2.kindle-cn-heading-2 {\r\n\tfont-size: 1.25em;\r\n\tfont-family:\"MYing Hei S\", Hei;\r\n}\r\n\r\n/* Recommended heading level 3 style */\r\n/* 三级标题的样式 */\r\nh3.kindle-cn-heading-3 {\r\n\tfont-size: 1.1em;\r\n\tfont-family:\"MYing Hei S\", Hei;\r\n}\r\n\r\n/* Heading bottom border  */\r\n/* 标题底部边框 */\r\n.kindle-cn-bottom-border-heading{\r\n\tborder-bottom: 2px dashed grey;\r\n\tmargin-bottom: -0em;\r\n\twidth: 100%;\r\n}\r\n\r\n/* Page header  */\r\n/* 页眉 */\r\n.kindle-cn-page-header-outer{\r\n\tborder-bottom: 1px solid #E66C2C;\r\n    margin-bottom: 0em;\r\n    width: 100%;\r\n}\r\nh1.kindle-cn-page-header-inner{\r\n    padding:0.4em;\r\n    margin:0;\r\n\twidth: 100%;\r\n    color: white;\r\n    background-color:#E66C2C;\r\n    display: inline;\r\n\tfont-size:0.8em;\r\n}\r\n\r\n/* Tip box */\r\n/* 提示框 */\r\ndiv.kindle-cn-tip-box {\r\n\t/*border:0.1em solid #e66c2c;*/\r\n\tpadding:1em 1em 1em 1em; \r\n\t/*border-radius:0.5em;*/\r\n\tmargin: 1em 0 1em 0em;\r\n\tbackground-color: #D9D8D8;\r\n\t/*display: inline;*/\r\n\tfont-family:STKai, \"MKai PRC\", Kai;\r\n    line-height:1.5em;\r\n}\r\n\r\n/* Quote */\r\n/* 引用框 */\r\nblockquote.kindle-cn-blockquote {\r\n  \tbackground: #f9f9f9;\r\n\tborder-left: 0.5em solid #ccc;\r\n\tmargin: 1.5em;\r\n \tpadding: 1em;\r\n \t/*text-indent:2em;*/\r\n\tfont-family:STKai, \"MKai PRC\", Kai;\r\n  \tline-height:1.5em;\r\n}\r\n\r\n/* Picture caption */\r\n/* 图注 */\r\n.kindle-cn-pic-caption {\r\n\tfont-size: small;\r\n\ttext-align: center;\r\n\tmargin-top: 0pt;\r\n\tmargin-bottom: 10pt;\r\n\tcolor:grey;\r\n\tfont-family:STKai, \"MKai PRC\", Kai;\r\n}\r\n.kindle-cn-pic-caption p {\r\n\ttext-indent:0;\r\n}\r\n\r\n/* Floating image left */\r\n/* 左图文绕排 */\r\n.kindle-cn-pic-left {\r\n\tfloat: left;\r\n\tmargin: 0 1em 1em 0;\r\n\ttext-align: center;\r\n\tline-height: 0.5;\r\n}\r\n.kindle-cn-pic-left p {\r\n\ttext-indent:0;\r\n}\r\n\r\n/* Drop Cap */\r\n/* 首字下沉 */\r\n.kindle-cn-dropcap {\r\n\tfloat:left;\r\n\tfont-size:3em;\r\n\t/*font-weight:bold;*/\r\n\tline-height: 1em;\r\n\tpadding:0.1 0em 0.1em 0;\r\n   /* background-color:#E66C2C;*/\r\n    /*color:white;*/\r\n\ttext-indent:0\r\n}\r\n\r\n/* Letter box - circle */\r\n/* 圆圈文本框 */\r\n.kindle-cn-letter-circle {\r\n\tfont-size:0.8em;\r\n\tcolor:white;\r\n\tborder-radius:100%;\r\n\tborder: 0.1em solid #E66C2C;\r\n\tbackground-color:#E66C2C;\r\n\tbox-shadow: 3px 3px 5px grey;\r\n\tfont-weight:bold;\r\n\ttext-align:center;\r\n\tpadding:0.2em;\r\n}\r\n\r\n/* Sign */\r\n/* 签名 */\r\n.kindle-cn-sign{\r\n\ttext-align: right;\r\n    font-weight:bold;\r\n\tfont-family:\"MYing Hei S\", Hei;\r\n}\r\n\r\n\r\n/* Bulleted List  */\r\n/* 项目符号列表 */\r\nul{\r\n\ttext-indent:0;\r\n\tfont-family:STKai, \"MKai PRC\", Kai;\r\n\r\n}\r\nol{\r\n\ttext-indent:0;\r\n\tfont-family:STKai, \"MKai PRC\", Kai;\r\n}"
  },
  {
    "path": "app/src/main/assets/epub/OEBPS/Text/part0000.xhtml",
    "content": "<?xml version=\"1.0\"?><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n  <head>\r\n    <title>Contents</title>\r\n    <link href=\"../Styles/style0001.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n  </head>\r\n  <body>\r\n    <div class=\"sgc-toc-title\"></div>\r\n  </body>\r\n</html>\r\n"
  },
  {
    "path": "app/src/main/assets/epub/OEBPS/content.opf",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<package version=\"2.0\" \n    xmlns=\"http://www.idpf.org/2007/opf\">\n    <metadata xmlns:dc=\"http://purl.org/dc/elements/1.1/\" \n        xmlns:opf=\"http://www.idpf.org/2007/opf\">\n        <dc:title>长安十二时辰（上下册）</dc:title>\n        <dc:language>zh</dc:language>\n        <dc:creator>马伯庸</dc:creator>\n        <meta name=\"cover\" content=\"cover.jpg\" />\n        <meta name=\"output encoding\" content=\"utf-8\" />\n        <meta name=\"primary-writing-mode\" content=\"horizontal-lr\" />\n    </metadata>\n    <manifest>\n        <item id=\"x_Section0001.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0001.xhtml\" />\n        <item id=\"x_Section0002.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0002.xhtml\" />\n        <item id=\"x_Section0003.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0003.xhtml\" />\n        <item id=\"x_Section0004.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0004.xhtml\" />\n        <item id=\"x_Section0005.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0005.xhtml\" />\n        <item id=\"x_Section0006.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0006.xhtml\" />\n        <item id=\"x_Section0007.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0007.xhtml\" />\n        <item id=\"x_Section0008.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0008.xhtml\" />\n        <item id=\"x_Section0009.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0009.xhtml\" />\n        <item id=\"x_Section0010.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0010.xhtml\" />\n        <item id=\"x_Section0011.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0011.xhtml\" />\n        <item id=\"x_Section0012.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0012.xhtml\" />\n        <item id=\"x_Section0013.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0013.xhtml\" />\n        <item id=\"x_Section0014.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0014.xhtml\" />\n        <item id=\"x_Section0015.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0015.xhtml\" />\n        <item id=\"x_Section0016.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0016.xhtml\" />\n        <item id=\"x_Section0017.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0017.xhtml\" />\n        <item id=\"x_Section0018.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0018.xhtml\" />\n        <item id=\"x_Section0019.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0019.xhtml\" />\n        <item id=\"x_Section0020.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0020.xhtml\" />\n        <item id=\"x_Section0021.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0021.xhtml\" />\n        <item id=\"x_Section0022.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0022.xhtml\" />\n        <item id=\"x_Section0023.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0023.xhtml\" />\n        <item id=\"x_Section0024.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0024.xhtml\" />\n        <item id=\"x_Section0025.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0025.xhtml\" />\n        <item id=\"x_Section0026.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0026.xhtml\" />\n        <item id=\"x_Section0027.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0027.xhtml\" />\n        <item id=\"x_Section0028.xhtml\" media-type=\"application/xhtml+xml\" href=\"Text/part0028.xhtml\" />\n        <item id=\"item30\" media-type=\"text/css\" href=\"Styles/style0001.css\" />\n        <item id=\"item31\" media-type=\"text/css\" href=\"Styles/style0002.css\" />\n        <item id=\"cover.jpg\" media-type=\"image/jpeg\" href=\"Images/cover.jpg\" />\n        <item id=\"ncx\" media-type=\"application/x-dtbncx+xml\" href=\"toc.ncx\" />\n    </manifest>\n    <spine toc=\"ncx\">\n        <itemref idref=\"x_Section0001.xhtml\"/>\n        <itemref idref=\"x_Section0002.xhtml\"/>\n        <itemref idref=\"x_Section0003.xhtml\"/>\n        <itemref idref=\"x_Section0004.xhtml\"/>\n        <itemref idref=\"x_Section0005.xhtml\"/>\n        <itemref idref=\"x_Section0006.xhtml\"/>\n        <itemref idref=\"x_Section0007.xhtml\"/>\n        <itemref idref=\"x_Section0008.xhtml\"/>\n        <itemref idref=\"x_Section0009.xhtml\"/>\n        <itemref idref=\"x_Section0010.xhtml\"/>\n        <itemref idref=\"x_Section0011.xhtml\"/>\n        <itemref idref=\"x_Section0012.xhtml\"/>\n        <itemref idref=\"x_Section0013.xhtml\"/>\n        <itemref idref=\"x_Section0014.xhtml\"/>\n        <itemref idref=\"x_Section0015.xhtml\"/>\n        <itemref idref=\"x_Section0016.xhtml\"/>\n        <itemref idref=\"x_Section0017.xhtml\"/>\n        <itemref idref=\"x_Section0018.xhtml\"/>\n        <itemref idref=\"x_Section0019.xhtml\"/>\n        <itemref idref=\"x_Section0020.xhtml\"/>\n        <itemref idref=\"x_Section0021.xhtml\"/>\n        <itemref idref=\"x_Section0022.xhtml\"/>\n        <itemref idref=\"x_Section0023.xhtml\"/>\n        <itemref idref=\"x_Section0024.xhtml\"/>\n        <itemref idref=\"x_Section0025.xhtml\"/>\n        <itemref idref=\"x_Section0026.xhtml\"/>\n        <itemref idref=\"x_Section0027.xhtml\"/>\n        <itemref idref=\"x_Section0028.xhtml\"/>\n    </spine>\n\n</package>\n"
  },
  {
    "path": "app/src/main/assets/epub/OEBPS/toc.ncx",
    "content": "<?xml version='1.0' encoding='utf-8'?>\n<ncx xmlns=\"http://www.daisy.org/z3986/2005/ncx/\" version=\"2005-1\" xml:lang=\"zh\">\n  <head>\n    <meta content=\"1\" name=\"dtb:depth\"/>\n    <meta content=\"YueduAssistant\" name=\"dtb:generator\"/>\n    <meta content=\"0\" name=\"dtb:totalPageCount\"/>\n    <meta content=\"0\" name=\"dtb:maxPageNumber\"/>\n  </head>\n  <docTitle>\n    <text></text>\n  </docTitle>\n  <navMap>\n\n  </navMap>\n</ncx>\n"
  },
  {
    "path": "app/src/main/assets/epub/mimetype",
    "content": "application/epub+zip"
  },
  {
    "path": "app/src/main/assets/litepal.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<litepal>\n    <!--\n    \tDefine the database name of your application.\n    \tBy default each database name should be end with .db.\n    \tIf you didn't name your database end with .db,\n    \tLitePal would plus the suffix automatically for you.\n    \tFor example:\n    \t<dbname value=\"demo\" />\n    -->\n    <dbname value=\"source\" />\n\n    <!--\n    \tDefine the version of your database. Each time you want\n    \tto upgrade your database, the version tag would helps.\n    \tModify the models you defined in the mapping tag, and just\n    \tmake the version value plus one, the upgrade of database\n    \twill be processed automatically without concern.\n\t\t\tFor example:\n    \t<version value=\"1\" />\n    -->\n    <version value=\"1\" />\n\n    <!--\n    \tDefine your models in the list with mapping tag, LitePal will\n    \tcreate tables for each mapping class. The supported fields\n    \tdefined in models will be mapped into columns.\n    \tFor example:\n    \t<list>\n    \t\t<mapping class=\"com.test.model.Reader\" />\n    \t\t<mapping class=\"com.test.model.Magazine\" />\n    \t</list>\n    -->\n    <list>\n        <mapping class=\"cc.zsakvo.yueduassistant.bean.Source\"/>\n    </list>\n\n    <!--\n        Define where the .db file should be. \"internal\" means the .db file\n        will be stored in the database folder of internal storage which no\n        one can access. \"external\" means the .db file will be stored in the\n        path to the directory on the primary external storage device where\n        the application can place persistent files it owns which everyone\n        can access. \"internal\" will act as default.\n        For example:\n        <storage value=\"external\" />\n    -->\n\n</litepal>"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/MyApplication.java",
    "content": "package cc.zsakvo.yueduassistant;\n\nimport android.annotation.SuppressLint;\nimport android.app.Application;\nimport android.content.Context;\n\nimport org.litepal.LitePal;\n\npublic class MyApplication extends Application {\n    @SuppressLint(\"StaticFieldLeak\")\n    private static Context context;\n\n    @Override\n    public void onCreate() {\n        super.onCreate();\n        LitePal.initialize(this);\n        context = getApplicationContext();\n    }\n\n    public static Context getContext() {\n        return context;\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/adapter/CacheBookAdapter.java",
    "content": "package cc.zsakvo.yueduassistant.adapter;\n\nimport android.content.Context;\nimport android.content.Intent;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.view.inputmethod.InputMethodManager;\nimport android.widget.TextView;\n\nimport androidx.recyclerview.widget.RecyclerView;\n\nimport com.google.android.material.card.MaterialCardView;\nimport com.orhanobut.logger.Logger;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport cc.zsakvo.yueduassistant.R;\nimport cc.zsakvo.yueduassistant.bean.CacheBook;\nimport cc.zsakvo.yueduassistant.view.BookDetailActivity;\n\npublic class CacheBookAdapter  extends RecyclerView.Adapter<RecyclerView.ViewHolder> {\n\n    private Context context;\n    private List<CacheBook> mCacheBooks;\n\n\n\n    public CacheBookAdapter(Context context) {\n        this.context = context;\n        mCacheBooks = new ArrayList<>();\n    }\n\n    public void setItems(List<CacheBook> data) {\n        this.mCacheBooks.addAll(data);\n        notifyDataSetChanged();\n    }\n\n    public void cleanItems(){\n        this.mCacheBooks.clear();\n        notifyDataSetChanged();\n    }\n\n    @Override\n    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_cache_book, parent, false);\n        return new RecyclerViewHolder(view);\n    }\n\n    @Override\n    public void onBindViewHolder(final RecyclerView.ViewHolder holder, int position) {\n        if (holder instanceof RecyclerViewHolder) {\n            final RecyclerViewHolder recyclerViewHolder = (RecyclerViewHolder) holder;\n\n            recyclerViewHolder.bookName.setText(\"《\"+mCacheBooks.get(position).getName()+\"》\");\n            recyclerViewHolder.bookInfo.setText(\"\\t共\"+mCacheBooks.get(position).getChapterNum()+\"章\\n\\t来源：\"+mCacheBooks.get(position).getSource());\n\n\n            recyclerViewHolder.mView.setOnClickListener(view -> {\n                Logger.d(\"activity!\");\n                Intent intent = new Intent(context, BookDetailActivity.class);\n                Logger.d(mCacheBooks.get(position).getInfo());\n                intent.putExtra(\"info\", mCacheBooks.get(position).getInfo());\n                InputMethodManager imm = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);\n                imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n                context.startActivity(intent);\n            });\n        }\n    }\n\n    @Override\n    public int getItemCount() {\n        return mCacheBooks.size();\n    }\n\n    private class RecyclerViewHolder extends RecyclerView.ViewHolder {\n        private MaterialCardView mCard;\n        private TextView bookName;\n        private TextView bookInfo;\n        private View mView;\n\n        private RecyclerViewHolder(View itemView) {\n            super(itemView);\n            mView = itemView;\n            mCard = itemView.findViewById(R.id.card_cache_book);\n            bookName = itemView.findViewById(R.id.card_cache_book_name);\n            bookInfo = itemView.findViewById(R.id.card_cache_book_source);\n        }\n    }\n}"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/adapter/CacheChapterAdapter.java",
    "content": "package cc.zsakvo.yueduassistant.adapter;\n\nimport android.content.Context;\nimport android.graphics.Paint;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.TextView;\n\nimport androidx.recyclerview.widget.RecyclerView;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport cc.zsakvo.yueduassistant.R;\nimport cc.zsakvo.yueduassistant.bean.CacheChapter;\nimport cc.zsakvo.yueduassistant.listener.FlagsListener;\n\npublic class CacheChapterAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {\n\n    private Context context;\n    private List<CacheChapter> mCacheChapters;\n    private List<Boolean> flags;\n    private FlagsListener flagsListener;\n\n\n    public CacheChapterAdapter(Context context, FlagsListener flagsListener) {\n        this.context = context;\n        mCacheChapters = new ArrayList<>();\n        flags = new ArrayList<>();\n        this.flagsListener = flagsListener;\n    }\n\n    public void setItems(List<CacheChapter> data, List<Boolean> flags) {\n        this.mCacheChapters.addAll(data);\n        this.flags = flags;\n        notifyDataSetChanged();\n    }\n\n    public void cleanItems() {\n        this.mCacheChapters.clear();\n        notifyDataSetChanged();\n    }\n\n    @Override\n    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_cache_chapter, parent, false);\n        return new RecyclerViewHolder(view);\n    }\n\n    @Override\n    public void onBindViewHolder(final RecyclerView.ViewHolder holder, int position) {\n        if (holder instanceof RecyclerViewHolder) {\n            final RecyclerViewHolder recyclerViewHolder = (RecyclerViewHolder) holder;\n            recyclerViewHolder.chapterText.setText(mCacheChapters.get(position).getName());\n            if (flags.get(position)) {\n                recyclerViewHolder.chapterText.setPaintFlags(recyclerViewHolder.chapterText.getPaintFlags() & (~Paint.STRIKE_THRU_TEXT_FLAG));\n            } else {\n                recyclerViewHolder.chapterText.setPaintFlags(recyclerViewHolder.chapterText.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);\n            }\n            recyclerViewHolder.mView.setOnClickListener(view -> {\n                boolean status = !flags.get(position);\n                flags.set(position, status);\n                this.flagsListener.setFlags(flags);\n                if (status) {\n                    recyclerViewHolder.chapterText.setPaintFlags(recyclerViewHolder.chapterText.getPaintFlags() & (~Paint.STRIKE_THRU_TEXT_FLAG));\n                } else {\n                    recyclerViewHolder.chapterText.setPaintFlags(recyclerViewHolder.chapterText.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);\n                }\n            });\n        }\n    }\n\n    @Override\n    public int getItemCount() {\n        return mCacheChapters.size();\n    }\n\n    private class RecyclerViewHolder extends RecyclerView.ViewHolder {\n        private View mView;\n        private TextView chapterText;\n\n        private RecyclerViewHolder(View itemView) {\n            super(itemView);\n            mView = itemView;\n            chapterText = itemView.findViewById(R.id.cache_chapter_check);\n        }\n    }\n}"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/bean/CacheBook.java",
    "content": "package cc.zsakvo.yueduassistant.bean;\n\nimport java.io.Serializable;\n\npublic class CacheBook implements Serializable {\n\n    private String name;\n    private String source;\n    private int chapterNum;\n    private String info;\n\n    public int getChapterNum() {\n        return chapterNum;\n    }\n\n    public void setChapterNum(int chapterNum) {\n        this.chapterNum = chapterNum;\n    }\n\n\n    public String getInfo() {\n        return info;\n    }\n\n    public void setInfo(String info) {\n        this.info = info;\n    }\n\n    public String getSource() {\n        return source;\n    }\n\n    public void setSource(String source) {\n        this.source = source;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/bean/CacheChapter.java",
    "content": "package cc.zsakvo.yueduassistant.bean;\n\npublic class CacheChapter {\n\n    private String name;\n    private String fileName;\n\n    public String getName() {\n        return name;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public String getFileName() {\n        return fileName;\n    }\n\n    public void setFileName(String fileName) {\n        this.fileName = fileName;\n    }\n\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/bean/ExportBook.java",
    "content": "package cc.zsakvo.yueduassistant.bean;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\n\nimport com.orhanobut.logger.Logger;\n\nimport java.util.List;\n\npublic class ExportBook {\n    private String bookPath;\n    private String outputDirPath;\n    private String fileName;\n    private String author;\n    private String name;\n    private String cover;\n    private List<CacheChapter> cacheChapters;\n    private List<Boolean> flags;\n\n    public String getOutputDirPath() {\n        return outputDirPath;\n    }\n\n    public String getFileName() {\n        return fileName;\n    }\n\n    public String getBookPath() {\n        return bookPath;\n    }\n\n    public String getAuthor() {\n        return author;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public String getCover() {\n        return cover;\n    }\n\n    public List<CacheChapter> getCacheChapters() {\n        return cacheChapters;\n    }\n\n    public List<Boolean> getFlags() {\n        return flags;\n    }\n\n    public Context getmContext() {\n        return mContext;\n    }\n\n    private Context mContext;\n\n    // 私有构造器，因此Person对象的创建必须依赖于Builder\n    private ExportBook(Builder builder) {\n        this.bookPath = builder.bookPath;\n        this.outputDirPath = builder.outputDirPath;\n        this.fileName = builder.fileName;\n        this.cacheChapters = builder.cacheChapters;\n        this.flags = builder.flags;\n        this.mContext = builder.mContext;\n        this.author = builder.author;\n        this.name = builder.name;\n        this.cover = builder.cover;\n    }\n\n    public static class Builder {\n\n        private String bookPath;\n        private String outputDirPath;\n        private String fileName;\n        private String author;\n        private String name;\n        private String cover;\n        private List<CacheChapter> cacheChapters;\n        private List<Boolean> flags;\n        private Context mContext;\n\n        public Builder(Context mContext) {\n            this.mContext = mContext;\n        }\n\n        public Builder bookPath(String bookPath) {\n            this.bookPath = bookPath;\n            return this;\n        }\n\n\n        public Builder outputDirPath(String outputDirPath) {\n            this.outputDirPath = outputDirPath;\n            return this;\n        }\n\n        public Builder fileName(String fileName) {\n            this.fileName = fileName;\n            return this;\n        }\n\n        public Builder author(String author) {\n            this.author = author;\n            return this;\n        }\n\n        public Builder cover(String cover){\n            this.cover = cover;\n            return this;\n        }\n\n        public Builder name(String name) {\n            this.name = name;\n            return this;\n        }\n\n\n        public Builder cacheChapters(List<CacheChapter> cacheChapters) {\n            this.cacheChapters = cacheChapters;\n            return this;\n        }\n\n\n        public Builder flags(List<Boolean> flags) {\n            this.flags = flags;\n            return this;\n        }\n\n        public ExportBook build() {\n            return new ExportBook(this);\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/bean/Source.java",
    "content": "package cc.zsakvo.yueduassistant.bean;\n\nimport org.litepal.annotation.Column;\nimport org.litepal.crud.LitePalSupport;\n\npublic class Source extends LitePalSupport {\n    @Column(nullable = false)\n    private String key;\n\n    public void setKey(String key) {\n        this.key = key;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    private String name;\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/fragment/AboutFragment.java",
    "content": "package cc.zsakvo.yueduassistant.fragment;\n\nimport android.content.Intent;\nimport android.net.Uri;\nimport android.os.Bundle;\n\nimport androidx.preference.Preference;\nimport androidx.preference.PreferenceFragmentCompat;\n\nimport cc.zsakvo.yueduassistant.R;\n\npublic class AboutFragment extends PreferenceFragmentCompat implements Preference.OnPreferenceClickListener{\n\n    @Override\n    public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {\n        addPreferencesFromResource(R.xml.about);\n\n        findPreference(\"author_id\").setOnPreferenceClickListener(this);\n        findPreference(\"project_git\").setOnPreferenceClickListener(this);\n        findPreference(\"andPermission\").setOnPreferenceClickListener(this);\n        findPreference(\"materialPreference\").setOnPreferenceClickListener(this);\n        findPreference(\"simpleMenu\").setOnPreferenceClickListener(this);\n        findPreference(\"fastJson\").setOnPreferenceClickListener(this);\n        findPreference(\"rxAndroid\").setOnPreferenceClickListener(this);\n        findPreference(\"rxJava\").setOnPreferenceClickListener(this);\n        findPreference(\"fab\").setOnPreferenceClickListener(this);\n        findPreference(\"zt-zip\").setOnPreferenceClickListener(this);\n        findPreference(\"logger\").setOnPreferenceClickListener(this);\n        findPreference(\"brvah\").setOnPreferenceClickListener(this);\n        findPreference(\"fastScroll\").setOnPreferenceClickListener(this);\n\n    }\n\n    @Override\n    public boolean onPreferenceClick(Preference preference) {\n        switch (preference.getKey()) {\n            case \"author_id\":\n            startActivity(new Intent(Intent.ACTION_VIEW,\n                    Uri.parse(\"http://www.coolapk.com/u/522069\")));\n            break;\n            case \"project_git\":\n                startActivity(new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/zsakvo/YueduAssistant\")));\n                break;\n            case \"materialPreference\":\n                startActivity(new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/RikkaW/MaterialPreference\")));\n                break;\n            case \"simpleMenu\":\n                startActivity(new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/RikkaW/MaterialPreference\")));\n                break;\n            case \"fastJson\":\n                startActivity(new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/alibaba/fastjson\")));\n                break;\n            case \"rxAndroid\":\n                startActivity(new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/ReactiveX/RxAndroid\")));\n                break;\n            case \"rxJava\":\n                startActivity(new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/ReactiveX/RxJava\")));\n                break;\n            case \"andPermission\":\n                startActivity(new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/yanzhenjie/AndPermission\")));\n                break;\n            case \"fab\":\n                startActivity(new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/leinardi/FloatingActionButtonSpeedDial\")));\n                break;\n            case \"zt-zip\":\n                startActivity(new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/zeroturnaround/zt-zip\")));\n                break;\n            case \"brvah\":\n                startActivity(new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/orhanobut/logger\")));\n                break;\n            case \"logger\":\n                startActivity(new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/CymChad/BaseRecyclerViewAdapterHelper\")));\n                break;\n            case \"fastScroll\":\n                startActivity(new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/timusus/RecyclerView-FastScroll\")));\n                break;\n        }\n        return false;\n    }\n\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/fragment/SettingsFragment.java",
    "content": "package cc.zsakvo.yueduassistant.fragment;\n\nimport android.content.Intent;\nimport android.net.Uri;\nimport android.os.Bundle;\n\nimport androidx.preference.Preference;\nimport androidx.preference.PreferenceFragmentCompat;\nimport androidx.preference.SwitchPreference;\n\nimport java.util.Objects;\n\nimport cc.zsakvo.yueduassistant.R;\nimport cc.zsakvo.yueduassistant.listener.PathListener;\nimport cc.zsakvo.yueduassistant.utils.DialogUtil;\nimport cc.zsakvo.yueduassistant.utils.SourceUtil;\nimport cc.zsakvo.yueduassistant.utils.SpUtil;\nimport cc.zsakvo.yueduassistant.view.SettingsActivity;\n\npublic class SettingsFragment extends PreferenceFragmentCompat implements Preference.OnPreferenceClickListener, PathListener {\n\n    private SettingsActivity activity;\n    private Preference cache_path;\n    private Preference backup_path;\n    private Preference output_path;\n    private Preference update_source;\n    private SwitchPreference export_more;\n\n    @Override\n    public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {\n        addPreferencesFromResource(R.xml.settings);\n        activity = (SettingsActivity) getActivity();\n        cache_path = findPreference(\"cache_path\");\n        cache_path.setOnPreferenceClickListener(this);\n        output_path = findPreference(\"output_path\");\n        output_path.setOnPreferenceClickListener(this);\n        update_source = findPreference(\"update_source\");\n        update_source.setOnPreferenceClickListener(this);\n        export_more = findPreference(\"export_more\");\n        cache_path.setSummary(SpUtil.getCacheDirPath(Objects.requireNonNull(getContext())));\n        output_path.setSummary(SpUtil.getOutputPath(Objects.requireNonNull(getContext())));\n    }\n\n    @Override\n    public boolean onPreferenceClick(Preference preference) {\n        switch (preference.getKey()) {\n            case \"cache_path\":\n                DialogUtil.fileChoose(\"cache_path\", getContext(),activity.getSupportFragmentManager(),this,SpUtil.getCacheDirPath(Objects.requireNonNull(getContext())));\n                break;\n            case \"backup_path\":\n                DialogUtil.fileChoose(\"backup_path\", getContext(),activity.getSupportFragmentManager(),this,null);\n                break;\n            case \"output_path\":\n                DialogUtil.fileChoose(\"output_path\", getContext(),activity.getSupportFragmentManager(),this,SpUtil.getOutputPath(Objects.requireNonNull(getContext())));\n                break;\n            case \"update_source\":\n                SourceUtil.update(activity.getSupportFragmentManager(),getContext(),activity.findViewById(R.id.toolbar));\n                break;\n            case \"author_id\":\n                Intent intent_id = new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"http://www.coolapk.com/u/522069\"));\n                startActivity(intent_id);\n                break;\n            case \"project_git\":\n                Intent intent_code = new Intent(Intent.ACTION_VIEW,\n                        Uri.parse(\"https://github.com/zsakvo/YueDuHcHelper\"));\n                startActivity(intent_code);\n                break;\n            case \"libs\":\n//                startActivity(new Intent(getActivity(),ShowLibsActivity.class));\n                break;\n        }\n        return false;\n    }\n\n    @Override\n    public void changePath(String str, String path) {\n        switch (str) {\n            case \"cache_path\":\n                cache_path.setSummary(path);\n                break;\n            case \"backup_path\":\n                backup_path.setSummary(path);\n                break;\n            case \"output_path\":\n                output_path.setSummary(path);\n                break;\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/listener/ExportListener.java",
    "content": "package cc.zsakvo.yueduassistant.listener;\n\npublic interface ExportListener {\n    void exportFinish();\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/listener/FlagsListener.java",
    "content": "package cc.zsakvo.yueduassistant.listener;\n\nimport java.util.List;\n\npublic interface FlagsListener {\n    void setFlags(List<Boolean> flags);\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/listener/PathListener.java",
    "content": "package cc.zsakvo.yueduassistant.listener;\n\npublic interface PathListener {\n    void changePath(String str, String path);\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/utils/BookUtil.java",
    "content": "package cc.zsakvo.yueduassistant.utils;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.text.TextUtils;\nimport android.view.View;\nimport android.widget.TextView;\n\nimport androidx.appcompat.app.AlertDialog;\n\nimport com.bumptech.glide.Glide;\nimport com.google.android.material.snackbar.Snackbar;\nimport com.orhanobut.logger.Logger;\n\nimport org.zeroturnaround.zip.NameMapper;\nimport org.zeroturnaround.zip.ZipUtil;\n\nimport java.io.BufferedInputStream;\nimport java.io.BufferedOutputStream;\nimport java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.OutputStream;\nimport java.io.OutputStreamWriter;\nimport java.nio.charset.StandardCharsets;\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport cc.zsakvo.yueduassistant.R;\nimport cc.zsakvo.yueduassistant.bean.CacheChapter;\nimport cc.zsakvo.yueduassistant.bean.ExportBook;\nimport cc.zsakvo.yueduassistant.listener.ExportListener;\nimport io.reactivex.Observable;\nimport io.reactivex.ObservableEmitter;\nimport io.reactivex.Observer;\nimport io.reactivex.android.schedulers.AndroidSchedulers;\nimport io.reactivex.disposables.Disposable;\nimport io.reactivex.schedulers.Schedulers;\n\npublic class BookUtil {\n\n    private View v;\n    private List<CacheChapter> cacheChapters;\n    private List<Boolean> flags;\n    private List<CacheChapter> chapters;\n    private String bookPath;\n    private String fileName;\n    private String name;\n    private String author;\n    private String cover;\n    private String outputDirPath;\n    private Context mContext;\n    private AlertDialog progressDialog;\n    private TextView tv_progress;\n    private ExportListener el;\n\n    public BookUtil(ExportBook exportBook, ExportListener el) {\n        this.el = el;\n        this.cacheChapters = exportBook.getCacheChapters();\n        this.flags = exportBook.getFlags();\n        this.bookPath = exportBook.getBookPath();\n        this.outputDirPath = exportBook.getOutputDirPath();\n        this.fileName = exportBook.getFileName();\n        this.mContext = exportBook.getmContext();\n        this.name = exportBook.getName();\n        this.author = exportBook.getAuthor();\n        this.cover = exportBook.getCover();\n    }\n\n    private List<CacheChapter> selectChapters() {\n        List<CacheChapter> chapters = new ArrayList<>();\n        for (int i = 0; i < flags.size(); i++) {\n            if (flags.get(i)) chapters.add(cacheChapters.get(i));\n        }\n        return chapters;\n    }\n\n    private void fileInit(int i) {\n        File outPutDir = new File(outputDirPath);\n        if (!outPutDir.exists()) {\n            if (!outPutDir.mkdirs()) {\n                Logger.e(\"输出目录生成失败！\");\n            }\n        } else {\n            switch (i) {\n                case 0:\n                    File outFile = new File(outputDirPath + \"/\" + fileName);\n                    if (outFile.exists()) {\n                        if (!outFile.delete()) {\n                            Logger.e(\"已存在目标清除失败！\");\n                        }\n                    } else {\n                        try {\n                            if (!outFile.createNewFile()) {\n                                Logger.e(\"输出文件创建失败！\");\n                            }\n                        } catch (IOException e) {\n                            e.printStackTrace();\n                        }\n                    }\n                    break;\n                case 1:\n                    File outTmp = new File(outputDirPath + \"/\" + fileName.replace(\".txt\", \"\") + \"-ep/\");\n                    if (outTmp.exists()) {\n                        deleteDirectory(outTmp.getAbsolutePath());\n                    } else {\n                        if (!outTmp.mkdirs()) {\n                            Logger.d(\"epub-临时目录生成失败\");\n                        }\n                    }\n                    break;\n            }\n        }\n    }\n\n    private void preEpubFile(String str, String path) {\n        try {\n            BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(path)), StandardCharsets.UTF_8));\n            writer.write(str);\n            writer.newLine();\n            writer.flush();\n            writer.close();\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n\n    private void genCover(String path) {\n        try {\n            Bitmap bitmap = Glide.with(mContext).asBitmap().load(cover).submit().get();\n            BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(new File(path)));\n            bitmap.compress(Bitmap.CompressFormat.JPEG, 100, bos);\n            bos.flush();\n            bos.close();\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n\n    public void extractEpub() {\n        AlertDialog.Builder builder = new AlertDialog.Builder(mContext);\n        builder.setCancelable(false);\n        View view = View.inflate(mContext, R.layout.loading_dialog, null);\n        builder.setView(view);\n        progressDialog = builder.create();\n        tv_progress = view.findViewById(R.id.progress_text);\n        progressDialog.show();\n        String book_ep = outputDirPath + \"/\" + fileName.replace(\".txt\", \"\") + \"-ep/\";\n\n        Observable.create((ObservableEmitter<Integer> emitter) -> {\n            try {\n                fileInit(1);\n                emitter.onNext(-3);\n                chapters = BookUtil.this.selectChapters();\n                copyAssets(mContext, \"epub\", book_ep);\n                preEpubFile(genOpf(), book_ep + \"/OEBPS/content.opf\");\n                preEpubFile(genTocNcx(), book_ep + \"/OEBPS/toc.ncx\");\n                preEpubFile(genPart0(), book_ep + \"/OEBPS/Text/0.xhtml\");\n                genCover(book_ep + \"/OEBPS/Images/cover.jpg\");\n                int i = 0;\n                for (CacheChapter chapter : chapters) {\n                    int c = i + 1;\n                    BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(book_ep + \"/OEBPS/Text/\" + c + \".xhtml\")), StandardCharsets.UTF_8));\n                    File chapterFile = new File(bookPath + \"/\" + chapter.getFileName());\n                    InputStreamReader reader = new InputStreamReader(new FileInputStream(chapterFile));\n                    BufferedReader br = new BufferedReader(reader);\n                    String s;\n                    writer.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" standalone=\\\"no\\\"?><!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.1//EN\\\"\\n\" +\n                            \"  \\\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\\\"><html xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><head>\\n\" +\n                            \"  <title></title>\\n\" +\n                            \"  <link href=\\\"../Styles/style0002.css\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\"/>\\n\" +\n                            \"</head><body>\\n\" +\n                            \"  <div style=\\\"page-break-after:always\\\"></div>\");\n                    writer.newLine();\n                    writer.flush();\n                    int li = 0;\n                    while ((s = br.readLine()) != null) {\n                        if (li == 0) {\n                            writer.write(\"<h1 class=\\\"kindle-cn-heading-1\\\">\" + s + \"</h1>\");\n                        } else {\n                            writer.write(\"<p>\" + s + \"</p>\");\n                        }\n                        writer.newLine();\n                        writer.flush();\n                        li++;\n                    }\n                    writer.write(\"</body></html>\");\n                    writer.newLine();\n                    writer.flush();\n                    writer.close();\n                    i++;\n                    emitter.onNext(i);\n                }\n                emitter.onNext(-1);\n                ZipUtil.pack(new File(book_ep), new File(outputDirPath + \"/\" + fileName.replace(\".txt\", \"\") + \".epub\"), new NameMapper() {\n                    public String map(String name) {\n                        return name;\n                    }\n                });\n                emitter.onNext(-2);\n                deleteDirectory(book_ep);\n                emitter.onComplete();\n            } catch (Exception e) {\n                Logger.e(e.toString());\n            }\n\n        }).subscribeOn(Schedulers.io())\n                .observeOn(AndroidSchedulers.mainThread())\n                .subscribe(new Observer<Integer>() {\n                    @Override\n                    public void onSubscribe(Disposable d) {\n                    }\n\n                    @Override\n                    public void onNext(Integer i) {\n                        if (i == -1) {\n                            tv_progress.setText(\"正在打包文件……\");\n                        } else if (i == -2) {\n                            tv_progress.setText(\"正在清理临时目录……\");\n                        } else if (i==-3){\n                            tv_progress.setText(\"正在准备必要文件……\");\n                        }else{\n                            tv_progress.setText(String.format(mContext.getResources().getString(R.string.exporting), i, chapters.size()));\n                        }\n                    }\n\n                    @Override\n                    public void onError(Throwable e) {\n                        Logger.e(e.toString());\n                    }\n\n                    @Override\n                    public void onComplete() {\n                        Logger.d(\"完毕！\");\n                        progressDialog.cancel();\n                        if (SpUtil.getAutoDel(mContext)) {\n                            deleteDirectory(bookPath);\n                        }\n                        el.exportFinish();\n                    }\n                });\n    }\n\n    public void extractTXT() {\n        AlertDialog.Builder builder = new AlertDialog.Builder(mContext);\n        builder.setCancelable(false);\n        View view = View.inflate(mContext, R.layout.loading_dialog, null);\n        builder.setView(view);\n        progressDialog = builder.create();\n        tv_progress = view.findViewById(R.id.progress_text);\n        progressDialog.show();\n        Observable.create((ObservableEmitter<Integer> emitter) -> {\n            try {\n                fileInit(0);\n                chapters = BookUtil.this.selectChapters();\n                BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(outputDirPath + \"/\" + fileName)), StandardCharsets.UTF_8));\n                int i = 0;\n                for (CacheChapter chapter : chapters) {\n                    InputStreamReader reader = new InputStreamReader(new FileInputStream(new File(bookPath + \"/\" + chapter.getFileName())));\n                    BufferedReader br = new BufferedReader(reader);\n                    String s;\n                    while ((s = br.readLine()) != null) {\n                        writer.write(s);\n                        writer.newLine();\n                        writer.flush();\n                    }\n                    i++;\n                    emitter.onNext(i);\n                }\n                writer.close();\n                emitter.onComplete();\n            } catch (Exception e) {\n                Logger.e(e.toString());\n            }\n\n        }).subscribeOn(Schedulers.io())\n                .observeOn(AndroidSchedulers.mainThread())\n                .subscribe(new Observer<Integer>() {\n                    @Override\n                    public void onSubscribe(Disposable d) {\n                    }\n\n                    @Override\n                    public void onNext(Integer i) {\n                        tv_progress.setText(String.format(mContext.getResources().getString(R.string.exporting), i, chapters.size()));\n                    }\n\n                    @Override\n                    public void onError(Throwable e) {\n                        Logger.e(e.toString());\n                    }\n\n                    @Override\n                    public void onComplete() {\n                        Logger.d(\"完毕！\");\n                        progressDialog.cancel();\n                        if (SpUtil.getAutoDel(mContext)) {\n                            deleteDirectory(bookPath);\n                        }\n                        el.exportFinish();\n                    }\n                });\n    }\n\n    private void deleteDirectory(String path) {\n        File file = new File(path);\n        File[] files = file.listFiles();\n        if (files != null) {\n            for (File file1 : files) {\n                if (file1.isFile()) {\n                    file1.delete();\n                } else if (file1.isDirectory()) {\n                    deleteDirectory(file1.getAbsolutePath());\n                }\n            }\n            file.delete();\n        }\n    }\n\n    private static void copy(Context context, String zipPath, String targetPath) {\n        if (TextUtils.isEmpty(zipPath) || TextUtils.isEmpty(targetPath)) {\n            return;\n        }\n        File dest = new File(targetPath);\n        dest.getParentFile().mkdirs();\n        InputStream in = null;\n        OutputStream out = null;\n        try {\n            in = new BufferedInputStream(context.getAssets().open(zipPath));\n            out = new BufferedOutputStream(new FileOutputStream(dest));\n            byte[] buffer = new byte[1024];\n            int length = 0;\n            while ((length = in.read(buffer)) != -1) {\n                out.write(buffer, 0, length);\n            }\n        } catch (FileNotFoundException e) {\n            e.printStackTrace();\n        } catch (IOException e) {\n            e.printStackTrace();\n        } finally {\n            try {\n                out.close();\n                in.close();\n            } catch (IOException e) {\n                e.printStackTrace();\n            }\n        }\n    }\n\n    private static void copyAssets(Context context, String assetDir, String targetDir) {\n        if (TextUtils.isEmpty(assetDir) || TextUtils.isEmpty(targetDir)) {\n            return;\n        }\n        String separator = File.separator;\n        try {\n            // 获取assets目录assetDir下一级所有文件以及文件夹\n            String[] fileNames = context.getResources().getAssets().list(assetDir);\n            // 如果是文件夹(目录),则继续递归遍历\n            if (fileNames.length > 0) {\n                File targetFile = new File(targetDir);\n                if (!targetFile.exists() && !targetFile.mkdirs()) {\n                    return;\n                }\n                for (String fileName : fileNames) {\n                    copyAssets(context, assetDir + separator + fileName, targetDir + separator + fileName);\n                }\n            } else { // 文件,则执行拷贝\n                copy(context, assetDir, targetDir);\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n\n    private String genPart0() {\n        StringBuilder sb = new StringBuilder(\"<?xml version=\\\"1.0\\\"?><!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.1//EN\\\"\\n\" +\n                \"  \\\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\\\"><html xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><head>\\n\" +\n                \"  <title>Contents</title>\\n\" +\n                \"  <link href=\\\"../Styles/style0001.css\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\"/>\\n\" +\n                \"</head><body>\\n\" +\n                \"  <div class=\\\"sgc-toc-title\\\">\\n\" +\n                \"    目录\\n\" +\n                \"  </div>\");\n        for (int i = 0; i < chapters.size(); i++) {\n            sb.append(\"<div class=\\\"sgc-toc-level-1\\\">\\n\" +\n                    \"    <a href=\\\"\")\n                    .append(i + 1)\n                    .append(\".xhtml\\\">\")\n                    .append(chapters.get(i).getName())\n                    .append(\"</a>\\n\" +\n                            \"  </div>\");\n        }\n        sb.append(\"</body></html>\");\n        return sb.toString();\n    }\n\n    private String genTocNcx() {\n        StringBuilder sb = new StringBuilder(\"<?xml version='1.0' encoding='utf-8'?>\\n\" +\n                \"<ncx xmlns=\\\"http://www.daisy.org/z3986/2005/ncx/\\\" version=\\\"2005-1\\\" xml:lang=\\\"zh\\\">\\n\" +\n                \"  <head>\\n\" +\n                \"    <meta content=\\\"1\\\" name=\\\"dtb:depth\\\"/>\\n\" +\n                \"    <meta content=\\\"YueduAssistant\\\" name=\\\"dtb:generator\\\"/>\\n\" +\n                \"    <meta content=\\\"0\\\" name=\\\"dtb:totalPageCount\\\"/>\\n\" +\n                \"    <meta content=\\\"0\\\" name=\\\"dtb:maxPageNumber\\\"/>\\n\" +\n                \"  </head>\\n\" +\n                \"  <docTitle>\\n\" +\n                \"    <text>\");\n        sb.append(fileName.substring(0, fileName.length() - 4));\n        sb.append(\"</text>\\n\" +\n                \"</docTitle>\\n\" +\n                \"<navMap>\");\n        for (int i = 0; i < chapters.size(); i++) {\n            sb.append(\"<navPoint id=\\\"np_\")\n                    .append(i)\n                    .append(\"\\\" playOrder=\\\"\")\n                    .append(i)\n                    .append(\"\\\">\\n\" +\n                            \"    <navLabel>\\n\" +\n                            \"    <text>\")\n                    .append(chapters.get(i).getName())\n                    .append(\"</text>\\n\" +\n                            \"    </navLabel>\\n\" +\n                            \"    <content src=\\\"Text/\")\n                    .append(i + 1)\n                    .append(\".xhtml\\\"/>\\n\" +\n                            \"    </navPoint>\");\n        }\n        sb.append(\"</navMap>\\n\" +\n                \"</ncx>\");\n        return sb.toString();\n    }\n\n    private String genOpf() {\n        StringBuilder sb0 = new StringBuilder();\n        StringBuilder sb1 = new StringBuilder(\"<manifest>\");\n        StringBuilder sb2 = new StringBuilder(\"<spine toc=\\\"ncx\\\">\");\n        sb0.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n\" +\n                \"<package version=\\\"2.0\\\" \\n\" +\n                \"    xmlns=\\\"http://www.idpf.org/2007/opf\\\">\\n\" +\n                \"    <metadata xmlns:dc=\\\"http://purl.org/dc/elements/1.1/\\\" \\n\" +\n                \"        xmlns:opf=\\\"http://www.idpf.org/2007/opf\\\">\\n\" +\n                \"        <dc:title>\")\n                .append(name)\n                .append(\"</dc:title>\\n\" +\n                        \"        <dc:language>zh</dc:language>\\n\" +\n                        \"        <dc:creator>\")\n                .append(author)\n                .append(\"</dc:creator>\\n\" +\n                        \"        <meta name=\\\"cover\\\" content=\\\"cover.jpg\\\" />\\n\" +\n                        \"        <meta name=\\\"output encoding\\\" content=\\\"utf-8\\\" />\\n\" +\n                        \"        <meta name=\\\"primary-writing-mode\\\" content=\\\"horizontal-lr\\\" />\\n\" +\n                        \"    </metadata>\");\n        sb1.append(\" <item id=\\\"item30\\\" media-type=\\\"text/css\\\" href=\\\"Styles/style0001.css\\\" />\\n\" +\n                \"        <item id=\\\"item31\\\" media-type=\\\"text/css\\\" href=\\\"Styles/style0002.css\\\" />\\n\" +\n                \"        <item id=\\\"cover.jpg\\\" media-type=\\\"image/jpeg\\\" href=\\\"Images/cover.jpg\\\" />\\n\" +\n                \"        <item id=\\\"ncx\\\" media-type=\\\"application/x-dtbncx+xml\\\" href=\\\"toc.ncx\\\" />\");\n        for (int i = 0; i < chapters.size(); i++) {\n            sb1.append(\"<item id=\\\"x_Section\")\n                    .append(i + 1)\n                    .append(\".xhtml\\\" media-type=\\\"application/xhtml+xml\\\" href=\\\"Text/\")\n                    .append(i + 1)\n                    .append(\".xhtml\\\" />\");\n            sb2.append(\"<itemref idref=\\\"x_Section\")\n                    .append(i + 1)\n                    .append(\".xhtml\\\"/>\");\n        }\n        sb1.append(\"</manifest>\");\n        sb2.append(\"</spine>\");\n        sb0.append(sb1)\n                .append(sb2)\n                .append(\"</package>\");\n        return sb0.toString();\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/utils/DialogUtil.java",
    "content": "package cc.zsakvo.yueduassistant.utils;\n\nimport android.content.Context;\nimport android.content.SharedPreferences;\n\nimport androidx.fragment.app.FragmentManager;\n\nimport java.io.File;\n\nimport cc.zsakvo.yueduassistant.listener.PathListener;\n\nimport static android.content.Context.MODE_PRIVATE;\n\npublic class DialogUtil {\n\n    private static String TAG = \"DialogUtil\";\n    private static String SPNAME = \"cc.zsakvo.yueduassistant_preferences\";\n\n    public static void fileChoose(final String str, Context mContext, FragmentManager fm, PathListener pl,String rootPath) {\n        DirChooseUtil sfcDialog = new DirChooseUtil(rootPath);\n        sfcDialog.setOnChosenListener(new DirChooseUtil.SimpleFileChooserListener() {\n            @Override\n            public void onFileChosen(File file) {\n\n            }\n\n            @Override\n            public void onDirectoryChosen(File directory) {\n                SharedPreferences sharedPreferences = mContext.getSharedPreferences(SPNAME, MODE_PRIVATE);\n                SharedPreferences.Editor editor = sharedPreferences.edit();\n                editor.putString(str, directory.getAbsolutePath());\n                pl.changePath(str, directory.getAbsolutePath());\n                editor.apply();\n                editor.commit();\n            }\n\n            @Override\n            public void onCancel() {\n\n            }\n        });\n        sfcDialog.show(fm, \"DirChooseUtil\");\n    }\n}"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/utils/DirChooseUtil.java",
    "content": "package cc.zsakvo.yueduassistant.utils;\n\nimport android.app.Dialog;\nimport android.content.DialogInterface;\nimport android.os.Bundle;\nimport android.os.Environment;\nimport android.widget.ArrayAdapter;\nimport android.widget.ListView;\n\nimport androidx.appcompat.app.AlertDialog;\nimport androidx.fragment.app.DialogFragment;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Comparator;\n\n@SuppressWarnings(\"ALL\")\npublic class DirChooseUtil extends DialogFragment implements android.content.DialogInterface.OnClickListener {\n    private cc.zsakvo.yueduassistant.utils.DirChooseUtil.SimpleFileChooserListener simpleFileChooserListener;\n    private String rootPath, currentPath;\n    private ArrayList<String> dirs;\n    private ArrayAdapter<String> adapter;\n    private ListView lvDirs;\n    private boolean showHidden = true;\n\n    public DirChooseUtil(String rootPath){\n        this.rootPath = rootPath;\n    }\n\n    public interface SimpleFileChooserListener {\n        void onFileChosen(File file);\n        void onDirectoryChosen(File directory);\n        void onCancel();\n    }\n\n    public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n        currentPath = rootPath = rootPath == null ? Environment.getExternalStorageDirectory().getAbsolutePath() : rootPath;\n\n        try {\n            rootPath = new File(rootPath).getCanonicalPath();\n        } catch (IOException e) {\n            e.printStackTrace();\n        }\n\n        dirs = getFilesInDirectory(rootPath);\n        adapter = new ArrayAdapter<>(getActivity(), android.R.layout.simple_list_item_single_choice, dirs);\n\n        final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n        builder.setSingleChoiceItems(adapter, -1, this).setPositiveButton(android.R.string.ok, this).setNegativeButton(android.R.string.cancel, this).setTitle(getDirectoryName());\n\n        AlertDialog alert = builder.create();\n        lvDirs = alert.getListView();\n\n        return alert;\n    }\n\n    @Override\n    public void onClick(DialogInterface dialog, int which) {\n        File current = new File(currentPath);\n\n        switch (which) {\n            case Dialog.BUTTON_POSITIVE:\n                if (current.isDirectory())\n                    simpleFileChooserListener.onDirectoryChosen(current);\n\n                if (current.isFile())\n                    simpleFileChooserListener.onFileChosen(current);\n                break;\n            case Dialog.BUTTON_NEGATIVE:\n                simpleFileChooserListener.onCancel();\n                break;\n            default:\n                selectFile(which);\n                break;\n        }\n    }\n\n    // selects new file or directory\n    private void selectFile(int which) {\n        File current = new File(currentPath);\n\n        try {\n            current.getCanonicalPath();\n        } catch (IOException e) {\n            e.printStackTrace();\n            return;\n        }\n\n        String selected = dirs.get(which).replace(\"/\", \"\");\n\n        if (selected.equals(\"..\")) {\n            currentPath = currentPath.substring(0, currentPath.lastIndexOf(\"/\"));\n            refreshListView();\n        } else {\n            currentPath += \"/\" + selected;\n            current = new File(currentPath);\n\n            if (!current.isFile())\n                refreshListView();\n        }\n\n        if (!current.isFile())\n            getDialog().setTitle(getDirectoryName());\n    }\n\n    // updates listview's items\n    private void refreshListView() {\n        dirs.clear();\n        dirs.addAll(getFilesInDirectory(currentPath));\n        adapter.notifyDataSetChanged();\n\n        if (!new File(currentPath).isFile())\n            for (int i = 0; i < lvDirs.getCount(); i++)\n                lvDirs.setItemChecked(i, false);\n    }\n\n    private String getDirectoryName() {\n        return currentPath.substring(currentPath.lastIndexOf(\"/\"));\n    }\n\n    // gets all files ascending in current directory\n    private ArrayList<String> getFilesInDirectory(String dir) {\n        ArrayList<String> dirs = new ArrayList<>();\n\n        try {\n            File currentDir = new File(dir);\n\n            if (!dir.equals(Environment.getExternalStorageDirectory().getAbsolutePath()))\n                dirs.add(\"..\");\n\n            if (!currentDir.exists() || !currentDir.isDirectory())\n                return dirs;\n\n            for (File file : currentDir.listFiles()) {\n                if (!showHidden && file.isHidden())\n                    continue;\n\n                if (file.isDirectory())\n                    dirs.add(file.getName() + \"/\");\n\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n\n        Collections.sort(dirs, new Comparator<String>(){\n            public int compare(String s1, String s2){\n                return s1.toLowerCase().compareTo(s2.toLowerCase());\n            }});\n\n        return dirs;    }\n\n    public void setOnChosenListener(cc.zsakvo.yueduassistant.utils.DirChooseUtil.SimpleFileChooserListener sfc) {\n        simpleFileChooserListener = sfc;\n    }\n\n    // show/hide hidden files/directories\n    // default = true\n    public void setShowHidden(boolean showHidden) {\n        this.showHidden = showHidden;\n    }\n\n    // set default root directory path\n    // default = external storage directory\n    public void setRootPath(String rootPath) {\n        this.rootPath = rootPath;\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/utils/FileChooseUtil.java",
    "content": "package cc.zsakvo.yueduassistant.utils;\n\nimport android.app.Dialog;\nimport android.content.DialogInterface;\nimport android.os.Bundle;\nimport android.os.Environment;\nimport android.widget.ArrayAdapter;\nimport android.widget.ListView;\n\nimport androidx.appcompat.app.AlertDialog;\nimport androidx.fragment.app.DialogFragment;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Comparator;\n\npublic class FileChooseUtil extends DialogFragment implements android.content.DialogInterface.OnClickListener {\n    public static final int PERMISSION_REQUEST = 573;\n\n    private SimpleFileChooserListener mSFCListener;\n    private String mRootPath, mCurrentPath;\n    private ArrayList<String> mDirs;\n    private ArrayAdapter<String> mAdapter;\n    private ListView mListViewDirs;\n    private boolean mShowHidden = true;\n\n    public interface SimpleFileChooserListener {\n        void onFileChosen(File file);\n        void onDirectoryChosen(File directory);\n        void onCancel();\n    }\n\n\n    public Dialog onCreateDialog(Bundle savedInstanceState) {\n        mCurrentPath = mRootPath = mRootPath == null ? Environment.getExternalStorageDirectory().getAbsolutePath() : mRootPath;\n\n        try {\n            mRootPath = new File(mRootPath).getCanonicalPath();\n        } catch (IOException e) {\n            e.printStackTrace();\n        }\n\n        mDirs = getFilesInDirectory(mRootPath);\n        mAdapter = new ArrayAdapter<>(getActivity(), android.R.layout.simple_list_item_single_choice, mDirs);\n\n        final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n        builder.setSingleChoiceItems(mAdapter, -1, this).setPositiveButton(android.R.string.ok, this).setNegativeButton(android.R.string.cancel, this).setTitle(getDirectoryName());\n\n        AlertDialog alert = builder.create();\n        mListViewDirs = alert.getListView();\n\n        return alert;\n    }\n\n    @Override\n    public void onClick(DialogInterface dialog, int which) {\n        File current = new File(mCurrentPath);\n\n        switch (which) {\n            case Dialog.BUTTON_POSITIVE:\n                if (current.isDirectory())\n                    mSFCListener.onDirectoryChosen(current);\n\n                if (current.isFile())\n                    mSFCListener.onFileChosen(current);\n                break;\n            case Dialog.BUTTON_NEGATIVE:\n                mSFCListener.onCancel();\n                break;\n            default:\n                selectFile(which);\n                break;\n        }\n    }\n\n    /**\n     * Select new file or directory\n     */\n    private void selectFile(int which) {\n        File current = new File(mCurrentPath);\n\n        try {\n            //noinspection ResultOfMethodCallIgnored\n            current.getCanonicalPath();\n        } catch (IOException e) {\n            e.printStackTrace();\n            return;\n        }\n\n        if (current.isFile())\n            mCurrentPath = mCurrentPath.substring(0, mCurrentPath.lastIndexOf(\"/\"));\n\n        String selected = mDirs.get(which).replace(\"/\", \"\");\n\n        if (selected.equals(\"..\")) {\n            mCurrentPath = mCurrentPath.substring(0, mCurrentPath.lastIndexOf(\"/\"));\n            refreshListView();\n        } else {\n            mCurrentPath += \"/\" + selected;\n            current = new File(mCurrentPath);\n\n            if (!current.isFile())\n                refreshListView();\n        }\n\n        if (!current.isFile())\n            getDialog().setTitle(getDirectoryName());\n    }\n\n    /**\n     * Update ListView's items\n     */\n    private void refreshListView() {\n        mDirs.clear();\n        mDirs.addAll(getFilesInDirectory(mCurrentPath));\n        mAdapter.notifyDataSetChanged();\n\n        if (!new File(mCurrentPath).isFile())\n            for (int i = 0; i < mListViewDirs.getCount(); i++)\n                mListViewDirs.setItemChecked(i, false);\n    }\n\n    /**\n     * Get readable directory name\n     */\n    private String getDirectoryName() {\n        return mCurrentPath.substring(mCurrentPath.lastIndexOf(\"/\"));\n    }\n\n    /**\n     * Get all files ascending in current directory\n     *\n     * @param dir\n     * Target directory\n     */\n    private ArrayList<String> getFilesInDirectory(String dir) {\n        ArrayList<String> dirs = new ArrayList<>();\n\n        try {\n            File currentDir = new File(dir);\n\n            if (!dir.equals(mRootPath))\n                dirs.add(\"..\");\n\n            if (!currentDir.exists() || !currentDir.isDirectory())\n                return dirs;\n\n            for (File file : currentDir.listFiles()) {\n                if (!mShowHidden && file.isHidden())\n                    continue;\n\n                if (file.isDirectory())\n                    dirs.add(file.getName() + \"/\");\n                else\n                    dirs.add(file.getName());\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n\n        Collections.sort(dirs, new Comparator<String>(){\n            public int compare(String s1, String s2){\n                return s1.toLowerCase().compareTo(s2.toLowerCase());\n            }});\n\n        return dirs;\n    }\n\n    /**\n     * Set callback for file, directory or nothing selected\n     *\n     * @param sfc\n     * Listener\n     */\n    public void setOnChosenListener(SimpleFileChooserListener sfc) {\n        mSFCListener = sfc;\n    }\n\n    /**\n     * Show/hide hidden files/directories<br>\n     * Default = true\n     *\n     * @param showHidden\n     * Show or not\n     */\n    public void setShowHidden(boolean showHidden) {\n        this.mShowHidden = showHidden;\n    }\n\n    /**\n     * Set default root directory path<br>\n     * Default = external storage directory\n     *\n     * @param rootPath\n     * Root path\n     */\n    public void setRootPath(String rootPath) {\n        this.mRootPath = rootPath;\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/utils/SnackbarUtil.java",
    "content": "package cc.zsakvo.yueduassistant.utils;\n\nimport android.content.Context;\nimport android.graphics.Color;\nimport android.view.View;\nimport android.widget.TextView;\n\nimport com.google.android.material.snackbar.Snackbar;\n\nimport cc.zsakvo.yueduassistant.R;\n\npublic class SnackbarUtil {\n    public static Snackbar build(Context context, View view, String str, int time){\n        Snackbar snackbar = Snackbar.make(view,str,time);\n        View mView = snackbar.getView();\n        mView.setBackgroundColor(context.getResources().getColor(R.color.colorAccent));\n        TextView tvSnackbarText = (TextView) mView.findViewById(com.google.android.material.R.id.snackbar_text);\n        tvSnackbarText.setTextColor(Color.WHITE);\n        return snackbar;\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/utils/SourceUtil.java",
    "content": "package cc.zsakvo.yueduassistant.utils;\n\nimport android.app.ProgressDialog;\nimport android.content.Context;\nimport android.database.Cursor;\nimport android.database.sqlite.SQLiteDatabase;\nimport android.view.View;\n\nimport androidx.fragment.app.FragmentManager;\n\nimport com.alibaba.fastjson.JSON;\nimport com.alibaba.fastjson.JSONArray;\nimport com.alibaba.fastjson.JSONObject;\nimport com.google.android.material.snackbar.Snackbar;\nimport com.orhanobut.logger.Logger;\n\nimport org.litepal.LitePal;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.InputStreamReader;\n\nimport cc.zsakvo.yueduassistant.bean.Source;\nimport io.reactivex.Observable;\nimport io.reactivex.ObservableEmitter;\nimport io.reactivex.ObservableOnSubscribe;\nimport io.reactivex.Observer;\nimport io.reactivex.android.schedulers.AndroidSchedulers;\nimport io.reactivex.disposables.Disposable;\nimport io.reactivex.schedulers.Schedulers;\n\npublic class SourceUtil {\n\n    public static void update(FragmentManager fm,Context context,View view) {\n        FileChooseUtil sfcDialog = new FileChooseUtil();\n        sfcDialog.setOnChosenListener(new FileChooseUtil.SimpleFileChooserListener() {\n            @Override\n            public void onFileChosen(File file) {\n                SourceUtil sutil = new SourceUtil();\n                sutil.rwFile(file,context,view);\n            }\n\n            @Override\n            public void onDirectoryChosen(File directory) {\n\n            }\n\n            @Override\n            public void onCancel() {\n\n            }\n        });\n        sfcDialog.show(fm, \"FileChoose\");\n    }\n\n    private void rwFile(File file,Context context, View view) {\n        ProgressDialog progressDialog = new ProgressDialog(context);\n        progressDialog.setMessage(\"正在升级来源数据库……\");\n        progressDialog.show();\n        Observable.create(new ObservableOnSubscribe<JSONObject>() {\n            @Override\n            public void subscribe(ObservableEmitter<JSONObject> emitter) throws Exception {\n                StringBuilder res = new StringBuilder();\n                try {\n                    InputStreamReader reader = new InputStreamReader(new FileInputStream(file));\n                    BufferedReader br = new BufferedReader(reader);\n                    String s;\n                    while ((s = br.readLine()) != null) {\n                        res.append(s);\n                    }\n                    JSONArray jsonArray = JSON.parseArray(res.toString());\n                    for (Object object : jsonArray) {\n                        JSONObject jsonObject = (JSONObject) object;\n                        String sourceName = (String) jsonObject.get(\"bookSourceName\");\n                        String sourceKey = ((String) jsonObject.get(\"bookSourceUrl\"))\n                                .replace(\"://\", \"\")\n                                .replace(\"://\", \"\")\n                                .replace(\".\", \"\");\n                        JSONObject nObject = new JSONObject();\n                        nObject.put(\"sKey\", sourceKey);\n                        nObject.put(\"sName\", sourceName);\n                        emitter.onNext(nObject);\n                    }\n                    emitter.onComplete();\n                } catch (Exception e) {\n                    emitter.onError(e);\n                }\n\n            }\n        }).subscribeOn(Schedulers.io())\n                .observeOn(AndroidSchedulers.mainThread())\n                .subscribe(new Observer<JSONObject>() {\n                    SQLiteDatabase db;\n\n                    @Override\n                    public void onSubscribe(Disposable d) {\n                        Logger.d(\"subscribe\");\n                        db = LitePal.getDatabase();\n                        LitePal.deleteAll(\"source\");\n                    }\n\n                    @Override\n                    public void onNext(JSONObject jsonObject) {\n                        Source source = new Source();\n                        source.setKey((String) jsonObject.get(\"sKey\"));\n                        source.setName((String) jsonObject.get(\"sName\"));\n                        source.save();\n                    }\n\n                    @Override\n                    public void onError(Throwable e) {\n                        Logger.e(e.toString());\n                        progressDialog.dismiss();\n                        SnackbarUtil.build(context,view,\"数据处理失败\", Snackbar.LENGTH_LONG).show();\n                    }\n\n                    @Override\n                    public void onComplete() {\n                        Logger.d(\"数据升级完毕\");\n                        progressDialog.dismiss();\n                        SnackbarUtil.build(context,view,\"数据升级成功\", Snackbar.LENGTH_LONG).show();\n                    }\n                });\n    }\n\n    public static String queryName(String key) {\n        SQLiteDatabase db = LitePal.getDatabase();\n        Cursor cursor = db.query(\"source\", null, \"key=?\", new String[]{key}, null, null, null);\n        String name = \"\";\n        if (cursor.getCount()==0){\n            String sql = \"SELECT * FROM source where key like '%\"+key.substring(5)+\"%'\";\n            cursor = db.rawQuery(sql,null);\n            if (cursor.getCount()==0){\n                name = key;\n            }else {\n                while (cursor.moveToNext()) {\n                    name = cursor.getString(cursor.getColumnIndex(\"name\"));\n                }\n            }\n        }else {\n            while (cursor.moveToNext()) {\n                name = cursor.getString(cursor.getColumnIndex(\"name\"));\n            }\n        }\n        return name;\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/utils/SpUtil.java",
    "content": "package cc.zsakvo.yueduassistant.utils;\n\nimport android.content.Context;\nimport android.os.Environment;\n\nimport static android.content.Context.MODE_PRIVATE;\n\npublic class SpUtil {\n\n    private static String defaultCacheDirPath = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/Android/data/com.gedoor.monkeybook/files/book_cache\";\n    private static String defaultBackupPath = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/YueDu\";\n    private static String defaultOutputPath = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/Documents/YueDu\";\n    public static String configPath = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/YueDu/myBookShelf.json\";\n    private static String SPNAME = \"cc.zsakvo.yueduassistant_preferences\";\n\n    public static String getCacheDirPath(Context context){\n        return context.getSharedPreferences(SPNAME, MODE_PRIVATE).getString(\"cache_path\", defaultCacheDirPath);\n    }\n\n    public static void setCacheDirPath(Context context){\n\n    }\n\n    public static String getBackupPath(Context context){\n        return context.getSharedPreferences(SPNAME, MODE_PRIVATE).getString(\"backup_path\", defaultBackupPath);\n    }\n\n    public static String getOutputPath(Context context){\n        return context.getSharedPreferences(SPNAME, MODE_PRIVATE).getString(\"output_path\", defaultOutputPath);\n    }\n\n    public static int getScanType(Context context){\n        return context.getSharedPreferences(SPNAME, MODE_PRIVATE).getInt(\"scan_type\", 0);\n    }\n\n    public static boolean getAutoDel(Context context){\n        return context.getSharedPreferences(SPNAME, MODE_PRIVATE).getBoolean(\"auto_del\",false);\n    }\n\n    public static boolean getExportMore(Context context){\n        return context.getSharedPreferences(SPNAME, MODE_PRIVATE).getBoolean(\"export_more\",false);\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/utils/StatusbarUtil.java",
    "content": "package cc.zsakvo.yueduassistant.utils;\n\nimport android.app.Activity;\nimport android.view.Window;\n\npublic class StatusbarUtil {\n\n    public static void setStatusBarColor(Activity activity, int colorId) {\n        Window window = activity.getWindow();\n        window.setStatusBarColor(activity.getResources().getColor(colorId));\n    }\n\n\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/view/AboutActivity.java",
    "content": "package cc.zsakvo.yueduassistant.view;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.PorterDuff;\nimport android.graphics.drawable.Drawable;\nimport android.os.Bundle;\nimport android.view.MenuItem;\nimport android.view.View;\n\nimport androidx.appcompat.widget.Toolbar;\nimport androidx.core.content.ContextCompat;\n\nimport cc.zsakvo.yueduassistant.R;\nimport cc.zsakvo.yueduassistant.fragment.AboutFragment;\n\npublic class AboutActivity extends BaseActivity{\n\n    @Override\n    public void widgetClick(View v) {\n\n    }\n\n    @Override\n    public void initParms(Bundle parms) {\n\n    }\n\n    @Override\n    public View bindView() {\n        return null;\n    }\n\n    @Override\n    public int bindLayout() {\n        return R.layout.activity_about;\n    }\n\n    @Override\n    public int bindMenu() {\n        return 0;\n    }\n\n    @Override\n    public void clickMenu(MenuItem item) {\n\n    }\n\n    @Override\n    public void initView(View view) {\n        Toolbar toolbar = $(R.id.toolbar);\n        toolbar.setTitle(\" 关于和帮助 \");\n        setSupportActionBar(toolbar);\n\n        if (getSupportActionBar() != null) {\n            @SuppressLint(\"PrivateResource\") Drawable upArrow = ContextCompat.getDrawable(this, R.drawable.abc_ic_ab_back_material);\n            assert upArrow != null;\n            upArrow.setColorFilter(getResources().getColor(R.color.colorBlack), PorterDuff.Mode.SRC_ATOP);\n            getSupportActionBar().setHomeAsUpIndicator(upArrow);\n            getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n        }\n        toolbar.setNavigationOnClickListener(v -> finish());\n\n    }\n\n    @Override\n    public void setListener() {\n\n    }\n\n    @Override\n    public void doBusiness(Context mContext) {\n        AboutFragment fragment = new AboutFragment();\n        getSupportFragmentManager().beginTransaction().replace(R.id.fragment, fragment).commit();\n    }\n\n    @Override\n    public void doOnStart() {\n\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/view/BaseActivity.java",
    "content": "package cc.zsakvo.yueduassistant.view;\n\nimport android.content.Context;\nimport android.content.Intent;\nimport android.os.Build;\nimport android.os.Bundle;\nimport android.util.Log;\nimport android.view.LayoutInflater;\nimport android.view.Menu;\nimport android.view.MenuItem;\nimport android.view.View;\nimport android.widget.Toast;\n\nimport androidx.appcompat.app.AppCompatActivity;\n\nimport com.google.android.material.snackbar.Snackbar;\nimport com.orhanobut.logger.AndroidLogAdapter;\nimport com.orhanobut.logger.Logger;\n\nimport cc.zsakvo.yueduassistant.R;\nimport cc.zsakvo.yueduassistant.utils.SnackbarUtil;\nimport cc.zsakvo.yueduassistant.utils.StatusbarUtil;\n\npublic abstract class BaseActivity extends AppCompatActivity implements View.OnClickListener {\n    /**\n     * 当前 Activity 渲染的视图 View\n     **/\n    private View mContextView = null;\n    /**\n     * 日志输出标志\n     **/\n    protected final String TAG = this.getClass().getSimpleName();\n\n    /**\n     * View 点击\n     **/\n    public abstract void widgetClick(View v);\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        Logger.addLogAdapter(new AndroidLogAdapter());\n        Bundle bundle = getIntent().getExtras();\n        initParms(bundle);\n        View mView = bindView();\n        if (null == mView) {\n            mContextView = LayoutInflater.from(this)\n                    .inflate(bindLayout(), null);\n        } else\n            mContextView = mView;\n\n        setContentView(mContextView);\n\n        // 设置导航栏与状态栏变色\n        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n            getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);\n            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n                getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);\n            }\n            StatusbarUtil.setStatusBarColor(this, R.color.colorPrimary);\n        }\n\n        initView(mContextView);\n        setListener();\n        doBusiness(this);\n    }\n\n\n    /**\n     * [初始化参数]\n     *\n     * @param parms\n     */\n    public abstract void initParms(Bundle parms);\n\n    /**\n     * [绑定视图]\n     *\n     * @return\n     */\n    public abstract View bindView();\n\n    /**\n     * [绑定布局]\n     *\n     * @return\n     */\n    public abstract int bindLayout();\n\n\n    /**\n     * [绑定菜单]\n     *\n     * @return\n     */\n    public abstract int bindMenu();\n\n    @Override\n    public boolean onCreateOptionsMenu(Menu menu) {\n        if (bindMenu() != 0) {\n            getMenuInflater().inflate(bindMenu(), menu);\n        }\n        return true;\n    }\n\n    /**\n     * [绑定菜单事件]\n     *\n     * @return\n     */\n\n    public abstract void clickMenu(MenuItem item);\n\n\n    @Override\n    public boolean onOptionsItemSelected(MenuItem item) {\n        clickMenu(item);\n        return super.onOptionsItemSelected(item);\n    }\n\n\n    /**\n     * [初始化控件]\n     *\n     * @param view\n     */\n    public abstract void initView(final View view);\n\n    /**\n     * [绑定控件]\n     *\n     * @param resId\n     * @return\n     */\n    protected <T extends View> T $(int resId) {\n        return (T) super.findViewById(resId);\n    }\n\n    /**\n     * [设置监听]\n     */\n    public abstract void setListener();\n\n    @Override\n    public void onClick(View v) {\n        widgetClick(v);\n    }\n\n    /**\n     * [业务操作]\n     *\n     * @param mContext\n     */\n    public abstract void doBusiness(Context mContext);\n\n\n    /**\n     * [页面跳转]\n     *\n     * @param clz\n     */\n    public void startActivity(Class<?> clz) {\n        startActivity(new Intent(BaseActivity.this, clz));\n    }\n\n    /**\n     * [携带数据的页面跳转]\n     *\n     * @param clz\n     * @param bundle\n     */\n    public void startActivity(Class<?> clz, Bundle bundle) {\n        Intent intent = new Intent();\n        intent.setClass(this, clz);\n        if (bundle != null) {\n            intent.putExtras(bundle);\n        }\n        startActivity(intent);\n    }\n\n    /**\n     * [含有 Bundle 通过 Class 打开编辑界面]\n     *\n     * @param cls\n     * @param bundle\n     * @param requestCode\n     */\n    public void startActivityForResult(Class<?> cls, Bundle bundle,\n                                       int requestCode) {\n        Intent intent = new Intent();\n        intent.setClass(this, cls);\n        if (bundle != null) {\n            intent.putExtras(bundle);\n        }\n        startActivityForResult(intent, requestCode);\n    }\n\n    @Override\n    protected void onRestart() {\n        super.onRestart();\n        Log.d(TAG, \"onRestart()\");\n    }\n\n    @Override\n    protected void onStart() {\n        super.onStart();\n        Log.d(TAG, \"onStart()\");\n        doOnStart();\n    }\n\n    @Override\n    protected void onResume() {\n        super.onResume();\n        Log.d(TAG, \"onResume()\");\n    }\n\n    @Override\n    protected void onPause() {\n        super.onPause();\n        Log.d(TAG, \"onPause()\");\n    }\n\n    @Override\n    protected void onStop() {\n        super.onStop();\n        Log.d(TAG, \"onStop()\");\n    }\n\n    @Override\n    protected void onDestroy() {\n        super.onDestroy();\n        Log.d(TAG, \"onDestroy()\");\n    }\n\n    public abstract void doOnStart();\n\n    /**\n     * [简化 Snackbar]\n     *\n     * @param string,toolbar\n     */\n\n    protected void showSnackBar(String string, View v) {\n        SnackbarUtil.build(this, v, string, Snackbar.LENGTH_SHORT).show();\n    }\n\n    /**\n     * [简化 Toast]\n     *\n     * @param msg\n     */\n\n\n    protected void showToast(String msg) {\n        Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n    }\n\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/view/BookDetailActivity.java",
    "content": "package cc.zsakvo.yueduassistant.view;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.os.Bundle;\nimport android.view.MenuItem;\nimport android.view.View;\nimport android.view.WindowManager;\nimport android.widget.FrameLayout;\nimport android.widget.ImageView;\nimport android.widget.LinearLayout;\nimport android.widget.RelativeLayout;\nimport android.widget.TextView;\n\nimport androidx.coordinatorlayout.widget.CoordinatorLayout;\nimport androidx.core.widget.ImageViewCompat;\nimport androidx.recyclerview.widget.LinearLayoutManager;\nimport androidx.recyclerview.widget.RecyclerView;\n\nimport com.alibaba.fastjson.JSONObject;\nimport com.bumptech.glide.Glide;\nimport com.google.android.material.bottomsheet.BottomSheetDialog;\nimport com.google.android.material.button.MaterialButton;\nimport com.google.android.material.floatingactionbutton.FloatingActionButton;\nimport com.google.android.material.snackbar.Snackbar;\nimport com.lapism.searchview.Search;\nimport com.lapism.searchview.widget.SearchView;\nimport com.orhanobut.logger.Logger;\nimport com.yanzhenjie.permission.AndPermission;\nimport com.yanzhenjie.permission.runtime.Permission;\n\nimport org.jsoup.Connection;\nimport org.jsoup.Jsoup;\nimport org.jsoup.nodes.Document;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.text.DecimalFormat;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n\nimport cc.zsakvo.yueduassistant.R;\nimport cc.zsakvo.yueduassistant.adapter.CacheChapterAdapter;\nimport cc.zsakvo.yueduassistant.bean.CacheBook;\nimport cc.zsakvo.yueduassistant.bean.CacheChapter;\nimport cc.zsakvo.yueduassistant.bean.ExportBook;\nimport cc.zsakvo.yueduassistant.listener.ExportListener;\nimport cc.zsakvo.yueduassistant.listener.FlagsListener;\nimport cc.zsakvo.yueduassistant.utils.BookUtil;\nimport cc.zsakvo.yueduassistant.utils.SnackbarUtil;\nimport cc.zsakvo.yueduassistant.utils.SourceUtil;\nimport cc.zsakvo.yueduassistant.utils.SpUtil;\nimport io.reactivex.Observable;\nimport io.reactivex.ObservableOnSubscribe;\nimport io.reactivex.Observer;\nimport io.reactivex.android.schedulers.AndroidSchedulers;\nimport io.reactivex.disposables.Disposable;\nimport io.reactivex.schedulers.Schedulers;\n\npublic class BookDetailActivity extends BaseActivity implements ExportListener, FlagsListener {\n\n    List<CacheChapter> cacheChapters = new ArrayList<>();\n    List<Boolean> chapterFlags = new ArrayList<>();\n    private String bookCachePath;\n    private String outputPath;\n    private CacheChapterAdapter adapter;\n    private String bookName;\n    private String cover;\n    private int chapterNum;\n    private TextView bookInfoName, bookInfoNum;\n    private FrameLayout bookInfoCard;\n    private RecyclerView bookChapters;\n    private FloatingActionButton fab;\n    private CoordinatorLayout coordinatorLayout;\n    private boolean flagsStatus;\n    private SearchView searchView;\n    private BottomSheetDialog mBottomSheetDialog;\n\n    @Override\n    public void widgetClick(View v) {\n    }\n\n    @Override\n    public void initParms(Bundle parms) {\n\n    }\n\n    @Override\n    public View bindView() {\n        return null;\n    }\n\n    @Override\n    public int bindLayout() {\n        return R.layout.activity_book_detail;\n    }\n\n    @Override\n    public int bindMenu() {\n        return 0;\n    }\n\n    @Override\n    public void clickMenu(MenuItem item) {\n\n    }\n\n    @Override\n    public void initView(View view) {\n\n        getWindow().addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);\n        searchView = $(R.id.searchView);\n        searchView.setShadow(false);\n        searchView.setClickable(false);\n        searchView.setOnLogoClickListener(new Search.OnLogoClickListener() {\n            @Override\n            public void onLogoClick() {\n                finish();\n            }\n        });\n\n        searchView.setOnOpenCloseListener(new Search.OnOpenCloseListener() {\n\n            @Override\n            public void onOpen() {\n                searchView.clearFocus();\n            }\n\n            @Override\n            public void onClose() {\n            }\n        });\n        coordinatorLayout = $(R.id.coord);\n\n        fab = $(R.id.fab);\n\n        bookChapters = $(R.id.book_chapters);\n        bookChapters.setLayoutManager(new LinearLayoutManager(this));\n        adapter = new CacheChapterAdapter(BookDetailActivity.this, this::setFlags);\n\n        bookChapters.setAdapter(adapter);\n\n        if (SpUtil.getExportMore(BookDetailActivity.this)) {\n            fab.setOnClickListener(view1 -> {\n                mBottomSheetDialog = new BottomSheetDialog(BookDetailActivity.this);\n                View dialogView = getLayoutInflater().inflate(R.layout.dialog_advanced_export, null);\n                ImageView imageView = (ImageView) dialogView.findViewById(R.id.book_cover);\n                TextView tv_name = (TextView) dialogView.findViewById(R.id.book_name);\n                TextView tv_author = (TextView) dialogView.findViewById(R.id.book_author);\n                TextView tv_desc = (TextView) dialogView.findViewById(R.id.book_desc);\n                MaterialButton mb_export_txt = (MaterialButton) dialogView.findViewById(R.id.export_txt);\n                MaterialButton mb_export_epub = (MaterialButton) dialogView.findViewById(R.id.export_epub);\n                RelativeLayout book_info = (RelativeLayout) dialogView.findViewById(R.id.book_info);\n                mBottomSheetDialog.setContentView(dialogView);\n\n                Observable.create((ObservableOnSubscribe<JSONObject>) emitter -> {\n                    try {\n                        Connection.Response response = Jsoup.connect(\"https://www.yousuu.com/api/search?type=title&value=\" + bookName + \"&page=1\")\n                                .header(\"Accept\", \"*/*\")\n                                .ignoreContentType(true)\n                                .execute();\n                        JSONObject data = JSONObject.parseObject(response.body()).getJSONObject(\"data\");\n                        if (data.getJSONArray(\"books\").size() == 0) {\n                            emitter.onError(new Throwable(\"没有检索到本书\"));\n                        } else {\n                            JSONObject book = data.getJSONArray(\"books\").getJSONObject(0);\n                            JSONObject object = new JSONObject();\n                            object.put(\"name\", book.getString(\"title\"));\n                            object.put(\"author\", book.getString(\"author\"));\n                            object.put(\"desc\", book.getString(\"countWord\"));\n                            object.put(\"cover\", book.getString(\"cover\"));\n                            emitter.onNext(object);\n                        }\n                    } catch (Exception e) {\n                        emitter.onError(e);\n                    }\n                    emitter.onComplete();\n                }).subscribeOn(Schedulers.io())\n                        .observeOn(AndroidSchedulers.mainThread())\n                        .subscribe(new Observer<JSONObject>() {\n\n                            @Override\n                            public void onSubscribe(Disposable d) {\n                                Logger.d(\"subscribe\");\n                            }\n\n                            @Override\n                            public void onNext(JSONObject jsonObject) {\n                                cover = jsonObject.getString(\"cover\");\n                                Glide.with(dialogView).load(cover).into(imageView);\n                                tv_name.setText(bookName);\n                                DecimalFormat df = new DecimalFormat(\"0.00\");\n                                String wordCount = df.format((float) jsonObject.getInteger(\"desc\") / 10000);\n                                tv_author.setText(jsonObject.getString(\"author\") + \" 著\");\n                                tv_desc.setText(\"共 \" + wordCount + \" 万字\");\n\n                                mb_export_txt.setOnClickListener(view2 -> {\n                                    mBottomSheetDialog.cancel();\n                                    ExportBook.Builder bookBuilder = new ExportBook.Builder(BookDetailActivity.this);\n                                    ExportBook exportBook = bookBuilder\n                                            .bookPath(bookCachePath)\n                                            .cacheChapters(cacheChapters)\n                                            .flags(chapterFlags)\n                                            .outputDirPath(SpUtil.getOutputPath(BookDetailActivity.this))\n                                            .fileName(bookName + \".txt\")\n                                            .build();\n                                    new BookUtil(exportBook, BookDetailActivity.this).extractTXT();\n                                });\n\n                                mb_export_epub.setOnClickListener(new View.OnClickListener() {\n                                    @Override\n                                    public void onClick(View view) {\n                                        mBottomSheetDialog.cancel();\n                                        imageView.buildDrawingCache(true);\n                                        imageView.buildDrawingCache(false);\n                                        ExportBook.Builder bookBuilder = new ExportBook.Builder(BookDetailActivity.this);\n                                        ExportBook exportBook = bookBuilder\n                                                .bookPath(bookCachePath)\n                                                .cacheChapters(cacheChapters)\n                                                .flags(chapterFlags)\n                                                .outputDirPath(SpUtil.getOutputPath(BookDetailActivity.this))\n                                                .fileName(bookName + \".txt\")\n                                                .name(bookName)\n                                                .cover(cover)\n                                                .author(tv_author.getText().toString().replace(\" 著\", \"\"))\n                                                .build();\n                                        new BookUtil(exportBook, BookDetailActivity.this).extractEpub();\n                                    }\n                                });\n                            }\n\n                            @Override\n                            public void onError(Throwable e) {\n                                Logger.e(e.toString());\n                                book_info.setVisibility(View.GONE);\n                                mb_export_txt.setOnClickListener(view2 -> {\n                                    mBottomSheetDialog.cancel();\n                                    ExportBook.Builder bookBuilder = new ExportBook.Builder(BookDetailActivity.this);\n                                    ExportBook exportBook = bookBuilder\n                                            .bookPath(bookCachePath)\n                                            .cacheChapters(cacheChapters)\n                                            .flags(chapterFlags)\n                                            .outputDirPath(SpUtil.getOutputPath(BookDetailActivity.this))\n                                            .fileName(bookName + \".txt\")\n                                            .build();\n                                    new BookUtil(exportBook, BookDetailActivity.this).extractTXT();\n                                });\n                                mb_export_txt.setEnabled(true);\n\n                            }\n\n                            @Override\n                            public void onComplete() {\n                                mb_export_txt.setEnabled(true);\n                                mb_export_epub.setEnabled(true);\n                            }\n                        });\n\n                mBottomSheetDialog.show();\n            });\n        } else {\n            fab.setOnClickListener(view12 -> {\n                ExportBook.Builder bookBuilder = new ExportBook.Builder(BookDetailActivity.this);\n                ExportBook exportBook = bookBuilder\n                        .bookPath(bookCachePath)\n                        .cacheChapters(cacheChapters)\n                        .flags(chapterFlags)\n                        .outputDirPath(SpUtil.getOutputPath(BookDetailActivity.this))\n                        .fileName(bookName + \".txt\")\n                        .build();\n                new BookUtil(exportBook, BookDetailActivity.this).extractTXT();\n            });\n        }\n\n\n    }\n\n    @Override\n    public void setListener() {\n\n    }\n\n    private void scanChapters(String path) {\n        cacheChapters.clear();\n        adapter.cleanItems();\n        Observable.create((ObservableOnSubscribe<Void>) emitter -> {\n            try {\n                File bookCache = new File(path);\n                String[] bookCacheList = bookCache.list();\n                Arrays.sort(bookCacheList);\n                for (String chapterCacheName : bookCacheList) {\n                    if (!chapterCacheName.contains(\"-\") || !chapterCacheName.contains(\".nb\")) break;\n                    CacheChapter cacheChapter = new CacheChapter();\n                    cacheChapter.setFileName(chapterCacheName);\n                    chapterCacheName = chapterCacheName.replace(\".nb\", \"\");\n                    String[] chapterCacheNameInfo = chapterCacheName.split((\"-\"));\n                    cacheChapter.setName(chapterCacheNameInfo[1]);\n                    cacheChapters.add(cacheChapter);\n                    if (flagsStatus) chapterFlags.add(true);\n                }\n                emitter.onComplete();\n            } catch (Exception e) {\n                View topView = getLayoutInflater().inflate(R.layout.scan_chapters_failed_card, new LinearLayout(BookDetailActivity.this));\n                bookInfoCard.removeAllViews();\n                bookInfoCard.addView(topView);\n            }\n\n        }).subscribeOn(Schedulers.io())\n                .observeOn(AndroidSchedulers.mainThread())\n                .subscribe(new Observer<Void>() {\n\n                    @Override\n                    public void onSubscribe(Disposable d) {\n                    }\n\n                    @Override\n                    public void onNext(Void v) {\n                        Logger.d(\"onNext: \");\n                    }\n\n                    @Override\n                    public void onError(Throwable e) {\n                        Logger.e(e.toString());\n                        try {\n                            View topView = getLayoutInflater().inflate(R.layout.scan_chapters_failed_card, new LinearLayout(BookDetailActivity.this));\n                            bookInfoCard.removeAllViews();\n                            bookInfoCard.addView(topView);\n                        } catch (Exception e1) {\n                            Logger.e(e1.toString());\n                        }\n                    }\n\n                    @Override\n                    public void onComplete() {\n                        View topView = getLayoutInflater().inflate(R.layout.book_info_card, new LinearLayout(BookDetailActivity.this));\n                        bookInfoName = topView.findViewById(R.id.card_book_info_name);\n                        bookInfoNum = topView.findViewById(R.id.card_book_info_num);\n                        chapterNum = cacheChapters.size();\n                        bookInfoName.setText(bookName);\n                        bookInfoNum.setText(String.format(getResources().getString(R.string.book_info_chapterNum), chapterNum));\n                        adapter.setItems(cacheChapters, chapterFlags);\n\n                    }\n                });\n    }\n\n    @Override\n    public void doBusiness(Context mContext) {\n        String info = getIntent().getStringExtra(\"info\");\n        bookName = info.split(\"-\")[0];\n        searchView.setHint(bookName);\n        bookCachePath = SpUtil.getCacheDirPath(this) + \"/\" + info;\n        outputPath = SpUtil.getOutputPath(this) + \"/\" + bookName + \".txt\";\n    }\n\n    @Override\n    public void doOnStart() {\n        adapter.cleanItems();\n        flagsStatus = chapterFlags.size() == 0;\n        scanChapters(bookCachePath);\n    }\n\n    @Override\n    public void exportFinish() {\n        if (SpUtil.getAutoDel(BookDetailActivity.this)) {\n            finish();\n        } else {\n            SnackbarUtil.build(BookDetailActivity.this, coordinatorLayout, \"导出成功\", Snackbar.LENGTH_SHORT).show();\n            chapterFlags.clear();\n            flagsStatus = true;\n            scanChapters(bookCachePath);\n        }\n\n    }\n\n    @Override\n    public void setFlags(List<Boolean> flags) {\n        this.chapterFlags = flags;\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/view/MainActivity.java",
    "content": "package cc.zsakvo.yueduassistant.view;\n\nimport android.content.Context;\nimport android.content.Intent;\nimport android.content.pm.PackageManager;\nimport android.graphics.Color;\nimport android.os.Bundle;\nimport android.view.MenuItem;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.TextView;\n\nimport androidx.annotation.NonNull;\nimport androidx.cardview.widget.CardView;\nimport androidx.core.view.GravityCompat;\nimport androidx.drawerlayout.widget.DrawerLayout;\nimport androidx.recyclerview.widget.LinearLayoutManager;\nimport androidx.recyclerview.widget.RecyclerView;\n\nimport com.google.android.material.bottomsheet.BottomSheetDialog;\nimport com.google.android.material.button.MaterialButton;\nimport com.google.android.material.navigation.NavigationView;\nimport com.lapism.searchview.Search;\nimport com.lapism.searchview.widget.SearchView;\nimport com.orhanobut.logger.Logger;\nimport com.yanzhenjie.permission.AndPermission;\nimport com.yanzhenjie.permission.runtime.Permission;\n\nimport java.io.File;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.LinkedHashMap;\nimport java.util.List;\nimport java.util.Objects;\n\nimport cc.zsakvo.yueduassistant.R;\nimport cc.zsakvo.yueduassistant.adapter.CacheBookAdapter;\nimport cc.zsakvo.yueduassistant.bean.CacheBook;\nimport cc.zsakvo.yueduassistant.utils.SourceUtil;\nimport cc.zsakvo.yueduassistant.utils.SpUtil;\nimport io.reactivex.Observable;\nimport io.reactivex.ObservableOnSubscribe;\nimport io.reactivex.Observer;\nimport io.reactivex.android.schedulers.AndroidSchedulers;\nimport io.reactivex.disposables.Disposable;\nimport io.reactivex.schedulers.Schedulers;\n\npublic class MainActivity extends BaseActivity implements NavigationView.OnNavigationItemSelectedListener {\n\n    private DrawerLayout drawerLayout;\n    private RecyclerView mRecyclerView;\n    private SearchView searchView;\n    private CardView permisson_card;\n    private CardView scanning_card;\n    private CardView prompt_card;\n    private String cacheDirPath = \"\";\n    private HashMap<String, String> source;\n    private LinkedHashMap<String, CacheBook> books;\n    private List<String> bookNames = new ArrayList<>();\n    private List<String> bookInfos = new ArrayList<>();\n    private List<String> bookKeys = new ArrayList<>();\n    private List<CacheBook> cacheBooks = new ArrayList<>();\n    private List<CacheBook> baseDatas = new ArrayList<>();\n    List<CacheBook> cacheTmp = new ArrayList<>();\n\n    private CacheBookAdapter adapter;\n\n    private TextView tv_prompt_text;\n\n    private StringBuilder errorLog;\n\n\n    @Override\n    public void widgetClick(View v) {\n        switch (v.getId()) {\n            case -1:\n                startActivity(new Intent(MainActivity.this, SettingsActivity.class));\n                break;\n        }\n    }\n\n    @Override\n    public void initParms(Bundle parms) {\n\n    }\n\n    @Override\n    public View bindView() {\n        return null;\n    }\n\n    @Override\n    public int bindLayout() {\n        return R.layout.activity_main;\n    }\n\n    @Override\n    public int bindMenu() {\n        return 0;\n    }\n\n    @Override\n    public void clickMenu(MenuItem item) {\n\n    }\n\n    @Override\n    public void initView(View view) {\n        drawerLayout = $(R.id.drawer_layout);\n        searchView = $(R.id.searchView);\n        searchView.setHint(\"阅读助手\");\n        searchView.setShadow(false);\n        searchView.setClickable(false);\n        searchView.setOnLogoClickListener(new Search.OnLogoClickListener() {\n            @Override\n            public void onLogoClick() {\n                drawerLayout.openDrawer(GravityCompat.START);\n            }\n        });\n\n        searchView.setOnQueryTextListener(new Search.OnQueryTextListener() {\n            @Override\n            public boolean onQueryTextSubmit(CharSequence query) {\n                searchView.clearFocus();\n                return false;\n            }\n\n            @Override\n            public void onQueryTextChange(CharSequence newText) {\n                if (newText.length() == 0) {\n                    searchView.clearFocus();\n                }\n                cacheBooks.clear();\n                cacheTmp.clear();\n                for (CacheBook cacheBook : baseDatas) {\n                    if (cacheBook.getName().contains(newText)) {\n                        cacheTmp.add(cacheBook);\n                    }\n                }\n                cacheBooks.addAll(cacheTmp);\n                adapter.cleanItems();\n                adapter.setItems(cacheBooks);\n            }\n        });\n\n        NavigationView navigationView = $(R.id.nav_view);\n        navigationView.setNavigationItemSelectedListener(this);\n    }\n\n    @Override\n    public void setListener() {\n\n    }\n\n    @Override\n    public void doBusiness(Context mContext) {\n        mRecyclerView = $(R.id.cache_recyclerView);\n        mRecyclerView.setLayoutManager(new LinearLayoutManager(this));\n        adapter = new CacheBookAdapter(MainActivity.this);\n        mRecyclerView.setAdapter(adapter);\n    }\n\n    private void scanBooks() {\n        Logger.d(\"开始扫描书籍\");\n        cacheBooks.clear();\n        adapter.notifyDataSetChanged();\n        Observable.create((ObservableOnSubscribe<Void>) emitter -> {\n            try {\n                File cacheDir = new File(cacheDirPath);\n                for (String cacheName : Objects.requireNonNull(cacheDir.list())) {\n                    if (!cacheName.contains(\"-\")) break;\n                    CacheBook cacheBook = new CacheBook();\n                    cacheBook.setInfo(cacheName);\n                    String[] cacheInfo = cacheName.split((\"-\"));\n                    cacheBook.setName(cacheInfo[0]);\n                    cacheBook.setSource(SourceUtil.queryName(cacheInfo[1]));\n                    int chapterNum = Objects.requireNonNull(new File(cacheDirPath + \"/\" + cacheName + \"/\").list()).length;\n                    cacheBook.setChapterNum(chapterNum);\n                    cacheBooks.add(cacheBook);\n                    baseDatas.add(cacheBook);\n                }\n                emitter.onComplete();\n            } catch (Exception e) {\n                emitter.onError(e);\n            }\n\n        }).subscribeOn(Schedulers.io())\n                .observeOn(AndroidSchedulers.mainThread())\n                .subscribe(new Observer<Void>() {\n\n                    @Override\n                    public void onSubscribe(Disposable d) {\n                        Logger.d(\"subscribe\");\n                    }\n\n                    @Override\n                    public void onNext(Void v) {\n                        Logger.d(\"onNext: \");\n                    }\n\n                    @Override\n                    public void onError(Throwable e) {\n                        Logger.e(e.toString());\n                        errorLog = new StringBuilder();\n                        errorLog.append(e.toString())\n                                .append(\"\\n\")\n                                .append(cacheDirPath);\n                        showBooks();\n                    }\n\n                    @Override\n                    public void onComplete() {\n                        Logger.d(\"扫描完毕\");\n                        showBooks();\n                        searchView.setClickable(true);\n                    }\n                });\n    }\n\n    private void showBooks() {\n        adapter.setItems(cacheBooks);\n        if (cacheBooks == null || cacheBooks.size() == 0) {\n            Logger.e(\"未扫描到书籍\");\n            BottomSheetDialog mBottomSheetDialog = new BottomSheetDialog(MainActivity.this);\n            mBottomSheetDialog.setCancelable(false);\n            View dialogView = getLayoutInflater().inflate(R.layout.dialog_scan_books_failed, null);\n            TextView title = (TextView)dialogView.findViewById(R.id.scan_failed_title);\n            TextView content = (TextView)dialogView.findViewById(R.id.scan_failed_content);\n            MaterialButton appExit = (MaterialButton) dialogView.findViewById(R.id.app_exit);\n            MaterialButton appAuth = (MaterialButton) dialogView.findViewById(R.id.app_auth);\n            title.setText(getResources().getText(R.string.no_books_title));\n            content.setText(getResources().getText(R.string.no_books_content));\n            appExit.setText(\"退出\");\n            appAuth.setText(\"去设置\");\n            appExit.setOnClickListener(new View.OnClickListener() {\n                @Override\n                public void onClick(View view) {\n                    finish();\n                }\n            });\n            appAuth.setOnClickListener(new View.OnClickListener() {\n                @Override\n                public void onClick(View view) {\n                    startActivity(new Intent(MainActivity.this, SettingsActivity.class));\n                    mBottomSheetDialog.dismiss();\n                }\n            });\n            mBottomSheetDialog.setContentView(dialogView);\n            mBottomSheetDialog.show();\n        }\n        adapter.notifyDataSetChanged();\n    }\n\n\n    @Override\n    public void doOnStart() {\n        searchView.clearFocus();\n        searchView.setText(null);\n        baseDatas.clear();\n        adapter.cleanItems();\n        //获取缓存路径\n        cacheDirPath = SpUtil.getCacheDirPath(this);\n        //检查权限\n        String readPermission = \"android.permission.READ_EXTERNAL_STORAGE\";\n        String writePermission = \"android.permission.WRITE_EXTERNAL_STORAGE\";\n        int rperm = checkCallingOrSelfPermission(readPermission);\n        int wperm = checkCallingOrSelfPermission(writePermission);\n        if (rperm == PackageManager.PERMISSION_GRANTED && wperm == PackageManager.PERMISSION_GRANTED) {\n            scanBooks();\n        } else {\n            BottomSheetDialog mBottomSheetDialog = new BottomSheetDialog(MainActivity.this);\n            mBottomSheetDialog.setCancelable(false);\n            View dialogView = getLayoutInflater().inflate(R.layout.dialog_scan_books_failed, null);\n            TextView title = (TextView)dialogView.findViewById(R.id.scan_failed_title);\n            TextView content = (TextView)dialogView.findViewById(R.id.scan_failed_content);\n            MaterialButton appExit = (MaterialButton) dialogView.findViewById(R.id.app_exit);\n            MaterialButton appAuth = (MaterialButton) dialogView.findViewById(R.id.app_auth);\n            title.setText(getResources().getText(R.string.no_permission_title));\n            content.setText(getResources().getText(R.string.no_permission_content));\n            appExit.setText(\"退出\");\n            appAuth.setText(\"授权\");\n            appExit.setOnClickListener(new View.OnClickListener() {\n                @Override\n                public void onClick(View view) {\n                    finish();\n                }\n            });\n            appAuth.setOnClickListener(new View.OnClickListener() {\n                @Override\n                public void onClick(View view) {\n                    AndPermission.with(MainActivity.this)\n                            .runtime()\n                            .permission(Permission.Group.STORAGE)\n                            .onGranted(permissions -> {\n                                mBottomSheetDialog.cancel();\n                                scanBooks();\n                            })\n                            .onDenied(permissions -> {\n\n                            })\n                            .start();\n                }\n            });\n            mBottomSheetDialog.setContentView(dialogView);\n            mBottomSheetDialog.show();\n        }\n    }\n\n    @Override\n    public void onBackPressed() {\n        if (drawerLayout.isDrawerOpen(GravityCompat.START)) {\n            drawerLayout.closeDrawer(GravityCompat.START);\n        } else if (searchView.getText() != null && searchView.getText().length() > 0) {\n            searchView.setText(null);\n            searchView.clearFocus();\n        } else {\n            super.onBackPressed();\n        }\n    }\n\n    @Override\n    public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {\n        switch (menuItem.getItemId()) {\n            case R.id.drawer_extract:\n                menuItem.setChecked(true);\n                break;\n            case R.id.drawer_settings:\n                startActivity(new Intent(MainActivity.this, SettingsActivity.class));\n                break;\n            case R.id.drawer_help:\n                startActivity(new Intent(MainActivity.this, AboutActivity.class));\n                break;\n        }\n        drawerLayout.closeDrawer(GravityCompat.START);\n        return false;\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/cc/zsakvo/yueduassistant/view/SettingsActivity.java",
    "content": "package cc.zsakvo.yueduassistant.view;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.PorterDuff;\nimport android.graphics.drawable.Drawable;\nimport android.os.Bundle;\nimport android.view.MenuItem;\nimport android.view.View;\n\nimport androidx.appcompat.widget.Toolbar;\nimport androidx.core.content.ContextCompat;\nimport cc.zsakvo.yueduassistant.R;\nimport cc.zsakvo.yueduassistant.fragment.SettingsFragment;\n\npublic class SettingsActivity extends BaseActivity{\n\n    @Override\n    public void widgetClick(View v) {\n\n    }\n\n    @Override\n    public void initParms(Bundle parms) {\n\n    }\n\n    @Override\n    public View bindView() {\n        return null;\n    }\n\n    @Override\n    public int bindLayout() {\n        return R.layout.activity_settings;\n    }\n\n    @Override\n    public int bindMenu() {\n        return 0;\n    }\n\n    @Override\n    public void clickMenu(MenuItem item) {\n\n    }\n\n    @Override\n    public void initView(View view) {\n        Toolbar toolbar = $(R.id.toolbar);\n        toolbar.setTitle(\" 设置 \");\n        setSupportActionBar(toolbar);\n\n        if (getSupportActionBar() != null) {\n            @SuppressLint(\"PrivateResource\") Drawable upArrow = ContextCompat.getDrawable(this, R.drawable.abc_ic_ab_back_material);\n            assert upArrow != null;\n            upArrow.setColorFilter(getResources().getColor(R.color.colorBlack), PorterDuff.Mode.SRC_ATOP);\n            getSupportActionBar().setHomeAsUpIndicator(upArrow);\n            getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n        }\n        toolbar.setNavigationOnClickListener(v -> finish());\n\n    }\n\n    @Override\n    public void setListener() {\n\n    }\n\n    @Override\n    public void doBusiness(Context mContext) {\n        SettingsFragment fragment = new SettingsFragment();\n        getSupportFragmentManager().beginTransaction().replace(R.id.fragment, fragment).commit();\n    }\n\n    @Override\n    public void doOnStart() {\n\n    }\n}\n"
  },
  {
    "path": "app/src/main/res/anim/anim_recycler_item_show.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <translate\n        android:duration=\"300\"\n        android:fromXDelta=\"0\"\n        android:fromYDelta=\"20%\"\n        android:toXDelta=\"0\"\n        android:toYDelta=\"0\" />\n</set>"
  },
  {
    "path": "app/src/main/res/color/og_nav_item_icon_tint_color.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\" xmlns:aapt=\"http://schemas.android.com/aapt\">\n    <item android:state_enabled=\"false\" android:color=\"#ff80868b\"/>\n    <item android:state_checked=\"true\" android:color=\"?attr/colorAccent\"/>\n    <item android:color=\"#ff5f6368\"/>\n</selector>"
  },
  {
    "path": "app/src/main/res/color/og_nav_item_text_color.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\" xmlns:aapt=\"http://schemas.android.com/aapt\">\n    <item android:state_enabled=\"false\" android:color=\"#ff80868b\"/>\n    <item android:state_checked=\"true\" android:color=\"?attr/colorAccent\"/>\n    <item android:color=\"#ff3c4043\"/>\n</selector>"
  },
  {
    "path": "app/src/main/res/drawable/ic_book.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"1024\"\n    android:viewportHeight=\"1024\">\n  <path\n      android:pathData=\"M590.51,128.05 L432.3,128.05c-20.9,0 -26.87,6.29 -26.87,27.56l0.03,739.28 211.92,0L617.37,155.6C617.37,134.34 611.4,128.05 590.51,128.05zM583.59,346.88c0,16.53 -2.2,19.01 -18.46,19.01L460.75,365.89c-16.24,0 -18.46,-2.47 -18.46,-19.01l0,-71.5c0,-16.53 2.23,-19 18.46,-19l104.37,0c16.26,0 18.46,2.47 18.46,19L583.59,346.88zM324,128.05l-158.19,0c-20.89,0 -26.86,6.29 -26.86,27.56l0,739.28 211.93,0L350.87,155.6C350.87,134.34 344.89,128.05 324,128.05zM314,346.88c0,16.53 -2.22,19.01 -18.44,19.01L191.2,365.89c-16.23,0 -18.44,-2.47 -18.44,-19.01l0,-71.5c0,-16.53 2.22,-19 18.44,-19l104.35,0c16.23,0 18.44,2.47 18.44,19L313.99,346.88zM857.01,128.05 L698.79,128.05c-20.9,0 -26.87,6.29 -26.87,27.56l0.04,739.28L883.87,894.89 883.87,155.6C883.87,134.34 877.91,128.05 857.01,128.05zM850.09,346.88c0,16.53 -2.22,19.01 -18.47,19.01L727.26,365.89c-16.26,0 -18.48,-2.47 -18.48,-19.01l0,-71.5c0,-16.53 2.21,-19 18.48,-19l104.35,0c16.26,0 18.47,2.47 18.47,19L850.09,346.88z\"\n      android:fillColor=\"#ffffff\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_done.xml",
    "content": "<vector android:height=\"24dp\" android:tint=\"#FAFAFA\"\n    android:viewportHeight=\"24.0\" android:viewportWidth=\"24.0\"\n    android:width=\"24dp\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <path android:fillColor=\"#FF000000\" android:pathData=\"M9,16.2L4.8,12l-1.4,1.4L9,19 21,7l-1.4,-1.4L9,16.2z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_drawer_bg_selector.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\">\n    <item\n        android:state_checked=\"true\"\n        android:drawable=\"@drawable/ic_drawer_bg_shape\"/>\n</selector>"
  },
  {
    "path": "app/src/main/res/drawable/ic_drawer_bg_shape.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ripple xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:color=\"@color/google_grey300\">\n    <item android:left=\"0dp\" android:right=\"8dp\">\n        <shape android:shape=\"rectangle\">\n            <solid android:color=\"@color/color_blue50\"/>\n            <corners android:topLeftRadius=\"0dp\"\n                android:topRightRadius=\"40dp\"\n                android:bottomLeftRadius=\"0dp\"\n                android:bottomRightRadius=\"40dp\"/>\n        </shape>\n    </item>\n</ripple>"
  },
  {
    "path": "app/src/main/res/drawable/ic_extract.xml",
    "content": "<vector android:height=\"24dp\" android:tint=\"#FFFFFF\"\n    android:viewportHeight=\"24.0\" android:viewportWidth=\"24.0\"\n    android:width=\"24dp\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <path android:fillColor=\"#FF000000\" android:pathData=\"M21,3L3,10.53v0.98l6.84,2.65L12.48,21h0.98L21,3z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_help.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"24dp\"\n        android:height=\"24dp\"\n        android:viewportWidth=\"24.0\"\n        android:viewportHeight=\"24.0\">\n    <path\n        android:fillColor=\"#FF000000\"\n        android:pathData=\"M11,15h2v2h-2zM11,7h2v6h-2zM11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"108\"\n    android:viewportHeight=\"108\">\n    <path\n        android:fillColor=\"#008577\"\n        android:pathData=\"M0,0h108v108h-108z\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M9,0L9,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,0L19,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M29,0L29,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M39,0L39,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M49,0L49,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M59,0L59,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M69,0L69,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M79,0L79,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M89,0L89,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M99,0L99,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,9L108,9\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,19L108,19\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,29L108,29\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,39L108,39\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,49L108,49\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,59L108,59\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,69L108,69\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,79L108,79\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,89L108,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,99L108,99\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,29L89,29\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,39L89,39\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,49L89,49\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,59L89,59\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,69L89,69\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,79L89,79\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M29,19L29,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M39,19L39,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M49,19L49,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M59,19L59,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M69,19L69,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M79,19L79,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_foreground.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"2939.713\"\n    android:viewportHeight=\"2939.713\">\n  <group android:translateX=\"957.85645\"\n      android:translateY=\"957.85645\">\n    <path\n        android:pathData=\"M495.8,1021.37l-460.79,-153.6A51.2,51.2 0,0 1,0.01 819.2v-767.98A51.2,51.2 0,0 1,67.41 2.66L512,150.85 956.58,2.66A51.2,51.2 0,0 1,1023.98 51.22v767.98a51.2,51.2 0,0 1,-35 48.58l-460.79,153.6a51.2,51.2 0,0 1,-32.4 0zM102.41,782.33l409.59,136.52 409.59,-136.52V122.26l-393.39,131.07a51.2,51.2 0,0 1,-32.4 0L102.41,122.26z\"\n        android:fillColor=\"#707070\"/>\n    <path\n        android:pathData=\"M512,819.2a51.2,51.2 0,0 1,-51.2 -51.2v-358.39a51.2,51.2 0,1 1,102.4 0v358.39a51.2,51.2 0,0 1,-51.2 51.2z\"\n        android:fillColor=\"#707070\"/>\n  </group>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_refresh.xml",
    "content": "<vector android:height=\"24dp\" android:tint=\"#FAFAFA\"\n    android:viewportHeight=\"24.0\" android:viewportWidth=\"24.0\"\n    android:width=\"24dp\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <path android:fillColor=\"#FF000000\" android:pathData=\"M17.65,6.35C16.2,4.9 14.21,4 12,4c-4.42,0 -7.99,3.58 -7.99,8s3.57,8 7.99,8c3.73,0 6.84,-2.55 7.73,-6h-2.08c-0.82,2.33 -3.04,4 -5.65,4 -3.31,0 -6,-2.69 -6,-6s2.69,-6 6,-6c1.66,0 3.14,0.69 4.22,1.78L13,11h7V4l-2.35,2.35z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_scan_done.xml",
    "content": "<vector android:height=\"24dp\" android:tint=\"#4BCB4E\"\n    android:viewportHeight=\"24.0\" android:viewportWidth=\"24.0\"\n    android:width=\"24dp\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <path android:fillColor=\"#FF000000\" android:pathData=\"M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM10,17l-5,-5 1.41,-1.41L10,14.17l7.59,-7.59L19,8l-9,9z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_scan_failed.xml",
    "content": "<vector android:height=\"24dp\" android:tint=\"#FAFAFA\"\n    android:viewportHeight=\"24.0\" android:viewportWidth=\"24.0\"\n    android:width=\"24dp\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <path android:fillColor=\"#FF000000\" android:pathData=\"M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_scan_status.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"24dp\"\n        android:height=\"24dp\"\n        android:viewportWidth=\"24.0\"\n        android:viewportHeight=\"24.0\">\n    <path\n        android:fillColor=\"#FF000000\"\n        android:pathData=\"M12,10.9c-0.61,0 -1.1,0.49 -1.1,1.1s0.49,1.1 1.1,1.1c0.61,0 1.1,-0.49 1.1,-1.1s-0.49,-1.1 -1.1,-1.1zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM14.19,14.19L6,18l3.81,-8.19L18,6l-3.81,8.19z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_scanning.xml",
    "content": "<vector android:height=\"24dp\" android:tint=\"#FAFAFA\"\n    android:viewportHeight=\"24.0\" android:viewportWidth=\"24.0\"\n    android:width=\"24dp\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <path android:fillColor=\"#FF000000\" android:pathData=\"M6.99,11L3,15l3.99,4v-3H14v-2H6.99v-3zM21,9l-3.99,-4v3H10v2h7.01v3L21,9z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_settings.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"24dp\"\n        android:height=\"24dp\"\n        android:viewportWidth=\"24.0\"\n        android:viewportHeight=\"24.0\">\n    <path\n        android:fillColor=\"#FF000000\"\n        android:pathData=\"M19.43,12.98c0.04,-0.32 0.07,-0.64 0.07,-0.98s-0.03,-0.66 -0.07,-0.98l2.11,-1.65c0.19,-0.15 0.24,-0.42 0.12,-0.64l-2,-3.46c-0.12,-0.22 -0.39,-0.3 -0.61,-0.22l-2.49,1c-0.52,-0.4 -1.08,-0.73 -1.69,-0.98l-0.38,-2.65C14.46,2.18 14.25,2 14,2h-4c-0.25,0 -0.46,0.18 -0.49,0.42l-0.38,2.65c-0.61,0.25 -1.17,0.59 -1.69,0.98l-2.49,-1c-0.23,-0.09 -0.49,0 -0.61,0.22l-2,3.46c-0.13,0.22 -0.07,0.49 0.12,0.64l2.11,1.65c-0.04,0.32 -0.07,0.65 -0.07,0.98s0.03,0.66 0.07,0.98l-2.11,1.65c-0.19,0.15 -0.24,0.42 -0.12,0.64l2,3.46c0.12,0.22 0.39,0.3 0.61,0.22l2.49,-1c0.52,0.4 1.08,0.73 1.69,0.98l0.38,2.65c0.03,0.24 0.24,0.42 0.49,0.42h4c0.25,0 0.46,-0.18 0.49,-0.42l0.38,-2.65c0.61,-0.25 1.17,-0.59 1.69,-0.98l2.49,1c0.23,0.09 0.49,0 0.61,-0.22l2,-3.46c0.12,-0.22 0.07,-0.49 -0.12,-0.64l-2.11,-1.65zM12,15.5c-1.93,0 -3.5,-1.57 -3.5,-3.5s1.57,-3.5 3.5,-3.5 3.5,1.57 3.5,3.5 -1.57,3.5 -3.5,3.5z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable-v24/ic_launcher_foreground.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:aapt=\"http://schemas.android.com/aapt\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"108\"\n    android:viewportHeight=\"108\">\n    <path\n        android:fillType=\"evenOdd\"\n        android:pathData=\"M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z\"\n        android:strokeWidth=\"1\"\n        android:strokeColor=\"#00000000\">\n        <aapt:attr name=\"android:fillColor\">\n            <gradient\n                android:endX=\"78.5885\"\n                android:endY=\"90.9159\"\n                android:startX=\"48.7653\"\n                android:startY=\"61.0927\"\n                android:type=\"linear\">\n                <item\n                    android:color=\"#44000000\"\n                    android:offset=\"0.0\" />\n                <item\n                    android:color=\"#00000000\"\n                    android:offset=\"1.0\" />\n            </gradient>\n        </aapt:attr>\n    </path>\n    <path\n        android:fillColor=\"#FFFFFF\"\n        android:fillType=\"nonZero\"\n        android:pathData=\"M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z\"\n        android:strokeWidth=\"1\"\n        android:strokeColor=\"#00000000\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/layout/activity_about.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:fitsSystemWindows=\"true\"\n    android:clipToPadding=\"true\"\n    android:orientation=\"vertical\"\n    android:background=\"@color/colorPrimary\">\n\n    <include layout=\"@layout/toolbar\"/>\n\n    <FrameLayout\n        android:id=\"@+id/fragment\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_below=\"@id/toolbar\" />\n\n\n</RelativeLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_book_detail.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<com.lapism.searchview.widget.SearchView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/searchView\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    app:search_logo=\"arrow\"\n    app:search_version_margins=\"toolbar\"\n    android:focusable=\"false\"\n    android:focusableInTouchMode=\"false\">\n\n    <RelativeLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_marginTop=\"68dp\"\n        android:orientation=\"vertical\">\n\n        <androidx.coordinatorlayout.widget.CoordinatorLayout\n            android:id=\"@+id/coord\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\">\n\n            <com.google.android.material.floatingactionbutton.FloatingActionButton\n                android:id=\"@+id/fab\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_gravity=\"bottom|end\"\n                android:layout_margin=\"24dp\"\n                app:srcCompat=\"@drawable/ic_extract\" />\n            <com.google.android.material.card.MaterialCardView\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"match_parent\"\n                android:layout_marginStart=\"9dp\"\n                android:layout_marginEnd=\"9dp\"\n                android:layout_marginBottom=\"10dp\"\n                app:cardElevation=\"0dp\"\n                app:strokeColor=\"@color/google_grey_stroke\"\n                app:strokeWidth=\"1dp\">\n\n                <com.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView\n                    android:id=\"@+id/book_chapters\"\n                    android:layout_width=\"match_parent\"\n                    android:layout_height=\"match_parent\"\n                    app:fastScrollAutoHideDelay=\"500\"\n                    app:fastScrollThumbColor=\"@color/colorAccent\"\n                    app:fastScrollTrackColor=\"#00000000\" />\n            </com.google.android.material.card.MaterialCardView>\n        </androidx.coordinatorlayout.widget.CoordinatorLayout>\n\n        <com.leinardi.android.speeddial.SpeedDialOverlayLayout\n            android:id=\"@+id/overlay\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\" />\n\n    </RelativeLayout>\n</com.lapism.searchview.widget.SearchView>"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.drawerlayout.widget.DrawerLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/drawer_layout\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:fitsSystemWindows=\"true\">\n\n    <FrameLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:orientation=\"vertical\">\n        <com.lapism.searchview.widget.SearchView\n            android:id=\"@+id/searchView\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            app:search_logo=\"hamburger_arrow\"\n            app:search_version_margins=\"toolbar\">\n            <include layout=\"@layout/main_content\"/>\n        </com.lapism.searchview.widget.SearchView>\n    </FrameLayout>\n\n    <com.google.android.material.navigation.NavigationView\n        android:id=\"@+id/nav_view\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"match_parent\"\n        android:layout_gravity=\"start\"\n        android:fitsSystemWindows=\"true\"\n        android:maxWidth=\"320dp\"\n        android:minWidth=\"320dp\"\n        android:paddingTop=\"4dp\"\n        app:headerLayout=\"@layout/product_lookup\"\n        app:itemBackground=\"@drawable/ic_drawer_bg_selector\"\n        app:itemHorizontalPadding=\"24dp\"\n        app:itemIconPadding=\"16dp\"\n        app:itemIconSize=\"20dp\"\n        app:itemIconTint=\"@color/og_nav_item_icon_tint_color\"\n        app:itemTextAppearance=\"@style/AppTheme.Subhead2\"\n        app:itemTextColor=\"@color/og_nav_item_text_color\"\n        app:menu=\"@menu/drawer\">\n\n        <View\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"0.5dp\"\n            android:layout_marginTop=\"85dp\" />\n\n    </com.google.android.material.navigation.NavigationView>\n\n</androidx.drawerlayout.widget.DrawerLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_settings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:fitsSystemWindows=\"true\"\n    android:clipToPadding=\"true\"\n    android:orientation=\"vertical\"\n    android:background=\"@color/colorPrimary\">\n\n    <include layout=\"@layout/toolbar\"/>\n\n    <FrameLayout\n        android:id=\"@+id/fragment\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_below=\"@id/toolbar\" />\n\n\n</RelativeLayout>"
  },
  {
    "path": "app/src/main/res/layout/book_info_card.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--<androidx.cardview.widget.CardView-->\n<!--    android:id=\"@+id/card_book_info\"-->\n<!--    android:layout_width=\"match_parent\"-->\n<!--    android:layout_height=\"wrap_content\"-->\n<!--    android:layout_marginLeft=\"9dp\"-->\n<!--    android:layout_marginTop=\"10dp\"-->\n<!--    android:layout_marginRight=\"9dp\"-->\n<!--    android:layout_marginBottom=\"10dp\"-->\n<!--    android:foreground=\"?android:attr/selectableItemBackground\"-->\n<!--    android:background=\"@drawable/ic_drawer_bg_selector\"-->\n<!--    app:cardBackgroundColor=\"@color/color_blue200\"-->\n<!--    app:cardElevation=\"0dp\"-->\n<!--    app:cardCornerRadius=\"8dp\"-->\n<!--    xmlns:android=\"http://schemas.android.com/apk/res/android\"-->\n<!--    xmlns:app=\"http://schemas.android.com/apk/res-auto\">-->\n\n<!--    <RelativeLayout-->\n<!--        android:layout_width=\"match_parent\"-->\n<!--        android:layout_height=\"match_parent\"-->\n<!--        android:layout_marginTop=\"16dp\"-->\n<!--        android:layout_marginBottom=\"16dp\"-->\n<!--        android:layout_marginStart=\"24dp\"-->\n<!--        android:layout_marginEnd=\"24dp\">-->\n\n<!--        <androidx.appcompat.widget.AppCompatImageView-->\n<!--            android:id=\"@+id/card_scanning_status\"-->\n<!--            android:src=\"@drawable/ic_book\"-->\n<!--            android:layout_width=\"wrap_content\"-->\n<!--            android:layout_height=\"wrap_content\"-->\n<!--            android:layout_marginEnd=\"4dp\" />-->\n\n<!--        <TextView-->\n<!--            android:layout_width=\"wrap_content\"-->\n<!--            android:layout_height=\"wrap_content\"-->\n<!--            android:id=\"@+id/card_book_info_name\"-->\n<!--            android:layout_toEndOf=\"@id/card_scanning_status\"-->\n<!--            android:layout_marginStart=\"8dp\"-->\n<!--            android:text=\"@string/book_info_name\"-->\n<!--            android:textSize=\"16sp\"-->\n<!--            android:textColor=\"@color/google_grey800\"/>-->\n\n<!--        <TextView-->\n<!--            android:id=\"@+id/card_book_info_num\"-->\n<!--            android:layout_alignStart=\"@id/card_book_info_name\"-->\n<!--            android:layout_below=\"@id/card_book_info_name\"-->\n<!--            android:layout_marginTop=\"8dp\"-->\n<!--            android:layout_width=\"match_parent\"-->\n<!--            android:layout_height=\"wrap_content\"-->\n<!--            android:text=\"@string/book_info_chapterNum\"-->\n<!--            style=\"@style/CardPromptText\"/>-->\n\n<!--    </RelativeLayout>-->\n\n<!--</androidx.cardview.widget.CardView>-->\n\n\n<com.google.android.material.card.MaterialCardView\n    android:id=\"@+id/card_book_info\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_marginLeft=\"9dp\"\n    android:layout_marginTop=\"10dp\"\n    android:layout_marginRight=\"9dp\"\n    android:layout_marginBottom=\"10dp\"\n    android:foreground=\"?android:attr/selectableItemBackground\"\n    android:background=\"@drawable/ic_drawer_bg_selector\"\n    app:cardElevation=\"0dp\"\n    app:strokeWidth=\"1dp\"\n    app:strokeColor=\"@color/google_grey_stroke\"\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\">\n\n    <RelativeLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_marginTop=\"16dp\"\n        android:layout_marginBottom=\"16dp\"\n        android:layout_marginStart=\"14dp\"\n        android:layout_marginEnd=\"24dp\">\n\n        <TextView\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:id=\"@+id/card_book_info_name\"\n            android:layout_marginStart=\"8dp\"\n            android:text=\"@string/book_info_name\"\n            android:textSize=\"16sp\"\n            android:textColor=\"?android:attr/textColorPrimary\"/>\n\n        <TextView\n            android:id=\"@+id/card_book_info_num\"\n            android:layout_alignStart=\"@id/card_book_info_name\"\n            android:layout_below=\"@id/card_book_info_name\"\n            android:layout_marginTop=\"8dp\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:text=\"@string/book_info_chapterNum\"\n            style=\"@style/CardPromptText\"/>\n\n    </RelativeLayout>\n\n</com.google.android.material.card.MaterialCardView>"
  },
  {
    "path": "app/src/main/res/layout/dialog_advanced_export.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:paddingTop=\"48dp\"\n    android:paddingBottom=\"20dp\"\n    android:orientation=\"vertical\"\n    android:gravity=\"center\">\n\n    <RelativeLayout\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:id=\"@+id/book_info\">\n\n    <ImageView\n        android:id=\"@+id/book_cover\"\n        android:layout_width=\"90dp\"\n        android:layout_height=\"120dp\" />\n\n    <LinearLayout\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"120dp\"\n        android:layout_alignBaseline=\"@id/book_cover\"\n        android:layout_marginStart=\"24dp\"\n        android:layout_toEndOf=\"@id/book_cover\"\n        android:orientation=\"vertical\">\n\n        <TextView\n            android:id=\"@+id/book_name\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"0dp\"\n            android:layout_weight=\"1\"\n            android:gravity=\"center\"\n            android:textSize=\"20sp\"\n            android:textStyle=\"bold\" />\n\n        <TextView\n            android:id=\"@+id/book_author\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"0dp\"\n            android:layout_weight=\"1\"\n            android:gravity=\"center\"\n            android:textSize=\"14sp\" />\n\n        <TextView\n            android:id=\"@+id/book_desc\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"0dp\"\n            android:layout_weight=\"1\"\n            android:gravity=\"center\"\n            android:textSize=\"14sp\" />\n    </LinearLayout>\n    </RelativeLayout>\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginTop=\"30dp\">\n\n        <com.google.android.material.button.MaterialButton\n            style=\"@style/Widget.MaterialComponents.Button.OutlinedButton\"\n            android:layout_width=\"0dp\"\n            android:layout_weight=\"1\"\n            android:layout_height=\"48dp\"\n            android:layout_gravity=\"center\"\n            android:text=\"导出 txt\"\n            android:layout_marginEnd=\"24dp\"\n            android:layout_marginStart=\"24dp\"\n            android:enabled=\"false\"\n            android:id=\"@+id/export_txt\"/>\n\n        <com.google.android.material.button.MaterialButton\n            style=\"@style/Widget.MaterialComponents.Button.OutlinedButton\"\n            android:layout_width=\"0dp\"\n            android:layout_weight=\"1\"\n            android:layout_height=\"48dp\"\n            android:layout_gravity=\"center\"\n            android:text=\"导出 epub\"\n            android:layout_marginEnd=\"24dp\"\n            android:layout_marginStart=\"24dp\"\n            android:enabled=\"false\"\n            android:id=\"@+id/export_epub\"/>\n\n    </LinearLayout>\n\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/dialog_scan_books_failed.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:background=\"#ffffff\"\n    android:orientation=\"vertical\"\n    android:paddingStart=\"48dp\"\n    android:paddingEnd=\"48dp\">\n\n    <TextView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:textStyle=\"bold\"\n        android:textSize=\"18sp\"\n        android:id=\"@+id/scan_failed_title\"\n        android:layout_marginTop=\"36dp\"/>\n\n    <TextView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:textSize=\"14sp\"\n        android:id=\"@+id/scan_failed_content\"\n        android:layout_marginTop=\"24dp\"/>\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginTop=\"36dp\"\n        android:orientation=\"horizontal\"\n        android:layout_marginBottom=\"20dp\"\n        android:gravity=\"end\">\n\n        <com.google.android.material.button.MaterialButton\n            style=\"@style/Widget.MaterialComponents.Button.OutlinedButton\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"48dp\"\n            android:layout_gravity=\"center\"\n            android:layout_marginEnd=\"24dp\"\n            android:id=\"@+id/app_exit\"/>\n\n        <com.google.android.material.button.MaterialButton\n            style=\"@style/Widget.MaterialComponents.Button.OutlinedButton\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"48dp\"\n            android:layout_gravity=\"center\"\n            android:id=\"@+id/app_auth\"/>\n\n    </LinearLayout>\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/line_divider.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<View xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"1dp\"\n    android:background=\"@color/google_grey\" />"
  },
  {
    "path": "app/src/main/res/layout/list_cache_book.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<com.google.android.material.card.MaterialCardView\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/card_cache_book\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_marginLeft=\"9dp\"\n    android:layout_marginTop=\"10dp\"\n    android:layout_marginRight=\"9dp\"\n    android:layout_marginBottom=\"10dp\"\n    android:foreground=\"?android:attr/selectableItemBackground\"\n    android:clickable=\"true\"\n    android:focusable=\"true\"\n    app:cardElevation=\"0dp\"\n    app:strokeColor=\"@color/google_grey_stroke\"\n    app:strokeWidth=\"1dp\">\n\n        <!--<androidx.cardview.widget.CardView-->\n        <!--android:id=\"@+id/card_cache_book\"-->\n        <!--android:layout_width=\"match_parent\"-->\n        <!--android:layout_height=\"wrap_content\"-->\n        <!--android:layout_marginLeft=\"9dp\"-->\n        <!--android:layout_marginTop=\"10dp\"-->\n        <!--android:layout_marginRight=\"9dp\"-->\n        <!--android:layout_marginBottom=\"10dp\"-->\n        <!--android:foreground=\"?android:attr/selectableItemBackground\"-->\n        <!--android:background=\"@drawable/ic_drawer_bg_selector\"-->\n        <!--app:cardElevation=\"0dp\"-->\n        <!--app:cardCornerRadius=\"8dp\">-->\n\n        <RelativeLayout\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:layout_marginStart=\"24dp\"\n            android:layout_marginTop=\"16dp\"\n            android:layout_marginEnd=\"24dp\"\n            android:layout_marginBottom=\"16dp\">\n\n            <TextView\n                android:id=\"@+id/card_cache_book_name\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginStart=\"8dp\"\n                android:textColor=\"?android:attr/textColorPrimary\"\n                android:textSize=\"16sp\" />\n\n            <TextView\n                android:id=\"@+id/card_cache_book_source\"\n                style=\"@style/CardPromptText\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_below=\"@id/card_cache_book_name\"\n                android:layout_alignStart=\"@id/card_cache_book_name\"\n                android:layout_marginTop=\"8dp\"\n                android:text=\"@string/scan_book_source\"\n                android:textColor=\"?android:attr/textColorPrimary\" />\n\n        </RelativeLayout>\n\n    </com.google.android.material.card.MaterialCardView>\n"
  },
  {
    "path": "app/src/main/res/layout/list_cache_chapter.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:orientation=\"vertical\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"36dp\"\n    android:paddingTop=\"12dp\"\n    android:paddingBottom=\"12dp\"\n    android:paddingStart=\"24dp\"\n    android:paddingEnd=\"24dp\">\n\n    <TextView\n        android:id=\"@+id/cache_chapter_check\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\" />\n\n</RelativeLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/loading_dialog.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:orientation=\"horizontal\"\n    android:padding=\"20dp\">\n    <ProgressBar\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\" />\n\n    <TextView\n        android:id=\"@+id/progress_text\"\n        android:layout_marginStart=\"24dp\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"match_parent\"\n        android:gravity=\"center\" />\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/main_content.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:orientation=\"vertical\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:layout_marginTop=\"?attr/actionBarSize\"\n    android:id=\"@+id/demoo\">\n\n    <androidx.recyclerview.widget.RecyclerView\n        android:layout_marginTop=\"12dp\"\n        android:id=\"@+id/cache_recyclerView\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\" />\n\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/product_lockup_view.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<merge xmlns:android=\"http://schemas.android.com/apk/res/android\" xmlns:app=\"http://schemas.android.com/apk/res-auto\">\n    <TextView android:textSize=\"22sp\"\n        android:textColor=\"?attr/colorAccent\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/yuedu\"\n        android:maxLines=\"1\"\n        android:includeFontPadding=\"false\"\n        android:importantForAccessibility=\"no\"\n        android:fontFamily=\"@font/google_sans_medium\"/>\n    <TextView android:textSize=\"22sp\"\n        android:textColor=\"?attr/colorAccent\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/space\"\n        android:maxLines=\"1\"\n        android:includeFontPadding=\"false\"\n        android:importantForAccessibility=\"no\"\n        android:fontFamily=\"@font/product_sans_regular\"/>\n    <TextView android:textSize=\"22sp\"\n        android:textColor=\"?android:attr/textColorSecondary\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/assistant\"\n        android:maxLines=\"1\"\n        android:includeFontPadding=\"false\"\n        android:importantForAccessibility=\"no\"\n        android:fontFamily=\"@font/product_sans_regular\"/>\n</merge>"
  },
  {
    "path": "app/src/main/res/layout/product_lookup.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_marginTop=\"24dp\"\n    android:orientation=\"vertical\">\n    <LinearLayout\n        android:gravity=\"center_vertical|center_horizontal|center|start\"\n        android:layout_width=\"300dp\"\n        android:layout_height=\"28dp\"\n        android:layout_marginTop=\"16dp\"\n        android:layout_marginBottom=\"16dp\"\n        android:layout_marginStart=\"20dp\">\n        <include layout=\"@layout/product_lockup_view\"/>\n    </LinearLayout>\n    <include layout=\"@layout/line_divider\" />\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/request_permission_card.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.cardview.widget.CardView android:id=\"@+id/card_permission\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_marginLeft=\"9dp\"\n    android:layout_marginTop=\"10dp\"\n    android:layout_marginRight=\"9dp\"\n    android:layout_marginBottom=\"10dp\"\n    android:foreground=\"?android:attr/selectableItemBackground\"\n    android:background=\"@drawable/ic_drawer_bg_selector\"\n    app:cardBackgroundColor=\"@color/color_red300\"\n    app:cardElevation=\"0dp\"\n    app:cardCornerRadius=\"8dp\"\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\">\n\n    <RelativeLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_marginTop=\"16dp\"\n        android:layout_marginBottom=\"16dp\"\n        android:layout_marginStart=\"24dp\"\n        android:layout_marginEnd=\"24dp\">\n\n        <androidx.appcompat.widget.AppCompatImageView\n            android:id=\"@+id/card_permission_status\"\n            android:src=\"@drawable/ic_refresh\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginEnd=\"4dp\" />\n\n        <TextView\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:id=\"@+id/card_permission_status_text\"\n            android:layout_toEndOf=\"@id/card_permission_status\"\n            android:layout_marginStart=\"8dp\"\n            android:text=\"@string/permisson_subscribe_title\"\n            android:textSize=\"16sp\"\n            android:textColor=\"@color/google_grey800\"/>\n\n        <TextView\n            android:id=\"@+id/card_permission_text\"\n            android:layout_alignStart=\"@id/card_permission_status_text\"\n            android:layout_below=\"@id/card_permission_status_text\"\n            android:layout_marginTop=\"8dp\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:text=\"@string/permisson_subscribe_text\"\n            style=\"@style/CardPromptText\"/>\n\n    </RelativeLayout>\n\n</androidx.cardview.widget.CardView>"
  },
  {
    "path": "app/src/main/res/layout/scan_books_failed_card.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.cardview.widget.CardView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/scan_failed_card\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_marginLeft=\"9dp\"\n    android:layout_marginTop=\"10dp\"\n    android:layout_marginRight=\"9dp\"\n    android:layout_marginBottom=\"10dp\"\n    android:background=\"@drawable/ic_drawer_bg_selector\"\n    android:foreground=\"?android:attr/selectableItemBackground\"\n    app:cardBackgroundColor=\"@color/color_yellow400\"\n    app:cardCornerRadius=\"8dp\"\n    app:cardElevation=\"0dp\">\n\n    <RelativeLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_marginStart=\"24dp\"\n        android:layout_marginTop=\"16dp\"\n        android:layout_marginEnd=\"24dp\"\n        android:layout_marginBottom=\"16dp\">\n\n        <androidx.appcompat.widget.AppCompatImageView\n            android:id=\"@+id/scan_failed_icon\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginEnd=\"4dp\"\n            android:src=\"@drawable/ic_scan_failed\" />\n\n        <TextView\n            android:id=\"@+id/card_scan_failed_title\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginStart=\"8dp\"\n            android:layout_toEndOf=\"@id/scan_failed_icon\"\n            android:text=\"@string/scan_failed\"\n            android:textColor=\"@color/google_grey800\"\n            android:textSize=\"16sp\" />\n\n        <TextView\n            android:id=\"@+id/card_scan_failed_sub\"\n            style=\"@style/CardPromptText\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_below=\"@id/card_scan_failed_title\"\n            android:layout_alignStart=\"@id/card_scan_failed_title\"\n            android:layout_marginTop=\"8dp\"\n            android:text=\"@string/scan_failed_sub\" />\n\n    </RelativeLayout>\n\n</androidx.cardview.widget.CardView>\n"
  },
  {
    "path": "app/src/main/res/layout/scan_chapters_failed_card.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.cardview.widget.CardView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/scan_failed_card\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_marginLeft=\"9dp\"\n    android:layout_marginTop=\"10dp\"\n    android:layout_marginRight=\"9dp\"\n    android:layout_marginBottom=\"10dp\"\n    android:background=\"@drawable/ic_drawer_bg_selector\"\n    android:foreground=\"?android:attr/selectableItemBackground\"\n    app:cardBackgroundColor=\"@color/color_yellow400\"\n    app:cardCornerRadius=\"8dp\"\n    app:cardElevation=\"0dp\">\n\n    <RelativeLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_marginStart=\"24dp\"\n        android:layout_marginTop=\"16dp\"\n        android:layout_marginEnd=\"24dp\"\n        android:layout_marginBottom=\"16dp\">\n\n        <androidx.appcompat.widget.AppCompatImageView\n            android:id=\"@+id/scan_failed_icon\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginEnd=\"4dp\"\n            android:src=\"@drawable/ic_scan_failed\" />\n\n        <TextView\n            android:id=\"@+id/card_scan_failed_title\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginStart=\"8dp\"\n            android:layout_toEndOf=\"@id/scan_failed_icon\"\n            android:text=\"@string/scan_failed\"\n            android:textColor=\"@color/google_grey800\"\n            android:textSize=\"16sp\" />\n\n        <TextView\n            android:id=\"@+id/card_scan_failed_sub\"\n            style=\"@style/CardPromptText\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_below=\"@id/card_scan_failed_title\"\n            android:layout_alignStart=\"@id/card_scan_failed_title\"\n            android:layout_marginTop=\"8dp\"\n            android:text=\"@string/scan_chapters_failed\" />\n\n    </RelativeLayout>\n\n</androidx.cardview.widget.CardView>\n"
  },
  {
    "path": "app/src/main/res/layout/scan_succes_card.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.cardview.widget.CardView\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/scan_success_card\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_marginLeft=\"9dp\"\n    android:layout_marginTop=\"10dp\"\n    android:layout_marginRight=\"9dp\"\n    android:layout_marginBottom=\"10dp\"\n    android:background=\"@drawable/ic_drawer_bg_selector\"\n    android:foreground=\"?android:attr/selectableItemBackground\"\n    app:cardBackgroundColor=\"@color/transparent\"\n    app:cardCornerRadius=\"8dp\"\n    app:cardElevation=\"0dp\">\n\n    <RelativeLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginTop=\"16dp\"\n        android:layout_marginEnd=\"24dp\"\n        android:layout_marginBottom=\"16dp\">\n\n        <TextView\n            android:id=\"@+id/card_scan_success_title\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginStart=\"8dp\"\n            android:text=\"@string/scan_result_text\"\n            android:textColor=\"@color/colorBlack\"\n            android:textSize=\"16sp\" />\n\n        <TextView\n            android:id=\"@+id/card_scan_success_sub\"\n            style=\"@style/CardPromptText\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_below=\"@id/card_scan_success_title\"\n            android:layout_alignStart=\"@id/card_scan_success_title\"\n            android:layout_marginTop=\"8dp\"\n            android:text=\"@string/scan_succeed_sub_title\" />\n\n    </RelativeLayout>\n\n</androidx.cardview.widget.CardView>\n"
  },
  {
    "path": "app/src/main/res/layout/scanning_card.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.cardview.widget.CardView android:id=\"@+id/card_scanning\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_marginLeft=\"9dp\"\n    android:layout_marginTop=\"10dp\"\n    android:layout_marginRight=\"9dp\"\n    android:layout_marginBottom=\"10dp\"\n    android:foreground=\"?android:attr/selectableItemBackground\"\n    android:background=\"@drawable/ic_drawer_bg_selector\"\n    app:cardBackgroundColor=\"@color/google_grey400\"\n    app:cardElevation=\"0dp\"\n    app:cardCornerRadius=\"8dp\"\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\">\n\n    <RelativeLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_marginTop=\"16dp\"\n        android:layout_marginBottom=\"16dp\"\n        android:layout_marginStart=\"24dp\"\n        android:layout_marginEnd=\"24dp\">\n\n        <androidx.appcompat.widget.AppCompatImageView\n            android:id=\"@+id/card_scanning_status\"\n            android:src=\"@drawable/ic_scanning\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginEnd=\"4dp\" />\n\n        <TextView\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:id=\"@+id/card_scanning_status_text\"\n            android:layout_toEndOf=\"@id/card_scanning_status\"\n            android:layout_marginStart=\"8dp\"\n            android:text=\"@string/scanning_books_title\"\n            android:textSize=\"16sp\"\n            android:textColor=\"@color/google_grey800\"/>\n\n        <TextView\n            android:id=\"@+id/card_scanning_text\"\n            android:layout_alignStart=\"@id/card_scanning_status_text\"\n            android:layout_below=\"@id/card_scanning_status_text\"\n            android:layout_marginTop=\"8dp\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:text=\"@string/scanning_books_text\"\n            style=\"@style/CardPromptText\"/>\n\n    </RelativeLayout>\n\n</androidx.cardview.widget.CardView>"
  },
  {
    "path": "app/src/main/res/layout/toolbar.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.appcompat.widget.Toolbar xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:id=\"@+id/toolbar\"\n    style=\"?attr/toolbarStyle\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"?attr/actionBarSize\" />\n\n\n"
  },
  {
    "path": "app/src/main/res/layout-v23/list_cache_chapter.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:orientation=\"vertical\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:paddingTop=\"12dp\"\n    android:paddingBottom=\"12dp\"\n    android:foreground=\"?android:attr/selectableItemBackground\"\n    android:paddingStart=\"24dp\"\n    android:paddingEnd=\"24dp\">\n\n    <TextView\n        android:id=\"@+id/cache_chapter_check\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\" />\n\n</RelativeLayout>\n"
  },
  {
    "path": "app/src/main/res/menu/drawer.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <group\n        android:id=\"@+id/main_group\"\n        android:checkableBehavior=\"single\">\n        <item\n            android:id=\"@+id/drawer_extract\"\n            android:checked=\"true\"\n            android:icon=\"@drawable/ic_extract\"\n            android:title=\"@string/drawer_menu_extract\" />\n        <item\n            android:id=\"@+id/drawer_settings\"\n            android:icon=\"@drawable/ic_settings\"\n            android:title=\"@string/drawer_menu_settings\" />\n        <item\n            android:id=\"@+id/drawer_help\"\n            android:icon=\"@drawable/ic_help\"\n            android:title=\"@string/drawer_menu_about\" />\n\n    </group>\n</menu>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@color/ic_launcher_background\"/>\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\"/>\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@color/ic_launcher_background\"/>\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\"/>\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"transparent\">#00000000</color>\n    <color name=\"colorPrimary\">#FFFFFF</color>\n    <color name=\"colorPrimaryDark\">#FFFFFF</color>\n    <color name=\"colorBlack\">#FF000000</color>\n    <color name=\"colorAccent\">@color/color_blue300</color>\n    <color name=\"color_green100\">#C8E6C9</color>\n    <color name=\"color_green200\">#A5D6A7</color>\n    <color name=\"color_green300\">#81C784</color>\n    <color name=\"google_grey\">#E0E0E0</color>\n    <color name=\"google_grey200\">#DDDDDD</color>\n    <color name=\"google_grey300\">#ffdadce0</color>\n    <color name=\"google_grey400\">#B1B1B1</color>\n    <color name=\"google_grey800\">#FAFAFA</color>\n    <color name=\"google_grey_stroke\">#46B9B9B9</color>\n    <color name=\"color_red300\">#E57373</color>\n    <color name=\"color_yellow400\">#FFCA28</color>\n    <color name=\"color_blue50\">#E3F2FD</color>\n    <color name=\"color_blue200\">#90CAF9</color>\n    <color name=\"color_blue300\">#64B5F6</color>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"ic_launcher_background\">#C0C0C0</color>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">阅读助手</string>\n    <string name=\"yuedu\">Yuedu</string>\n    <string name=\"assistant\">Assistant</string>\n    <string name=\"space\"> </string>\n    <string name=\"drawer_open\"> 开启 </string>\n    <string name=\"drawer_close\"> 关闭 </string>\n    <string name=\"drawer_menu_extract\">缓存提取</string>\n    <string name=\"drawer_menu_about\">关于与帮助</string>\n    <string name=\"drawer_menu_settings\">程序设置</string>\n    <string name=\"scanning_books_text\">正在执行扫描任务，请耐心等待……</string>\n    <string name=\"scanning_books_title\">正在扫描</string>\n    <string name=\"permisson_subscribe_text\">读取以及导出缓存需要读写存储的权限 点击本卡片后确认授权方可继续使用本软件</string>\n    <string name=\"permisson_subscribe_title\">需要权限</string>\n    <string name=\"scan_succeed_sub_title\">点击卡片开始导出噢</string>\n    <string name=\"scan_failed\">扫描失败</string>\n    <string name=\"scan_failed_sub\">没有扫描到符合的缓存，请检查是否修改了「阅读」的默认缓存路径，如果是，请点击此卡片跳转设置；若不是，请长按获取 Log 信息反馈给开发者</string>\n    <string name=\"scan_chapters_failed\">没有扫描到当前书籍的章节内容</string>\n    <string name=\"scan_result_text\">扫描完毕，共找到了%1$d本书籍</string>\n    <string name=\"scan_book_source\">来源：</string>\n    <string name=\"book_info_name\">这是一本小说</string>\n    <string name=\"book_info_chapterNum\">扫描完毕，共%1d章</string>\n    <string name=\"exporting\">正在导出 %1$d/%2$d </string>\n    <string name=\"no_permission_title\">oops！需要权限</string>\n    <string name=\"no_permission_content\">当前程序无法正常获取到存储读写权限，请点击下面的按钮，然后在弹出的提示框中选择授予，才能正常使用。</string>\n    <string name=\"no_books_title\">oops！未发现书籍</string>\n    <string name=\"no_books_content\">未扫描到书籍缓存，请确定您的缓存文件是否准备好，或者检查路径设置是否准确。</string>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "content": "<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.MaterialComponents.Light.NoActionBar\">\n        <!-- Customize your theme here. -->\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n        <item name=\"android:windowBackground\">@android:color/white</item>\n        <item name=\"preferenceTheme\">@style/AppTheme.PreferenceTheme</item>\n    </style>\n\n    <style name=\"AppTheme.PreferenceTheme\" parent=\"PreferenceThemeOverlay\">\n        <!-- Only need this on pre-Lollipop -->\n        <item name=\"colorPrimaryDark\">@color/colorPrimary</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n        <item name=\"preferenceTheme\">@style/AppTheme.PreferenceTheme</item>\n    </style>\n\n    <style name=\"AppTheme.Subhead2\">\n        <item name=\"android:textSize\">14sp</item>\n        <item name=\"android:textAllCaps\">false</item>\n        <item name=\"android:fontFamily\">@font/google_sans_medium</item>\n        <item name=\"android:letterSpacing\">@null</item>\n        <item name=\"fontFamily\">@font/google_sans_medium</item>\n    </style>\n\n    <style name=\"CardPromptText\">\n        <item name=\"android:textColor\">?android:attr/textColorPrimary</item>\n        <item name=\"android:textSize\">14sp</item>\n        <item name=\"android:lineSpacingExtra\">6dp</item>\n    </style>\n\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values-v23/styles.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n    <style name=\"AppTheme.PreferenceTheme\" parent=\"PreferenceThemeOverlay\">\n        <!-- Only need this on pre-Lollipop -->\n        <item name=\"colorPrimaryDark\">@color/colorPrimary</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n        <item name=\"preferenceTheme\">@style/AppTheme.PreferenceTheme</item>\n        <item name=\"android:windowLightStatusBar\">true</item>\n    </style>\n</resources>"
  },
  {
    "path": "app/src/main/res/values-v27/styles.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <style name=\"AppTheme\" parent=\"Theme.MaterialComponents.Light.NoActionBar\">\n        <!-- Customize your theme here. -->\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n        <item name=\"android:windowBackground\">@android:color/white</item>\n\n        <item name=\"android:navigationBarColor\">@color/colorPrimary</item>\n        <item name=\"android:windowLightNavigationBar\">true</item>\n        <item name=\"android:navigationBarDividerColor\">@color/google_grey</item>\n        <item name=\"preferenceTheme\">@style/AppTheme.PreferenceTheme</item>\n    </style>\n</resources>"
  },
  {
    "path": "app/src/main/res/xml/about.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n    <PreferenceCategory android:title=\"关于程序\">\n        <Preference\n            android:key=\"author_id\"\n            android:summary=\"沚水 @酷安\"\n            android:title=\"作者\" />\n        <Preference\n            android:key=\"project_git\"\n            android:summary=\"https://github.com/zsakvo\"\n            android:title=\"项目地址\" />\n    </PreferenceCategory>\n\n    <PreferenceCategory android:title=\"开源信息\">\n        <Preference\n            android:key=\"andPermission\"\n            android:summary=\"Permission manager for Android\"\n            android:title=\"AndPermission\"/>\n        <Preference\n            android:key=\"materialPreference\"\n            android:summary=\"Based on support-preference from Android Support Library, adding a lot of exciting features.\"\n            android:title=\"MaterialPreference\" />\n        <Preference\n            android:key=\"simpleMenu\"\n            android:summary=\"An extend of MaterialPreference, adding a version of ListPreference that use Simple Menus from Material Design as drop down.\"\n            android:title=\"MaterialPreference SimpleMenu \" />\n        <Preference\n            android:key=\"fastJson\"\n            android:summary=\"Fastjson is a JSON processor (JSON parser + JSON generator) written in Java\"\n            android:title=\"Fastjson\" />\n        <Preference\n            android:key=\"rxAndroid\"\n            android:summary=\"This module adds the minimum classes to RxJava that make writing reactive components in Android applications easy and hassle-free. More specifically, it provides a Scheduler that schedules on the main thread or any given Looper.\"\n            android:title=\"RxAndroid\" />\n        <Preference\n            android:key=\"rxJava\"\n            android:summary=\"RxJava is a Java VM implementation of Reactive Extensions: a library for composing asynchronous and event-based programs by using observable sequences.\"\n            android:title=\"RxJava\" />\n        <Preference\n            android:key=\"fab\"\n            android:summary=\"A Floating Action Button Speed Dial implementation for Android that follows the Material Design specification.\"\n            android:title=\"FloatingActionButtonSpeedDial\" />\n        <Preference\n            android:key=\"zt-zip\"\n            android:summary=\"The project was started and coded by Rein Raudjärv when he needed to process a large set of large ZIP archives for LiveRebel internals. Soon after we started using the utility in other projects because of the ease of use and it just worked.\"\n            android:title=\"zt-zip\" />\n        <Preference\n            android:key=\"logger\"\n            android:summary=\"Simple, pretty and powerful logger for android.\"\n            android:title=\"Logger\" />\n        <Preference\n            android:key=\"brvah\"\n            android:summary=\"Powerful and flexible RecyclerAdapter.\"\n            android:title=\"BRVAH\" />\n        <Preference\n            android:key=\"fastScroll\"\n            android:summary=\"A simple FastScroller for Android's RecyclerView.\"\n            android:title=\"FastScroll\" />\n    </PreferenceCategory>\n</PreferenceScreen>"
  },
  {
    "path": "app/src/main/res/xml/settings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen\n    xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <PreferenceCategory android:title=\"路径设置\">\n        <Preference\n            android:key=\"cache_path\"\n            android:summary=\"选择你的「阅读」缓存目录\"\n            android:title=\"缓存位置\"/>\n\n        <!--<Preference-->\n            <!--android:key=\"backup_path\"-->\n            <!--android:summary=\"选择你的「阅读」备份目录\"-->\n            <!--android:title=\"备份位置\"/>-->\n\n        <Preference\n            android:key=\"output_path\"\n            android:summary=\"选择要输出 txt 文档的目录\"\n            android:title=\"导出位置\"/>\n\n    </PreferenceCategory>\n\n    <PreferenceCategory android:title=\"试验性功能\">\n\n        <!--<SwitchPreference-->\n            <!--android:defaultValue=\"false\"-->\n            <!--android:key=\"is_snadbox\"-->\n            <!--android:title=\"是否沙盒\"-->\n            <!--android:summary=\"如果你的「阅读」处于沙盒模式，请开启此项\"/>-->\n\n\n        <!--<SwitchPreference-->\n            <!--android:defaultValue=\"false\"-->\n            <!--android:key=\"export_more\"-->\n            <!--android:title=\"高级导出\"-->\n            <!--android:summary=\"允许导出更多种书籍格式\"/>-->\n\n        <SwitchPreference\n            android:key=\"export_more\"\n            android:summary=\"允许导出多种格式\"\n            android:title=\"高级导出\"/>\n\n        <Preference\n            android:key=\"update_source\"\n            android:summary=\"从书源文件更新来源识别数据\"\n            android:title=\"更新识别数据\"/>\n\n        <SwitchPreference\n            android:key=\"auto_del\"\n            android:title=\"自动清理缓存\"\n            android:summary=\"书籍导出后自动清除其缓存文件\"/>\n\n\n    </PreferenceCategory>\n\n\n</PreferenceScreen>"
  },
  {
    "path": "app/src/test/java/cc/zsakvo/yueduassistant/ExampleUnitTest.java",
    "content": "package cc.zsakvo.yueduassistant;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\npublic class ExampleUnitTest {\n    @Test\n    public void addition_isCorrect() {\n        assertEquals(4, 2 + 2);\n    }\n}"
  },
  {
    "path": "build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    repositories {\n        google()\n        jcenter()\n        mavenCentral()\n        \n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:3.5.0'\n        \n        // NOTE: Do not place your application dependencies here; they belong\n        // in the individual module build.gradle files\n    }\n}\n\nallprojects {\n    repositories {\n        google()\n        jcenter()\n        maven { url \"https://jitpack.io\" }\n    }\n}\n\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Sun Aug 25 15:27:58 CST 2019\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-5.4.1-all.zip\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx1536m\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n# AndroidX package structure to make it clearer which packages are bundled with the\n# Android operating system, and which are packaged with your app's APK\n# https://developer.android.com/topic/libraries/support-library/androidx-rn\nandroid.useAndroidX=true\n# Automatically convert third-party libraries to use AndroidX\nandroid.enableJetifier=true\n\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=$(save \"$@\")\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\n# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong\nif [ \"$(uname)\" = \"Darwin\" ] && [ \"$HOME\" = \"$PWD\" ]; then\n  cd \"$(dirname \"$0\")\"\nfi\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\r\n@rem ##########################################################################\r\n@rem\r\n@rem  Gradle startup script for Windows\r\n@rem\r\n@rem ##########################################################################\r\n\r\n@rem Set local scope for the variables with windows NT shell\r\nif \"%OS%\"==\"Windows_NT\" setlocal\r\n\r\nset DIRNAME=%~dp0\r\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\r\nset APP_BASE_NAME=%~n0\r\nset APP_HOME=%DIRNAME%\r\n\r\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\r\nset DEFAULT_JVM_OPTS=\r\n\r\n@rem Find java.exe\r\nif defined JAVA_HOME goto findJavaFromJavaHome\r\n\r\nset JAVA_EXE=java.exe\r\n%JAVA_EXE% -version >NUL 2>&1\r\nif \"%ERRORLEVEL%\" == \"0\" goto init\r\n\r\necho.\r\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:findJavaFromJavaHome\r\nset JAVA_HOME=%JAVA_HOME:\"=%\r\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\r\n\r\nif exist \"%JAVA_EXE%\" goto init\r\n\r\necho.\r\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:init\r\n@rem Get command-line arguments, handling Windows variants\r\n\r\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\r\n\r\n:win9xME_args\r\n@rem Slurp the command line arguments.\r\nset CMD_LINE_ARGS=\r\nset _SKIP=2\r\n\r\n:win9xME_args_slurp\r\nif \"x%~1\" == \"x\" goto execute\r\n\r\nset CMD_LINE_ARGS=%*\r\n\r\n:execute\r\n@rem Setup the command line\r\n\r\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\r\n\r\n@rem Execute Gradle\r\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\r\n\r\n:end\r\n@rem End local scope for the variables with windows NT shell\r\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\r\n\r\n:fail\r\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\r\nrem the _cmd.exe /c_ return code!\r\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\r\nexit /b 1\r\n\r\n:mainEnd\r\nif \"%OS%\"==\"Windows_NT\" endlocal\r\n\r\n:omega\r\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':app'\n"
  }
]