[
  {
    "path": ".github/workflows/android.yml",
    "content": "name: Android Build\n\non:\n  push:\n    branches: [ \"master\" ]\n  pull_request:\n    branches: [ \"master\" ]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n\n      - name: Set up JDK 21\n        uses: actions/setup-java@v5\n        with:\n          java-version: '21'\n          distribution: 'temurin'\n          cache: gradle\n\n      - name: Cache Gradle and wrapper\n        uses: actions/cache@v5\n        with:\n          path: |\n            ~/.gradle/caches\n            ~/.gradle/wrapper\n          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}\n          restore-keys: |\n            ${{ runner.os }}-gradle-\n\n      - name: Grant execute permission for gradlew\n        run: chmod +x gradlew\n\n      - name: Build with Gradle\n        run: ./gradlew build"
  },
  {
    "path": ".github/workflows/apk.yml",
    "content": "name: APK Build\n\non:\n  release:\n    types: [ published ]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n\n      - name: Set up JDK 21\n        uses: actions/setup-java@v5\n        with:\n          java-version: '21'\n          distribution: 'temurin'\n          cache: gradle\n\n      - name: Cache Gradle and wrapper\n        uses: actions/cache@v5\n        with:\n          path: |\n            ~/.gradle/caches\n            ~/.gradle/wrapper\n          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}\n          restore-keys: |\n            ${{ runner.os }}-gradle-\n\n      - name: Grant execute permission for gradlew\n        run: chmod +x gradlew\n\n      - name: Build debug APK\n        run: ./gradlew assembleDebug\n\n      - name: Upload APK\n        uses: actions/upload-artifact@v7\n        with:\n          name: freeDictionaryDebugApk\n          path: app/build/outputs/apk/debug/*.apk"
  },
  {
    "path": ".gitignore",
    "content": "*.iml\n.gradle\n/local.properties\n/.idea/caches\n/.idea/libraries\n/.idea/modules.xml\n/.idea/workspace.xml\n/.idea/navEditor.xml\n/.idea/assetWizardSettings.xml\n.DS_Store\n/build\n/captures\n.externalNativeBuild\n.cxx\nlocal.properties\n/.idea/inspectionProfiles/Project_Default.xml\n/.idea/.gitignore\n/.idea/.name\n/.idea/compiler.xml\n/.idea/gradle.xml\n/.idea/misc.xml\n/.idea/vcs.xml\n/app/src/main/java/io/github/yamin8000/owl/network/ApiKey.kt\n/app/release/\n/.kotlin/\n/.idea/AndroidProjectSystem.xml\n/.idea/deploymentTargetSelector.xml\n/.idea/deploymentTargetDropDown.xml\n/.idea/kotlinc.xml\n/.idea/migrations.xml\n/.idea/runConfigurations.xml\n/.idea/codeStyles/codeStyleConfig.xml\n/.idea/codeStyles/Project.xml\n/.idea/copilot.data.migration.agent.xml\n/.idea/copilot.data.migration.edit.xml\n/.idea/deviceManager.xml\n/.idea/copilot.data.migration.ask.xml\n/.idea/copilot.data.migration.ask2agent.xml\n/.idea/betterCommentsSettings.xml\n/.idea/runConfigurations/app.xml\n/.idea/markdown.xml\n"
  },
  {
    "path": ".idea/copyright/gplv3.xml",
    "content": "<component name=\"CopyrightManager\">\n  <copyright>\n    <option name=\"notice\" value=\"    &amp;#36;project.name/&amp;#36;module.name&#10;    &amp;#36;file.fileName Copyrighted by Yamin Siahmargooei at &amp;#36;today.year/&amp;#36;today.month/&amp;#36;today.day&#10;    &amp;#36;file.fileName Last modified at &amp;#36;file.lastModified.year/&amp;#36;file.lastModified.month/&amp;#36;file.lastModified.day&#10;    This file is part of &amp;#36;project.name/&amp;#36;module.name.&#10;    Copyright (C) &amp;#36;today.year  Yamin Siahmargooei&#10;&#10;    &amp;#36;project.name/&amp;#36;module.name is free software: you can redistribute it and/or modify&#10;    it under the terms of the GNU General Public License as published by&#10;    the Free Software Foundation, either version 3 of the License, or&#10;    (at your option) any later version.&#10;&#10;    &amp;#36;project.name/&amp;#36;module.name is distributed in the hope that it will be useful,&#10;    but WITHOUT ANY WARRANTY; without even the implied warranty of&#10;    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&#10;    GNU General Public License for more details.&#10;&#10;    You should have received a copy of the GNU General Public License&#10;    along with &amp;#36;project.name.  If not, see &lt;https://www.gnu.org/licenses/&gt;.\" />\n    <option name=\"myName\" value=\"gplv3\" />\n  </copyright>\n</component>"
  },
  {
    "path": ".idea/copyright/profiles_settings.xml",
    "content": "<component name=\"CopyrightManager\">\n  <settings default=\"gplv3\" />\n</component>"
  },
  {
    "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": "<div align=\"center\">\n<img src=\"app/src/main/ic_launcher-playstore.png\"\n    alt=\"Get it on F-Droid\"\n    height=\"75\">\n<h1>freeDictionary</h1>\n</div>\n\n[![Android CI](https://github.com/yamin8000/freeDictionaryApp/actions/workflows/android.yml/badge.svg)](https://github.com/yamin8000/freeDictionaryApp/actions/workflows/android.yml)\n[![CodeFactor](https://www.codefactor.io/repository/github/yamin8000/freedictionaryapp/badge)](https://www.codefactor.io/repository/github/yamin8000/freedictionaryapp)\n\n**freeDictionary** is a simple Android application\nfor [freeDictionaryAPI](https://dictionaryapi.dev/) a reincarnation\nof https://github.com/yamin8000/Owl2\n\n[<img src=\"https://fdroid.gitlab.io/artwork/badge/get-it-on.png\"\nalt=\"Get it on F-Droid\"\nheight=\"80\">](https://f-droid.org/packages/io.github.yamin8000.owl)\n\n## Preview\n\n### Featured on [TechDoc](https://www.youtube.com/watch?v=vlf0jEFHR74&t=59s)\n\n<table>\n<tr>\n<td><img src=\"/fastlane/metadata/android/en-US/images/phoneScreenshots/1.jpg\" alt=\"preview\" width=\"200\"/></td>\n<td><img src=\"/fastlane/metadata/android/en-US/images/phoneScreenshots/2.jpg\" alt=\"preview\" width=\"200\"/></td>\n<td><img src=\"/fastlane/metadata/android/en-US/images/phoneScreenshots/3.jpg\" alt=\"preview\" width=\"200\"/></td>\n</tr>\n<tr>\n<td align=\"center\">Dark</td>\n<td align=\"center\">Light</td>\n<td align=\"center\">OLED</td>\n</tr>\n</table>\n\nMore screenshots [here](./screenshots).\n\n## Compatibility\n\n> [!important]\n> **SDK23+** or **Android 6.0+**\n\n## Usage\n\nJust use the search input to search the word.\n\n## Download\n\n- GitHub releases: [here](https://github.com/yamin8000/freeDictionaryApp/releases)\n- F-Droid: [here](https://f-droid.org/packages/io.github.yamin8000.owl)\n- IzzyOnDroid: [here](https://apt.izzysoft.de/fdroid/index/apk/io.github.yamin8000.owl)\n- Bazaar: [here](https://cafebazaar.ir/app/io.github.yamin8000.owl)\n\n## Features\n\n- English to English dictionary\n- Definition of the word\n- Example of the word usage if available\n- Synonyms/Antonyms of the work if available\n- Pronunciation of the word, both IPA text and audio using TTS\n- Save searched data for offline uses\n- Search for a random word\n\n## Tech Stack\n\n- Kotlin(JVM)\n- Compose UI\n- Material3/Material You\n- Clean Architecture\n- Dependency Injection with Hilt/Dagger\n- MVI / MVVM\n- Retrofit, Moshi with KSP, Coil\n- Datastore, Room with KSP\n\n## License\n\n> [!important]\n> freeDictionaryApp is licensed under the **[GNU General Public License v3.0](./LICENSE)**  \n> Permissions of this strong copyleft license are conditioned on making  \n> available complete source code of licensed works and modifications,  \n> which include larger works using a licensed work, under the same  \n> license. Copyright and license notices must be preserved. Contributors  \n> provide an express grant of patent rights.\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build"
  },
  {
    "path": "app/build.gradle.kts",
    "content": "import org.jetbrains.kotlin.gradle.dsl.JvmTarget\n\n/*\n *     freeDictionaryApp/freeDictionaryApp.app\n *     build.gradle.kts Copyrighted by Yamin Siahmargooei at 2024/5/9\n *     build.gradle.kts Last modified at 2024/5/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.app.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.app 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 *     freeDictionaryApp/freeDictionaryApp.app 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\nplugins {\n    alias(libs.plugins.android.application)\n    alias(libs.plugins.jetbrains.kotlin.compose.plugin)\n    alias(libs.plugins.kotlin.parcelize)\n    alias(libs.plugins.google.ksp)\n    alias(libs.plugins.hilt)\n}\n\nprivate val appId = \"io.github.yamin8000.owl\"\n\nandroid {\n    namespace = appId\n    compileSdk = 36\n\n    defaultConfig {\n        applicationId = appId\n        minSdk = 23\n        targetSdk = 36\n        versionCode = 53\n        versionName = \"1.7.10\"\n        vectorDrawables.useSupportLibrary = true\n        base.archivesName = \"$applicationId-v$versionCode-n$versionName\"\n    }\n\n    buildTypes {\n        release {\n            proguardFiles(\n                getDefaultProguardFile(\"proguard-android-optimize.txt\"),\n                \"proguard-rules.pro\"\n            )\n            isMinifyEnabled = true\n            isShrinkResources = true\n        }\n        debug {\n            isMinifyEnabled = false\n            isShrinkResources = false\n        }\n    }\n\n    dependenciesInfo {\n        includeInApk = false\n        includeInBundle = false\n    }\n\n    compileOptions {\n        isCoreLibraryDesugaringEnabled = true\n        sourceCompatibility = JavaVersion.VERSION_17\n        targetCompatibility = JavaVersion.VERSION_17\n    }\n\n    kotlin {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_17\n        }\n    }\n\n    buildFeatures {\n        compose = true\n        buildConfig = true\n    }\n\n    packaging {\n        resources {\n            excludes += \"/META-INF/{AL2.0,LGPL2.1}\"\n            excludes += \"/en/*\"\n            excludes += \"/*.yml\"\n        }\n    }\n}\n\ndependencies {\n    //modules\n    implementation(project(\":common\"))\n    implementation(project(\":strings\"))\n    implementation(project(\":datastore\"))\n    implementation(project(\":feature_home\"))\n    implementation(project(\":feature_settings\"))\n    implementation(project(\":feature_history\"))\n    implementation(project(\":feature_favourites\"))\n    implementation(project(\":feature_overlay\"))\n    implementation(project(\":feature_about\"))\n    //core android/kotlin\n    coreLibraryDesugaring(libs.desugar.jdk.libs)\n    implementation(libs.androidx.core.ktx)\n    implementation(libs.androidx.lifecycle.viewmodel.compose)\n    implementation(libs.androidx.core.splashscreen)\n    //compose\n    implementation(libs.androidx.compose.ui)\n    implementation(libs.androidx.compose.material)\n    implementation(libs.androidx.compose.ui.tooling.preview)\n    //\n    debugImplementation(libs.androidx.compose.ui.tooling)\n    implementation(libs.androidx.activity.compose)\n    implementation(libs.androidx.compose.material.icons.extended)\n    implementation(libs.androidx.compose.material3)\n    implementation(libs.androidx.compose.material3.window.size)\n    implementation(libs.androidx.lifecycle.runtime.compose)\n    //navigation\n    implementation(libs.androidx.navigation.compose)\n    //hilt\n    implementation(libs.hilt.android)\n    ksp(libs.hilt.android.compiler)\n    implementation(libs.hilt.lifecycle.compose)\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.kts.\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\n-keep class io.github.yamin8000.owl.datastore.domain.model.** { <fields>; }\n-keep class io.github.yamin8000.owl.search.domain.model.** { <fields>; }\n-keep class io.github.yamin8000.owl.search.data.datasource.remote.dto.** { <fields>; }\n\n# This is generated automatically by the Android Gradle plugin.\n-dontwarn org.bouncycastle.jsse.BCSSLParameters\n-dontwarn org.bouncycastle.jsse.BCSSLSocket\n-dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider\n-dontwarn org.conscrypt.Conscrypt$Version\n-dontwarn org.conscrypt.Conscrypt\n-dontwarn org.conscrypt.ConscryptHostnameVerifier\n-dontwarn org.openjsse.javax.net.ssl.SSLParameters\n-dontwarn org.openjsse.javax.net.ssl.SSLSocket\n-dontwarn org.openjsse.net.ssl.OpenJSSE\n\n##---------------Begin: proguard configuration for okhttp3  ----------\n# JSR 305 annotations are for embedding nullability information.\n-dontwarn javax.annotation.**\n\n# A resource is loaded with a relative path so the package of this class must be preserved.\n-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase\n\n# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.\n-dontwarn org.codehaus.mojo.animal_sniffer.*\n\n# OkHttp platform used only on JVM and when Conscrypt dependency is available.\n-dontwarn okhttp3.internal.platform.ConscryptPlatform\n##---------------End: proguard configuration for okhttp3  ----------\n\n##---------------Begin: proguard configuration for okio  ----------\n# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.\n-dontwarn org.codehaus.mojo.animal_sniffer.*\n##---------------End: proguard configuration for okio  ----------\n\n-keepnames class * implements android.os.Parcelable {\n   public static final ** CREATOR;\n}\n\n# This is generated automatically by the Android Gradle plugin.\n-dontwarn java.lang.invoke.StringConcatFactory\n\n# Faker\n-dontwarn java.beans.BeanInfo\n-dontwarn java.beans.FeatureDescriptor\n-dontwarn java.beans.IntrospectionException\n-dontwarn java.beans.Introspector\n-dontwarn java.beans.PropertyDescriptor"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n  ~     freeDictionaryApp/freeDictionaryApp.app.main\n  ~     AndroidManifest.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     AndroidManifest.xml Last modified at 2024/4/18\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.app.main 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  ~     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n    <uses-permission android:name=\"android.permission.INTERNET\" />\n    <uses-permission android:name=\"android.permission.VIBRATE\" />\n\n    <application\n        android:name=\".core.App\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:roundIcon=\"@mipmap/ic_launcher\"\n        android:supportsRtl=\"false\"\n        android:theme=\"@style/Theme.Owl.Splash\">\n\n        <activity\n            android:name=\"io.github.yamin8000.owl.ui.MainActivity\"\n            android:configChanges=\"orientation|keyboardHidden|keyboard|locale|screenLayout|screenSize\"\n            android:exported=\"true\"\n            android:theme=\"@style/Theme.Owl.Splash\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n\n        <activity\n            android:name=\".ui.OverlayActivity\"\n            android:configChanges=\"orientation|screenSize|keyboardHidden|keyboard|locale|screenLayout|screenSize\"\n            android:excludeFromRecents=\"true\"\n            android:exported=\"true\"\n            android:theme=\"@style/Theme.AppCompat.Dialog\"\n            android:windowSoftInputMode=\"adjustResize\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.SEND\" />\n                <category android:name=\"android.intent.category.DEFAULT\" />\n                <data android:mimeType=\"text/plain\" />\n            </intent-filter>\n            <intent-filter>\n                <action android:name=\"android.intent.action.PROCESS_TEXT\" />\n                <category android:name=\"android.intent.category.DEFAULT\" />\n                <data android:mimeType=\"text/plain\" />\n            </intent-filter>\n            <intent-filter>\n                <action android:name=\"android.intent.action.TRANSLATE\" />\n                <category android:name=\"android.intent.category.DEFAULT\" />\n            </intent-filter>\n            <intent-filter>\n                <action android:name=\"android.intent.action.DEFINE\" />\n                <category android:name=\"android.intent.category.DEFAULT\" />\n                <data android:mimeType=\"text/plain\" />\n            </intent-filter>\n\n            <intent-filter android:autoVerify=\"true\">\n                <action android:name=\"android.intent.action.VIEW\" />\n\n                <category android:name=\"android.intent.category.DEFAULT\" />\n                <category android:name=\"android.intent.category.BROWSABLE\" />\n\n                <data\n                    android:host=\"google.com\"\n                    android:pathPrefix=\"/test\"\n                    android:scheme=\"https\" />\n            </intent-filter>\n        </activity>\n    </application>\n\n</manifest>"
  },
  {
    "path": "app/src/main/java/io/github/yamin8000/owl/core/App.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.app.main\n *     App.kt Copyrighted by Yamin Siahmargooei at 2024/8/17\n *     App.kt Last modified at 2024/8/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.app.main 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 *     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.core\n\nimport android.app.Application\nimport dagger.hilt.android.HiltAndroidApp\n\n@HiltAndroidApp\ninternal class App : Application()"
  },
  {
    "path": "app/src/main/java/io/github/yamin8000/owl/ui/BaseActivity.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.app.main\n *     BaseActivity.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     BaseActivity.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.app.main 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 *     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.ui\n\nimport android.content.res.Configuration\nimport android.os.Bundle\nimport androidx.activity.ComponentActivity\nimport androidx.activity.compose.setContent\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.setValue\nimport dagger.hilt.android.AndroidEntryPoint\nimport io.github.yamin8000.owl.common.ui.theme.AppTheme\nimport io.github.yamin8000.owl.datastore.domain.model.ThemeType\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.SettingUseCases\nimport io.github.yamin8000.owl.common.util.log\nimport kotlinx.coroutines.runBlocking\nimport javax.inject.Inject\n\n@AndroidEntryPoint\ninternal open class BaseActivity : ComponentActivity() {\n\n    @Inject\n    lateinit var settings: SettingUseCases\n\n    var appTheme by mutableStateOf<ThemeType>(ThemeType.System)\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n\n        appTheme = findTheme()\n    }\n\n    protected fun showContent(\n        content: @Composable () -> Unit,\n    ) {\n        setContent {\n            val isSystemInDarkTheme = (resources.configuration.uiMode\n                .and(Configuration.UI_MODE_NIGHT_MASK)) == Configuration.UI_MODE_NIGHT_YES\n            AppTheme(\n                isDarkTheme = isDarkTheme(appTheme, isSystemInDarkTheme),\n                isOledTheme = appTheme == ThemeType.Darker || appTheme == ThemeType.SystemDarker,\n                isDynamicColor = appTheme == ThemeType.System || appTheme == ThemeType.SystemDarker,\n                content = content\n            )\n        }\n    }\n\n    private fun findTheme(): ThemeType {\n        return try {\n            runBlocking {\n                settings.getTheme()\n            }\n        } catch (e: InterruptedException) {\n            log(e.stackTraceToString())\n            ThemeType.System\n        }\n    }\n\n    private fun isDarkTheme(\n        theme: ThemeType,\n        isSystemInDarkTheme: Boolean\n    ) = when (theme) {\n        ThemeType.Light -> false\n        ThemeType.System -> isSystemInDarkTheme\n        ThemeType.Dark, ThemeType.Darker, ThemeType.SystemDarker -> true\n    }\n}"
  },
  {
    "path": "app/src/main/java/io/github/yamin8000/owl/ui/MainActivity.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.app.main\n *     MainActivity.kt Copyrighted by Yamin Siahmargooei at 2024/8/18\n *     MainActivity.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.app.main 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 *     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.ui\n\nimport android.annotation.SuppressLint\nimport android.os.Bundle\nimport androidx.activity.enableEdgeToEdge\nimport androidx.compose.animation.core.tween\nimport androidx.compose.animation.fadeIn\nimport androidx.compose.animation.fadeOut\nimport androidx.compose.animation.scaleIn\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.Scaffold\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.remember\nimport androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.navigation.compose.NavHost\nimport androidx.navigation.compose.composable\nimport androidx.navigation.compose.rememberNavController\nimport io.github.yamin8000.karlancer.feature_history.ui.HistoryScreen\nimport io.github.yamin8000.owl.BuildConfig\nimport io.github.yamin8000.owl.datastore.domain.model.ThemeType\nimport io.github.yamin8000.owl.feature_about.ui.AboutScreen\nimport io.github.yamin8000.owl.feature_favourites.FavouritesScreen\nimport io.github.yamin8000.owl.feature_home.di.HomeViewModelFactory\nimport io.github.yamin8000.owl.feature_home.ui.HomeScreen\nimport io.github.yamin8000.owl.feature_home.ui.HomeViewModel\nimport io.github.yamin8000.owl.feature_settings.ui.SettingsScreen\nimport io.github.yamin8000.owl.ui.navigation.Nav\n\ninternal class MainActivity : BaseActivity() {\n\n    private var intentSearch: String? = null\n\n    @SuppressLint(\"UnusedMaterial3ScaffoldPaddingParameter\")\n    @ExperimentalMaterial3Api\n    override fun onCreate(savedInstanceState: Bundle?) {\n        installSplashScreen()\n\n        super.onCreate(savedInstanceState)\n\n        enableEdgeToEdge()\n\n        intentSearch = intent.getStringExtra(\"Search\")\n\n        showContent {\n            Scaffold {\n                MainNav(onThemeChanged = { appTheme = it })\n            }\n        }\n    }\n\n    @Composable\n    private fun MainNav(\n        onThemeChanged: (ThemeType) -> Unit\n    ) {\n        val start = \"${Nav.Route.Home}/{Search}\"\n        val navController = rememberNavController()\n        val onBackClick: () -> Unit = remember { { navController.navigateUp() } }\n        NavHost(\n            navController = navController,\n            startDestination = start,\n            enterTransition = {\n                fadeIn(animationSpec = tween(250)) + scaleIn(\n                    animationSpec = tween(250),\n                    initialScale = .9f\n                )\n            },\n            exitTransition = {\n                fadeOut(animationSpec = tween(250))\n            },\n            builder = {\n                composable(start) {\n                    val argSearch = it.arguments?.getString(\"Search\")\n                    HomeScreen(\n                        onNavigateToAbout = { navController.navigate(Nav.Route.About()) },\n                        onNavigateToSettings = { navController.navigate(Nav.Route.Settings()) },\n                        onNavigateToFavourites = { navController.navigate(Nav.Route.Favourites()) },\n                        onNavigateToHistory = { navController.navigate(Nav.Route.History()) },\n                        vm = hiltViewModel<HomeViewModel, HomeViewModelFactory>(\n                            creationCallback = { factory ->\n                                factory.create(\n                                    intentSearch = intentSearch,\n                                    navigationSearch = argSearch\n                                )\n                            }\n                        )\n                    )\n                }\n\n                composable(Nav.Route.About.toString()) {\n                    AboutScreen(\n                        installedVersionName = BuildConfig.VERSION_NAME,\n                        onBackClick = onBackClick\n                    )\n                }\n\n                composable(Nav.Route.Favourites()) {\n                    FavouritesScreen(\n                        onBackClick = onBackClick,\n                        onFavouritesItemClick = { navController.navigate(\"${Nav.Route.Home}/${it}\") },\n                    )\n                }\n\n                composable(Nav.Route.History()) {\n                    HistoryScreen(\n                        onBackClick = onBackClick,\n                        onHistoryItemClick = { navController.navigate(\"${Nav.Route.Home}/${it}\") }\n                    )\n                }\n\n                composable(Nav.Route.Settings()) {\n                    SettingsScreen(\n                        onBackClick = onBackClick,\n                        onThemeChanged = onThemeChanged\n                    )\n                }\n            }\n        )\n    }\n}"
  },
  {
    "path": "app/src/main/java/io/github/yamin8000/owl/ui/OverlayActivity.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.app.main\n *     FloatingActivity.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     FloatingActivity.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.app.main 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 *     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.ui\n\nimport android.content.Intent\nimport android.os.Bundle\nimport androidx.core.os.bundleOf\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport io.github.yamin8000.owl.feature_overlay.di.OverlayViewModelFactory\nimport io.github.yamin8000.owl.feature_overlay.ui.OverlayScreen\nimport io.github.yamin8000.owl.feature_overlay.ui.OverlayWindowViewModel\n\ninternal class OverlayActivity : BaseActivity() {\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n\n        val data = handleOutsideInputIntent()\n\n        showContent {\n            OverlayScreen(\n                onDismissRequest = { finish() },\n                navigateToApp = {\n                    val intent = Intent(this, MainActivity::class.java)\n                    intent.putExtras(bundleOf(\"Search\" to it))\n                    startActivity(intent)\n                    finish()\n                },\n                vm = hiltViewModel<OverlayWindowViewModel, OverlayViewModelFactory>(\n                    creationCallback = { factory ->\n                        factory.create(intentSearch = data)\n                    }\n                )\n            )\n        }\n    }\n\n    private fun handleOutsideInputIntent(): String? {\n        return if (intent.type == \"text/plain\") {\n            when (intent.action) {\n                Intent.ACTION_TRANSLATE, Intent.ACTION_DEFINE, Intent.ACTION_SEND -> intent.getStringExtra(\n                    Intent.EXTRA_TEXT\n                )\n\n                Intent.ACTION_PROCESS_TEXT -> intent.getStringExtra(Intent.EXTRA_PROCESS_TEXT)\n                else -> null\n            }\n        } else {\n            null\n        }\n    }\n}"
  },
  {
    "path": "app/src/main/java/io/github/yamin8000/owl/ui/navigation/Nav.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.app.main\n *     Nav.kt Copyrighted by Yamin Siahmargooei at 2024/8/24\n *     Nav.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.app.main 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 *     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.ui.navigation\n\n/** Navigation singleton */\nobject Nav {\n    sealed interface Route {\n        data object Home : Route\n        data object History : Route\n        data object Settings : Route\n        data object About : Route\n        data object Favourites : Route\n\n        operator fun invoke(): String {\n            return this.toString()\n        }\n    }\n\n    sealed interface Arguments {\n        data object Search : Arguments\n\n        operator fun invoke(): String {\n            return this.toString()\n        }\n    }\n}"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n  ~     freeDictionaryApp/freeDictionaryApp.app.main\n  ~     ic_launcher_background.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     ic_launcher_background.xml Last modified at 2024/3/23\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.app.main 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  ~     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\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=\"#C51162\"\n        android:pathData=\"M0,0h108v108h-108z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_foreground.xml",
    "content": "<!--\n  ~     freeDictionaryApp/freeDictionaryApp.app.main\n  ~     ic_launcher_foreground.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     ic_launcher_foreground.xml Last modified at 2024/3/23\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.app.main 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  ~     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"48dp\"\n    android:height=\"48dp\"\n    android:viewportWidth=\"108\"\n    android:viewportHeight=\"108\">\n    <group\n        android:scaleX=\"2.2572\"\n        android:scaleY=\"2.2572\"\n        android:translateX=\"26.9136\"\n        android:translateY=\"26.9136\">\n        <path\n            android:fillColor=\"#000\"\n            android:pathData=\"M12,16C12.56,16.84 13.31,17.53 14.2,18L12,20.2L9.8,18C10.69,17.53 11.45,16.84 12,16M17,11.2A2,2 0 0,0 15,13.2A2,2 0 0,0 17,15.2A2,2 0 0,0 19,13.2C19,12.09 18.1,11.2 17,11.2M7,11.2A2,2 0 0,0 5,13.2A2,2 0 0,0 7,15.2A2,2 0 0,0 9,13.2C9,12.09 8.1,11.2 7,11.2M17,8.7A4,4 0 0,1 21,12.7A4,4 0 0,1 17,16.7A4,4 0 0,1 13,12.7A4,4 0 0,1 17,8.7M7,8.7A4,4 0 0,1 11,12.7A4,4 0 0,1 7,16.7A4,4 0 0,1 3,12.7A4,4 0 0,1 7,8.7M2.24,1C4,4.7 2.73,7.46 1.55,10.2C1.19,11 1,11.83 1,12.7A6,6 0 0,0 7,18.7C7.21,18.69 7.42,18.68 7.63,18.65L10.59,21.61L12,23L13.41,21.61L16.37,18.65C16.58,18.68 16.79,18.69 17,18.7A6,6 0 0,0 23,12.7C23,11.83 22.81,11 22.45,10.2C21.27,7.46 20,4.7 21.76,1C19.12,3.06 15.36,4.69 12,4.7C8.64,4.69 4.88,3.06 2.24,1Z\" />\n    </group>\n</vector>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n  ~     freeDictionaryApp/freeDictionaryApp.app.main\n  ~     ic_launcher.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     ic_launcher.xml Last modified at 2024/3/23\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.app.main 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  ~     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@drawable/ic_launcher_background\" />\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\" />\n    <monochrome android:drawable=\"@drawable/ic_launcher_foreground\" />\n</adaptive-icon>\n"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~     freeDictionaryApp/freeDictionaryApp.app.main\n  ~     colors.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     colors.xml Last modified at 2024/3/23\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.app.main 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  ~     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<resources>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n  ~     freeDictionaryApp/freeDictionaryApp.app.main\n  ~     ic_launcher_background.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     ic_launcher_background.xml Last modified at 2024/3/23\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.app.main 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  ~     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<resources />"
  },
  {
    "path": "app/src/main/res/values/themes.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n  ~     freeDictionaryApp/freeDictionaryApp.app.main\n  ~     themes.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     themes.xml Last modified at 2024/3/23\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.app.main 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  ~     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<resources xmlns:tools=\"http://schemas.android.com/tools\">\n\n    <style name=\"Theme.Owl\" parent=\"android:Theme.Material.Light.NoActionBar\" />\n\n    <style name=\"Theme.Owl.Splash\" parent=\"Theme.SplashScreen\">\n        <item name=\"android:windowSplashScreenBackground\" tools:targetApi=\"s\">#FBE9E7</item>\n        <item name=\"android:windowSplashScreenAnimatedIcon\" tools:targetApi=\"s\">\n            @drawable/ic_launcher_foreground\n        </item>\n        <item name=\"android:windowSplashScreenIconBackgroundColor\" tools:targetApi=\"s\">#BB0055</item>\n        <item name=\"android:windowSplashScreenAnimationDuration\" tools:targetApi=\"s\">500</item>\n        <item name=\"postSplashScreenTheme\">@style/Theme.Owl</item>\n    </style>\n</resources>"
  },
  {
    "path": "app/src/main/res/values-night/themes.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n  ~     freeDictionaryApp/freeDictionaryApp.app.main\n  ~     themes.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     themes.xml Last modified at 2024/3/23\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.app.main 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  ~     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<resources xmlns:tools=\"http://schemas.android.com/tools\">\n\n    <style name=\"Theme.Owl\" parent=\"android:Theme.Material.Light.NoActionBar\" />\n\n    <style name=\"Theme.Owl.Splash\" parent=\"Theme.SplashScreen\">\n        <item name=\"android:windowSplashScreenBackground\" tools:targetApi=\"s\">#201A1B</item>\n        <item name=\"android:windowSplashScreenAnimatedIcon\" tools:targetApi=\"s\">\n            @drawable/ic_launcher_foreground\n        </item>\n        <item name=\"android:windowSplashScreenIconBackgroundColor\" tools:targetApi=\"s\">#BB0055\n        </item>\n        <item name=\"android:windowSplashScreenAnimationDuration\" tools:targetApi=\"s\">500</item>\n        <item name=\"postSplashScreenTheme\">@style/Theme.Owl</item>\n    </style>\n</resources>"
  },
  {
    "path": "build.gradle.kts",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp\n *     build.gradle.kts Copyrighted by Yamin Siahmargooei at 2024/5/9\n *     build.gradle.kts Last modified at 2024/5/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp 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 *     freeDictionaryApp/freeDictionaryApp 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\nplugins {\n    alias(libs.plugins.android.application) apply false\n    alias(libs.plugins.android.library) apply false\n    alias(libs.plugins.jetbrains.kotlin.compose.plugin) apply false\n    alias(libs.plugins.google.ksp) apply false\n    alias(libs.plugins.jetbrains.kotlin.jvm) apply false\n    alias(libs.plugins.hilt) apply false\n    alias(libs.plugins.androix.room) apply false\n}\n\ntasks.register(\"sortLibs\") {\n    doFirst {\n        val tomlFile = File(\"$projectDir${File.separator}gradle${File.separator}libs.versions.toml\")\n        val lines = tomlFile.readLines()\n        var versions = mutableListOf<String>()\n        var libraries = mutableListOf<String>()\n        var plugins = mutableListOf<String>()\n\n        var isVersion = false\n        var isLibrary = false\n        var isPlugin = false\n        for (line in lines) {\n            if (line.isNotBlank()) {\n                if (line == \"[versions]\") {\n                    isVersion = true\n                    isLibrary = false\n                    isPlugin = false\n                    continue\n                }\n                if (line == \"[libraries]\") {\n                    isVersion = false\n                    isLibrary = true\n                    isPlugin = false\n                    continue\n                }\n                if (line == \"[plugins]\") {\n                    isVersion = false\n                    isLibrary = false\n                    isPlugin = true\n                    continue\n                }\n\n                if (isVersion) {\n                    versions.add(line)\n                }\n                if (isLibrary) {\n                    libraries.add(line)\n                }\n                if (isPlugin) {\n                    plugins.add(line)\n                }\n            }\n        }\n\n        versions = versions.sorted().toMutableList()\n        libraries = libraries.sorted().toMutableList()\n        plugins = plugins.sorted().toMutableList()\n\n        tomlFile.writeText(\n            buildString {\n                appendLine(\"[versions]\")\n                versions.forEach { appendLine(it) }\n                appendLine()\n                appendLine(\"[libraries]\")\n                libraries.forEach { appendLine(it) }\n                appendLine()\n                appendLine(\"[plugins]\")\n                plugins.forEach { appendLine(it) }\n            }.trim()\n        )\n    }\n}"
  },
  {
    "path": "common/.gitignore",
    "content": "/build"
  },
  {
    "path": "common/build.gradle.kts",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common\n *     build.gradle.kts Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     build.gradle.kts Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common 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 *     freeDictionaryApp/freeDictionaryApp.common 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport org.jetbrains.kotlin.gradle.dsl.JvmTarget\n\nplugins {\n    alias(libs.plugins.android.library)\n    alias(libs.plugins.google.ksp)\n    alias(libs.plugins.jetbrains.kotlin.compose.plugin)\n    alias(libs.plugins.hilt)\n}\n\nandroid {\n    namespace = \"io.github.yamin8000.owl.common\"\n    compileSdk = 36\n\n    defaultConfig {\n        minSdk = 23\n    }\n\n    compileOptions {\n        isCoreLibraryDesugaringEnabled = true\n        sourceCompatibility = JavaVersion.VERSION_17\n        targetCompatibility = JavaVersion.VERSION_17\n    }\n\n    kotlin {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_17\n        }\n    }\n\n    buildFeatures {\n        compose = true\n        buildConfig = true\n    }\n}\n\ncomposeCompiler {\n    reportsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n    metricsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n}\n\ndependencies {\n    api(project(\":strings\"))\n    api(project(\":datastore\"))\n    //core android/kotlin\n    coreLibraryDesugaring(libs.desugar.jdk.libs)\n    api(libs.androidx.core.ktx)\n    api(libs.androidx.lifecycle.viewmodel.compose)\n    api(libs.kotlinx.collections.immutable)\n    //compose\n    api(libs.androidx.compose.ui)\n    api(libs.androidx.compose.material)\n    api(libs.androidx.compose.ui.tooling.preview)\n    debugApi(libs.androidx.compose.ui.tooling)\n    api(libs.androidx.activity.compose)\n    api(libs.androidx.compose.material.icons.extended)\n    api(libs.androidx.compose.material3)\n    api(libs.androidx.compose.material3.window.size)\n    api(libs.androidx.lifecycle.runtime.compose)\n    api(platform(libs.androidx.compose.bom))\n    androidTestImplementation(platform(libs.androidx.compose.bom))\n    //hilt\n    implementation(libs.hilt.android)\n    ksp(libs.hilt.android.compiler)\n    implementation(libs.hilt.lifecycle.compose)\n    //lottie\n    implementation(libs.lottie.compose)\n    debugApi(libs.datafaker)\n}"
  },
  {
    "path": "common/src/debug/java/io/github/yamin8000/owl/common/CrudContentPreview.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     CrudContentPreview.kt Copyrighted by Yamin Siahmargooei at 2025/10/26\n *     CrudContentPreview.kt Last modified at 2025/10/26\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.tooling.preview.PreviewFontScale\nimport androidx.compose.ui.tooling.preview.PreviewScreenSizes\nimport io.github.yamin8000.owl.common.ui.components.crud.CrudContent\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport kotlinx.collections.immutable.toImmutableList\nimport net.datafaker.Faker\nimport kotlin.random.Random\nimport kotlin.random.nextInt\n\n@PreviewScreenSizes\n@PreviewFontScale\n@Preview\n@Composable\nprivate fun CrudContentPreview() {\n    PreviewTheme {\n        val faker = Faker()\n        val items = buildList {\n            repeat(Random.nextInt(0..100)) {\n                val random = Random.nextInt(0..4)\n                val word = when (random) {\n                    0 -> faker.word().noun()\n                    1 -> faker.word().verb()\n                    2 -> faker.word().adverb()\n                    3 -> faker.word().adjective()\n                    4 -> faker.word().interjection()\n                    else -> faker.word().preposition()\n                }\n                add(word)\n            }\n        }\n\n        CrudContent(\n            title = faker.lorem().word(),\n            items = items.toImmutableList(),\n            onBackClick = {},\n            onRemoveAll = {},\n            onRemoveSingle = {},\n            onItemClick = {}\n        )\n    }\n}"
  },
  {
    "path": "common/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~     freeDictionaryApp/freeDictionaryApp.common.main\n  ~     AndroidManifest.xml Copyrighted by Yamin Siahmargooei at 2025/9/8\n  ~     AndroidManifest.xml Last modified at 2025/3/16\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n  ~     Copyright (C) 2025  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.common.main 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  ~     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<manifest />"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/di/CommonModule.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     CommonModule.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     CommonModule.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.di\n\nimport android.app.Application\nimport dagger.Module\nimport dagger.Provides\nimport dagger.hilt.InstallIn\nimport dagger.hilt.components.SingletonComponent\nimport io.github.yamin8000.owl.common.util.TTS\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.SettingUseCases\nimport kotlinx.coroutines.runBlocking\nimport javax.inject.Singleton\n\n@Module\n@InstallIn(SingletonComponent::class)\nobject CommonModule {\n\n    @Provides\n    @Singleton\n    fun providesTts(\n        app: Application,\n        settingUseCases: SettingUseCases\n    ): TTS {\n        return runBlocking {\n            settingUseCases.getTTS()\n            return@runBlocking TTS(\n                app,\n                settingUseCases.getTTS()\n            )\n        }\n    }\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/AppText.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     AppText.kt Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     AppText.kt Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.components\n\nimport androidx.compose.material3.LocalTextStyle\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.text.TextLayoutResult\nimport androidx.compose.ui.text.TextStyle\nimport androidx.compose.ui.text.font.FontFamily\nimport androidx.compose.ui.text.font.FontStyle\nimport androidx.compose.ui.text.font.FontWeight\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.text.style.TextDecoration\nimport androidx.compose.ui.text.style.TextDirection\nimport androidx.compose.ui.text.style.TextOverflow\nimport androidx.compose.ui.unit.TextUnit\nimport io.github.yamin8000.owl.common.ui.theme.Samim\nimport io.github.yamin8000.owl.common.util.LocaleUtils\n\n@Composable\nfun AppText(\n    text: String,\n    modifier: Modifier = Modifier,\n    color: Color = Color.Unspecified,\n    fontSize: TextUnit = TextUnit.Unspecified,\n    fontStyle: FontStyle? = null,\n    fontWeight: FontWeight? = null,\n    fontFamily: FontFamily? = null,\n    letterSpacing: TextUnit = TextUnit.Unspecified,\n    textDecoration: TextDecoration? = null,\n    textAlign: TextAlign? = null,\n    lineHeight: TextUnit = TextUnit.Unspecified,\n    overflow: TextOverflow = TextOverflow.Clip,\n    softWrap: Boolean = true,\n    maxLines: Int = Int.MAX_VALUE,\n    minLines: Int = 1,\n    onTextLayout: (TextLayoutResult) -> Unit = {},\n    style: TextStyle = LocalTextStyle.current\n) {\n    val hasAnyRtlCharacter = remember(text) {\n        text.any { LocaleUtils.isRtlChar(it) }\n    }\n\n    Text(\n        text = text,\n        modifier = modifier,\n        color = color,\n        fontSize = fontSize,\n        fontStyle = fontStyle,\n        fontWeight = fontWeight,\n        fontFamily = if (hasAnyRtlCharacter) Samim else fontFamily,\n        letterSpacing = letterSpacing,\n        textDecoration = textDecoration,\n        textAlign = textAlign,\n        lineHeight = lineHeight,\n        overflow = overflow,\n        softWrap = softWrap,\n        maxLines = maxLines,\n        minLines = minLines,\n        onTextLayout = onTextLayout,\n        style = style.copy(textDirection = if (hasAnyRtlCharacter) TextDirection.Rtl else TextDirection.Ltr)\n    )\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/ClickableIcon.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     ClickableIcon.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     ClickableIcon.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.components\n\nimport androidx.compose.animation.core.animateFloatAsState\nimport androidx.compose.foundation.interaction.MutableInteractionSource\nimport androidx.compose.foundation.interaction.collectIsPressedAsState\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.Settings\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.IconButton\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.graphicsLayer\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.hapticfeedback.HapticFeedbackType\nimport androidx.compose.ui.platform.LocalHapticFeedback\nimport androidx.compose.ui.tooling.preview.Preview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\n\n@Preview(showBackground = true)\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        ClickableIcon(\n            imageVector = Icons.TwoTone.Settings,\n            onClick = {}\n        )\n    }\n}\n\n@Composable\nfun ClickableIcon(\n    imageVector: ImageVector,\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n    enabled: Boolean = true,\n    contentDescription: String? = null\n) {\n    val haptic = LocalHapticFeedback.current\n    val interactionSource = remember { MutableInteractionSource() }\n    val pressed by interactionSource.collectIsPressedAsState()\n    val rotation by animateFloatAsState(targetValue = if (pressed) 15f else 0f)\n    IconButton(\n        modifier = modifier.graphicsLayer { rotationZ = rotation },\n        enabled = enabled,\n        interactionSource = interactionSource,\n        onClick = {\n            haptic.performHapticFeedback(HapticFeedbackType.ContextClick)\n            onClick()\n        },\n        content = {\n            Icon(\n                imageVector = imageVector,\n                contentDescription = contentDescription,\n            )\n        }\n    )\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/DeleteMenu.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     DeleteMenu.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     DeleteMenu.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.components\n\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.Delete\nimport androidx.compose.material3.DropdownMenu\nimport androidx.compose.material3.DropdownMenuItem\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.Surface\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.strings.R\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        Surface(\n            modifier = Modifier\n                .fillMaxSize()\n                .padding(Sizes.xxLarge),\n            content = {\n                DeleteMenu(\n                    item = \"Item\",\n                    expanded = true,\n                    onDelete = {},\n                    onDismiss = {},\n                    onWordClick = {}\n                )\n            }\n        )\n    }\n}\n\n@Composable\ninternal fun DeleteMenu(\n    item: String,\n    expanded: Boolean,\n    onWordClick: () -> Unit,\n    onDismiss: () -> Unit,\n    onDelete: () -> Unit,\n    modifier: Modifier = Modifier\n) {\n    val delete = stringResource(R.string.delete)\n    DropdownMenu(\n        modifier = modifier,\n        expanded = expanded,\n        onDismissRequest = onDismiss,\n        content = {\n            DropdownMenuItem(\n                onClick = onWordClick,\n                text = { AppText(item) },\n            )\n            DropdownMenuItem(\n                onClick = onDelete,\n                text = { AppText(text = delete) },\n                leadingIcon = {\n                    Icon(\n                        imageVector = Icons.TwoTone.Delete,\n                        contentDescription = delete\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/EmptyList.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     EmptyList.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     EmptyList.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.components\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.ui.Modifier\nimport com.airbnb.lottie.compose.LottieAnimation\nimport com.airbnb.lottie.compose.LottieCompositionSpec\nimport com.airbnb.lottie.compose.LottieConstants\nimport com.airbnb.lottie.compose.animateLottieCompositionAsState\nimport com.airbnb.lottie.compose.rememberLottieComposition\nimport io.github.yamin8000.owl.common.R\n\n@Composable\nfun EmptyList(\n    modifier: Modifier = Modifier,\n) {\n    val composition by rememberLottieComposition(LottieCompositionSpec.RawRes(R.raw.empty_list))\n    val progress by animateLottieCompositionAsState(\n        composition = composition,\n        iterations = LottieConstants.IterateForever\n    )\n    LottieAnimation(\n        modifier = modifier,\n        composition = composition,\n        progress = { progress },\n    )\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/HighlightText.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     HighlightText.kt Copyrighted by Yamin Siahmargooei at 2025/1/16\n *     HighlightText.kt Last modified at 2025/1/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.components\n\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.text.SpanStyle\nimport androidx.compose.ui.text.buildAnnotatedString\nimport androidx.compose.ui.text.font.FontWeight\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.text.style.TextDecoration\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        HighlightText(\n            fullText = \"eating\",\n            highlightedText = \"ing\"\n        )\n    }\n}\n\n@Composable\nfun HighlightText(\n    fullText: String,\n    highlightedText: String,\n    modifier: Modifier = Modifier,\n    highlightedTextStyle: SpanStyle = SpanStyle(\n        fontWeight = FontWeight.ExtraBold,\n        textDecoration = TextDecoration.Underline\n    )\n) {\n    if (highlightedText.isNotBlank() && fullText.contains(highlightedText, true)) {\n        val start = remember(fullText, highlightedText) {\n            fullText.indexOf(highlightedText, 0, true)\n        }\n        val end = remember(start, highlightedText) {\n            start + highlightedText.length\n        }\n\n        val text = remember(fullText, start, end) {\n            buildAnnotatedString {\n                append(fullText)\n                addStyle(highlightedTextStyle, start, end)\n            }\n        }\n\n        Text(\n            modifier = modifier,\n            text = text,\n            textAlign = TextAlign.Justify\n        )\n    } else {\n        Text(\n            modifier = modifier,\n            text = fullText,\n            textAlign = TextAlign.Justify\n        )\n    }\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/MySnackbar.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     MySnackbar.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     MySnackbar.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.components\n\nimport androidx.compose.foundation.layout.WindowInsets\nimport androidx.compose.foundation.layout.asPaddingValues\nimport androidx.compose.foundation.layout.ime\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.shape.RoundedCornerShape\nimport androidx.compose.material3.Snackbar\nimport androidx.compose.material3.SnackbarDefaults\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\n\n@Composable\nfun MySnackbar(\n    modifier: Modifier = Modifier,\n    action: @Composable (() -> Unit)? = null,\n    dismissAction: @Composable (() -> Unit)? = null,\n    actionOnNewLine: Boolean = false,\n    containerColor: Color = SnackbarDefaults.color,\n    contentColor: Color = SnackbarDefaults.contentColor,\n    actionContentColor: Color = SnackbarDefaults.actionContentColor,\n    dismissActionContentColor: Color = SnackbarDefaults.dismissActionContentColor,\n    content: @Composable () -> Unit\n) {\n    Snackbar(\n        modifier = modifier\n            .padding(vertical = Sizes.Large, horizontal = Sizes.Large)\n            .padding(WindowInsets.ime.asPaddingValues()),\n        action = action,\n        dismissAction = dismissAction,\n        actionOnNewLine = actionOnNewLine,\n        shape = RoundedCornerShape(Sizes.Medium),\n        containerColor = containerColor,\n        contentColor = contentColor,\n        actionContentColor = actionContentColor,\n        dismissActionContentColor = dismissActionContentColor,\n        content = content\n    )\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/Ripple.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     Ripple.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     Ripple.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.components\n\nimport androidx.compose.foundation.ExperimentalFoundationApi\nimport androidx.compose.foundation.combinedClickable\nimport androidx.compose.foundation.interaction.MutableInteractionSource\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.BoxScope\nimport androidx.compose.material3.ripple\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Modifier\n\n@OptIn(ExperimentalFoundationApi::class)\n@Composable\nfun Ripple(\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n    onLongClick: () -> Unit = {},\n    content: @Composable BoxScope.() -> Unit\n) {\n    Box(\n        content = content,\n        modifier = modifier\n            .combinedClickable(\n                interactionSource = remember { MutableInteractionSource() },\n                indication = ripple(),\n                onClick = onClick,\n                onLongClick = onLongClick\n            )\n    )\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/ScaffoldWithTitle.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     ScaffoldWithTitle.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     ScaffoldWithTitle.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.components\n\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.BoxScope\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.automirrored.twotone.ArrowBack\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.Scaffold\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.TopAppBar\nimport androidx.compose.material3.TopAppBarDefaults\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.input.nestedscroll.nestedScroll\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.text.style.TextOverflow\nimport androidx.compose.ui.unit.dp\nimport androidx.compose.ui.unit.sp\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.strings.R\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nfun ScaffoldWithTitle(\n    title: String,\n    onBackClick: () -> Unit,\n    modifier: Modifier = Modifier,\n    snackbarHost: @Composable () -> Unit = {},\n    content: @Composable BoxScope.() -> Unit\n) {\n    val scrollBehavior = TopAppBarDefaults.enterAlwaysScrollBehavior()\n    val connection by remember { mutableStateOf(scrollBehavior.nestedScrollConnection) }\n    Scaffold(\n        modifier = modifier\n            .fillMaxSize()\n            .nestedScroll(connection),\n        snackbarHost = snackbarHost,\n        topBar = {\n            Surface(\n                shadowElevation = Sizes.Large,\n                content = {\n                    TopAppBar(\n                        scrollBehavior = scrollBehavior,\n                        title = {\n                            AppText(\n                                text = title,\n                                fontSize = 20.sp,\n                                textAlign = TextAlign.Center,\n                                maxLines = 1,\n                                overflow = TextOverflow.Ellipsis\n                            )\n                        },\n                        actions = {\n                            ClickableIcon(\n                                imageVector = Icons.AutoMirrored.TwoTone.ArrowBack,\n                                contentDescription = stringResource(R.string.back),\n                                onClick = onBackClick\n                            )\n                        }\n                    )\n                }\n            )\n        },\n        content = {\n            Box(\n                content = content,\n                modifier = Modifier\n                    .padding(it)\n                    .padding(\n                        start = Sizes.Large,\n                        end = Sizes.Large,\n                        bottom = 0.dp,\n                        top = Sizes.Small\n                    )\n            )\n        }\n    )\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/Texts.kt",
    "content": "/*\n*     freeDictionaryApp/freeDictionaryApp.common.main\n*     Texts.kt Copyrighted by Yamin Siahmargooei at 2024/8/18\n*     Texts.kt Last modified at 2024/8/18\n*     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n*     Copyright (C) 2024  Yamin Siahmargooei\n*\n*     freeDictionaryApp/freeDictionaryApp.common.main 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*     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n*/\n\npackage io.github.yamin8000.owl.common.ui.components\n\nimport android.content.ClipData\nimport android.content.Context\nimport android.content.res.Configuration\nimport android.media.AudioManager\nimport android.widget.Toast\nimport androidx.compose.foundation.ExperimentalFoundationApi\nimport androidx.compose.foundation.combinedClickable\nimport androidx.compose.foundation.interaction.MutableInteractionSource\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.lazy.grid.GridCells\nimport androidx.compose.foundation.lazy.grid.LazyVerticalGrid\nimport androidx.compose.foundation.lazy.grid.items\nimport androidx.compose.foundation.text.selection.LocalTextSelectionColors\nimport androidx.compose.foundation.text.selection.SelectionContainer\nimport androidx.compose.foundation.text.selection.TextSelectionColors\nimport androidx.compose.material3.ElevatedSuggestionChip\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.ripple\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.CompositionLocalProvider\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.movableContentOf\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.draw.clip\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.hapticfeedback.HapticFeedbackType\nimport androidx.compose.ui.platform.LocalClipboard\nimport androidx.compose.ui.platform.LocalConfiguration\nimport androidx.compose.ui.platform.LocalContext\nimport androidx.compose.ui.platform.LocalDensity\nimport androidx.compose.ui.platform.LocalHapticFeedback\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.style.TextOverflow\nimport androidx.compose.ui.window.Dialog\nimport io.github.yamin8000.owl.common.ui.theme.DefaultCutShape\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.common.ui.theme.defaultGradientBorder\nimport io.github.yamin8000.owl.common.util.ContextUtils.findActivity\nimport io.github.yamin8000.owl.common.util.LocalTTS\nimport io.github.yamin8000.owl.common.util.StringUtils.sanitizeWords\nimport io.github.yamin8000.owl.strings.R\n\n@OptIn(ExperimentalFoundationApi::class)\n@Composable\nfun CopyAbleRippleText(\n    text: String,\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n    onDoubleClick: ((String) -> Unit)? = null,\n    content: @Composable (() -> Unit)? = null\n) {\n    val textCopied = stringResource(R.string.text_copied)\n    val context = LocalContext.current\n    val clipboardManager = LocalClipboard.current\n    val haptic = LocalHapticFeedback.current\n\n    var isDialogShown by remember { mutableStateOf(false) }\n\n    Box(\n        content = {\n            Box(\n                modifier = Modifier.padding(Sizes.Medium),\n                content = {\n                    val selectionColors = TextSelectionColors(\n                        handleColor = MaterialTheme.colorScheme.secondary,\n                        backgroundColor = MaterialTheme.colorScheme.onSecondary\n                    )\n                    CompositionLocalProvider(\n                        values = arrayOf(LocalTextSelectionColors provides selectionColors),\n                        content = {\n                            SelectionContainer(content = { content?.invoke() ?: Text(text) })\n                        }\n                    )\n                }\n            )\n        },\n        modifier = modifier\n            .clip(DefaultCutShape)\n            .combinedClickable(\n                interactionSource = remember { MutableInteractionSource() },\n                indication = ripple(),\n                onClick = onClick,\n                onDoubleClick = { isDialogShown = true },\n                onLongClick = {\n                    haptic.performHapticFeedback(HapticFeedbackType.LongPress)\n                    clipboardManager.nativeClipboard.setPrimaryClip(\n                        ClipData.newPlainText(text, text)\n                    )\n                    Toast.makeText(context, textCopied, Toast.LENGTH_SHORT)\n                        .show()\n                }\n            )\n    )\n    if (isDialogShown && onDoubleClick != null) {\n        Dialog(\n            onDismissRequest = { isDialogShown = false },\n            content = {\n                Surface(\n                    shape = DefaultCutShape,\n                    content = {\n                        val words = remember(text) {\n                            sanitizeWords(text.split(Regex(\"\\\\s+\")).toSet()).toList()\n                        }\n                        LazyVerticalGrid(\n                            columns = GridCells.Fixed(2),\n                            verticalArrangement = Arrangement.spacedBy(\n                                Sizes.Small,\n                                Alignment.CenterVertically\n                            ),\n                            horizontalArrangement = Arrangement.spacedBy(\n                                Sizes.Small,\n                                Alignment.CenterHorizontally\n                            ),\n                            modifier = Modifier.padding(Sizes.Medium),\n                            content = {\n                                items(words) { item ->\n                                    ElevatedSuggestionChip(\n                                        border = defaultGradientBorder(),\n                                        onClick = {\n                                            onDoubleClick(item)\n                                            isDialogShown = false\n                                        },\n                                        label = {\n                                            Text(\n                                                text = item,\n                                                overflow = TextOverflow.Ellipsis,\n                                                modifier = Modifier\n                                                    .padding(Sizes.Medium)\n                                                    .fillMaxSize()\n                                            )\n                                        }\n                                    )\n                                }\n                            }\n                        )\n                    }\n                )\n            }\n        )\n    }\n}\n\n@Composable\nfun CopyAbleRippleTextWithIcon(\n    text: String,\n    imageVector: ImageVector,\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n    title: String? = null,\n    onDoubleClick: ((String) -> Unit)? = null,\n    content: @Composable (() -> Unit)? = null\n) {\n    Row(\n        modifier = modifier,\n        horizontalArrangement = Arrangement.spacedBy(Sizes.Medium, Alignment.CenterHorizontally),\n        verticalAlignment = Alignment.CenterVertically,\n        content = {\n            val iconContent = remember(imageVector, text) {\n                movableContentOf {\n                    Icon(\n                        imageVector = imageVector,\n                        contentDescription = null,\n                        tint = MaterialTheme.colorScheme.secondary\n                    )\n                }\n            }\n            if (title != null) {\n                val config = LocalConfiguration.current\n                val orientation = remember(config) { config.orientation }\n                val density = LocalDensity.current\n                val titleFraction = remember(density) {\n                    if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n                        .25f * (density.fontScale + 1) / 2\n                    } else {\n                        .15f * (density.fontScale + 1) / 2\n                    }\n                }\n                Box(\n                    modifier = Modifier.fillMaxWidth(titleFraction),\n                    content = {\n                        val titleContent = remember {\n                            movableContentOf {\n                                iconContent()\n                                AppText(\n                                    text = title,\n                                    color = MaterialTheme.colorScheme.secondary,\n                                    maxLines = 1,\n                                    overflow = TextOverflow.Ellipsis\n                                )\n                            }\n                        }\n                        if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n                            Column(\n                                modifier = Modifier.fillMaxWidth(),\n                                horizontalAlignment = Alignment.CenterHorizontally,\n                                verticalArrangement = Arrangement.spacedBy(\n                                    Sizes.Medium,\n                                    Alignment.CenterVertically\n                                ),\n                                content = { titleContent() }\n                            )\n                        } else {\n                            Row(\n                                modifier = Modifier.fillMaxWidth(),\n                                verticalAlignment = Alignment.CenterVertically,\n                                horizontalArrangement = Arrangement.spacedBy(\n                                    Sizes.Medium,\n                                    Alignment.Start\n                                ),\n                                content = { titleContent() }\n                            )\n                        }\n                    }\n                )\n            } else {\n                iconContent()\n            }\n            CopyAbleRippleText(\n                modifier = Modifier.fillMaxWidth(),\n                text = text,\n                content = content,\n                onClick = onClick,\n                onDoubleClick = onDoubleClick\n            )\n        }\n    )\n}\n\n@Composable\nfun SpeakableRippleTextWithIcon(\n    text: String,\n    imageVector: ImageVector,\n    modifier: Modifier = Modifier,\n    ttsText: String = text,\n    title: String? = null,\n    onDoubleClick: ((String) -> Unit)? = null,\n    content: @Composable (() -> Unit)? = null\n) {\n    val increaseVolumeText = stringResource(R.string.increase_volume_notice)\n    val context = LocalContext.current\n    val audio = remember {\n        context.findActivity()?.getSystemService(Context.AUDIO_SERVICE) as AudioManager?\n    }\n\n    val tts = LocalTTS.current\n    CopyAbleRippleTextWithIcon(\n        modifier = modifier,\n        text = text,\n        content = content,\n        title = title,\n        imageVector = imageVector,\n        onDoubleClick = onDoubleClick,\n        onClick = {\n            if (audio?.getStreamVolume(AudioManager.STREAM_MUSIC) == 0) {\n                Toast.makeText(context, increaseVolumeText, Toast.LENGTH_SHORT).show()\n            }\n            tts?.speak(ttsText)\n            Unit\n        }\n    )\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/crud/CrudContent.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     CrudContent.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     CrudContent.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.components.crud\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.lazy.LazyColumn\nimport androidx.compose.foundation.lazy.items\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.tooling.preview.Preview\nimport io.github.yamin8000.owl.common.ui.components.EmptyList\nimport io.github.yamin8000.owl.common.ui.components.ScaffoldWithTitle\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.toImmutableList\nimport kotlin.random.Random\nimport kotlin.random.nextInt\n\n@Preview(showBackground = true)\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        CrudContent(\n            title = \"Title\",\n            onBackClick = {},\n            onRemoveAll = {},\n            onRemoveSingle = { _ -> },\n            onItemClick = {},\n            items = buildList {\n                repeat(Random.nextInt(0..100)) {\n                    add(\"Item\")\n                }\n            }.toImmutableList()\n        )\n    }\n}\n\n@Composable\nfun <T> CrudContent(\n    title: String,\n    items: ImmutableList<T>,\n    onBackClick: () -> Unit,\n    onRemoveAll: () -> Unit,\n    onRemoveSingle: (T) -> Unit,\n    onItemClick: (T) -> Unit,\n    modifier: Modifier = Modifier,\n    itemDisplayProvider: (T) -> String = { it.toString() },\n    emptyContent: (@Composable () -> Unit) = {\n        EmptyList(\n            modifier = Modifier.fillMaxWidth()\n        )\n    }\n) {\n    ScaffoldWithTitle(\n        modifier = modifier,\n        title = title,\n        onBackClick = onBackClick,\n        content = {\n            val isNotEmpty by remember(items.size) { mutableStateOf(items.isNotEmpty()) }\n            if (isNotEmpty) {\n                LazyColumn(\n                    horizontalAlignment = Alignment.CenterHorizontally,\n                    verticalArrangement = Arrangement.spacedBy(\n                        Sizes.Medium,\n                        Alignment.CenterVertically\n                    ),\n                    content = {\n                        item {\n                            RemoveAllContent(\n                                modifier = Modifier.fillMaxWidth(),\n                                onRemoveAllClick = onRemoveAll\n                            )\n                        }\n                        items(\n                            items = items,\n                            itemContent = { item ->\n                                CrudItem(\n                                    item = itemDisplayProvider(item),\n                                    onClick = { onItemClick(item) },\n                                    onLongClick = { onRemoveSingle(item) }\n                                )\n                            }\n                        )\n                    }\n                )\n            } else emptyContent()\n        }\n    )\n}\n\n"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/crud/CrudItem.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     CrudItem.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     CrudItem.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.components.crud\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\n\n@Composable\ninternal fun CrudItem(\n    item: String,\n    onClick: () -> Unit,\n    onLongClick: () -> Unit,\n    modifier: Modifier = Modifier\n) {\n    RemovableCard(\n        modifier = modifier,\n        item = item,\n        onClick = onClick,\n        onLongClick = onLongClick\n    )\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/crud/RemovableCard.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     RemovableCard.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     RemovableCard.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.components.crud\n\nimport androidx.compose.foundation.BorderStroke\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.OutlinedCard\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.hapticfeedback.HapticFeedbackType\nimport androidx.compose.ui.platform.LocalHapticFeedback\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.text.style.TextOverflow\nimport io.github.yamin8000.owl.common.ui.components.DeleteMenu\nimport io.github.yamin8000.owl.common.ui.components.Ripple\nimport io.github.yamin8000.owl.common.ui.theme.DefaultCutShape\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\n\n@Composable\nfun RemovableCard(\n    item: String,\n    onClick: () -> Unit,\n    onLongClick: () -> Unit,\n    modifier: Modifier = Modifier\n) {\n    OutlinedCard(\n        modifier = modifier,\n        shape = DefaultCutShape,\n        border = BorderStroke(Sizes.xxSmall, MaterialTheme.colorScheme.tertiary),\n        content = {\n            var isMenuExpanded by remember { mutableStateOf(false) }\n            Ripple(\n                onClick = onClick,\n                onLongClick = { isMenuExpanded = true },\n                content = {\n                    Text(\n                        text = item,\n                        maxLines = 1,\n                        textAlign = TextAlign.Center,\n                        overflow = TextOverflow.Ellipsis,\n                        modifier = Modifier\n                            .padding(vertical = Sizes.Medium)\n                            .padding(horizontal = Sizes.Small)\n                            .fillMaxWidth()\n                    )\n                }\n            )\n            val haptic = LocalHapticFeedback.current\n            DeleteMenu(\n                item = item,\n                expanded = isMenuExpanded,\n                onDismiss = { isMenuExpanded = false },\n                onWordClick = onClick,\n                onDelete = {\n                    isMenuExpanded = false\n                    haptic.performHapticFeedback(HapticFeedbackType.LongPress)\n                    onLongClick()\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/components/crud/RemoveAllContent.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     RemoveAllContent.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     RemoveAllContent.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.components.crud\n\nimport androidx.compose.material3.AlertDialog\nimport androidx.compose.material3.Button\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.theme.DefaultCutShape\nimport io.github.yamin8000.owl.strings.R\n\n@Composable\ninternal fun RemoveAllContent(\n    onRemoveAllClick: () -> Unit,\n    modifier: Modifier = Modifier\n) {\n    var isShowingDialog by remember { mutableStateOf(false) }\n\n    if (isShowingDialog) {\n        AlertDialog(\n            onDismissRequest = { isShowingDialog = false },\n            title = { AppText(stringResource(R.string.clear_all)) },\n            text = { AppText(stringResource(R.string.remove_all_prompt)) },\n            confirmButton = {\n                Button(\n                    onClick = onRemoveAllClick,\n                    content = { AppText(stringResource(R.string.yes)) }\n                )\n            },\n            dismissButton = {\n                Button(\n                    onClick = { isShowingDialog = false },\n                    content = { AppText(stringResource(R.string.no)) }\n                )\n            }\n        )\n    }\n    Button(\n        modifier = modifier,\n        onClick = { isShowingDialog = true },\n        shape = DefaultCutShape,\n        content = { AppText(text = stringResource(R.string.clear_all)) }\n    )\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/theme/Color.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.app.main\n *     Color.kt Copyrighted by Yamin Siahmargooei at 2024/5/9\n *     Color.kt Last modified at 2024/3/23\n *     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.app.main 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 *     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.theme\n\nimport androidx.compose.ui.graphics.Color\n\nval md_theme_light_primary = Color(0xFFBB0055)\nval md_theme_light_onPrimary = Color(0xFFFFFFFF)\nval md_theme_light_primaryContainer = Color(0xFFFFC4CE)\nval md_theme_light_onPrimaryContainer = Color(0xFF3F0018)\nval md_theme_light_secondary = Color(0xFF75565C)\nval md_theme_light_onSecondary = Color(0xFFFFFFFF)\nval md_theme_light_secondaryContainer = Color(0xFFFFD9DF)\nval md_theme_light_onSecondaryContainer = Color(0xFF2B151A)\nval md_theme_light_tertiary = Color(0xFF7A5733)\nval md_theme_light_onTertiary = Color(0xFFFFFFFF)\nval md_theme_light_tertiaryContainer = Color(0xFFFFDCBD)\nval md_theme_light_onTertiaryContainer = Color(0xFF2C1600)\nval md_theme_light_error = Color(0xFFBA1A1A)\nval md_theme_light_errorContainer = Color(0xFFFFDAD6)\nval md_theme_light_onError = Color(0xFFFFFFFF)\nval md_theme_light_onErrorContainer = Color(0xFF410002)\nval md_theme_light_background = Color(0xFFFBE9E7)\nval md_theme_light_onBackground = Color(0xFF201A1B)\nval md_theme_light_surface = Color(0xFFFBE9E7)\nval md_theme_light_onSurface = Color(0xFF201A1B)\nval md_theme_light_surfaceVariant = Color(0xFFF3DDE0)\nval md_theme_light_onSurfaceVariant = Color(0xFF524346)\nval md_theme_light_outline = Color(0xFF847375)\nval md_theme_light_inverseOnSurface = Color(0xFFFAEEEF)\nval md_theme_light_inverseSurface = Color(0xFF352F30)\nval md_theme_light_inversePrimary = Color(0xFFFFB1C2)\nval md_theme_light_surfaceTint = Color(0xFFBB0055)\n\nval md_theme_dark_primary = Color(0xFFFFB1C2)\nval md_theme_dark_onPrimary = Color(0xFF66002B)\nval md_theme_dark_primaryContainer = Color(0xFF8F0040)\nval md_theme_dark_onPrimaryContainer = Color(0xFFFFD9DF)\nval md_theme_dark_secondary = Color(0xFFE4BDC4)\nval md_theme_dark_onSecondary = Color(0xFF43292F)\nval md_theme_dark_secondaryContainer = Color(0xFF5B3F45)\nval md_theme_dark_onSecondaryContainer = Color(0xFFFFD9DF)\nval md_theme_dark_tertiary = Color(0xFFECBE91)\nval md_theme_dark_onTertiary = Color(0xFF462A09)\nval md_theme_dark_tertiaryContainer = Color(0xFF60401E)\nval md_theme_dark_onTertiaryContainer = Color(0xFFFFDCBD)\nval md_theme_dark_error = Color(0xFFFFB4AB)\nval md_theme_dark_errorContainer = Color(0xFF93000A)\nval md_theme_dark_onError = Color(0xFF690005)\nval md_theme_dark_onErrorContainer = Color(0xFFFFDAD6)\nval md_theme_dark_background = Color(0xFF201A1B)\nval md_theme_dark_onBackground = Color(0xFFECE0E0)\nval md_theme_dark_surface = Color(0xFF201A1B)\nval md_theme_dark_onSurface = Color(0xFFECE0E0)\nval md_theme_dark_surfaceVariant = Color(0xFF524346)\nval md_theme_dark_onSurfaceVariant = Color(0xFFD6C2C4)\nval md_theme_dark_outline = Color(0xFF9E8C8F)\nval md_theme_dark_inverseOnSurface = Color(0xFF201A1B)\nval md_theme_dark_inverseSurface = Color(0xFFECE0E0)\nval md_theme_dark_inversePrimary = Color(0xFFBB0055)\nval md_theme_dark_surfaceTint = Color(0xFFFFB1C2)"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/theme/Shape.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.app.main\n *     Shape.kt Copyrighted by Yamin Siahmargooei at 2024/5/9\n *     Shape.kt Last modified at 2024/3/23\n *     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.app.main 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 *     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.theme\n\nimport androidx.compose.animation.animateColor\nimport androidx.compose.animation.core.RepeatMode\nimport androidx.compose.animation.core.infiniteRepeatable\nimport androidx.compose.animation.core.rememberInfiniteTransition\nimport androidx.compose.animation.core.tween\nimport androidx.compose.foundation.BorderStroke\nimport androidx.compose.foundation.shape.CutCornerShape\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.ui.graphics.Brush\n\nval DefaultCutShape = CutCornerShape(Sizes.Medium)\n\n@Composable\nfun defaultGradientBorder(\n    duration: Int = 5000\n): BorderStroke {\n    val animation = rememberInfiniteTransition(label = \"\")\n    val start by animation.animateColor(\n        initialValue = MaterialTheme.colorScheme.primary,\n        targetValue = MaterialTheme.colorScheme.tertiary,\n        label = \"\",\n        animationSpec = infiniteRepeatable(\n            tween(duration),\n            repeatMode = RepeatMode.Reverse\n        )\n    )\n\n    val end by animation.animateColor(\n        initialValue = MaterialTheme.colorScheme.tertiary,\n        targetValue = MaterialTheme.colorScheme.primary,\n        label = \"\",\n        animationSpec = infiniteRepeatable(\n            tween(duration),\n            repeatMode = RepeatMode.Reverse\n        )\n    )\n\n    return BorderStroke(\n        width = Sizes.xxSmall,\n        brush = Brush.verticalGradient(listOf(start, end))\n    )\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/theme/Sizes.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     Sizes.kt Copyrighted by Yamin Siahmargooei at 2025/1/16\n *     Sizes.kt Last modified at 2025/1/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.theme\n\nimport androidx.compose.ui.unit.dp\n\n@Suppress(\"unused\")\nobject Sizes {\n\n    /** 1.dp */\n    val xxSmall = 1.dp\n\n    /** 2.dp */\n    val xSmall = 2.dp\n\n    /** 4.dp */\n    val Small = 4.dp\n\n    /** 8.dp */\n    val Medium = 8.dp\n\n    /** 16.dp */\n    val Large = 16.dp\n\n    /** 32.dp */\n    val xLarge = 32.dp\n\n    /** 64.dp */\n    val xxLarge = 64.dp\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/theme/Theme.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     Theme.kt Copyrighted by Yamin Siahmargooei at 2024/8/18\n *     Theme.kt Last modified at 2024/8/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n@file:OptIn(ExperimentalMaterial3ExpressiveApi::class)\n\npackage io.github.yamin8000.owl.common.ui.theme\n\nimport android.app.Activity\nimport android.os.Build\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.isSystemInDarkTheme\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.material3.ExperimentalMaterial3ExpressiveApi\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.MotionScheme\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.darkColorScheme\nimport androidx.compose.material3.dynamicDarkColorScheme\nimport androidx.compose.material3.dynamicLightColorScheme\nimport androidx.compose.material3.lightColorScheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.SideEffect\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.platform.LocalContext\nimport androidx.compose.ui.platform.LocalView\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.core.view.WindowCompat\nimport kotlin.random.Random\n\nval lightColors = lightColorScheme(\n    primary = md_theme_light_primary,\n    onPrimary = md_theme_light_onPrimary,\n    primaryContainer = md_theme_light_primaryContainer,\n    onPrimaryContainer = md_theme_light_onPrimaryContainer,\n    inversePrimary = md_theme_light_inversePrimary,\n    secondary = md_theme_light_secondary,\n    onSecondary = md_theme_light_onSecondary,\n    secondaryContainer = md_theme_light_secondaryContainer,\n    onSecondaryContainer = md_theme_light_onSecondaryContainer,\n    tertiary = md_theme_light_tertiary,\n    onTertiary = md_theme_light_onTertiary,\n    tertiaryContainer = md_theme_light_tertiaryContainer,\n    onTertiaryContainer = md_theme_light_onTertiaryContainer,\n    background = md_theme_light_background,\n    onBackground = md_theme_light_onBackground,\n    surface = md_theme_light_surface,\n    onSurface = md_theme_light_onSurface,\n    surfaceVariant = md_theme_light_surfaceVariant,\n    onSurfaceVariant = md_theme_light_onSurfaceVariant,\n    surfaceTint = md_theme_light_surfaceTint,\n    inverseSurface = md_theme_light_inverseSurface,\n    inverseOnSurface = md_theme_light_inverseOnSurface,\n    error = md_theme_light_error,\n    onError = md_theme_light_onError,\n    errorContainer = md_theme_light_errorContainer,\n    onErrorContainer = md_theme_light_onErrorContainer,\n    outline = md_theme_light_outline,\n)\n\n\nval darkColors = darkColorScheme(\n    primary = md_theme_dark_primary,\n    onPrimary = md_theme_dark_onPrimary,\n    primaryContainer = md_theme_dark_primaryContainer,\n    onPrimaryContainer = md_theme_dark_onPrimaryContainer,\n    secondary = md_theme_dark_secondary,\n    onSecondary = md_theme_dark_onSecondary,\n    secondaryContainer = md_theme_dark_secondaryContainer,\n    onSecondaryContainer = md_theme_dark_onSecondaryContainer,\n    tertiary = md_theme_dark_tertiary,\n    onTertiary = md_theme_dark_onTertiary,\n    tertiaryContainer = md_theme_dark_tertiaryContainer,\n    onTertiaryContainer = md_theme_dark_onTertiaryContainer,\n    error = md_theme_dark_error,\n    errorContainer = md_theme_dark_errorContainer,\n    onError = md_theme_dark_onError,\n    onErrorContainer = md_theme_dark_onErrorContainer,\n    background = md_theme_dark_background,\n    onBackground = md_theme_dark_onBackground,\n    surface = md_theme_dark_surface,\n    onSurface = md_theme_dark_onSurface,\n    surfaceVariant = md_theme_dark_surfaceVariant,\n    onSurfaceVariant = md_theme_dark_onSurfaceVariant,\n    outline = md_theme_dark_outline,\n    inverseOnSurface = md_theme_dark_inverseOnSurface,\n    inverseSurface = md_theme_dark_inverseSurface,\n    inversePrimary = md_theme_dark_inversePrimary,\n    surfaceTint = md_theme_dark_surfaceTint,\n)\n\n@Composable\nfun PreviewTheme(\n    isDarkTheme: Boolean = Random.nextBoolean(),\n    isOledTheme: Boolean = Random.nextBoolean(),\n    isDynamicColor: Boolean = Random.nextBoolean(),\n    content: @Composable () -> Unit\n) {\n    Column(\n        content = {\n            Text(\n                text = \"isDark $isDarkTheme\"\n            )\n            Text(\n                text = \"isOledTheme $isOledTheme\"\n            )\n            Text(\n                text = \"isDynamicColor $isDynamicColor\"\n            )\n            Box(\n                modifier = Modifier\n                    .height(Sizes.Large)\n                    .fillMaxWidth()\n                    .background(Color.Red)\n            )\n            AppTheme(\n                isDarkTheme = isDarkTheme,\n                isOledTheme = isOledTheme,\n                isPreviewing = true,\n                isDynamicColor = isDynamicColor,\n                content = content\n            )\n        }\n    )\n}\n\n@Preview(\n    showBackground = true,\n)\nannotation class MyPreview\n\n@Composable\nfun AppTheme(\n    isDarkTheme: Boolean = isSystemInDarkTheme(),\n    isOledTheme: Boolean = false,\n    isPreviewing: Boolean = false,\n    isDynamicColor: Boolean = false,\n    content: @Composable () -> Unit\n) {\n    val isDynamicColorReadyDevice = isDynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S\n\n    var colors = when {\n        isDynamicColorReadyDevice && isDarkTheme -> dynamicDarkColorScheme(LocalContext.current)\n        isDynamicColorReadyDevice && !isDarkTheme -> dynamicLightColorScheme(LocalContext.current)\n        isDynamicColorReadyDevice && isOledTheme -> dynamicDarkColorScheme(LocalContext.current)\n        isDarkTheme -> darkColors\n        else -> lightColors\n    }\n\n    if (isDarkTheme && isOledTheme) {\n        colors = colors.copy(\n            onPrimary = colors.onPrimary.darken(),\n            primaryContainer = colors.primaryContainer.darken(),\n            onSecondary = colors.onSecondary.darken(),\n            secondaryContainer = colors.secondaryContainer.darken(),\n            onTertiary = colors.onTertiary.darken(),\n            tertiaryContainer = colors.tertiaryContainer.darken(),\n            background = Color(0xFF000000),\n            surface = Color(0xFF000000),\n            surfaceVariant = Color(0xFF000000),\n            inverseOnSurface = Color(0xFF000000),\n            inversePrimary = colors.inversePrimary.darken(),\n            surfaceTint = colors.surfaceTint.darken(),\n        )\n    }\n\n    if (!isPreviewing) {\n        val activity = LocalView.current.context as Activity\n        SideEffect {\n            val wic = WindowCompat.getInsetsController(activity.window, activity.window.decorView)\n            wic.isAppearanceLightStatusBars = !isDarkTheme\n            wic.isAppearanceLightNavigationBars = !isDarkTheme\n        }\n    }\n\n    MaterialTheme(\n        colorScheme = colors,\n        content = content,\n        motionScheme = MotionScheme.expressive()\n    )\n}\n\nprivate fun Color.darken(): Color {\n    return copy(alpha, red / 5, green / 5, blue / 5)\n}\n\n@Suppress(\"unused\")\nprivate fun Color.lighten(): Color {\n    return copy(alpha, red + (1f - red) / 2, green + (1f - green) / 2, blue + (1f - blue) / 2)\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/ui/theme/Type.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.app.main\n *     Type.kt Copyrighted by Yamin Siahmargooei at 2024/5/9\n *     Type.kt Last modified at 2024/3/23\n *     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.app.main 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 *     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.ui.theme\n\nimport androidx.compose.ui.text.font.Font\nimport androidx.compose.ui.text.font.FontFamily\nimport io.github.yamin8000.owl.common.R\n\nval Samim = FontFamily(Font(R.font.samimbold))"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/util/Constants.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     Constants.kt Copyrighted by Yamin Siahmargooei at 2025/11/17\n *     Constants.kt Last modified at 2025/11/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.util\n\n/**\n * App-wide constants\n */\nobject Constants {\n    const val LOG_TAG = \"<==>\"\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/util/ContextUtils.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     ContextUtils.kt Copyrighted by Yamin Siahmargooei at 2024/8/18\n *     ContextUtils.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.util\n\nimport android.app.Activity\nimport android.content.Context\nimport android.content.ContextWrapper\n\nobject ContextUtils {\n    /** Finds current activity instance or null */\n    fun Context.findActivity(): Activity? = when (this) {\n        is Activity -> this\n        is ContextWrapper -> baseContext.findActivity()\n        else -> null\n    }\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/util/DateTimeUtils.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     DateTimeUtils.kt Copyrighted by Yamin Siahmargooei at 2024/8/30\n *     DateTimeUtils.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.util\n\nimport java.time.LocalDateTime\nimport java.time.ZoneOffset\n\nobject DateTimeUtils {\n    fun epoch() = LocalDateTime.now().toEpochSecond(ZoneOffset.UTC)\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/util/LocalTTS.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     LocalTTS.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     LocalTTS.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.util\n\nimport androidx.compose.runtime.compositionLocalOf\n\nval LocalTTS = compositionLocalOf<TTS?> { null }"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/util/LocaleUtils.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     LocaleUtils.kt Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     LocaleUtils.kt Last modified at 2025/7/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.util\n\nobject LocaleUtils {\n\n    fun isRtlChar(char: Char): Boolean = when (Character.getDirectionality(char)) {\n        Character.DIRECTIONALITY_RIGHT_TO_LEFT,\n        Character.DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC,\n        Character.DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING,\n        Character.DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE,\n            -> true\n\n        else -> false\n    }\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/util/StringUtils.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     StringUtils.kt Copyrighted by Yamin Siahmargooei at 2024/8/18\n *     StringUtils.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.util\n\nobject StringUtils {\n    /**\n     * This method sanitize words from the given [data] set by removing\n     * unnecessary characters like white spaces and numbers, etc.\n     * and making them lowercase and filtering out blank entries\n     */\n    fun sanitizeWords(\n        data: Set<String>\n    ): Set<String> = data.asSequence()\n        .map { sanitizeWord(it) }\n        .filter { it.isNotBlank() }\n        .toSet()\n\n    fun sanitizeWord(\n        data: String\n    ): String = data.replace(Regex(\"\\\\W+\"), \"\")\n        .lowercase()\n        .trim()\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/util/TTS.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.common.main\n *     TTS.kt Copyrighted by Yamin Siahmargooei at 2024/8/20\n *     TTS.kt Last modified at 2024/8/20\n *     This file is part of freeDictionaryApp/freeDictionaryApp.common.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.common.main 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 *     freeDictionaryApp/freeDictionaryApp.common.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.util\n\nimport android.content.Context\nimport android.speech.tts.TextToSpeech\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.launch\nimport java.util.Locale\n\n/** A helper/wrapper for [TextToSpeech] */\nclass TTS(\n    private val context: Context,\n    private val languageTag: String\n) {\n    private var tts: TextToSpeech? = null\n\n    private val scope = CoroutineScope(Dispatchers.Main)\n\n    init {\n        scope.launch {\n            createEngine()\n        }\n    }\n\n    fun createEngine(tag: String = languageTag) {\n        tts = TextToSpeech(context) {\n            if (it == TextToSpeech.SUCCESS) {\n                tts?.language = Locale.forLanguageTag(tag)\n            }\n        }\n    }\n\n    /**\n     * Extension method for [TextToSpeech] that calls [TextToSpeech.speak] with\n     * some predefined parameters\n     */\n    fun speak(text: String) {\n        val current = this.languageTag\n        println(current)\n        tts?.speak(text, TextToSpeech.QUEUE_FLUSH, null, null)\n    }\n\n    fun englishLanguages() = tts?.availableLanguages\n        ?.filter { it.language == Locale.ENGLISH.language }\n        ?: listOf()\n}"
  },
  {
    "path": "common/src/main/java/io/github/yamin8000/owl/common/util/Utility.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.app.main\n *     Utility.kt Copyrighted by Yamin Siahmargooei at 2024/5/9\n *     Utility.kt Last modified at 2024/3/23\n *     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.app.main 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 *     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.common.util\n\nimport android.util.Log\nimport androidx.compose.ui.graphics.Color\nimport io.github.yamin8000.owl.common.BuildConfig\nimport kotlin.random.Random\n\n/** Prints [message] to logcat if app is in debug build */\nfun log(\n    message: String\n) {\n    if (BuildConfig.DEBUG) {\n        Log.d(Constants.LOG_TAG, message)\n    }\n}\n\nfun randomColor(): Color {\n    val hue = Random.nextDouble(0.0, 360.0)\n    val saturation = Random.nextDouble(50.0, 100.0) / 100f\n    val value = Random.nextDouble(75.0, 100.0) / 100f\n    val hsv = floatArrayOf(hue.toFloat(), saturation.toFloat(), value.toFloat())\n    return Color(android.graphics.Color.HSVToColor(255, hsv))\n}"
  },
  {
    "path": "common/src/main/res/raw/empty_list.json",
    "content": "{\"v\":\"5.5.9\",\"fr\":60,\"ip\":0,\"op\":295,\"w\":426,\"h\":290,\"nm\":\"search_empty\",\"ddd\":0,\"assets\":[{\"id\":\"comp_0\",\"layers\":[{\"ddd\":0,\"ind\":1,\"ty\":4,\"nm\":\"mouth\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":1,\"k\":[{\"i\":{\"x\":0.833,\"y\":0.833},\"o\":{\"x\":0.167,\"y\":0.167},\"t\":44,\"s\":[211,145,0],\"to\":[0,0.667,0],\"ti\":[0,-0.667,0]},{\"t\":69,\"s\":[211,149,0]}],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":44,\"s\":[100,100,100]},{\"t\":68,\"s\":[105,105,100]}],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"ind\":0,\"ty\":\"sh\",\"ix\":1,\"ks\":{\"a\":0,\"k\":{\"i\":[[0.5,0.25],[-1.715,0.372]],\"o\":[[-13.025,-6.512],[7.5,-1.625]],\"v\":[[-10,12.25],[-31.75,12.625]],\"c\":true},\"ix\":2},\"nm\":\"Path 1\",\"mn\":\"ADBE Vector Shape - Group\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[0.454901960784,0.513725490196,0.580392156863,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"Shape 1\",\"np\":3,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":2,\"ty\":4,\"nm\":\"汗\",\"sr\":1,\"ks\":{\"o\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.667],\"y\":[1]},\"o\":{\"x\":[0.333],\"y\":[0]},\"t\":51,\"s\":[0]},{\"t\":95,\"s\":[100]}],\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":1,\"k\":[{\"i\":{\"x\":0.667,\"y\":1},\"o\":{\"x\":0.333,\"y\":0},\"t\":51,\"s\":[248,95.252,0],\"to\":[0,1.5,0],\"ti\":[0,-1.5,0]},{\"t\":94,\"s\":[248,104.252,0]}],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,-19.333,0],\"ix\":1},\"s\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.667,0.667,0.667],\"y\":[1,1,1]},\"o\":{\"x\":[0.333,0.333,0.333],\"y\":[0,0,0]},\"t\":51,\"s\":[40,40,100]},{\"t\":95,\"s\":[100,100,100]}],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"ind\":0,\"ty\":\"sh\",\"ix\":1,\"ks\":{\"a\":0,\"k\":{\"i\":[[-9.94,0],[0,7.27],[0,0],[0,-7.27]],\"o\":[[9.94,0],[0,-7.27],[0,0],[0,7.27]],\"v\":[[0,19],[18,5.84],[0,-19],[-18,5.84]],\"c\":true},\"ix\":2},\"nm\":\"Path 1\",\"mn\":\"ADBE Vector Shape - Group\",\"hd\":false},{\"ty\":\"gf\",\"o\":{\"a\":0,\"k\":100,\"ix\":10},\"r\":1,\"bm\":0,\"g\":{\"p\":3,\"k\":{\"a\":0,\"k\":[0,0.69,0.976,1,0.5,0.714,0.954,0.997,1,0.738,0.932,0.994],\"ix\":9}},\"s\":{\"a\":0,\"k\":[0.019,-9.236],\"ix\":5},\"e\":{\"a\":0,\"k\":[10.208,19],\"ix\":6},\"t\":1,\"nm\":\"Gradient Fill 1\",\"mn\":\"ADBE Vector Graphic - G-Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"汗\",\"np\":2,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":569,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":3,\"ty\":4,\"nm\":\"eye\",\"parent\":1,\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":92,\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":0,\"k\":[-7.064,-11.347,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":0,\"s\":[100,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":3,\"s\":[100,20,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":6,\"s\":[100,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":9,\"s\":[100,20,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":12,\"s\":[100,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":50,\"s\":[100,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":53,\"s\":[100,20,100]},{\"t\":56,\"s\":[100,100,100]}],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"d\":1,\"ty\":\"el\",\"s\":{\"a\":0,\"k\":[8.466,16.135],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"nm\":\"Ellipse Path 1\",\"mn\":\"ADBE Vector Shape - Ellipse\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[0.3411764705882353,0.3411764705882353,0.3411764705882353,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"eye\",\"np\":2,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":569,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":4,\"ty\":4,\"nm\":\"eye\",\"parent\":1,\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":92,\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":0,\"k\":[-33.767,-11.347,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":0,\"s\":[100,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":3,\"s\":[100,20,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":6,\"s\":[100,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":9,\"s\":[100,20,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":12,\"s\":[100,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":50,\"s\":[100,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":53,\"s\":[100,20,100]},{\"t\":56,\"s\":[100,100,100]}],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"d\":1,\"ty\":\"el\",\"s\":{\"a\":0,\"k\":[8.466,16.135],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"nm\":\"Ellipse Path 1\",\"mn\":\"ADBE Vector Shape - Ellipse\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[0.3411764705882353,0.3411764705882353,0.3411764705882353,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"eye\",\"np\":2,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":569,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":5,\"ty\":0,\"nm\":\"magnifier\",\"refId\":\"comp_1\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":0,\"k\":[213,145,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[213,145,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"w\":426,\"h\":290,\"ip\":0,\"op\":569,\"st\":0,\"bm\":0}]},{\"id\":\"comp_1\",\"layers\":[{\"ddd\":0,\"ind\":1,\"ty\":4,\"nm\":\"Shape Layer 1\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":0,\"k\":[213,145,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"ty\":\"st\",\"c\":{\"a\":0,\"k\":[0.435294117647,0.498039215686,0.564705882353,1],\"ix\":3},\"o\":{\"a\":0,\"k\":100,\"ix\":4},\"w\":{\"a\":0,\"k\":2,\"ix\":5},\"lc\":1,\"lj\":1,\"ml\":4,\"bm\":0,\"nm\":\"Stroke 1\",\"mn\":\"ADBE Vector Graphic - Stroke\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"Shape 1\",\"np\":2,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":3,\"ty\":4,\"nm\":\"橢圓形\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":0,\"k\":-5,\"ix\":10},\"p\":{\"a\":0,\"k\":[190.106,142.222,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"d\":1,\"ty\":\"el\",\"s\":{\"a\":0,\"k\":[99.994,100.091],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"nm\":\"Ellipse Path 1\",\"mn\":\"ADBE Vector Shape - Ellipse\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[1,1,1,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":-40,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"橢圓形\",\"np\":2,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":4,\"ty\":4,\"nm\":\"橢圓形\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":0,\"k\":-5,\"ix\":10},\"p\":{\"a\":0,\"k\":[192.013,142.223,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"ind\":0,\"ty\":\"sh\",\"ix\":1,\"ks\":{\"a\":0,\"k\":{\"i\":[[-26.81,22.62],[22.49,26.96],[26.8,-22.62],[-22.5,-26.95]],\"o\":[[26.81,-22.62],[-22.49,-26.96],[-26.81,22.62],[22.49,26.96]],\"v\":[[40.727,48.812],[48.537,-40.958],[-40.723,-48.808],[-48.533,40.952]],\"c\":true},\"ix\":2},\"nm\":\"Path 1\",\"mn\":\"ADBE Vector Shape - Group\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[0.8588235294117647,0.8588235294117647,0.8588235294117647,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"橢圓形\",\"np\":2,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":5,\"ty\":4,\"nm\":\"矩形\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":0,\"k\":-5,\"ix\":10},\"p\":{\"a\":0,\"k\":[268.024,226.941,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"ty\":\"rc\",\"d\":1,\"s\":{\"a\":0,\"k\":[42.094,74.507],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"r\":{\"a\":0,\"k\":10,\"ix\":4},\"nm\":\"Rectangle Path 1\",\"mn\":\"ADBE Vector Shape - Rect\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[0.5882352941176471,0.5882352941176471,0.5882352941176471,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":-40,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"矩形\",\"np\":2,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":6,\"ty\":4,\"nm\":\"矩形\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":0,\"k\":-5,\"ix\":10},\"p\":{\"a\":0,\"k\":[238.933,197.25,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"ty\":\"rc\",\"d\":1,\"s\":{\"a\":0,\"k\":[24.446,44.702],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":4},\"nm\":\"Rectangle Path 1\",\"mn\":\"ADBE Vector Shape - Rect\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[0.847000002861,0.847000002861,0.847000002861,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":-40,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"矩形\",\"np\":2,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0}]},{\"id\":\"comp_2\",\"layers\":[{\"ddd\":0,\"ind\":1,\"ty\":4,\"nm\":\"合併形狀\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.833],\"y\":[0.833]},\"o\":{\"x\":[0.167],\"y\":[0.167]},\"t\":60,\"s\":[0]},{\"t\":265,\"s\":[360]}],\"ix\":10},\"p\":{\"a\":0,\"k\":[208,27,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"ty\":\"rc\",\"d\":1,\"s\":{\"a\":0,\"k\":[16,2],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":4},\"nm\":\"Rectangle Path 1\",\"mn\":\"ADBE Vector Shape - Rect\",\"hd\":false},{\"ty\":\"rc\",\"d\":1,\"s\":{\"a\":0,\"k\":[2,18],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":4},\"nm\":\"Rectangle Path 2\",\"mn\":\"ADBE Vector Shape - Rect\",\"hd\":false},{\"ty\":\"mm\",\"mm\":2,\"nm\":\"Merge Paths 1\",\"mn\":\"ADBE Vector Filter - Merge\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[0.796078026295,0.835294008255,0.843137025833,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"合併形狀\",\"np\":4,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":2,\"ty\":4,\"nm\":\"合併形狀\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.833],\"y\":[0.833]},\"o\":{\"x\":[0.167],\"y\":[0.167]},\"t\":5,\"s\":[0]},{\"t\":358,\"s\":[360]}],\"ix\":10},\"p\":{\"a\":0,\"k\":[418,107,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"ty\":\"rc\",\"d\":1,\"s\":{\"a\":0,\"k\":[16,2],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":4},\"nm\":\"Rectangle Path 1\",\"mn\":\"ADBE Vector Shape - Rect\",\"hd\":false},{\"ty\":\"rc\",\"d\":1,\"s\":{\"a\":0,\"k\":[2,18],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":4},\"nm\":\"Rectangle Path 2\",\"mn\":\"ADBE Vector Shape - Rect\",\"hd\":false},{\"ty\":\"mm\",\"mm\":2,\"nm\":\"Merge Paths 1\",\"mn\":\"ADBE Vector Filter - Merge\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[0.796078026295,0.835294008255,0.843137025833,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"合併形狀\",\"np\":4,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":3,\"ty\":4,\"nm\":\"合併形狀\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.833],\"y\":[0.833]},\"o\":{\"x\":[0.167],\"y\":[0.167]},\"t\":5,\"s\":[0]},{\"t\":281,\"s\":[360]}],\"ix\":10},\"p\":{\"a\":0,\"k\":[31,196,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"ty\":\"rc\",\"d\":1,\"s\":{\"a\":0,\"k\":[16,2],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":4},\"nm\":\"Rectangle Path 1\",\"mn\":\"ADBE Vector Shape - Rect\",\"hd\":false},{\"ty\":\"rc\",\"d\":1,\"s\":{\"a\":0,\"k\":[2,18],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":4},\"nm\":\"Rectangle Path 2\",\"mn\":\"ADBE Vector Shape - Rect\",\"hd\":false},{\"ty\":\"mm\",\"mm\":2,\"nm\":\"Merge Paths 1\",\"mn\":\"ADBE Vector Filter - Merge\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[0.796078026295,0.835294008255,0.843137025833,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"合併形狀\",\"np\":4,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":4,\"ty\":4,\"nm\":\"橢圓形\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.833],\"y\":[0.833]},\"o\":{\"x\":[0.167],\"y\":[0.167]},\"t\":0,\"s\":[0]},{\"t\":281,\"s\":[360]}],\"ix\":10},\"p\":{\"a\":0,\"k\":[70,33,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"d\":1,\"ty\":\"el\",\"s\":{\"a\":0,\"k\":[24,24],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"nm\":\"Ellipse Path 1\",\"mn\":\"ADBE Vector Shape - Ellipse\",\"hd\":false},{\"ty\":\"st\",\"c\":{\"a\":0,\"k\":[0.701960980892,0.756862998009,0.776471018791,1],\"ix\":3},\"o\":{\"a\":0,\"k\":100,\"ix\":4},\"w\":{\"a\":0,\"k\":2,\"ix\":5},\"lc\":1,\"lj\":1,\"ml\":4,\"bm\":0,\"nm\":\"Stroke 1\",\"mn\":\"ADBE Vector Graphic - Stroke\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"橢圓形\",\"np\":2,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0}]},{\"id\":\"comp_3\",\"layers\":[{\"ddd\":0,\"ind\":1,\"ty\":4,\"nm\":\"橢圓形\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":0,\"k\":[306,9,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"d\":1,\"ty\":\"el\",\"s\":{\"a\":0,\"k\":[16,16],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"nm\":\"Ellipse Path 1\",\"mn\":\"ADBE Vector Shape - Ellipse\",\"hd\":false},{\"ty\":\"st\",\"c\":{\"a\":0,\"k\":[0.701960980892,0.756862998009,0.776471018791,1],\"ix\":3},\"o\":{\"a\":0,\"k\":100,\"ix\":4},\"w\":{\"a\":0,\"k\":2,\"ix\":5},\"lc\":1,\"lj\":1,\"ml\":4,\"bm\":0,\"nm\":\"Stroke 1\",\"mn\":\"ADBE Vector Graphic - Stroke\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"橢圓形\",\"np\":2,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":2,\"ty\":4,\"nm\":\"橢圓形\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":0,\"k\":[376,179,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"d\":1,\"ty\":\"el\",\"s\":{\"a\":0,\"k\":[16,16],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"nm\":\"Ellipse Path 1\",\"mn\":\"ADBE Vector Shape - Ellipse\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[0.701960980892,0.768626987934,0.776471018791,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"橢圓形\",\"np\":2,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":3,\"ty\":4,\"nm\":\"橢圓形\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":0,\"k\":[8,115,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"d\":1,\"ty\":\"el\",\"s\":{\"a\":0,\"k\":[16,16],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"nm\":\"Ellipse Path 1\",\"mn\":\"ADBE Vector Shape - Ellipse\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[0.701960980892,0.768626987934,0.776471018791,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[0,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"橢圓形\",\"np\":2,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0}]}],\"layers\":[{\"ddd\":0,\"ind\":1,\"ty\":4,\"nm\":\"shadow\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":0,\"k\":[191,145,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0,0],\"ix\":1},\"s\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":0,\"s\":[70,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":30,\"s\":[50,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":60,\"s\":[70,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":90,\"s\":[50,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":120,\"s\":[70,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":150,\"s\":[50,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":180,\"s\":[70,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":210,\"s\":[50,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":240,\"s\":[70,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":270,\"s\":[50,100,100]},{\"t\":295,\"s\":[70,100,100]}],\"ix\":6}},\"ao\":0,\"shapes\":[{\"ty\":\"gr\",\"it\":[{\"d\":1,\"ty\":\"el\",\"s\":{\"a\":0,\"k\":[56.697,6.631],\"ix\":2},\"p\":{\"a\":0,\"k\":[0,0],\"ix\":3},\"nm\":\"Ellipse Path 1\",\"mn\":\"ADBE Vector Shape - Ellipse\",\"hd\":false},{\"ty\":\"fl\",\"c\":{\"a\":0,\"k\":[0.848757874732,0.861812935623,0.876608455882,1],\"ix\":4},\"o\":{\"a\":0,\"k\":100,\"ix\":5},\"r\":1,\"bm\":0,\"nm\":\"Fill 1\",\"mn\":\"ADBE Vector Graphic - Fill\",\"hd\":false},{\"ty\":\"tr\",\"p\":{\"a\":0,\"k\":[-9.651,124.815],\"ix\":2},\"a\":{\"a\":0,\"k\":[0,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100],\"ix\":3},\"r\":{\"a\":0,\"k\":0,\"ix\":6},\"o\":{\"a\":0,\"k\":100,\"ix\":7},\"sk\":{\"a\":0,\"k\":0,\"ix\":4},\"sa\":{\"a\":0,\"k\":0,\"ix\":5},\"nm\":\"Transform\"}],\"nm\":\"Ellipse 1\",\"np\":3,\"cix\":2,\"bm\":0,\"ix\":1,\"mn\":\"ADBE Vector Group\",\"hd\":false}],\"ip\":0,\"op\":300,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":2,\"ty\":0,\"nm\":\"main\",\"refId\":\"comp_0\",\"sr\":1,\"ks\":{\"o\":{\"a\":0,\"k\":100,\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":1,\"k\":[{\"i\":{\"x\":0.833,\"y\":0.833},\"o\":{\"x\":0.167,\"y\":0.167},\"t\":0,\"s\":[213,145,0],\"to\":[0,0.833,0],\"ti\":[0,0,0]},{\"i\":{\"x\":0.833,\"y\":0.833},\"o\":{\"x\":0.167,\"y\":0.167},\"t\":30,\"s\":[213,150,0],\"to\":[0,0,0],\"ti\":[0,0,0]},{\"i\":{\"x\":0.833,\"y\":0.833},\"o\":{\"x\":0.167,\"y\":0.167},\"t\":60,\"s\":[213,145,0],\"to\":[0,0,0],\"ti\":[0,0,0]},{\"i\":{\"x\":0.833,\"y\":0.833},\"o\":{\"x\":0.167,\"y\":0.167},\"t\":90,\"s\":[213,150,0],\"to\":[0,0,0],\"ti\":[0,0,0]},{\"i\":{\"x\":0.833,\"y\":0.833},\"o\":{\"x\":0.167,\"y\":0.167},\"t\":120,\"s\":[213,145,0],\"to\":[0,0,0],\"ti\":[0,0,0]},{\"i\":{\"x\":0.833,\"y\":0.833},\"o\":{\"x\":0.167,\"y\":0.167},\"t\":150,\"s\":[213,150,0],\"to\":[0,0,0],\"ti\":[0,0,0]},{\"i\":{\"x\":0.833,\"y\":0.833},\"o\":{\"x\":0.167,\"y\":0.167},\"t\":180,\"s\":[213,145,0],\"to\":[0,0,0],\"ti\":[0,0,0]},{\"i\":{\"x\":0.833,\"y\":0.833},\"o\":{\"x\":0.167,\"y\":0.167},\"t\":210,\"s\":[213,150,0],\"to\":[0,0,0],\"ti\":[0,0,0]},{\"i\":{\"x\":0.833,\"y\":0.833},\"o\":{\"x\":0.167,\"y\":0.167},\"t\":240,\"s\":[213,145,0],\"to\":[0,0,0],\"ti\":[0,-0.833,0]},{\"t\":270,\"s\":[213,150,0]}],\"ix\":2},\"a\":{\"a\":0,\"k\":[213,145,0],\"ix\":1},\"s\":{\"a\":0,\"k\":[100,100,100],\"ix\":6}},\"ao\":0,\"w\":426,\"h\":290,\"ip\":0,\"op\":3600,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":3,\"ty\":0,\"nm\":\"decoration1\",\"refId\":\"comp_2\",\"sr\":1,\"ks\":{\"o\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.981],\"y\":[1.128]},\"o\":{\"x\":[0.39],\"y\":[0.019]},\"t\":8,\"s\":[0]},{\"i\":{\"x\":[0.833],\"y\":[1]},\"o\":{\"x\":[0.167],\"y\":[0]},\"t\":40,\"s\":[100]},{\"i\":{\"x\":[0.833],\"y\":[1]},\"o\":{\"x\":[0.167],\"y\":[0]},\"t\":72,\"s\":[80]},{\"t\":73,\"s\":[100]}],\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":0,\"k\":[213,289,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[213,289,0],\"ix\":1},\"s\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.833,0.833,0.667],\"y\":[0.866,0.866,1]},\"o\":{\"x\":[0.37,0.37,0.333],\"y\":[-0.029,-0.029,0]},\"t\":0,\"s\":[0,0,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[1,1,1]},\"o\":{\"x\":[0.333,0.333,0.333],\"y\":[0,0,0]},\"t\":40,\"s\":[100,100,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[1,1,1]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0,0,0]},\"t\":72,\"s\":[80,80,100]},{\"t\":133,\"s\":[90,90,100]}],\"ix\":6}},\"ao\":0,\"w\":426,\"h\":290,\"ip\":0,\"op\":569,\"st\":0,\"bm\":0},{\"ddd\":0,\"ind\":4,\"ty\":0,\"nm\":\"decoratio2\",\"refId\":\"comp_3\",\"sr\":1,\"ks\":{\"o\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.833],\"y\":[0.833]},\"o\":{\"x\":[0.167],\"y\":[0.167]},\"t\":0,\"s\":[0]},{\"i\":{\"x\":[0.833],\"y\":[0.833]},\"o\":{\"x\":[0.167],\"y\":[0.167]},\"t\":41,\"s\":[100]},{\"t\":72,\"s\":[100]}],\"ix\":11},\"r\":{\"a\":0,\"k\":0,\"ix\":10},\"p\":{\"a\":0,\"k\":[211,291,0],\"ix\":2},\"a\":{\"a\":0,\"k\":[211,291,0],\"ix\":1},\"s\":{\"a\":1,\"k\":[{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":0,\"s\":[0,0,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":43,\"s\":[99.442,99.442,100]},{\"i\":{\"x\":[0.833,0.833,0.833],\"y\":[0.833,0.833,0.833]},\"o\":{\"x\":[0.167,0.167,0.167],\"y\":[0.167,0.167,0.167]},\"t\":72,\"s\":[84.442,84.442,100]},{\"t\":133,\"s\":[90,90,100]}],\"ix\":6}},\"ao\":0,\"w\":426,\"h\":290,\"ip\":0,\"op\":569,\"st\":0,\"bm\":0}],\"markers\":[{\"tm\":180,\"cm\":\"1\",\"dr\":0},{\"tm\":3600,\"cm\":\"2\",\"dr\":0}]}"
  },
  {
    "path": "datastore/.gitignore",
    "content": "/build"
  },
  {
    "path": "datastore/build.gradle.kts",
    "content": "import org.jetbrains.kotlin.gradle.dsl.JvmTarget\n\n/*\n *     freeDictionaryApp/freeDictionaryApp.data\n *     build.gradle.kts Copyrighted by Yamin Siahmargooei at 2024/5/9\n *     build.gradle.kts Last modified at 2024/5/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.data.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.data 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 *     freeDictionaryApp/freeDictionaryApp.data 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\nplugins {\n    alias(libs.plugins.android.library)\n    alias(libs.plugins.google.ksp)\n}\n\nandroid {\n    namespace = \"com.github.yamin8000.owl.data\"\n    compileSdk = 36\n\n    defaultConfig {\n        minSdk = 23\n    }\n\n    compileOptions {\n        sourceCompatibility = JavaVersion.VERSION_17\n        targetCompatibility = JavaVersion.VERSION_17\n    }\n\n    kotlin {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_17\n        }\n    }\n}\n\ndependencies {\n    //datastore\n    api(libs.androidx.datastore.preferences)\n    //hilt\n    implementation(libs.hilt.android)\n    ksp(libs.hilt.android.compiler)\n    implementation(libs.hilt.lifecycle.compose)\n}"
  },
  {
    "path": "datastore/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n  ~     freeDictionaryApp/freeDictionaryApp.data.main\n  ~     AndroidManifest.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     AndroidManifest.xml Last modified at 2024/3/23\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.data.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.data.main 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  ~     freeDictionaryApp/freeDictionaryApp.data.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<manifest>\n\n</manifest>"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/data/datasource/Datastore.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     Datastores.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     Datastores.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.data.datasource\n\nimport android.content.Context\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.preferences.core.Preferences\nimport androidx.datastore.preferences.preferencesDataStore\n\nobject Datastore {\n    internal val Context.settingsDataStore: DataStore<Preferences> by preferencesDataStore(name = \"settings\")\n    internal val Context.historyDataStore: DataStore<Preferences> by preferencesDataStore(name = \"history\")\n    internal val Context.favouritesDataStore: DataStore<Preferences> by preferencesDataStore(name = \"favourites\")\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/data/repository/BasicDatastoreRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     DataStoreRepository.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     DataStoreRepository.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.data.repository\n\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.preferences.core.Preferences\nimport androidx.datastore.preferences.core.booleanPreferencesKey\nimport androidx.datastore.preferences.core.edit\nimport androidx.datastore.preferences.core.intPreferencesKey\nimport androidx.datastore.preferences.core.stringPreferencesKey\nimport io.github.yamin8000.owl.datastore.domain.repository.BaseDatastoreRepository\nimport kotlinx.coroutines.flow.firstOrNull\nimport kotlinx.coroutines.flow.map\n\nopen class BasicDatastoreRepository(\n    private val datastore: DataStore<Preferences>\n) : BaseDatastoreRepository {\n\n    override suspend fun getString(\n        key: String\n    ) = datastore.data.map {\n        it[stringPreferencesKey(key)]\n    }.firstOrNull()\n\n    override suspend fun setString(\n        key: String,\n        value: String\n    ) {\n        datastore.edit {\n            it[stringPreferencesKey(key)] = value\n        }\n    }\n\n    override suspend fun getInt(\n        key: String\n    ) = datastore.data.map {\n        it[intPreferencesKey(key)]\n    }.firstOrNull()\n\n    override suspend fun setInt(\n        key: String,\n        value: Int\n    ) {\n        datastore.edit {\n            it[intPreferencesKey(key)] = value\n        }\n    }\n\n    override suspend fun getBool(\n        key: String\n    ) = datastore.data.map {\n        it[booleanPreferencesKey(key)]\n    }.firstOrNull()\n\n    override suspend fun setBool(\n        key: String,\n        value: Boolean\n    ) {\n        datastore.edit {\n            it[booleanPreferencesKey(key)] = value\n        }\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/data/repository/FavouriteDatastoreRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     FavouriteDatastoreRepository.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     FavouriteDatastoreRepository.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.data.repository\n\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.preferences.core.Preferences\nimport androidx.datastore.preferences.core.edit\nimport androidx.datastore.preferences.core.stringPreferencesKey\nimport io.github.yamin8000.owl.datastore.domain.repository.BaseDatastoreRepository\nimport io.github.yamin8000.owl.datastore.domain.repository.FavouriteRepository\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.map\n\nclass FavouriteDatastoreRepository(\n    private val datastore: DataStore<Preferences>\n) : FavouriteRepository, BaseDatastoreRepository by BasicDatastoreRepository(datastore) {\n\n    override suspend fun add(history: String) {\n        datastore.edit { it[stringPreferencesKey(history)] = history }\n    }\n\n    override suspend fun remove(history: String) {\n        datastore.edit { it.remove(stringPreferencesKey(history)) }\n    }\n\n    override suspend fun removeAll() {\n        datastore.edit { it.clear() }\n    }\n\n    override suspend fun all(): Flow<List<String>> {\n        val test = datastore.data.map { preferences ->\n            preferences.asMap().map { entry ->\n                entry.value.toString()\n            }\n        }\n        return test\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/data/repository/HistoryDatastoreRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     HistoryDatastoreRepository.kt Copyrighted by Yamin Siahmargooei at 2024/8/24\n *     HistoryDatastoreRepository.kt Last modified at 2024/8/24\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.data.repository\n\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.preferences.core.Preferences\nimport androidx.datastore.preferences.core.edit\nimport androidx.datastore.preferences.core.stringPreferencesKey\nimport io.github.yamin8000.owl.datastore.domain.repository.BaseDatastoreRepository\nimport io.github.yamin8000.owl.datastore.domain.repository.HistoryRepository\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.map\n\nclass HistoryDatastoreRepository(\n    private val datastore: DataStore<Preferences>\n) : HistoryRepository, BaseDatastoreRepository by BasicDatastoreRepository(datastore) {\n\n    override suspend fun add(history: String) {\n        datastore.edit { it[stringPreferencesKey(history)] = history }\n    }\n\n    override suspend fun remove(history: String) {\n        datastore.edit { it.remove(stringPreferencesKey(history)) }\n    }\n\n    override suspend fun removeAll() {\n        datastore.edit { it.clear() }\n    }\n\n    override suspend fun all(): Flow<List<String>> {\n        val test = datastore.data.map { preferences ->\n            preferences.asMap().map { entry ->\n                entry.value.toString()\n            }\n        }\n        return test\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/data/repository/SettingsDatastoreRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     SettingsRepository.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     SettingsRepository.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.data.repository\n\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.preferences.core.Preferences\nimport io.github.yamin8000.owl.datastore.domain.model.SettingsKeys\nimport io.github.yamin8000.owl.datastore.domain.model.ThemeType\nimport io.github.yamin8000.owl.datastore.domain.repository.BaseDatastoreRepository\nimport io.github.yamin8000.owl.datastore.domain.repository.SettingsRepository\n\nclass SettingsDatastoreRepository(\n    private val datastore: DataStore<Preferences>\n) : SettingsRepository, BaseDatastoreRepository by BasicDatastoreRepository(datastore) {\n\n    override suspend fun getTheme(): ThemeType {\n        return ThemeType.toType(getString(SettingsKeys.THEME))\n    }\n\n    override suspend fun setTheme(theme: ThemeType) {\n        setString(SettingsKeys.THEME, theme.toString())\n    }\n\n    override suspend fun getTtsLang(): String? {\n        return getString(SettingsKeys.TTS_LANG)\n    }\n\n    override suspend fun setTtsLang(ttsLang: String) {\n        setString(SettingsKeys.TTS_LANG, ttsLang)\n    }\n\n    override suspend fun getIsVibrating(): Boolean {\n        return getBool(SettingsKeys.IS_VIBRATING) != false\n    }\n\n    override suspend fun setIsVibrating(value: Boolean) {\n        setBool(SettingsKeys.IS_VIBRATING, value)\n    }\n\n    override suspend fun getIsStartingBlank(): Boolean {\n        return getBool(SettingsKeys.IS_STARTING_BLANK) != false\n    }\n\n    override suspend fun setIsStartingBlank(value: Boolean) {\n        setBool(SettingsKeys.IS_STARTING_BLANK, value)\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/di/DatastoreModule.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     DatastoreModule.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     DatastoreModule.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.di\n\nimport android.app.Application\nimport dagger.Module\nimport dagger.Provides\nimport dagger.hilt.InstallIn\nimport dagger.hilt.components.SingletonComponent\nimport io.github.yamin8000.owl.datastore.data.datasource.Datastore.favouritesDataStore\nimport io.github.yamin8000.owl.datastore.data.datasource.Datastore.historyDataStore\nimport io.github.yamin8000.owl.datastore.data.datasource.Datastore.settingsDataStore\nimport io.github.yamin8000.owl.datastore.data.repository.FavouriteDatastoreRepository\nimport io.github.yamin8000.owl.datastore.data.repository.HistoryDatastoreRepository\nimport io.github.yamin8000.owl.datastore.data.repository.SettingsDatastoreRepository\nimport io.github.yamin8000.owl.datastore.domain.repository.FavouriteRepository\nimport io.github.yamin8000.owl.datastore.domain.repository.HistoryRepository\nimport io.github.yamin8000.owl.datastore.domain.repository.SettingsRepository\nimport io.github.yamin8000.owl.datastore.domain.usecase.favourites.AddFavourite\nimport io.github.yamin8000.owl.datastore.domain.usecase.favourites.FavouriteUseCases\nimport io.github.yamin8000.owl.datastore.domain.usecase.favourites.GetAllFavourite\nimport io.github.yamin8000.owl.datastore.domain.usecase.favourites.RemoveAllFavourite\nimport io.github.yamin8000.owl.datastore.domain.usecase.favourites.RemoveFavourite\nimport io.github.yamin8000.owl.datastore.domain.usecase.history.AddHistory\nimport io.github.yamin8000.owl.datastore.domain.usecase.history.GetAllHistory\nimport io.github.yamin8000.owl.datastore.domain.usecase.history.HistoryUseCases\nimport io.github.yamin8000.owl.datastore.domain.usecase.history.RemoveAllHistory\nimport io.github.yamin8000.owl.datastore.domain.usecase.history.RemoveHistory\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.GetStartingBlank\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.GetTTS\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.GetTheme\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.GetVibration\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.SetStartingBlank\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.SetTTS\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.SetTheme\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.SetVibration\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.SettingUseCases\nimport javax.inject.Singleton\n\n@Module\n@InstallIn(SingletonComponent::class)\nobject DatastoreModule {\n\n    @Provides\n    @Singleton\n    fun provideSettingsRepository(app: Application): SettingsRepository {\n        return SettingsDatastoreRepository(app.settingsDataStore)\n    }\n\n    @Provides\n    @Singleton\n    fun providesSettingsUseCases(repository: SettingsRepository): SettingUseCases {\n        return SettingUseCases(\n            getTTS = GetTTS(repository),\n            setTTS = SetTTS(repository),\n            getTheme = GetTheme(repository),\n            setTheme = SetTheme(repository),\n            getVibration = GetVibration(repository),\n            setVibration = SetVibration(repository),\n            getStartingBlank = GetStartingBlank(repository),\n            setStartingBlank = SetStartingBlank(repository)\n        )\n    }\n\n    @Provides\n    @Singleton\n    fun provideHistoryRepository(app: Application): HistoryRepository {\n        return HistoryDatastoreRepository(app.historyDataStore)\n    }\n\n    @Provides\n    @Singleton\n    fun providesHistoryUseCases(repository: HistoryRepository): HistoryUseCases {\n        return HistoryUseCases(\n            addHistory = AddHistory(repository),\n            removeHistory = RemoveHistory(repository),\n            removeAllHistory = RemoveAllHistory(repository),\n            getAllHistory = GetAllHistory(repository)\n        )\n    }\n\n    @Provides\n    @Singleton\n    fun provideFavouriteRepository(app: Application): FavouriteRepository {\n        return FavouriteDatastoreRepository(app.favouritesDataStore)\n    }\n\n    @Provides\n    @Singleton\n    fun providesFavouriteUseCases(repository: FavouriteRepository): FavouriteUseCases {\n        return FavouriteUseCases(\n            addFavourite = AddFavourite(repository),\n            removeFavourite = RemoveFavourite(repository),\n            removeAllFavourite = RemoveAllFavourite(repository),\n            getAllFavourite = GetAllFavourite(repository)\n        )\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/model/SettingsKeys.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     SettingsKeys.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     SettingsKeys.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.model\n\nobject SettingsKeys {\n    const val THEME = \"theme\"\n    const val TTS_LANG = \"tts_lang\"\n    const val IS_VIBRATING = \"is_vibrating\"\n    const val IS_STARTING_BLANK = \"is_starting_blank\"\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/model/ThemeType.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     ThemeType.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     ThemeType.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.model\n\nimport androidx.compose.runtime.Stable\n\n@Stable\nsealed interface ThemeType {\n    data object Dark : ThemeType\n    data object Light : ThemeType\n    data object System : ThemeType\n    data object Darker : ThemeType\n    data object SystemDarker : ThemeType\n\n    companion object {\n        fun toType(value: String?): ThemeType {\n            return when (value) {\n                \"Dark\" -> Dark\n                \"Light\" -> Light\n                \"System\" -> System\n                \"Darker\" -> Darker\n                \"SystemDarker\" -> SystemDarker\n                else -> System\n            }\n        }\n\n        fun entries() = listOf(Dark, Light, System, Darker, SystemDarker)\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/repository/BaseDatastoreRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     DatastoreRepository.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     DatastoreRepository.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.repository\n\ninterface BaseDatastoreRepository {\n    suspend fun getString(key: String): String?\n    suspend fun setString(key: String, value: String)\n    suspend fun getInt(key: String): Int?\n    suspend fun setInt(key: String, value: Int)\n    suspend fun getBool(key: String): Boolean?\n    suspend fun setBool(key: String, value: Boolean)\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/repository/FavouriteRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     FavouriteRepository.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     FavouriteRepository.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.repository\n\nimport kotlinx.coroutines.flow.Flow\n\ninterface FavouriteRepository {\n    suspend fun add(history: String)\n    suspend fun remove(history: String)\n    suspend fun removeAll()\n    suspend fun all(): Flow<List<String>>\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/repository/HistoryRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     HistoryRepository.kt Copyrighted by Yamin Siahmargooei at 2024/8/24\n *     HistoryRepository.kt Last modified at 2024/8/24\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.repository\n\nimport kotlinx.coroutines.flow.Flow\n\ninterface HistoryRepository {\n    suspend fun add(history: String)\n    suspend fun remove(history: String)\n    suspend fun removeAll()\n    suspend fun all(): Flow<List<String>>\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/repository/SettingsRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     SettingsRepository.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     SettingsRepository.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.repository\n\nimport io.github.yamin8000.owl.datastore.domain.model.ThemeType\n\ninterface SettingsRepository : BaseDatastoreRepository {\n    suspend fun getTheme(): ThemeType\n    suspend fun setTheme(theme: ThemeType)\n    suspend fun getTtsLang(): String?\n    suspend fun setTtsLang(ttsLang: String)\n    suspend fun getIsVibrating(): Boolean\n    suspend fun setIsVibrating(value: Boolean)\n    suspend fun getIsStartingBlank(): Boolean\n    suspend fun setIsStartingBlank(value: Boolean)\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/favourites/AddFavourite.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     AddFavourite.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     AddFavourite.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.favourites\n\nimport io.github.yamin8000.owl.datastore.domain.repository.FavouriteRepository\n\nclass AddFavourite(\n    private val repository: FavouriteRepository\n) {\n    suspend operator fun invoke(favourite: String) {\n        repository.add(favourite)\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/favourites/FavouriteUseCases.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     FavouriteUseCases.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     FavouriteUseCases.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.favourites\n\ndata class FavouriteUseCases(\n    val addFavourite: AddFavourite,\n    val removeFavourite: RemoveFavourite,\n    val removeAllFavourite: RemoveAllFavourite,\n    val getAllFavourite: GetAllFavourite\n)\n"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/favourites/GetAllFavourite.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     GetAllFavourite.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     GetAllFavourite.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.favourites\n\nimport io.github.yamin8000.owl.datastore.domain.repository.FavouriteRepository\nimport kotlinx.coroutines.flow.Flow\n\nclass GetAllFavourite(\n    private val repository: FavouriteRepository\n) {\n    suspend operator fun invoke(): Flow<List<String>> {\n        return repository.all()\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/favourites/RemoveAllFavourite.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     RemoveAllFavourite.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     RemoveAllFavourite.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.favourites\n\nimport io.github.yamin8000.owl.datastore.domain.repository.FavouriteRepository\n\nclass RemoveAllFavourite(\n    private val repository: FavouriteRepository\n) {\n    suspend operator fun invoke() {\n        repository.removeAll()\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/favourites/RemoveFavourite.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     RemoveFavourite.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     RemoveFavourite.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.favourites\n\nimport io.github.yamin8000.owl.datastore.domain.repository.FavouriteRepository\n\nclass RemoveFavourite(\n    private val repository: FavouriteRepository\n) {\n    suspend operator fun invoke(favourite: String) {\n        repository.remove(favourite)\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/history/AddHistory.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     AddHistory.kt Copyrighted by Yamin Siahmargooei at 2024/8/24\n *     AddHistory.kt Last modified at 2024/8/24\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.history\n\nimport io.github.yamin8000.owl.datastore.domain.repository.HistoryRepository\n\nclass AddHistory(\n    private val repository: HistoryRepository\n) {\n    suspend operator fun invoke(history: String) {\n        repository.add(history)\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/history/GetAllHistory.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     AddHistory.kt Copyrighted by Yamin Siahmargooei at 2024/8/24\n *     AddHistory.kt Last modified at 2024/8/24\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.history\n\nimport io.github.yamin8000.owl.datastore.domain.repository.HistoryRepository\nimport kotlinx.coroutines.flow.Flow\n\nclass GetAllHistory(\n    private val repository: HistoryRepository\n) {\n    suspend operator fun invoke(): Flow<List<String>> {\n        return repository.all()\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/history/HistoryUseCases.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     HistoryUseCases.kt Copyrighted by Yamin Siahmargooei at 2024/8/24\n *     HistoryUseCases.kt Last modified at 2024/8/24\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.history\n\ndata class HistoryUseCases(\n    val addHistory: AddHistory,\n    val removeHistory: RemoveHistory,\n    val removeAllHistory: RemoveAllHistory,\n    val getAllHistory: GetAllHistory\n)\n"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/history/RemoveAllHistory.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     AddHistory.kt Copyrighted by Yamin Siahmargooei at 2024/8/24\n *     AddHistory.kt Last modified at 2024/8/24\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.history\n\nimport io.github.yamin8000.owl.datastore.domain.repository.HistoryRepository\n\nclass RemoveAllHistory(\n    private val repository: HistoryRepository\n) {\n    suspend operator fun invoke() {\n        repository.removeAll()\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/history/RemoveHistory.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     AddHistory.kt Copyrighted by Yamin Siahmargooei at 2024/8/24\n *     AddHistory.kt Last modified at 2024/8/24\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.history\n\nimport io.github.yamin8000.owl.datastore.domain.repository.HistoryRepository\n\nclass RemoveHistory(\n    private val repository: HistoryRepository\n) {\n    suspend operator fun invoke(history: String) {\n        repository.remove(history)\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/settings/GetStartingBlank.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     GetTheme.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     GetTheme.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.settings\n\nimport io.github.yamin8000.owl.datastore.domain.repository.SettingsRepository\n\nclass GetStartingBlank(\n    private val repository: SettingsRepository\n) {\n    suspend operator fun invoke(): Boolean {\n        return repository.getIsStartingBlank()\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/settings/GetTTS.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     GetTheme.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     GetTheme.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.settings\n\nimport io.github.yamin8000.owl.datastore.domain.repository.SettingsRepository\n\nclass GetTTS(\n    private val repository: SettingsRepository\n) {\n    suspend operator fun invoke(): String {\n        return repository.getTtsLang() ?: \"en-US\"\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/settings/GetTheme.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     GetTheme.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     GetTheme.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.settings\n\nimport io.github.yamin8000.owl.datastore.domain.model.ThemeType\nimport io.github.yamin8000.owl.datastore.domain.repository.SettingsRepository\n\nclass GetTheme(\n    private val repository: SettingsRepository\n) {\n    suspend operator fun invoke(): ThemeType {\n        return repository.getTheme()\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/settings/GetVibration.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     GetTheme.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     GetTheme.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.settings\n\nimport io.github.yamin8000.owl.datastore.domain.repository.SettingsRepository\n\nclass GetVibration(\n    private val repository: SettingsRepository\n) {\n    suspend operator fun invoke(): Boolean {\n        return repository.getIsVibrating()\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/settings/SetStartingBlank.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     SetTheme.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     SetTheme.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.settings\n\nimport io.github.yamin8000.owl.datastore.domain.repository.SettingsRepository\n\nclass SetStartingBlank(\n    private val repository: SettingsRepository\n) {\n    suspend operator fun invoke(value: Boolean) {\n        repository.setIsStartingBlank(value)\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/settings/SetTTS.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     SetTheme.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     SetTheme.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.settings\n\nimport io.github.yamin8000.owl.datastore.domain.repository.SettingsRepository\n\nclass SetTTS(\n    private val repository: SettingsRepository\n) {\n    suspend operator fun invoke(value: String) {\n        repository.setTtsLang(value)\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/settings/SetTheme.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     SetTheme.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     SetTheme.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.settings\n\nimport io.github.yamin8000.owl.datastore.domain.model.ThemeType\nimport io.github.yamin8000.owl.datastore.domain.repository.SettingsRepository\n\nclass SetTheme(\n    private val repository: SettingsRepository\n) {\n    suspend operator fun invoke(value: ThemeType) {\n        repository.setTheme(value)\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/settings/SetVibration.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     SetTheme.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     SetTheme.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.settings\n\nimport io.github.yamin8000.owl.datastore.domain.repository.SettingsRepository\n\nclass SetVibration(\n    private val repository: SettingsRepository\n) {\n    suspend operator fun invoke(value: Boolean) {\n        repository.setIsVibrating(value)\n    }\n}"
  },
  {
    "path": "datastore/src/main/java/io/github/yamin8000/owl/datastore/domain/usecase/settings/SettingUseCases.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.datastore.main\n *     SettingUseCases.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     SettingUseCases.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.datastore.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 *     freeDictionaryApp/freeDictionaryApp.datastore.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.datastore.domain.usecase.settings\n\ndata class SettingUseCases(\n    val getTTS: GetTTS,\n    val setTTS: SetTTS,\n    val getTheme: GetTheme,\n    val setTheme: SetTheme,\n    val getVibration: GetVibration,\n    val setVibration: SetVibration,\n    val getStartingBlank: GetStartingBlank,\n    val setStartingBlank: SetStartingBlank\n)\n"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/34.txt",
    "content": "- Added OLED theme\n- Fixed a bug that showed non-english languages during TTS Language selection\n- Fixed a bug that would crash the app during text selection"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/35.txt",
    "content": "- Fixed some UI bugs\n- Fixed some performance issues related to Compose\n- Added borders for some Cards\n- Migration from Plain Class State Holders to ViewModels WIP\n- Some refactors and reformats\n- Migration to Kotlin DSL for build.gradle"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/36.txt",
    "content": "OLED Theme Fixed!"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/38.txt",
    "content": "- Fixed some bugs\n- Fixed some performance issues related to Compose"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/42.txt",
    "content": "- Startup Crash BUGFIX"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/43.txt",
    "content": "- Navigation bug fix\n- Android 15 support"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/44.txt",
    "content": "- Added Overlay/Floating Window feature"
  },
  {
    "path": "fastlane/metadata/android/en-US/full_description.txt",
    "content": "<i>freeDictionaryApp</i> is a simple android application for <a href='https://dictionaryapi.dev/'>Free Dictionary API</a>. You can just use the search input to search the word.\n\n<b>Features</b>\n<ol>\n    <li>English to English dictionary</li>\n    <li>Definition of the word</li>\n    <li>Example of the word usage if available</li>\n    <li>Synonyms/Antonyms of the work if available</li>\n    <li>Pronunciation of the word, both IPA text and audio using TTS</li>\n    <li>Save searched data for offline uses</li>\n    <li>Search for a random word</li>\n</ol>"
  },
  {
    "path": "fastlane/metadata/android/en-US/short_description.txt",
    "content": "a simple app for Free Dictionary API"
  },
  {
    "path": "fastlane/metadata/android/en-US/title.txt",
    "content": "freeDictionaryApp"
  },
  {
    "path": "feature_about/.gitignore",
    "content": "/build"
  },
  {
    "path": "feature_about/build.gradle.kts",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_favourites\n *     build.gradle.kts Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     build.gradle.kts Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_favourites.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_favourites 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 *     freeDictionaryApp/freeDictionaryApp.feature_favourites 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport org.jetbrains.kotlin.gradle.dsl.JvmTarget\n\nplugins {\n    alias(libs.plugins.android.library)\n    alias(libs.plugins.google.ksp)\n    alias(libs.plugins.jetbrains.kotlin.compose.plugin)\n    alias(libs.plugins.legacy.kapt)\n    alias(libs.plugins.hilt)\n}\n\nandroid {\n    namespace = \"io.github.yamin8000.owl.feature_about\"\n    compileSdk = 36\n\n    defaultConfig {\n        minSdk = 23\n    }\n\n    compileOptions {\n        sourceCompatibility = JavaVersion.VERSION_17\n        targetCompatibility = JavaVersion.VERSION_17\n    }\n\n    kotlin {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_17\n        }\n    }\n\n    buildFeatures {\n        compose = true\n    }\n}\n\ncomposeCompiler {\n    reportsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n    metricsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n}\n\ndependencies {\n    implementation(project(\":common\"))\n    //hilt\n    implementation(libs.hilt.android)\n    ksp(libs.hilt.android.compiler)\n    implementation(libs.hilt.lifecycle.compose)\n    //retrofit\n    api(libs.retrofit.main)\n    implementation(libs.retrofit.converter.moshi)\n    kapt(libs.retrofit.type.keeper)\n    //moshi\n    implementation(libs.moshi.kotlin)\n    ksp(libs.moshi.kotlin.codegen)\n    //coil\n    implementation(libs.coil.compose)\n}"
  },
  {
    "path": "feature_about/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~     freeDictionaryApp/freeDictionaryApp.feature_favourites.main\n  ~     AndroidManifest.xml Copyrighted by Yamin Siahmargooei at 2025/9/8\n  ~     AndroidManifest.xml Last modified at 2025/3/16\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.feature_favourites.main.\n  ~     Copyright (C) 2025  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.feature_favourites.main 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  ~     freeDictionaryApp/freeDictionaryApp.feature_favourites.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<manifest />"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/data/datasource/remote/GithubAPIs.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     GithubAPIs.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     GithubAPIs.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.data.datasource.remote\n\nimport io.github.yamin8000.owl.feature_about.data.datasource.remote.dto.ContributorDto\nimport io.github.yamin8000.owl.feature_about.data.datasource.remote.dto.ReleaseDto\nimport io.github.yamin8000.owl.feature_about.data.datasource.remote.dto.RepositoryDto\nimport retrofit2.http.GET\nimport retrofit2.http.Path\n\ninterface GithubAPIs {\n\n    @GET(\"/repos/{owner}/{repo}\")\n    suspend fun getRepository(\n        @Path(\"owner\") owner: String,\n        @Path(\"repo\") repo: String\n    ): RepositoryDto\n\n    @GET(\"/repos/{owner}/{repo}/contributors\")\n    suspend fun repositoryContributors(\n        @Path(\"owner\") owner: String,\n        @Path(\"repo\") repo: String\n    ): List<ContributorDto>\n\n    @GET(\"/repos/{owner}/{repo}/releases\")\n    suspend fun releases(\n        @Path(\"owner\") owner: String,\n        @Path(\"repo\") repo: String\n    ): List<ReleaseDto>\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/data/datasource/remote/dto/ContributorDto.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     ContributorDto.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     ContributorDto.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.data.datasource.remote.dto\n\nimport com.squareup.moshi.Json\nimport com.squareup.moshi.JsonClass\nimport io.github.yamin8000.owl.feature_about.domain.Contributor\nimport io.github.yamin8000.owl.feature_about.domain.ContributorType\n\n@JsonClass(generateAdapter = true)\ndata class ContributorDto(\n    val id: Long,\n    val login: String,\n    val type: String,\n    @param:Json(name = \"avatar_url\")\n    val avatarUrl: String,\n    @param:Json(name = \"html_url\")\n    val profileUrl: String,\n    val contributions: Long\n) {\n    fun domain() = Contributor(\n        id = id,\n        username = login,\n        type = ContributorType.valueOf(type),\n        avatarUrl = avatarUrl,\n        profileUrl = profileUrl,\n        contributions = contributions,\n    )\n}\n"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/data/datasource/remote/dto/ReleaseDto.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     ReleaseDto.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     ReleaseDto.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.data.datasource.remote.dto\n\nimport com.squareup.moshi.JsonClass\nimport io.github.yamin8000.owl.feature_about.domain.Release\n\n@JsonClass(generateAdapter = true)\ndata class ReleaseDto(\n    val id: Long,\n    val name: String\n) {\n    fun domain() = Release(\n        id = id,\n        name = name\n    )\n}\n"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/data/datasource/remote/dto/RepositoryDto.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     RepositoryDto.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     RepositoryDto.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.data.datasource.remote.dto\n\nimport com.squareup.moshi.Json\nimport com.squareup.moshi.JsonClass\nimport io.github.yamin8000.owl.feature_about.domain.Repository\n\n@JsonClass(generateAdapter = true)\ndata class RepositoryDto(\n    val name: String,\n    val description: String,\n    val forks: Int,\n    @param:Json(name = \"stargazers_count\")\n    val stargazers: Int\n) {\n    fun domain() = Repository(\n        name = name,\n        description = description,\n        stars = stargazers,\n        forks = forks\n    )\n}\n"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/data/repository/GithubWebRepoRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     GithubWebRepoRepository.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     GithubWebRepoRepository.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.data.repository\n\nimport io.github.yamin8000.owl.feature_about.data.datasource.remote.GithubAPIs\nimport io.github.yamin8000.owl.feature_about.domain.Contributor\nimport io.github.yamin8000.owl.feature_about.domain.Release\nimport io.github.yamin8000.owl.feature_about.domain.Repository\nimport io.github.yamin8000.owl.feature_about.domain.repository.GithubRepoRepository\n\nclass GithubWebRepoRepository(\n    private val api: GithubAPIs\n) : GithubRepoRepository {\n\n    override suspend fun getRepository(\n        owner: String,\n        repo: String\n    ): Repository {\n        return api.getRepository(owner, repo).domain()\n    }\n\n    override suspend fun getRepositoryContributors(\n        owner: String,\n        repo: String\n    ): List<Contributor> {\n        return api.repositoryContributors(owner, repo).map { it.domain() }\n    }\n\n    override suspend fun getReleases(\n        owner: String,\n        repo: String\n    ): List<Release> {\n        return api.releases(owner, repo).map { it.domain() }\n    }\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/di/AboutModule.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     AboutModule.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     AboutModule.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.di\n\nimport dagger.Module\nimport dagger.Provides\nimport dagger.hilt.InstallIn\nimport dagger.hilt.components.SingletonComponent\nimport io.github.yamin8000.owl.feature_about.data.datasource.remote.GithubAPIs\nimport io.github.yamin8000.owl.feature_about.data.repository.GithubWebRepoRepository\nimport io.github.yamin8000.owl.feature_about.domain.repository.GithubRepoRepository\nimport okhttp3.OkHttpClient\nimport retrofit2.Retrofit\nimport retrofit2.converter.moshi.MoshiConverterFactory\nimport retrofit2.create\nimport javax.inject.Qualifier\nimport javax.inject.Singleton\n\n@Module\n@InstallIn(SingletonComponent::class)\nobject AboutModule {\n\n    @Qualifier\n    annotation class AboutModule\n\n    @Provides\n    @Singleton\n    fun providesOkHttpClient(): OkHttpClient {\n        return OkHttpClient.Builder()\n            .addInterceptor { chain ->\n                val newRequest = chain.request()\n                newRequest.newBuilder()\n                    .addHeader(\"Accept\", \"application/vnd.github+json\")\n                    .addHeader(\"X-GitHub-Api-Version\", \"2022-11-28\")\n                    .build()\n                return@addInterceptor chain.proceed(newRequest)\n            }.build()\n    }\n\n    @AboutModule\n    @Provides\n    @Singleton\n    fun providesRetrofit(\n        client: OkHttpClient\n    ): Retrofit {\n        val baseUrl = \"https://api.github.com\"\n        return Retrofit.Builder()\n            .baseUrl(baseUrl)\n            .client(client)\n            .addConverterFactory(MoshiConverterFactory.create())\n            .build()\n    }\n\n    @Provides\n    @Singleton\n    fun providesGithubAPIs(\n        @AboutModule\n        retrofit: Retrofit\n    ): GithubAPIs {\n        return retrofit.create<GithubAPIs>()\n    }\n\n    @Provides\n    @Singleton\n    fun providesGithubRepoRepository(api: GithubAPIs): GithubRepoRepository {\n        return GithubWebRepoRepository(api)\n    }\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/domain/Contributor.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     Contributor.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     Contributor.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.domain\n\nimport kotlin.random.Random\n\ndata class Contributor(\n    val id: Long,\n    val username: String,\n    val type: ContributorType,\n    val avatarUrl: String,\n    val profileUrl: String,\n    val contributions: Long,\n) {\n    companion object {\n        fun mock() = Contributor(\n            id = Random.nextLong(),\n            username = \"username\",\n            type = ContributorType.entries.toTypedArray().random(),\n            avatarUrl = \"https://example.com/avatar.png\",\n            profileUrl = \"https://example.com/profile\",\n            contributions = Random.nextLong(1, 1000)\n        )\n    }\n}\n"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/domain/ContributorType.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     ContributorType.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     ContributorType.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.domain\n\nenum class ContributorType {\n    User, Bot\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/domain/Release.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     Release.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     Release.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.domain\n\ndata class Release(\n    val id: Long,\n    val name: String,\n)\n"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/domain/Repository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     Repository.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     Repository.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.domain\n\ndata class Repository(\n    val name: String,\n    val description: String,\n    val stars: Int,\n    val forks: Int,\n)\n"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/domain/repository/GithubRepoRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     GithubRepoRepository.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     GithubRepoRepository.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.domain.repository\n\nimport io.github.yamin8000.owl.feature_about.domain.Contributor\nimport io.github.yamin8000.owl.feature_about.domain.Release\nimport io.github.yamin8000.owl.feature_about.domain.Repository\n\ninterface GithubRepoRepository {\n\n    suspend fun getRepository(\n        owner: String,\n        repo: String\n    ): Repository\n\n    suspend fun getRepositoryContributors(\n        owner: String,\n        repo: String\n    ): List<Contributor>\n\n    suspend fun getReleases(\n        owner: String,\n        repo: String\n    ): List<Release>\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/ui/About.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     About.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     About.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.ui\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.material3.PrimaryTabRow\nimport androidx.compose.material3.Tab\nimport androidx.compose.material3.pulltorefresh.PullToRefreshBox\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.style.TextOverflow\nimport androidx.compose.ui.tooling.preview.PreviewFontScale\nimport androidx.compose.ui.tooling.preview.PreviewScreenSizes\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.components.ScaffoldWithTitle\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.feature_about.ui.tabs.AboutContributors\nimport io.github.yamin8000.owl.feature_about.ui.tabs.AboutInfo\nimport io.github.yamin8000.owl.feature_about.ui.tabs.AboutLicense\nimport io.github.yamin8000.owl.strings.R\nimport kotlinx.collections.immutable.toImmutableList\nimport kotlin.random.Random\nimport kotlin.random.nextInt\n\n@PreviewFontScale\n@PreviewScreenSizes\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        var tab by remember { mutableStateOf(AboutTab.entries.random()) }\n        AboutContent(\n            installedVersionName = \"1.0.0\",\n            state = AboutState(\n                tab = tab,\n                contributors = buildList {\n                    repeat(Random.nextInt(2..5)) {\n                        add(UiContributor.mock())\n                    }\n                }.toImmutableList()\n            ),\n            onAction = {\n                when (it) {\n                    AboutAction.OnRefresh -> {}\n                    is AboutAction.OnTabChanged -> tab = it.tab\n                }\n            },\n            onBackClick = {}\n        )\n    }\n}\n\n@Composable\nfun AboutScreen(\n    onBackClick: () -> Unit,\n    installedVersionName: String,\n    modifier: Modifier = Modifier,\n    vm: AboutViewModel = hiltViewModel()\n) {\n    val state = vm.state.collectAsStateWithLifecycle().value\n\n    PullToRefreshBox(\n        isRefreshing = state.isLoading,\n        onRefresh = { vm.onAction(AboutAction.OnRefresh) },\n        content = {\n            AboutContent(\n                onBackClick = onBackClick,\n                modifier = modifier,\n                installedVersionName = installedVersionName,\n                state = state,\n                onAction = { action -> vm.onAction(action) },\n            )\n        }\n    )\n}\n\n@Composable\ninternal fun AboutContent(\n    onBackClick: () -> Unit,\n    installedVersionName: String,\n    state: AboutState,\n    onAction: (AboutAction) -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    ScaffoldWithTitle(\n        modifier = modifier,\n        title = stringResource(R.string.about),\n        onBackClick = onBackClick,\n        content = {\n            Column(\n                modifier = Modifier.fillMaxSize(),\n                verticalArrangement = Arrangement.spacedBy(Sizes.Small, Alignment.Top),\n                horizontalAlignment = Alignment.CenterHorizontally,\n                content = {\n                    PrimaryTabRow(\n                        selectedTabIndex = state.tab.index,\n                        divider = {},\n                        tabs = {\n                            AboutTab.entries.forEach { tab ->\n                                Tab(\n                                    modifier = Modifier.fillMaxWidth(),\n                                    selected = tab == state.tab,\n                                    onClick = { onAction(AboutAction.OnTabChanged(tab)) },\n                                    text = {\n                                        AppText(\n                                            text = tab.name,\n                                            modifier = Modifier.fillMaxWidth(),\n                                            maxLines = 1,\n                                            overflow = TextOverflow.Ellipsis\n                                        )\n                                    }\n                                )\n                            }\n                        }\n                    )\n                    when (state.tab) {\n                        AboutTab.Info -> {\n                            AboutInfo(\n                                installedVersionName = installedVersionName,\n                                latestVersionName = state.latestVersionName,\n                                description = state.repository?.description ?: \"\"\n                            )\n                        }\n\n                        AboutTab.License -> AboutLicense()\n                        AboutTab.Contributors -> AboutContributors(contributors = state.contributors)\n                    }\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/ui/AboutAction.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     AboutAction.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     AboutAction.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.ui\n\nsealed interface AboutAction {\n    data object OnRefresh : AboutAction\n    data class OnTabChanged(val tab: AboutTab) : AboutAction\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/ui/AboutState.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     AboutState.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     AboutState.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.ui\n\nimport io.github.yamin8000.owl.feature_about.domain.Repository\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.persistentListOf\n\ndata class AboutState(\n    val tab: AboutTab = AboutTab.Info,\n    val isLoading: Boolean = false,\n    val repository: Repository? = null,\n    val contributors: ImmutableList<UiContributor> = persistentListOf(),\n    val latestVersionName: String = \"-\"\n)\n"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/ui/AboutTab.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     AboutTab.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     AboutTab.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.ui\n\nenum class AboutTab(\n    val index: Int\n) {\n    Info(0), License(1), Contributors(2)\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/ui/AboutViewModel.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     AboutViewModel.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     AboutViewModel.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.ui\n\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport io.github.yamin8000.owl.common.util.log\nimport io.github.yamin8000.owl.common.util.randomColor\nimport io.github.yamin8000.owl.feature_about.domain.repository.GithubRepoRepository\nimport kotlinx.collections.immutable.toImmutableList\nimport kotlinx.coroutines.CoroutineExceptionHandler\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.SupervisorJob\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.asStateFlow\nimport kotlinx.coroutines.flow.update\nimport kotlinx.coroutines.launch\nimport kotlinx.coroutines.withContext\nimport javax.inject.Inject\n\n@HiltViewModel\nclass AboutViewModel @Inject constructor(\n    private val repository: GithubRepoRepository\n) : ViewModel() {\n\n    private val exceptionHandler = CoroutineExceptionHandler { _, throwable ->\n        _state.update { it.copy(isLoading = false) }\n        log(throwable.stackTraceToString())\n    }\n\n    private val scope = CoroutineScope(\n        SupervisorJob() + viewModelScope.coroutineContext + exceptionHandler\n    )\n    private val ioScope = CoroutineScope(SupervisorJob() + Dispatchers.IO + exceptionHandler)\n\n    private var _state = MutableStateFlow(AboutState())\n    val state = _state.asStateFlow()\n\n    init {\n        scope.launch { load() }\n    }\n\n    private suspend fun load() {\n        _state.update { it.copy(isLoading = true) }\n\n        val repo = repository.getRepository(\"yamin8000\", \"freeDictionaryApp\")\n        val releases = repository.getReleases(\"yamin8000\", \"freeDictionaryApp\")\n        val contributors = repository.getRepositoryContributors(\"yamin8000\", \"freeDictionaryApp\")\n\n        _state.update {\n            it.copy(\n                isLoading = false,\n                repository = repo,\n                latestVersionName = releases.firstOrNull()?.name ?: \"-\",\n                contributors = contributors.toImmutableList().map { contributor ->\n                    UiContributor(\n                        contributor = contributor,\n                        borderColor = randomColor()\n                    )\n                }.toImmutableList()\n            )\n        }\n    }\n\n    fun onAction(action: AboutAction) {\n        when (action) {\n            AboutAction.OnRefresh -> scope.launch { load() }\n            is AboutAction.OnTabChanged -> _state.update { it.copy(tab = action.tab) }\n        }\n    }\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/ui/UiContributor.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     UiContributor.kt Copyrighted by Yamin Siahmargooei at 2025/11/17\n *     UiContributor.kt Last modified at 2025/11/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.ui\n\nimport androidx.compose.ui.graphics.Color\nimport io.github.yamin8000.owl.common.util.randomColor\nimport io.github.yamin8000.owl.feature_about.domain.Contributor\n\ndata class UiContributor(\n    val contributor: Contributor,\n    val borderColor: Color\n) {\n    companion object {\n        fun mock() = UiContributor(\n            contributor = Contributor.mock(),\n            borderColor = randomColor()\n        )\n    }\n}\n"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/ui/components/ContributionsBar.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     ContributionsBar.kt Copyrighted by Yamin Siahmargooei at 2025/11/17\n *     ContributionsBar.kt Last modified at 2025/11/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.ui.components\n\nimport androidx.compose.foundation.Canvas\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.BoxWithConstraints\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.geometry.Offset\nimport androidx.compose.ui.graphics.StrokeCap\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.Dp\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.feature_about.ui.UiContributor\nimport kotlin.random.Random\nimport kotlin.random.nextInt\n\n@Preview(showBackground = true)\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        Box(\n            modifier = Modifier.fillMaxWidth(),\n            content = {\n                ContributionsBar(\n                    modifier = Modifier.padding(Sizes.Medium),\n                    contributors = buildList {\n                        repeat(Random.nextInt(2..5)) {\n                            add(UiContributor.mock())\n                        }\n                    }\n                )\n            }\n        )\n    }\n}\n\n@Composable\ninternal fun ContributionsBar(\n    contributors: List<UiContributor>,\n    modifier: Modifier = Modifier,\n    thickness: Dp = Sizes.Small\n) {\n    val sorted = remember(contributors) {\n        contributors.sortedByDescending { it.contributor.contributions }\n    }\n    val colors = remember(contributors) {\n        sorted.map { it.borderColor }\n    }\n    BoxWithConstraints(\n        modifier = modifier,\n        content = {\n            Canvas(\n                modifier = Modifier,\n                onDraw = {\n                    val total = sorted.sumOf { it.contributor.contributions }.toFloat()\n                    var portions = 0f\n                    drawLine(\n                        color = colors.first(),\n                        strokeWidth = thickness.toPx(),\n                        start = Offset(0f, 0f),\n                        end = Offset(0f, 0f),\n                        cap = StrokeCap.Round\n                    )\n                    sorted.forEachIndexed { index, value ->\n                        val portion = value.contributor.contributions / total\n\n                        drawLine(\n                            color = colors[index],\n                            strokeWidth = thickness.toPx(),\n                            start = Offset(portions * constraints.maxWidth, 0f),\n                            end = Offset((portion + portions) * constraints.maxWidth, 0f),\n                            cap = StrokeCap.Butt\n                        )\n                        portions += portion\n                    }\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/ui/components/ContributorItem.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     ContributorItem.kt Copyrighted by Yamin Siahmargooei at 2025/11/17\n *     ContributorItem.kt Last modified at 2025/11/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.ui.components\n\nimport androidx.compose.foundation.border\nimport androidx.compose.foundation.clickable\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.size\nimport androidx.compose.foundation.shape.CircleShape\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.draw.clip\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.platform.LocalUriHandler\nimport androidx.compose.ui.res.painterResource\nimport androidx.compose.ui.text.style.TextOverflow\nimport androidx.compose.ui.tooling.preview.Preview\nimport coil.compose.AsyncImage\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.common.util.randomColor\nimport io.github.yamin8000.owl.feature_about.R\n\n@Preview(showBackground = true)\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        ContributorItem(\n            profileUrl = \"https://github.com/yamin8000\",\n            avatarUrl = \"https://avatars.githubusercontent.com/u/9919?s=200&v=4\",\n            username = \"yamin8000\",\n            borderColor = randomColor()\n        )\n    }\n}\n\n@Composable\ninternal fun ContributorItem(\n    profileUrl: String,\n    avatarUrl: String,\n    username: String,\n    borderColor: Color,\n    modifier: Modifier = Modifier\n) {\n    val uriHandler = LocalUriHandler.current\n    Column(\n        modifier = modifier.clickable(\n            onClick = { uriHandler.openUri(profileUrl) }\n        ),\n        horizontalAlignment = Alignment.CenterHorizontally,\n        verticalArrangement = Arrangement.spacedBy(Sizes.Small, Alignment.CenterVertically),\n        content = {\n            AsyncImage(\n                model = avatarUrl,\n                contentDescription = username,\n                placeholder = painterResource(R.drawable.image_48px),\n                fallback = painterResource(R.drawable.broken_image_48px),\n                modifier = Modifier\n                    .size(Sizes.xxLarge * 1.5f)\n                    .clip(CircleShape)\n                    .border(\n                        width = Sizes.Small,\n                        color = borderColor,\n                        shape = CircleShape\n                    )\n            )\n            AppText(\n                text = username,\n                maxLines = 1,\n                overflow = TextOverflow.Ellipsis\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/ui/tabs/AboutContributors.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     AboutContributors.kt Copyrighted by Yamin Siahmargooei at 2025/11/17\n *     AboutContributors.kt Last modified at 2025/11/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.ui.tabs\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.lazy.grid.GridCells\nimport androidx.compose.foundation.lazy.grid.GridItemSpan\nimport androidx.compose.foundation.lazy.grid.LazyVerticalGrid\nimport androidx.compose.foundation.lazy.grid.items\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.style.TextOverflow\nimport androidx.compose.ui.tooling.preview.Preview\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.feature_about.ui.UiContributor\nimport io.github.yamin8000.owl.feature_about.ui.components.ContributionsBar\nimport io.github.yamin8000.owl.feature_about.ui.components.ContributorItem\nimport io.github.yamin8000.owl.strings.R\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.toImmutableList\nimport kotlin.random.Random\nimport kotlin.random.nextInt\n\n@Preview(showBackground = true)\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        AboutContributors(\n            contributors = buildList {\n                repeat(Random.nextInt(2..5)) {\n                    add(UiContributor.mock())\n                }\n            }.toImmutableList()\n        )\n    }\n}\n\n@Composable\ninternal fun AboutContributors(\n    contributors: ImmutableList<UiContributor>,\n    modifier: Modifier = Modifier\n) {\n    LazyVerticalGrid(\n        modifier = modifier,\n        contentPadding = PaddingValues(Sizes.Small),\n        columns = GridCells.Fixed(3),\n        verticalArrangement = Arrangement.spacedBy(Sizes.Large, Alignment.CenterVertically),\n        horizontalArrangement = Arrangement.spacedBy(Sizes.Medium, Alignment.CenterHorizontally),\n        content = {\n            item(\n                span = { GridItemSpan(maxLineSpan) },\n                content = {\n                    AppText(\n                        text = stringResource(R.string.contributions_graph),\n                        maxLines = 1,\n                        overflow = TextOverflow.Ellipsis\n                    )\n                }\n            )\n            item(\n                span = { GridItemSpan(maxLineSpan) },\n                content = {\n                    if (contributors.isNotEmpty()) {\n                        ContributionsBar(contributors = contributors)\n                    }\n                }\n            )\n            items(\n                items = contributors,\n                key = { it.contributor.id },\n                itemContent = {\n                    ContributorItem(\n                        avatarUrl = it.contributor.avatarUrl,\n                        username = it.contributor.username,\n                        borderColor = it.borderColor,\n                        profileUrl = it.contributor.profileUrl\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/ui/tabs/AboutInfo.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     AboutInfo.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     AboutInfo.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.ui.tabs\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.rememberScrollState\nimport androidx.compose.foundation.verticalScroll\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.platform.LocalUriHandler\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.style.TextDecoration\nimport androidx.compose.ui.tooling.preview.Preview\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.components.Ripple\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.strings.R\n\n@Preview(showBackground = true)\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        AboutInfo(\n            installedVersionName = \"1.0.0\",\n            latestVersionName = \"1.2.0\",\n            description = \"This is a sample description of the app.\"\n        )\n    }\n}\n\n@Composable\ninternal fun AboutInfo(\n    installedVersionName: String,\n    latestVersionName: String,\n    description: String,\n    modifier: Modifier = Modifier\n) {\n    Column(\n        modifier = modifier.verticalScroll(rememberScrollState()),\n        horizontalAlignment = Alignment.CenterHorizontally,\n        verticalArrangement = Arrangement.spacedBy(Sizes.Medium, Alignment.CenterVertically),\n        content = {\n            AppText(\n                maxLines = 2,\n                text = stringResource(\n                    R.string.version_name,\n                    installedVersionName\n                )\n            )\n            AppText(\n                text = stringResource(R.string.latest_version, latestVersionName),\n                maxLines = 2\n            )\n            AppText(\n                text = description,\n                modifier = Modifier.fillMaxWidth()\n            )\n            AppText(\n                text = stringResource(id = R.string.about_app),\n                modifier = Modifier.fillMaxWidth()\n            )\n            val uriHandler = LocalUriHandler.current\n            val freeDictionaryUri = stringResource(R.string.free_dictionary_link)\n            Ripple(\n                onClick = { uriHandler.openUri(freeDictionaryUri) },\n                content = {\n                    Text(\n                        text = freeDictionaryUri,\n                        textDecoration = TextDecoration.Underline\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_about/src/main/kotlin/io/github/yamin8000/owl/feature_about/ui/tabs/AboutLicense.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main\n *     AboutLicense.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     AboutLicense.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_about.ui.tabs\n\nimport android.content.res.Configuration\nimport androidx.compose.foundation.Image\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.rememberScrollState\nimport androidx.compose.foundation.verticalScroll\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.ColorFilter\nimport androidx.compose.ui.layout.ContentScale\nimport androidx.compose.ui.platform.LocalConfiguration\nimport androidx.compose.ui.platform.LocalUriHandler\nimport androidx.compose.ui.res.painterResource\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.style.TextDecoration\nimport androidx.compose.ui.tooling.preview.Preview\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.components.Ripple\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.strings.R\nimport io.github.yamin8000.owl.feature_about.R.drawable as R_drawable\n\n@Preview(showBackground = true)\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        AboutLicense()\n    }\n}\n\n@Composable\ninternal fun AboutLicense(\n    modifier: Modifier = Modifier\n) {\n    Column(\n        modifier = modifier.verticalScroll(rememberScrollState()),\n        horizontalAlignment = Alignment.CenterHorizontally,\n        verticalArrangement = Arrangement.spacedBy(Sizes.Medium, Alignment.CenterVertically),\n        content = {\n            val uriHandler = LocalUriHandler.current\n            val sourceUri = stringResource(R.string.github_source)\n            val licenseUri = stringResource(R.string.license_link)\n\n            Ripple(\n                onClick = { uriHandler.openUri(licenseUri) },\n                content = {\n                    val config = LocalConfiguration.current\n                    val fill = remember(config) {\n                        if (config.orientation == Configuration.ORIENTATION_PORTRAIT) 1f\n                        else .5f\n                    }\n                    Image(\n                        painter = painterResource(id = R_drawable.ic_gplv3),\n                        contentDescription = stringResource(id = R.string.gplv3_image_description),\n                        contentScale = ContentScale.FillWidth,\n                        colorFilter = ColorFilter.tint(MaterialTheme.colorScheme.onSurfaceVariant),\n                        modifier = Modifier.fillMaxWidth(fill)\n                    )\n                }\n            )\n            AppText(\n                text = stringResource(id = R.string.license_header),\n                modifier = Modifier.fillMaxWidth()\n            )\n            Ripple(\n                onClick = { uriHandler.openUri(sourceUri) },\n                content = {\n                    Text(\n                        text = sourceUri,\n                        textDecoration = TextDecoration.Underline\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_about/src/main/res/drawable/broken_image_48px.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"48dp\"\n    android:height=\"48dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"?attr/colorControlNormal\">\n  <path\n      android:fillColor=\"@android:color/white\"\n      android:pathData=\"M180,840Q156,840 138,822Q120,804 120,780L120,180Q120,156 138,138Q156,120 180,120L780,120Q804,120 822,138Q840,156 840,180L840,780Q840,804 822,822Q804,840 780,840L180,840ZM223,526L395,354L565,524L736,353L780,397L780,180Q780,180 780,180Q780,180 780,180L180,180Q180,180 180,180Q180,180 180,180L180,483L223,526ZM180,780L780,780Q780,780 780,780Q780,780 780,780L780,482L736,438L565,609L395,439L223,611L180,568L180,780Q180,780 180,780Q180,780 180,780ZM180,780L180,780Q180,780 180,780Q180,780 180,780L180,482L180,542L180,457.1L180,397L180,180Q180,180 180,180Q180,180 180,180L180,180Q180,180 180,180Q180,180 180,180L180,483L180,483L180,568L180,568L180,780Q180,780 180,780Q180,780 180,780Z\"/>\n</vector>\n"
  },
  {
    "path": "feature_about/src/main/res/drawable/ic_gplv3.xml",
    "content": "<!--\n  ~     freeDictionaryApp/freeDictionaryApp.feature_about.main\n  ~     ic_gplv3.xml Copyrighted by Yamin Siahmargooei at 2025/11/17\n  ~     ic_gplv3.xml Last modified at 2025/9/8\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.feature_about.main.\n  ~     Copyright (C) 2025  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.feature_about.main 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  ~     freeDictionaryApp/freeDictionaryApp.feature_about.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"720dp\"\n    android:height=\"358dp\"\n    android:viewportWidth=\"720\"\n    android:viewportHeight=\"358\">\n    <path\n        android:fillColor=\"#bd0000\"\n        android:pathData=\"m673.18,0.35 l-0.15,0.01C660.58,1.26 644.02,4.98 628.31,11.28L539.92,11.28 114.62,11.28 80.89,11.28c0,0 -59.31,258.77 -59.31,258.77h0.05,274.38 111.35c8.19,4.78 18.14,7.57 29.25,8.54l0.19,0.02h19.42l0.17,-0.01c6.21,-0.48 12.68,-1.38 19.38,-2.69 11.54,-2.26 23.72,-5.71 36.33,-10.31 9.55,-3.48 19.35,-7.6 29.3,-12.38l0,-0c21.64,-10.37 43.95,-23.73 65.83,-39.84 7.21,-5.3 14.13,-10.74 20.77,-16.27l0,-0c6.09,-5.07 11.93,-10.21 17.51,-15.42l0.03,-0.02 0.03,-0.03c15.68,-15.11 27.6,-30.48 34.5,-44.37 3.6,-7.23 5.85,-14.07 6.42,-20.42 0.56,-6.35 -0.66,-12.36 -4.22,-17.07l-0,-0c-2.62,-3.46 -6.29,-5.75 -10.5,-7.26 13.73,-11.27 24.9,-23.31 32.23,-35.09 8.56,-13.76 12.38,-27.39 8.2,-38.87v-0C709.52,11.17 703.47,5.63 695.51,2.76h-0l-0,-0c-3.53,-1.27 -7.4,-2.04 -11.53,-2.39l-0.18,-0.02zM683.38,8.88c3.48,0.04 6.58,0.94 9.25,1.9 6.06,2.19 9.78,5.79 11.55,10.67l0,0v0c2.81,7.72 0.38,18.91 -7.42,31.45 -7.8,12.54 -20.7,26.14 -37.09,38.44l-9.04,6.79 11.28,0.87c6.67,0.52 11.06,2.58 13.57,5.9l0,0c2.06,2.72 2.96,6.32 2.53,11.18 -0.43,4.86 -2.29,10.81 -5.56,17.38 -6.27,12.6 -17.62,27.41 -32.76,42 -5.46,5.09 -11.17,10.12 -17.13,15.08l-0,0c-6.51,5.43 -13.3,10.76 -20.36,15.96h-0c-21.47,15.8 -43.34,28.89 -64.47,39.02l-0,0h-0c-9.7,4.66 -19.24,8.67 -28.53,12.05 -12.25,4.47 -24.01,7.8 -35.05,9.96 -6.36,1.24 -12.48,2.09 -18.3,2.55h-18.57c-0.09,-0.01 -0.17,-0.02 -0.26,-0.03h1.72c-17,-1.48 -30.42,-7.45 -38.42,-18.33 -1.48,-2.01 -2.71,-4.18 -3.78,-6.45 -0.68,-1.67 -1.32,-3.36 -1.97,-5.06 -1.71,-5.42 -2.39,-11.44 -2.08,-17.85 0.85,-17.87 9.24,-39.13 23.77,-61.39 15.43,-23.66 37.8,-48.45 65.49,-71.46 6.21,-5.15 12.63,-10.24 19.34,-15.19 8.3,-6.11 16.67,-11.74 25.04,-17 30.85,-19.42 61.62,-33.01 88.88,-39.91 -26.06,8.5 -55.33,22.93 -84.25,42.58 -1.04,0.7 -2.07,1.42 -3.09,2.13 -16.05,11.12 -30.58,22.93 -43.27,34.85 -40.82,38.38 -62.4,78.16 -52.6,101.46 0.7,1.6 1.53,3.13 2.5,4.58 10.54,15.5 36.66,18.18 69.75,9.86 2.25,-0.56 4.5,-1.2 6.82,-1.87 10.57,-3.05 21.8,-7.17 33.36,-12.26 2.78,-1.23 5.59,-2.49 8.42,-3.84 0.29,-0.14 0.56,-0.27 0.85,-0.43 36.49,-18.13 64.53,-38.99 70.61,-51.53 1.33,-2.73 1.65,-5.05 0.75,-6.88 -4.33,-8.78 -34.64,-2.85 -71.35,13.06 -2.95,1.28 -5.93,2.59 -8.95,4 2.46,-2.28 5.01,-4.57 7.62,-6.82 4.16,-3.58 8.47,-7.09 13.05,-10.55 7.18,-5.44 14.44,-10.35 21.58,-14.71 33.46,-25.24 50.37,-49.12 46.84,-57.98 -0.67,-1.67 -2.08,-2.82 -4.26,-3.52 -6.97,-2.22 -19.7,0.43 -35.17,6.77 -12.76,5.23 -27.41,12.99 -42.26,22.65l-2.02,1.33c0,0 -0.37,0.21 -0.37,0.21 0,0 -7.14,4.74 -7.14,4.74 -0,-0 4.1,-7.51 4.1,-7.51 6.09,-11.14 16,-22.77 28.35,-33.57 9.05,-7.9 19.4,-15.34 30.54,-21.85 4.21,-2.47 8.42,-4.76 12.63,-6.82 4.31,-2.11 8.63,-3.98 12.84,-5.65C651.4,12.78 663.36,8.62 683.38,8.88ZM386.87,11.66c-1.67,25.5 3.27,62.86 14.49,104.34 2,7.38 4.17,14.89 6.55,22.49 1.48,4.69 3.01,9.31 4.58,13.86 -0.92,1.35 -1.85,2.7 -2.72,4.05 -14,21.46 -22.18,41.73 -24.25,59.36 -5.92,-19.81 -10.37,-41.52 -12.9,-64.53 -0.72,-6.59 -1.28,-13.11 -1.65,-19.56 -2.76,-46.8 3.35,-89.22 15.88,-120.01zM107.48,44.86c0.32,-0.01 0.63,0 0.96,0 0,-0 63.04,0 63.04,0 5.39,-0 9.55,1.01 12.52,3.04 2.95,2.04 4.06,4.68 3.36,7.89 0,0 -7.51,33.94 -7.51,33.94 0,0 -22.22,0 -22.22,0 0,0 7.3,-33.04 7.3,-33.04h-55.63c-0,0 -20.09,90.8 -20.09,90.8 0,0 -7.25,32.88 -7.25,32.88 0,0 55.58,0 55.58,0 0,0 0.05,-0.21 0.05,-0.21 0,0 11.14,-50.3 11.14,-50.3 0,-0 -26.11,0 -26.11,0 0,-0 2.5,-11.35 2.5,-11.35 -0,-0 48.33,0 48.33,0 0,-0 -13.85,62.78 -13.85,62.78 -0.19,0.89 -0.52,1.7 -0.96,2.5 -1.14,2.08 -3.14,3.86 -5.92,5.33 -3.85,2.03 -8.47,3.04 -13.86,3.04 0,0 -62.99,0 -62.99,0 -5.39,0 -9.55,-1.01 -12.52,-3.04 -2.95,-2.03 -4.07,-4.62 -3.36,-7.83 0,-0 27.76,-125.49 27.76,-125.49 0.72,-3.21 2.95,-5.85 6.82,-7.89 0.14,-0.07 0.29,-0.09 0.43,-0.16 3.53,-1.77 7.68,-2.76 12.47,-2.88zM206.28,44.86c-0,-0 79.35,0 79.35,0 5.32,-0 9.5,1.01 12.47,3.04 2.98,2.04 4.13,4.68 3.41,7.89 0,0 -14.81,66.93 -14.81,66.93 -0.7,3.19 -2.99,5.79 -6.88,7.83 -3.89,2.05 -8.46,3.09 -13.8,3.09h-57.66l-11.14,50.25c0,0 -1.81,8.26 -1.81,8.26 0,0 -21.74,0 -21.74,0 0,0 1.65,-7.46 1.65,-7.46 0,0 30.96,-139.83 30.96,-139.83zM315.89,44.86c-0,-0 21.74,0 21.74,0 0,-0 -24.62,111.21 -24.62,111.21 0,0 -5.38,24.3 -5.38,24.3 0,0 52.01,0 52.01,0 0.55,3.99 1.18,7.9 1.87,11.78 -0,0 -78.23,0 -78.23,0 0,0 6.18,-27.92 6.18,-27.92 0,0 26.43,-119.37 26.43,-119.37zM225.41,56.69c0,0 -14.44,65.12 -14.44,65.12 0,-0 54.19,0 54.19,0 -0,-0 14.39,-65.12 14.39,-65.12zM179.85,202.38c0.21,-0.01 0.43,0 0.64,0 2.52,0 4.73,0.44 6.5,1.28 1.89,0.89 3.25,2.2 4,3.94 0.73,1.69 0.92,3.6 0.53,5.7 0,0 -0.16,0.8 -0.16,0.8 0,-0 -6.24,0 -6.24,0 -0,-0 0.05,-0.75 0.05,-0.75 0.16,-1.47 -0.02,-2.62 -0.59,-3.41 -0.07,-0.1 -0.18,-0.23 -0.27,-0.32 -0.14,-0.14 -0.35,-0.31 -0.53,-0.43 -0.87,-0.55 -2.24,-0.85 -4,-0.85 -2.34,0 -4.08,0.41 -5.28,1.22 -1.16,0.8 -1.89,1.7 -2.13,2.77 -0.24,1.09 0.15,1.66 0.43,1.97 0.01,0.01 0.04,0.05 0.05,0.05 0.35,0.29 1.55,0.98 5.28,1.87 3.38,0.82 5.61,1.55 6.88,2.18 1.91,0.97 3.24,2.23 3.94,3.78 0.7,1.53 0.85,3.33 0.43,5.28 -0.43,1.89 -1.39,3.64 -2.82,5.28 -1.42,1.64 -3.22,2.93 -5.38,3.84 -2.15,0.89 -4.5,1.38 -6.93,1.38 -3.07,-0 -5.53,-0.46 -7.46,-1.38 -2.01,-0.95 -3.46,-2.46 -4.32,-4.42 -0.82,-1.91 -0.99,-4.08 -0.53,-6.45 0,-0 0.16,-0.75 0.16,-0.75h6.13l-0.05,0.75c-0.15,1.42 -0,2.56 0.37,3.41 0.36,0.82 1.04,1.5 2.13,2.03 1.16,0.56 2.61,0.85 4.26,0.85 1.48,-0 2.84,-0.25 4.05,-0.69 1.19,-0.43 2.14,-0.99 2.82,-1.71 0.67,-0.72 1.05,-1.47 1.22,-2.29 0.17,-0.73 0.13,-1.35 -0.16,-1.86 -0.32,-0.55 -0.97,-1.03 -1.97,-1.44 0,-0 -5.22,-1.54 -5.22,-1.54 -2.92,-0.73 -4.88,-1.43 -6.02,-2.13 -1.55,-0.92 -2.67,-2.1 -3.25,-3.52 -0.58,-1.4 -0.64,-2.95 -0.27,-4.64 0.39,-1.81 1.26,-3.53 2.61,-5.06 1.36,-1.55 3.13,-2.77 5.22,-3.57 1.85,-0.7 3.81,-1.1 5.86,-1.17zM235.8,202.48c0.34,-0.03 0.65,0 1.01,0 0,0 3.84,0.43 3.84,0.43l1.28,0.11c0,0 -1.87,4.74 -1.87,4.74l-0.37,0.75c0,-0 -2.93,-0.27 -2.93,-0.27 -0.87,0 -1.5,0.13 -1.92,0.43 -0.03,0.02 -0.08,0.09 -0.11,0.11 -0.06,0.05 -0.15,0.13 -0.21,0.21 -0.26,0.34 -0.57,0.94 -0.8,2.03 -0,0 -0.11,0.46 -0.21,0.85 1.35,0 4.58,0 4.58,0 0,0 -1.17,5.28 -1.17,5.28 0,-0 -3.35,0 -4.48,0 -0.34,1.53 -4.53,20.3 -4.53,20.3 -0,-0 -6.18,0 -6.18,0 -0,-0 4.02,-18.03 4.53,-20.3 -1.04,-0 -3.57,0 -3.57,0 0,-0 1.17,-5.28 1.17,-5.28 0,0 2.54,0 3.52,0 0.17,-0.73 0.43,-1.65 0.43,-1.65 0.38,-1.71 0.77,-2.93 1.28,-3.78 0.7,-1.18 1.69,-2.16 2.93,-2.88 1.03,-0.6 2.32,-0.95 3.78,-1.07zM250.56,202.75c-0,-0 -1.62,7.27 -2.03,9.11 1.19,0 4,0 4,0 0,0 -1.17,5.28 -1.17,5.28 -0,-0 -2.94,0 -4,0 -0.32,1.47 -2.88,12.84 -2.88,12.84 0,-0 -0.21,1.37 -0.21,1.76 0,0.01 -0,0.04 0,0.05 0,0 -0,0.05 0,0.05 0,0 0.05,-0 0.05,0 0,-0 0.64,0.05 0.64,0.05l2.93,-0.21 -0.32,4.74c0,0 0.05,0.85 0.05,0.85 -0,-0 -4.21,0.48 -4.21,0.48 -1.67,-0 -2.9,-0.27 -3.78,-0.85 -0.94,-0.61 -1.49,-1.43 -1.71,-2.45 -0.03,-0.19 -0.11,-0.46 -0.11,-0.85 0,-0.77 0.14,-2.07 0.64,-4.32 0,0 2.24,-10.04 2.72,-12.15 -0.8,-0 -2.93,0 -2.93,0 0,-0 1.17,-5.28 1.17,-5.28 -0,0 2.08,0 2.93,0 0.27,-1.23 1.23,-5.44 1.23,-5.44 0,0 4.96,-2.61 4.96,-2.61 -0,0 2.03,-1.06 2.03,-1.06zM54.2,202.96h23.98l-1.33,5.97c0,0 -16,0 -17.53,0 -0.27,1.21 -1.37,6.11 -1.76,7.89L72.74,216.82L71.41,222.78L56.22,222.78c-0.32,1.48 -3.25,14.65 -3.25,14.65 0,-0 -6.45,0 -6.45,0 0,-0 7.67,-34.48 7.67,-34.48zM86.33,211.38c0.24,-0.03 0.5,0 0.75,0 1.53,0 2.95,0.47 4.32,1.44 0,0 0.85,0.59 0.85,0.59l-3.3,5.44c0,-0 -0.91,-0.64 -0.91,-0.64 -0.67,-0.43 -1.38,-0.64 -2.13,-0.64 -0.65,0 -1.25,0.23 -1.86,0.64 -0.65,0.43 -1.19,0.99 -1.6,1.76 -0.72,1.31 -1.24,2.79 -1.6,4.37 0,0 -2.88,13.11 -2.88,13.11 0,-0 -6.18,0 -6.18,0 0,-0 5.7,-25.58 5.7,-25.58 0,0 5.75,0 5.75,0 0,0 -0.2,0.78 -0.27,1.07 0.27,-0.2 0.56,-0.49 0.8,-0.64 0.83,-0.49 1.7,-0.8 2.56,-0.91zM104.66,211.38c0.37,-0.03 0.74,0 1.12,0 3.48,0 6.11,1.22 7.83,3.62 1.07,1.55 1.65,3.47 1.65,5.76 0,1.26 -0.16,2.62 -0.48,4.1l-0.48,1.87c0,-0 -15.63,0 -17.37,0 -0.03,0.36 -0.05,0.74 -0.05,1.07 0,1.33 0.27,2.38 0.85,3.14 0.28,0.38 0.6,0.71 0.96,0.96 0.69,0.45 1.57,0.69 2.61,0.69 1.26,-0 2.37,-0.35 3.41,-1.01 0.99,-0.63 1.93,-1.64 2.77,-3.04 0,-0 6.61,0 6.61,0 0,-0 -0.59,1.28 -0.59,1.28 -1.26,2.56 -3.02,4.55 -5.22,5.97 -2.2,1.42 -4.83,2.18 -7.73,2.18 -3.77,-0 -6.57,-1.22 -8.31,-3.62 -1.72,-2.35 -2.09,-5.61 -1.17,-9.7 0.92,-4.16 2.76,-7.49 5.44,-9.8 2.4,-2.08 5.12,-3.23 8.15,-3.46zM132.42,211.38c0.37,-0.03 0.74,0 1.12,0 3.48,0 6.11,1.22 7.83,3.62 1.07,1.55 1.65,3.47 1.65,5.76 0,1.24 -0.15,2.58 -0.48,4.05 0,0 -0.48,1.92 -0.48,1.92 0,-0 -15.63,0 -17.37,0 -0.02,0.24 -0.04,0.45 -0.05,0.69 -0.01,0.09 0.01,0.23 0,0.32 -0,0.02 0,0.04 0,0.05 0,0.26 0.04,0.51 0.05,0.75 0.09,0.97 0.34,1.78 0.8,2.4 0.09,0.12 0.17,0.27 0.27,0.37 0.78,0.84 1.89,1.28 3.3,1.28 1.26,-0 2.39,-0.35 3.41,-1.01 0.99,-0.63 1.94,-1.64 2.77,-3.04 0,-0 6.66,0 6.66,0 -0,-0 -0.64,1.28 -0.64,1.28 -1.26,2.56 -3.02,4.55 -5.22,5.97 -2.2,1.42 -4.83,2.18 -7.73,2.18 -3.77,-0 -6.57,-1.22 -8.31,-3.62 -1.13,-1.53 -1.65,-3.49 -1.65,-5.81 0,-0.36 0.02,-0.74 0.05,-1.12 0.07,-0.89 0.21,-1.78 0.43,-2.77 0.92,-4.14 2.7,-7.49 5.38,-9.8 2.4,-2.08 5.18,-3.23 8.21,-3.46zM208.04,211.38c0.38,-0.03 0.73,0 1.12,0 3.55,0 6.27,1.2 8.05,3.57 1.76,2.37 2.18,5.57 1.28,9.59 -0.7,3.14 -1.71,5.67 -3.09,7.51 -1.38,1.84 -3.14,3.35 -5.22,4.37 -2.06,1.02 -4.25,1.54 -6.45,1.54 -3.62,-0 -6.31,-1.24 -8.04,-3.62 -1.13,-1.52 -1.71,-3.47 -1.71,-5.81 0,-1.26 0.14,-2.6 0.48,-4.1 1.02,-4.57 3.11,-8.05 6.18,-10.29 2.25,-1.63 4.74,-2.56 7.41,-2.77zM301.67,211.38c0.45,-0.03 0.87,0 1.33,0 2.15,0 3.84,0.22 5.12,0.75 1.36,0.55 2.33,1.32 2.88,2.24 0.53,0.87 0.8,1.94 0.8,3.25 0,0 -0.64,3.89 -0.64,3.89 0,0 -1.17,5.28 -1.17,5.28 -1.01,4.5 -1.23,6.19 -1.28,6.82 -0.05,0.85 0.03,1.68 0.27,2.45 0,-0 0.43,1.38 0.43,1.38 0,-0 -6.29,0 -6.29,0 -0,-0 -0.27,-0.8 -0.27,-0.8 -0.1,-0.38 -0.07,-0.85 -0.11,-1.28 -1.19,0.73 -2.39,1.38 -3.46,1.76 -1.59,0.55 -3.23,0.85 -4.9,0.85 -2.9,-0 -5.05,-0.75 -6.34,-2.24 -0.99,-1.09 -1.44,-2.43 -1.44,-3.94 -0,-0.58 0.08,-1.18 0.21,-1.81 0.29,-1.3 0.82,-2.5 1.65,-3.57 0.82,-1.06 1.79,-1.93 2.88,-2.56 1.06,-0.63 2.24,-1.08 3.46,-1.38 -0,0 3.78,-0.64 3.78,-0.64 2.92,-0.34 5.09,-0.76 6.66,-1.22 0.03,-0.17 0.11,-0.37 0.11,-0.37 0.25,-1.1 0.22,-1.92 -0.05,-2.35 -0.02,-0.03 -0.09,-0.08 -0.11,-0.11 -0.06,-0.06 -0.15,-0.16 -0.21,-0.21 -0.64,-0.51 -1.74,-0.75 -3.2,-0.75 -1.65,0 -2.88,0.27 -3.73,0.8 -0.84,0.53 -1.61,1.5 -2.29,2.88 -0,-0 -6.45,0 -6.45,0 0,-0 0.59,-1.28 0.59,-1.28 0.77,-1.77 1.68,-3.24 2.82,-4.37 1.14,-1.13 2.69,-2 4.48,-2.61 1.37,-0.45 2.87,-0.75 4.48,-0.85zM328.68,211.38c0.24,-0.03 0.5,0 0.75,0 1.55,0 3.01,0.47 4.37,1.44 0,0 0.8,0.59 0.8,0.59 0,0 -3.3,5.44 -3.3,5.44 0,-0 -0.91,-0.64 -0.91,-0.64 -0.67,-0.43 -1.34,-0.64 -2.08,-0.64 -0.65,0 -1.29,0.23 -1.92,0.64 -0.65,0.43 -1.12,0.99 -1.54,1.76 -0.7,1.31 -1.24,2.79 -1.6,4.37 -0,0 -2.93,13.11 -2.93,13.11 0,-0 -6.18,0 -6.18,0 0,-0 5.7,-25.58 5.7,-25.58 -0,0 5.76,0 5.76,0 0,0 -0.14,0.78 -0.21,1.07 0.27,-0.2 0.54,-0.49 0.8,-0.64 0.81,-0.49 1.65,-0.8 2.5,-0.91zM346.96,211.38c0.37,-0.03 0.74,0 1.12,0 3.48,0 6.13,1.22 7.83,3.62 1.09,1.55 1.65,3.47 1.65,5.76 -0,1.26 -0.21,2.62 -0.53,4.1l-0.43,1.87c-0,-0 -15.65,0 -17.37,0 -0.03,0.36 -0.11,0.74 -0.11,1.07 0,1.33 0.29,2.38 0.85,3.14 0.09,0.12 0.22,0.27 0.32,0.37 0.06,0.06 0.15,0.16 0.21,0.21 0.76,0.69 1.8,1.07 3.09,1.07 1.26,-0 2.37,-0.35 3.41,-1.01 0.99,-0.63 1.92,-1.64 2.77,-3.04 -0,-0 6.66,0 6.66,0 0,-0 -0.64,1.28 -0.64,1.28 -1.26,2.56 -3.04,4.55 -5.22,5.97 -2.22,1.42 -4.81,2.18 -7.73,2.18 -3.77,-0 -6.52,-1.22 -8.26,-3.62 -1.72,-2.35 -2.13,-5.61 -1.23,-9.7 0.92,-4.16 2.71,-7.49 5.38,-9.8 2.41,-2.08 5.18,-3.23 8.21,-3.46zM253.65,211.86c0,0 6.34,0 6.34,0 0,0 0.78,15.18 0.8,15.4 0.26,-0.54 0.46,-1 0.48,-1.06 0,0 6.98,-14.34 6.98,-14.34 0,0 5.81,0 5.81,0 -0,0 0.53,15 0.53,15.08 0.17,-0.31 7.94,-15.08 7.94,-15.08 -0,0 6.29,-0 6.29,0 -0,0 -13.85,25.58 -13.85,25.58 0,-0 -5.7,0 -5.7,0 0,-0 -0.55,-13.87 -0.59,-14.65 -2.35,4.83 -7.14,14.65 -7.14,14.65 0,-0 -5.86,0 -5.86,0 0,-0 -2.03,-25.58 -2.03,-25.58zM104.77,216.71c-1.47,0.06 -2.8,0.59 -4.05,1.6 -0.99,0.78 -1.65,1.86 -2.18,3.04 0,0 10.5,0 10.5,0 0.02,-0.19 0.05,-0.42 0.05,-0.59 -0,-0.97 -0.17,-1.73 -0.48,-2.24 -0.75,-1.23 -1.86,-1.81 -3.52,-1.81 -0.1,0 -0.22,-0 -0.32,0zM132.53,216.71c-1.47,0.06 -2.8,0.59 -4.05,1.6 -0.99,0.78 -1.64,1.86 -2.19,3.04 0,0 10.5,0 10.5,0 0.02,-0.19 0.05,-0.42 0.05,-0.59 -0,-0.97 -0.16,-1.73 -0.48,-2.24 -0.15,-0.25 -0.35,-0.5 -0.53,-0.69 -0.71,-0.74 -1.69,-1.12 -2.98,-1.12 -0.1,0 -0.22,-0 -0.32,0zM347.28,216.71c-1.51,0.05 -2.92,0.56 -4.21,1.6 -0.97,0.78 -1.64,1.86 -2.19,3.04 0,0 10.45,0 10.45,0 0.02,-0.19 0.05,-0.42 0.05,-0.59 -0,-0.97 -0.15,-1.73 -0.48,-2.24 -0.73,-1.21 -1.86,-1.8 -3.52,-1.81 -0.05,0 -0.06,-0 -0.11,0zM207.66,216.82c-1.41,0.17 -2.72,0.81 -3.94,1.92 -1.47,1.33 -2.53,3.42 -3.14,6.18 -0.26,1.16 -0.37,2.15 -0.37,3.04 0,1.21 0.23,2.16 0.69,2.88 0.12,0.18 0.29,0.38 0.43,0.53 0.76,0.8 1.82,1.23 3.14,1.23 1.72,-0 3.24,-0.64 4.69,-1.97 1.47,-1.35 2.51,-3.46 3.14,-6.29 0.58,-2.59 0.5,-4.53 -0.32,-5.76 -0.78,-1.19 -1.93,-1.76 -3.52,-1.76 -0.27,0 -0.54,-0.03 -0.8,0zM303.96,226.14c-1.45,0.39 -3.07,0.72 -5.22,1.01 -1.6,0.24 -2.75,0.49 -3.41,0.75 -0.58,0.24 -1.05,0.57 -1.44,1.01 -0.38,0.43 -0.63,0.87 -0.75,1.38 -0.03,0.2 -0.05,0.42 -0.05,0.59 0,0.01 -0,0.04 0,0.05 0,0.04 -0,0.12 0,0.16 0.01,0.08 0.03,0.19 0.05,0.27 0.01,0.02 0.04,0.08 0.05,0.11 0.02,0.05 0.03,0.11 0.05,0.16 0.02,0.04 0.08,0.12 0.11,0.16 0.04,0.06 0.11,0.16 0.16,0.21 0.43,0.48 1.28,0.69 2.51,0.69 1.35,0 2.64,-0.25 3.84,-0.85 1.18,-0.58 2.13,-1.45 2.82,-2.45 0.51,-0.72 0.92,-1.82 1.28,-3.25z\" />\n    <path\n        android:fillColor=\"#bd0000\"\n        android:pathData=\"m661.85,357.65c0,0 4.6,-19.47 4.6,-19.47 1.93,-8.68 6.74,-14.63 11.05,-14.63 3.1,0 3.96,2.27 3.8,5.24 -0.09,1.53 -0.43,3.26 -0.78,4.96 0,0 -5.7,23.91 -5.7,23.91 0,0 12.28,0 12.28,0 0,0 4.6,-19.56 4.6,-19.56 2.11,-8.95 6.65,-14.55 10.88,-14.55 2.92,0 4.13,2.08 3.99,5.05 -0.09,1.72 -0.44,3.62 -0.89,5.34 0,0 -5.52,23.72 -5.52,23.72 0,0 12.36,0 12.36,0 0,0 5.95,-25.25 5.95,-25.25 0.46,-2.27 0.99,-5.8 1.07,-7.61 0.38,-7.5 -3.29,-11.48 -9.91,-11.48 -5.66,0 -11.17,2.56 -15.35,7.95 -0.15,-3.89 -2.93,-7.95 -9.82,-7.95 -5.58,0 -10.9,2.52 -15.16,8.24 0,0 -0.17,0 -0.17,0 0,0 1.14,-6.53 1.14,-6.53 0,0 -10.95,0 -10.95,0 -0.72,3.65 -1.59,8.07 -2.92,13.22 0,0 -6.85,29.42 -6.85,29.42 0,0 12.28,0 12.28,0zM618.97,357.65c14.84,0 26.28,-11.24 27.08,-26.53 0.49,-10.13 -5.81,-17.8 -17.46,-17.8 -15.38,0 -26.41,12.45 -27.18,27.49 -0.53,10.95 6.53,16.85 17.56,16.85zM620.96,347.42c-4.33,0 -6.72,-2.76 -6.46,-6.89 0.34,-6.87 4.59,-16.98 11.9,-16.98 5.05,0 6.6,3.87 6.39,7.67 -0.38,7.5 -4.95,16.2 -11.83,16.2zM589.96,294.56c0,0 -4.79,19.37 -4.79,19.37 -1.74,-0.72 -4.01,-0.61 -5.78,-0.61 -16.34,0 -27.9,13.98 -28.66,29.13 -0.51,10.67 5.18,15.21 12.52,15.21 5.13,0 10.54,-2.27 14.63,-8.13 0,0 0.17,0 0.17,0 0,0 -0.97,8.13 -0.97,8.13 0,0 11.56,0 11.56,0 0.53,-5.12 1.64,-11.2 2.88,-16.76 0,0 11.07,-46.33 11.07,-46.33 0,0 -12.62,0 -12.62,0zM580,336.2c-2,8.41 -6.7,11.22 -10.42,11.22 -3.7,0 -5.76,-2.57 -5.51,-7.16 0.43,-8.49 6.26,-16.71 13.85,-16.71 2.13,0 3.96,0.32 4.96,0.8 0,0 -2.88,11.85 -2.88,11.85zM539.42,346.14c-3.53,1.72 -7.55,1.28 -12.23,1.28 -3.72,0 -6.57,-0.65 -8.13,-1.91 -0.82,-1.38 -1.18,-3.53 -1.11,-4.91 17.29,0.46 28.17,-3.53 28.73,-14.44 0.41,-8.24 -5.61,-12.84 -14.36,-12.84 -15.64,0 -25.87,13.78 -26.53,27.04 -0.56,11.58 5.44,17.29 17.8,17.29 4.77,0 11.08,-0.55 16.25,-2.1 0,0 -0.43,-9.41 -0.43,-9.41zM534.76,326.15c-0.2,4.06 -5.22,4.3 -15.11,4.21 1.09,-3.56 4.69,-6.82 10.61,-6.82 2.92,0 4.6,1.11 4.5,2.61zM494.21,346.14c-3.53,1.72 -7.55,1.28 -12.24,1.28 -3.7,0 -6.57,-0.65 -8.13,-1.91 -0.82,-1.38 -1.16,-3.53 -1.09,-4.91 17.27,0.46 28.17,-3.53 28.72,-14.44 0.41,-8.24 -5.61,-12.84 -14.36,-12.84 -15.62,0 -25.85,13.78 -26.52,27.04 -0.58,11.58 5.44,17.29 17.8,17.29 4.76,0 11.08,-0.55 16.23,-2.1 0,0 -0.41,-9.41 -0.41,-9.41zM489.54,326.15c-0.2,4.06 -5.22,4.3 -15.09,4.21 1.07,-3.56 4.69,-6.82 10.61,-6.82 2.92,0 4.59,1.11 4.48,2.61zM437.63,357.65c0,0 3.82,-16.03 3.82,-16.03 2.01,-8.68 6.26,-16.37 14.29,-16.37 0.72,0 1.42,0.36 1.94,0.44 0,0 3.1,-12.29 3.1,-12.29 -0.72,0 -1.5,-0.09 -2.39,-0.09 -5.92,0 -10.88,4.16 -14.19,10.13 0,0 -0.34,0 -0.34,0 0.49,-2.92 0.92,-5.68 1.24,-8.42 0,0 -10.96,0 -10.96,0 -0.61,3.55 -1.6,10.49 -3.09,16.75 0,0 -6.24,25.89 -6.24,25.89 0,0 12.81,0 12.81,0zM380.58,357.65c0,0 12.72,0 12.72,0 0,0 5.73,-23.87 5.73,-23.87 0,0 20.65,0 20.65,0 0,0 2.66,-10.23 2.66,-10.23 0,0 -20.75,0 -20.75,0 0,0 3.44,-15.35 3.44,-15.35 0,0 22.08,0 22.08,0 0,0 2.66,-11.94 2.66,-11.94 0,0 -34.87,0 -34.87,0 0,0 -14.32,61.39 -14.32,61.39zM325.84,357.65c0,0 4.5,-19.2 4.5,-19.2 2.34,-9.77 7.37,-13.2 11.51,-13.2 3.27,0 4.23,1.4 4.08,3.43 -0.09,1.64 -0.34,3.36 -0.68,4.89 0,0 -5.73,24.08 -5.73,24.08 0,0 12.72,0 12.72,0 0,0 6.04,-25.25 6.04,-25.25 0.46,-2.18 0.97,-5.44 1.07,-7.42 0.38,-7.69 -3.46,-10.49 -10.52,-10.49 -5.66,0 -11.17,2.63 -15.52,8.32 0,0 -0.17,0 -0.17,0 0,0 1.16,-7.79 1.16,-7.79 0,0 -11.22,0 -11.22,0 -0.73,3.65 -1.67,8.07 -3,13.22 0,0 -6.96,29.42 -6.96,29.42 0,0 12.72,0 12.72,0zM301.46,357.65c0,0 10.32,-42.63 10.32,-42.63 0,0 -12.64,0 -12.64,0 0,0 -10.38,42.63 -10.38,42.63 0,0 12.7,0 12.7,0zM307.37,309.9c4.33,0 8.19,-3.58 8.42,-9.72 0.2,-4.16 -2.49,-5.63 -6.46,-5.63 -4.14,0 -7.93,2.69 -8.15,6.72 -0.2,4.06 2.49,8.63 6.19,8.63zM233.42,355.64c2.46,1.91 7.61,1.93 12.98,2.01 11.48,0.09 20.14,-4.93 20.65,-14.14 0.29,-6.14 -4.47,-9.77 -9.12,-12.21 -3.36,-1.62 -5.05,-3.17 -4.96,-4.98 0.12,-2.44 2.4,-2.78 5.76,-2.78 3.79,0 6.82,0.46 8.56,0.8 0,0 3.44,-9.24 3.44,-9.24 -1.96,-1.18 -5.88,-1.79 -10.91,-1.79 -11.14,0 -19.29,5.88 -19.75,14.82 -0.27,5.52 3.7,9.24 8.51,11.77 3.89,2 5.22,3.53 5.12,5.7 -0.12,2.18 -2.06,1.82 -5.59,1.82 -4.14,0 -8.73,-0.55 -11.15,-0.92 0,0 -3.53,9.14 -3.53,9.14zM225.08,357.65c0.1,-5.41 1.4,-13.9 2.75,-19.47 0,0 5.47,-23.16 5.47,-23.16 -3.48,-1.18 -8.9,-1.71 -14.12,-1.71 -21.18,0 -31.68,15.69 -32.42,30.39 -0.46,9.23 4.54,13.95 12.31,13.95 5.03,0 10.71,-2.44 15.13,-9.77 0,0 0.19,0 0.19,0 -0.34,3.53 -0.75,6.96 -0.97,9.77 0,0 11.66,0 11.66,0zM216.33,333.3c-2.49,10.85 -7.57,14.12 -11.36,14.12 -3.53,0 -5.06,-2.51 -4.86,-6.16 0.41,-8.24 6.92,-17.72 15.14,-17.72 1.33,0 2.37,-0.24 3.34,-0.48 0,0 -2.27,10.23 -2.27,10.23zM159.26,346.14c-3.53,1.72 -7.55,1.28 -12.23,1.28 -3.72,0 -6.57,-0.65 -8.13,-1.91 -0.82,-1.38 -1.18,-3.53 -1.11,-4.91 17.29,0.46 28.17,-3.53 28.73,-14.44 0.41,-8.24 -5.61,-12.84 -14.36,-12.84 -15.64,0 -25.87,13.78 -26.53,27.04 -0.56,11.58 5.44,17.29 17.8,17.29 4.77,0 11.08,-0.55 16.25,-2.1 0,0 -0.43,-9.41 -0.43,-9.41zM154.6,326.15c-0.2,4.06 -5.22,4.3 -15.11,4.21 1.09,-3.56 4.69,-6.82 10.61,-6.82 2.92,0 4.6,1.11 4.5,2.61zM114.05,346.14c-3.53,1.72 -7.55,1.28 -12.24,1.28 -3.7,0 -6.57,-0.65 -8.13,-1.91 -0.82,-1.38 -1.16,-3.53 -1.09,-4.91 17.27,0.46 28.17,-3.53 28.72,-14.44 0.41,-8.24 -5.61,-12.84 -14.36,-12.84 -15.62,0 -25.85,13.78 -26.52,27.04 -0.58,11.58 5.42,17.29 17.8,17.29 4.76,0 11.07,-0.55 16.23,-2.1 0,0 -0.41,-9.41 -0.41,-9.41zM109.38,326.15c-0.2,4.06 -5.22,4.3 -15.09,4.21 1.07,-3.56 4.69,-6.82 10.61,-6.82 2.92,0 4.59,1.11 4.48,2.61zM57.47,357.65c0,0 3.82,-16.03 3.82,-16.03 2.01,-8.68 6.26,-16.37 14.29,-16.37 0.72,0 1.42,0.36 1.94,0.44 0,0 3.1,-12.29 3.1,-12.29 -0.72,0 -1.5,-0.09 -2.39,-0.09 -5.92,0 -10.88,4.16 -14.19,10.13 0,0 -0.34,0 -0.34,0 0.49,-2.92 0.92,-5.68 1.24,-8.42 0,0 -10.96,0 -10.96,0 -0.63,3.55 -1.6,10.49 -3.09,16.75 0,0 -6.24,25.89 -6.24,25.89 0,0 12.81,0 12.81,0zM0.42,357.65c0,0 12.72,0 12.72,0 0,0 5.71,-23.87 5.71,-23.87 0,0 20.67,0 20.67,0 0,0 2.66,-10.23 2.66,-10.23 0,0 -20.75,0 -20.75,0 0,0 3.44,-15.35 3.44,-15.35 0,0 22.08,0 22.08,0 0,0 2.66,-11.94 2.66,-11.94 0,0 -34.87,0 -34.87,0 0,0 -14.32,61.39 -14.32,61.39z\"\n        android:strokeWidth=\"1.70522\" />\n</vector>\n"
  },
  {
    "path": "feature_about/src/main/res/drawable/image_48px.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"48dp\"\n    android:height=\"48dp\"\n    android:tint=\"?attr/colorControlNormal\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M180,840Q156,840 138,822Q120,804 120,780L120,180Q120,156 138,138Q156,120 180,120L780,120Q804,120 822,138Q840,156 840,180L840,780Q840,804 822,822Q804,840 780,840L180,840ZM180,780L780,780Q780,780 780,780Q780,780 780,780L780,180Q780,180 780,180Q780,180 780,180L180,180Q180,180 180,180Q180,180 180,180L180,780Q180,780 180,780Q180,780 180,780ZM236,683L725,683L578,487L446,658L353,531L236,683ZM180,780Q180,780 180,780Q180,780 180,780L180,180Q180,180 180,180Q180,180 180,180L180,180Q180,180 180,180Q180,180 180,180L180,780Q180,780 180,780Q180,780 180,780Z\" />\n</vector>\n"
  },
  {
    "path": "feature_favourites/.gitignore",
    "content": "/build"
  },
  {
    "path": "feature_favourites/build.gradle.kts",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_favourites\n *     build.gradle.kts Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     build.gradle.kts Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_favourites.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_favourites 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 *     freeDictionaryApp/freeDictionaryApp.feature_favourites 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport org.jetbrains.kotlin.gradle.dsl.JvmTarget\n\nplugins {\n    alias(libs.plugins.android.library)\n    alias(libs.plugins.google.ksp)\n    alias(libs.plugins.jetbrains.kotlin.compose.plugin)\n    alias(libs.plugins.hilt)\n}\n\nandroid {\n    namespace = \"io.github.yamin8000.owl.feature_favourites\"\n    compileSdk = 36\n\n    defaultConfig {\n        minSdk = 23\n    }\n\n    compileOptions {\n        sourceCompatibility = JavaVersion.VERSION_17\n        targetCompatibility = JavaVersion.VERSION_17\n    }\n\n    kotlin {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_17\n        }\n    }\n\n    buildFeatures {\n        compose = true\n    }\n}\n\ncomposeCompiler {\n    reportsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n    metricsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n}\n\ndependencies {\n    implementation(project(\":common\"))\n    //hilt\n    implementation(libs.hilt.android)\n    ksp(libs.hilt.android.compiler)\n    implementation(libs.hilt.lifecycle.compose)\n}"
  },
  {
    "path": "feature_favourites/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~     freeDictionaryApp/freeDictionaryApp.feature_favourites.main\n  ~     AndroidManifest.xml Copyrighted by Yamin Siahmargooei at 2025/9/8\n  ~     AndroidManifest.xml Last modified at 2025/3/16\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.feature_favourites.main.\n  ~     Copyright (C) 2025  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.feature_favourites.main 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  ~     freeDictionaryApp/freeDictionaryApp.feature_favourites.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<manifest />"
  },
  {
    "path": "feature_favourites/src/main/java/io/github/yamin8000/owl/feature_favourites/FavouriteEvent.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_favourites.main\n *     FavouriteEvent.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     FavouriteEvent.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_favourites.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_favourites.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_favourites.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_favourites\n\nsealed interface FavouriteEvent {\n    data object RemoveAll : FavouriteEvent\n    data class Remove(val favourite: String) : FavouriteEvent\n}"
  },
  {
    "path": "feature_favourites/src/main/java/io/github/yamin8000/owl/feature_favourites/FavouriteState.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_favourites.main\n *     FavouriteState.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     FavouriteState.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_favourites.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_favourites.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_favourites.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_favourites\n\ndata class FavouriteState(\n    val favourites: List<String> = listOf()\n)\n"
  },
  {
    "path": "feature_favourites/src/main/java/io/github/yamin8000/owl/feature_favourites/Favourites.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_favourites.main\n *     Favourites.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     Favourites.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_favourites.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_favourites.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_favourites.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_favourites\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport io.github.yamin8000.owl.common.ui.components.crud.CrudContent\nimport io.github.yamin8000.owl.strings.R\nimport kotlinx.collections.immutable.toImmutableList\n\n@Composable\nfun FavouritesScreen(\n    onFavouritesItemClick: (String) -> Unit,\n    onBackClick: () -> Unit,\n    modifier: Modifier = Modifier,\n    vm: FavouritesViewModel = hiltViewModel(),\n) {\n    val state = vm.state.collectAsStateWithLifecycle().value\n    CrudContent(\n        modifier = modifier,\n        title = stringResource(R.string.favourites),\n        items = state.favourites.toImmutableList(),\n        onBackClick = onBackClick,\n        onRemoveAll = { vm.onEvent(FavouriteEvent.RemoveAll) },\n        onRemoveSingle = { vm.onEvent(FavouriteEvent.Remove(it)) },\n        onItemClick = onFavouritesItemClick\n    )\n}"
  },
  {
    "path": "feature_favourites/src/main/java/io/github/yamin8000/owl/feature_favourites/FavouritesViewModel.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_favourites.main\n *     FavouritesViewModel.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     FavouritesViewModel.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_favourites.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_favourites.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_favourites.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_favourites\n\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport io.github.yamin8000.owl.datastore.domain.usecase.favourites.FavouriteUseCases\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.asStateFlow\nimport kotlinx.coroutines.flow.update\nimport kotlinx.coroutines.launch\nimport javax.inject.Inject\n\n@HiltViewModel\nclass FavouritesViewModel @Inject constructor(\n    private val useCases: FavouriteUseCases\n) : ViewModel() {\n    private val scope = viewModelScope\n\n    private var _state = MutableStateFlow(FavouriteState())\n    val state = _state.asStateFlow()\n\n    init {\n        scope.launch {\n            useCases.getAllFavourite().collect { favourites ->\n                _state.update { it.copy(favourites = favourites) }\n            }\n        }\n    }\n\n    fun onEvent(event: FavouriteEvent) {\n        when (event) {\n            is FavouriteEvent.Remove -> scope.launch { useCases.removeFavourite(event.favourite) }\n            FavouriteEvent.RemoveAll -> scope.launch { useCases.removeAllFavourite() }\n        }\n    }\n}"
  },
  {
    "path": "feature_history/.gitignore",
    "content": "/build"
  },
  {
    "path": "feature_history/build.gradle.kts",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_history\n *     build.gradle.kts Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     build.gradle.kts Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_history.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_history 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 *     freeDictionaryApp/freeDictionaryApp.feature_history 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport org.jetbrains.kotlin.gradle.dsl.JvmTarget\n\nplugins {\n    alias(libs.plugins.android.library)\n    alias(libs.plugins.google.ksp)\n    alias(libs.plugins.jetbrains.kotlin.compose.plugin)\n    alias(libs.plugins.hilt)\n}\n\nandroid {\n    namespace = \"io.github.yamin8000.owl.feature_history\"\n    compileSdk = 36\n\n    defaultConfig {\n        minSdk = 23\n    }\n\n    compileOptions {\n        sourceCompatibility = JavaVersion.VERSION_17\n        targetCompatibility = JavaVersion.VERSION_17\n    }\n\n    kotlin {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_17\n        }\n    }\n\n    buildFeatures {\n        compose = true\n    }\n}\n\ncomposeCompiler {\n    reportsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n    metricsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n}\n\ndependencies {\n    //core\n    implementation(project(\":common\"))\n    //hilt\n    implementation(libs.hilt.android)\n    ksp(libs.hilt.android.compiler)\n    implementation(libs.hilt.lifecycle.compose)\n}"
  },
  {
    "path": "feature_history/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~     freeDictionaryApp/freeDictionaryApp.feature_history.main\n  ~     AndroidManifest.xml Copyrighted by Yamin Siahmargooei at 2025/9/8\n  ~     AndroidManifest.xml Last modified at 2025/3/16\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.feature_history.main.\n  ~     Copyright (C) 2025  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.feature_history.main 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  ~     freeDictionaryApp/freeDictionaryApp.feature_history.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<manifest />"
  },
  {
    "path": "feature_history/src/main/java/io/github/yamin8000/karlancer/feature_history/ui/History.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_history.main\n *     History.kt Copyrighted by Yamin Siahmargooei at 2024/8/24\n *     History.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_history.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_history.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_history.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.karlancer.feature_history.ui\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport io.github.yamin8000.owl.common.ui.components.crud.CrudContent\nimport io.github.yamin8000.owl.strings.R\nimport kotlinx.collections.immutable.toImmutableList\n\n@Composable\nfun HistoryScreen(\n    onHistoryItemClick: (String) -> Unit,\n    onBackClick: () -> Unit,\n    modifier: Modifier = Modifier,\n    vm: HistoryViewModel = hiltViewModel(),\n) {\n    val state = vm.state.collectAsStateWithLifecycle().value\n\n    CrudContent(\n        modifier = modifier,\n        title = stringResource(R.string.search_history),\n        items = state.history.toImmutableList(),\n        onBackClick = onBackClick,\n        onRemoveAll = { vm.onEvent(HistoryEvent.RemoveAll) },\n        onRemoveSingle = { vm.onEvent(HistoryEvent.RemoveHistory(it)) },\n        onItemClick = onHistoryItemClick\n    )\n}"
  },
  {
    "path": "feature_history/src/main/java/io/github/yamin8000/karlancer/feature_history/ui/HistoryEvent.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_history.main\n *     HistoryEvent.kt Copyrighted by Yamin Siahmargooei at 2024/8/24\n *     HistoryEvent.kt Last modified at 2024/8/24\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_history.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_history.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_history.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.karlancer.feature_history.ui\n\nsealed interface HistoryEvent {\n    data class RemoveHistory(val history: String) : HistoryEvent\n    data object RemoveAll : HistoryEvent\n}"
  },
  {
    "path": "feature_history/src/main/java/io/github/yamin8000/karlancer/feature_history/ui/HistoryState.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_history.main\n *     HistoryState.kt Copyrighted by Yamin Siahmargooei at 2024/8/24\n *     HistoryState.kt Last modified at 2024/8/24\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_history.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_history.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_history.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.karlancer.feature_history.ui\n\ndata class HistoryState(\n    val history: List<String> = listOf()\n)\n"
  },
  {
    "path": "feature_history/src/main/java/io/github/yamin8000/karlancer/feature_history/ui/HistoryViewModel.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_history.main\n *     HistoryViewModel.kt Copyrighted by Yamin Siahmargooei at 2024/8/24\n *     HistoryViewModel.kt Last modified at 2024/8/24\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_history.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_history.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_history.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.karlancer.feature_history.ui\n\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport io.github.yamin8000.owl.datastore.domain.usecase.history.HistoryUseCases\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.asStateFlow\nimport kotlinx.coroutines.flow.update\nimport kotlinx.coroutines.launch\nimport javax.inject.Inject\n\n@HiltViewModel\nclass HistoryViewModel @Inject constructor(\n    private val useCases: HistoryUseCases\n) : ViewModel() {\n    private val scope = viewModelScope\n\n    private var _state = MutableStateFlow(HistoryState())\n    val state = _state.asStateFlow()\n\n    init {\n        scope.launch {\n            useCases.getAllHistory().collect { history ->\n                _state.update { it.copy(history = history) }\n            }\n        }\n    }\n\n    fun onEvent(event: HistoryEvent) {\n        when (event) {\n            HistoryEvent.RemoveAll -> scope.launch { useCases.removeAllHistory() }\n            is HistoryEvent.RemoveHistory -> scope.launch { useCases.removeHistory(event.history) }\n        }\n    }\n}"
  },
  {
    "path": "feature_home/.gitignore",
    "content": "/build"
  },
  {
    "path": "feature_home/build.gradle.kts",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home\n *     build.gradle.kts Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     build.gradle.kts Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home 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 *     freeDictionaryApp/freeDictionaryApp.feature_home 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport org.jetbrains.kotlin.gradle.dsl.JvmTarget\n\nplugins {\n    alias(libs.plugins.android.library)\n    alias(libs.plugins.google.ksp)\n    alias(libs.plugins.jetbrains.kotlin.compose.plugin)\n    alias(libs.plugins.hilt)\n}\n\nandroid {\n    namespace = \"io.github.yamin8000.owl.feature_home\"\n    compileSdk = 36\n\n    defaultConfig {\n        minSdk = 23\n    }\n\n    compileOptions {\n        isCoreLibraryDesugaringEnabled = true\n        sourceCompatibility = JavaVersion.VERSION_17\n        targetCompatibility = JavaVersion.VERSION_17\n    }\n\n    kotlin {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_17\n        }\n    }\n\n    buildFeatures {\n        compose = true\n    }\n}\n\ncomposeCompiler {\n    reportsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n    metricsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n}\n\ndependencies {\n    //core\n    coreLibraryDesugaring(libs.desugar.jdk.libs)\n    implementation(project(\":common\"))\n    implementation(project(\":search\"))\n    //hilt\n    implementation(libs.hilt.android)\n    ksp(libs.hilt.android.compiler)\n    implementation(libs.hilt.lifecycle.compose)\n}"
  },
  {
    "path": "feature_home/src/debug/java/io/github/yamin8000/owl/feature_home/ui/Previews.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     Previews.kt Copyrighted by Yamin Siahmargooei at 2025/11/16\n *     Previews.kt Last modified at 2025/11/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.tooling.preview.Preview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.search.domain.model.Definition\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport io.github.yamin8000.owl.search.domain.model.Meaning\nimport kotlinx.collections.immutable.persistentListOf\nimport kotlinx.collections.immutable.toImmutableList\nimport net.datafaker.Faker\nimport kotlin.random.Random\nimport kotlin.random.nextInt\n\n@Preview(showBackground = true)\n@Composable\nprivate fun HomeLoadSuccess() {\n    val faker = Faker()\n    val word = faker.backToTheFuture().character()\n    PreviewTheme {\n        HomeContent(\n            state = HomeState(\n                searchResult = Entry(\n                    word = word,\n                    phonetics = persistentListOf(),\n                    meanings = buildList {\n                        repeat(Random.nextInt(2..3)) {\n                            add(\n                                Meaning(\n                                    partOfSpeech = \"noun\",\n                                    definitions = buildList {\n                                        repeat(Random.nextInt(1..4)) {\n                                            add(\n                                                Definition(\n                                                    definition = faker.backToTheFuture().quote(),\n                                                    example = faker.backToTheFuture().quote(),\n                                                    synonyms = buildList {\n                                                        repeat(Random.nextInt(0..3)) {\n                                                            add(faker.backToTheFuture().character())\n                                                        }\n                                                    },\n                                                    antonyms = persistentListOf(),\n                                                )\n                                            )\n                                        }\n                                    }.toImmutableList(),\n                                    synonyms = persistentListOf(),\n                                    antonyms = persistentListOf()\n                                )\n                            )\n                        }\n                    }.toImmutableList()\n                ),\n                isOnline = true,\n                isSearching = false,\n                searchSuggestions = buildList {\n                    add(word)\n                    repeat(Random.nextInt(1..3)) {\n                        add(faker.backToTheFuture().character())\n                    }\n                }.toImmutableList(),\n                word = word,\n                phonetic = \"/ɪɡˈzæmpəl/\"\n            ),\n            term = word,\n            isWordSelectedFromKeyboardSuggestions = Random.nextBoolean(),\n            onAction = {},\n            onNavigateToAbout = {},\n            onNavigateToSettings = {},\n            onNavigateToFavourites = {},\n            onNavigateToHistory = {}\n        )\n    }\n}"
  },
  {
    "path": "feature_home/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~     freeDictionaryApp/freeDictionaryApp.feature_home.main\n  ~     AndroidManifest.xml Copyrighted by Yamin Siahmargooei at 2025/9/8\n  ~     AndroidManifest.xml Last modified at 2025/3/16\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n  ~     Copyright (C) 2025  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.feature_home.main 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  ~     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<manifest />"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/data/repository/TermSuggesterRepositoryImpl.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     TermSuggesterRepositoryImpl.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     TermSuggesterRepositoryImpl.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.data.repository\n\nimport android.app.Application\nimport android.content.res.Resources.NotFoundException\nimport io.github.yamin8000.owl.feature_home.R\nimport io.github.yamin8000.owl.search.data.datasource.local.dao.DAOs\nimport io.github.yamin8000.owl.feature_home.domain.repository.TermSuggesterRepository\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.launch\nimport kotlin.math.abs\nimport kotlin.math.ceil\nimport kotlin.math.roundToInt\n\nclass TermSuggesterRepositoryImpl(\n    private val dao: DAOs.TermDao,\n    private val app: Application\n) : TermSuggesterRepository {\n    private val defaultNGramSize = 3\n    private val notWordsRegex = Regex(\"\\\\W+\")\n\n    override suspend fun suggestTerms(searchTerm: String): List<String> {\n        items = items.plus(getOldSearchData())\n\n        val term = searchTerm.lowercase().replace(notWordsRegex, \"\")\n        val nGramSize = nGramSizeProvider(term)\n        if (items.contains(term)) return listOf(term)\n        val searchTermGrams = term.windowed(nGramSize)\n        val suggestions = buildSet {\n            searchTermGrams.forEach { gram ->\n                addAll(items.filter { word -> word.contains(gram) })\n            }\n        }\n        return sortSuggestions(suggestions, term).filter { it.isNotBlank() }\n    }\n\n    private val scope = CoroutineScope(Dispatchers.IO)\n    private var items = setOf<String>()\n\n    init {\n        items = getBasic2000Data().toSet()\n        scope.launch { items = items.plus(getOldSearchData()) }\n    }\n\n    private fun getBasic2000Data() = try {\n        app.resources.openRawResource(R.raw.basic2000)\n            .bufferedReader()\n            .use { it.readText() }\n            .split(',')\n            .map { it.replace(notWordsRegex, \"\") }\n    } catch (e: NotFoundException) {\n        listOf()\n    }\n\n    private fun sortSuggestions(\n        suggestions: Set<String>,\n        searchTerm: String\n    ): List<String> {\n        val nGramSize = nGramSizeProvider(searchTerm)\n        return if (suggestions.isNotEmpty() && suggestions.size > 1) {\n            val searchTermGrams = searchTerm.windowed(nGramSize)\n            val rankedSuggestions = getRankedSuggestions(suggestions, nGramSize, searchTermGrams)\n            rankedSuggestions.asSequence()\n                .sortedBy { abs(it.second.length - searchTerm.length) }\n                .sortedByDescending {\n                    it.second.startsWith(searchTerm.take(nGramSize)) ||\n                            it.second.endsWith(searchTerm.takeLast(nGramSize))\n                }\n                .sortedByDescending { it.first }\n                .map { it.second }\n                .toList()\n        } else suggestions.toList()\n    }\n\n    private fun getRankedSuggestions(\n        suggestions: Set<String>,\n        nGramSize: Int,\n        searchTermGrams: List<String>\n    ) = buildList {\n        suggestions.forEach { suggestion ->\n            val rank = suggestion.windowed(nGramSize)\n                .intersect(searchTermGrams.toSet())\n                .size\n            add(rank to suggestion)\n        }\n    }\n\n    private fun nGramSizeProvider(\n        searchTerm: String\n    ) = if (searchTerm.length > defaultNGramSize) {\n        val size = ceil(searchTerm.length.toFloat() / defaultNGramSize).roundToInt()\n        if (size < defaultNGramSize) defaultNGramSize\n        else size\n    } else defaultNGramSize\n\n    private suspend fun getOldSearchData() = dao.all().map { it.word }\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/di/HomeModule.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     HomeModule.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     HomeModule.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.di\n\nimport android.app.Application\nimport dagger.Module\nimport dagger.Provides\nimport dagger.hilt.InstallIn\nimport dagger.hilt.components.SingletonComponent\nimport io.github.yamin8000.owl.feature_home.data.repository.TermSuggesterRepositoryImpl\nimport io.github.yamin8000.owl.feature_home.domain.repository.TermSuggesterRepository\nimport io.github.yamin8000.owl.search.data.datasource.local.AppDatabase\nimport javax.inject.Singleton\n\n@Module\n@InstallIn(SingletonComponent::class)\nobject HomeModule {\n\n    @Provides\n    @Singleton\n    fun providesTermSuggesterRepository(\n        db: AppDatabase,\n        app: Application\n    ): TermSuggesterRepository = TermSuggesterRepositoryImpl(db.termDao(), app)\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/di/HomeUseCases.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     HomeUseCases.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     HomeUseCases.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.di\n\nimport dagger.Module\nimport dagger.Provides\nimport dagger.hilt.InstallIn\nimport dagger.hilt.components.SingletonComponent\nimport io.github.yamin8000.owl.feature_home.domain.usecase.GetRandomWord\nimport io.github.yamin8000.owl.search.domain.repository.local.TermRepository\nimport javax.inject.Singleton\n\n@Module\n@InstallIn(SingletonComponent::class)\nobject HomeUseCases {\n\n    @Provides\n    @Singleton\n    fun providesRandomWordUseCase(\n        repository: TermRepository\n    ): GetRandomWord = GetRandomWord(repository)\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/di/HomeViewModelFactory.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     HomeViewModelFactory.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     HomeViewModelFactory.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.di\n\nimport dagger.assisted.Assisted\nimport dagger.assisted.AssistedFactory\nimport io.github.yamin8000.owl.feature_home.ui.HomeViewModel\n\n@AssistedFactory\ninterface HomeViewModelFactory {\n    fun create(\n        @Assisted(\"intent\") intentSearch: String?,\n        @Assisted(\"navigation\") navigationSearch: String?,\n    ): HomeViewModel\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/domain/repository/TermSuggesterRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     TermSuggesterRepository.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     TermSuggesterRepository.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.domain.repository\n\ninterface TermSuggesterRepository {\n    suspend fun suggestTerms(searchTerm: String): List<String>\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/domain/usecase/GetRandomWord.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     GetRandomWordUseCase.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     GetRandomWordUseCase.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.domain.usecase\n\nimport io.github.yamin8000.owl.search.domain.repository.local.TermRepository\n\nclass GetRandomWord(\n    private val repository: TermRepository\n) {\n    suspend operator fun invoke(): String {\n        return repository.all().shuffled().firstOrNull() ?: \"free\"\n    }\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/Home.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     Home.kt Copyrighted by Yamin Siahmargooei at 2024/8/17\n *     Home.kt Last modified at 2024/7/20\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.rememberScrollState\nimport androidx.compose.material3.Scaffold\nimport androidx.compose.material3.SnackbarHost\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.CompositionLocalProvider\nimport androidx.compose.runtime.LaunchedEffect\nimport androidx.compose.runtime.collectAsState\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.hapticfeedback.HapticFeedbackType\nimport androidx.compose.ui.platform.LocalContext\nimport androidx.compose.ui.platform.LocalFocusManager\nimport androidx.compose.ui.platform.LocalHapticFeedback\nimport androidx.compose.ui.platform.LocalSoftwareKeyboardController\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.lifecycle.Lifecycle\nimport androidx.lifecycle.compose.LocalLifecycleOwner\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport androidx.lifecycle.repeatOnLifecycle\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.components.EmptyList\nimport io.github.yamin8000.owl.common.ui.components.MySnackbar\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.common.util.LocalTTS\nimport io.github.yamin8000.owl.feature_home.ui.components.MainTopBar\nimport io.github.yamin8000.owl.feature_home.ui.components.SearchList\nimport io.github.yamin8000.owl.feature_home.ui.components.bottom_app_bar.MainBottomBar\nimport io.github.yamin8000.owl.feature_home.ui.components.bottom_app_bar.SuggestionsChips\nimport io.github.yamin8000.owl.feature_home.ui.util.ShareUtils.handleShareIntent\nimport io.github.yamin8000.owl.feature_home.ui.util.Utils.ObserverEvent\nimport io.github.yamin8000.owl.feature_home.ui.util.Utils.getErrorText\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport io.github.yamin8000.owl.strings.R\nimport kotlinx.collections.immutable.persistentListOf\nimport kotlin.random.Random\n\n@Preview(showBackground = true)\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        HomeContent(\n            state = HomeState(\n                searchResult = Entry.mock(),\n                isOnline = Random.nextBoolean(),\n                isSearching = Random.nextBoolean(),\n                searchSuggestions = persistentListOf(\"apple\", \"banana\", \"orange\"),\n                word = \"example\",\n                phonetic = \"/ɪɡˈzæmpəl/\"\n            ),\n            term = \"example\",\n            isWordSelectedFromKeyboardSuggestions = Random.nextBoolean(),\n            onAction = {},\n            onNavigateToAbout = {},\n            onNavigateToSettings = {},\n            onNavigateToFavourites = {},\n            onNavigateToHistory = {}\n        )\n    }\n}\n\n@Composable\nfun HomeScreen(\n    onNavigateToAbout: () -> Unit,\n    onNavigateToSettings: () -> Unit,\n    onNavigateToFavourites: () -> Unit,\n    onNavigateToHistory: () -> Unit,\n    modifier: Modifier = Modifier,\n    vm: HomeViewModel = hiltViewModel()\n) {\n    val state = vm.state.collectAsStateWithLifecycle().value\n\n    val owner = LocalLifecycleOwner.current\n    LaunchedEffect(Unit) {\n        owner.repeatOnLifecycle(Lifecycle.State.STARTED) {\n            vm.onAction(HomeAction.UpdateTTS)\n        }\n    }\n\n    val context = LocalContext.current\n    ObserverEvent(vm.shareChannelFlow) { data ->\n        if (data != null) {\n            handleShareIntent(context, data)\n        }\n    }\n\n    ObserverEvent(vm.errorChannelFlow) { error ->\n        state.snackbarHostState.showSnackbar(getErrorText(context, error))\n    }\n\n    CompositionLocalProvider(LocalTTS provides vm.tts) {\n        HomeContent(\n            state = state,\n            term = vm.searchTerm.collectAsState().value,\n            isWordSelectedFromKeyboardSuggestions = vm.isWordSelectedFromKeyboardSuggestions.value,\n            onAction = { action -> vm.onAction(action) },\n            onNavigateToAbout = onNavigateToAbout,\n            onNavigateToSettings = onNavigateToSettings,\n            onNavigateToFavourites = onNavigateToFavourites,\n            onNavigateToHistory = onNavigateToHistory,\n            modifier = modifier\n        )\n    }\n}\n\n@Composable\ninternal fun HomeContent(\n    state: HomeState,\n    term: String,\n    isWordSelectedFromKeyboardSuggestions: Boolean,\n    onAction: (HomeAction) -> Unit,\n    onNavigateToAbout: () -> Unit,\n    onNavigateToSettings: () -> Unit,\n    onNavigateToFavourites: () -> Unit,\n    onNavigateToHistory: () -> Unit,\n    modifier: Modifier = Modifier\n) {\n    val listState = rememberScrollState()\n    if (listState.isScrollInProgress && state.isVibrating) {\n        LocalHapticFeedback.current.performHapticFeedback(HapticFeedbackType.TextHandleMove)\n    }\n\n    Scaffold(\n        modifier = modifier,\n        snackbarHost = {\n            SnackbarHost(state.snackbarHostState) { data ->\n                MySnackbar {\n                    AppText(\n                        text = data.visuals.message,\n                        modifier = Modifier.fillMaxWidth(),\n                        textAlign = TextAlign.Center\n                    )\n                }\n            }\n        },\n        topBar = {\n            MainTopBar(\n                onNavigateToAbout = onNavigateToAbout,\n                onNavigateToSettings = onNavigateToSettings,\n                onNavigateToFavourites = onNavigateToFavourites,\n                onNavigateToHistory = onNavigateToHistory,\n                onRandomClick = { onAction(HomeAction.RandomWord) }\n            )\n        },\n        bottomBar = {\n            val focusManager = LocalFocusManager.current\n            val keyboardManager = LocalSoftwareKeyboardController.current\n            MainBottomBar(\n                searchTerm = term,\n                suggestionsChips = {\n                    SuggestionsChips(\n                        searchTerm = term,\n                        suggestions = state.searchSuggestions,\n                        onSuggestionClick = { onAction(HomeAction.NewSearch(it)) },\n                    )\n                },\n                isSearching = state.isSearching,\n                onSearch = {\n                    onAction(HomeAction.NewSearch())\n                    keyboardManager?.hide()\n                    focusManager.clearFocus()\n                },\n                onCancel = {\n                    onAction(HomeAction.CancelSearch)\n                    keyboardManager?.hide()\n                    focusManager.clearFocus()\n                },\n                onSearchTermChange = {\n                    onAction(HomeAction.OnTermChanged(it))\n                    if (isWordSelectedFromKeyboardSuggestions) {\n                        onAction(HomeAction.NewSearch(it))\n                    }\n                }\n            )\n        },\n        content = { contentPadding ->\n            if (state.searchResult != null) {\n                SearchList(\n                    modifier = Modifier.padding(contentPadding),\n                    meanings = state.searchResult.meanings,\n                    onAddToFavourite = { onAction(HomeAction.OnAddToFavourite(state.word)) },\n                    onWordChipClick = { onAction(HomeAction.NewSearch(it)) },\n                    onShareWord = { onAction(HomeAction.OnShareData) },\n                    isOnline = state.isOnline,\n                    word = state.word,\n                    phonetic = state.phonetic\n                )\n            } else {\n                Column(\n                    modifier = modifier.padding(Sizes.Large),\n                    horizontalAlignment = Alignment.CenterHorizontally,\n                    verticalArrangement = Arrangement.spacedBy(\n                        Sizes.Large,\n                        Alignment.CenterVertically\n                    ),\n                    content = {\n                        AppText(stringResource(R.string.search_hint))\n                        EmptyList()\n                    }\n                )\n            }\n        }\n    )\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/HomeAction.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     HomeEvent.kt Copyrighted by Yamin Siahmargooei at 2024/8/18\n *     HomeEvent.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui\n\nsealed interface HomeAction {\n    data object RandomWord : HomeAction\n    data class NewSearch(val searchTerm: String? = null) : HomeAction\n    data class OnTermChanged(val term: String) : HomeAction\n    data object OnShareData : HomeAction\n    data object CancelSearch : HomeAction\n    data object OnCheckInternet : HomeAction\n    data class OnAddToFavourite(val word: String) : HomeAction\n    data object UpdateTTS : HomeAction\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/HomeState.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     HomeState.kt Copyrighted by Yamin Siahmargooei at 2024/8/17\n *     HomeState.kt Last modified at 2024/8/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui\n\nimport androidx.compose.material3.SnackbarHostState\nimport io.github.yamin8000.owl.feature_home.ui.util.HomeSnackbarType\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.persistentListOf\n\ndata class HomeState(\n    val isOnline: Boolean = false,\n    val isSearching: Boolean = false,\n    val searchSuggestions: ImmutableList<String> = persistentListOf(),\n    val snackbarHostState: SnackbarHostState = SnackbarHostState(),\n    val error: HomeSnackbarType? = null,\n    val searchResult: Entry? = null,\n    val phonetic: String = \"\",\n    val word: String = \"\",\n    val isVibrating: Boolean = false\n)"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/HomeViewModel.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     HomeViewModel.kt Copyrighted by Yamin Siahmargooei at 2024/8/17\n *     HomeViewModel.kt Last modified at 2024/6/2\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui\n\nimport androidx.compose.runtime.State\nimport androidx.compose.runtime.derivedStateOf\nimport androidx.lifecycle.SavedStateHandle\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport dagger.assisted.Assisted\nimport dagger.assisted.AssistedInject\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport io.github.yamin8000.owl.common.util.TTS\nimport io.github.yamin8000.owl.datastore.domain.usecase.favourites.FavouriteUseCases\nimport io.github.yamin8000.owl.datastore.domain.usecase.history.HistoryUseCases\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.SettingUseCases\nimport io.github.yamin8000.owl.feature_home.di.HomeViewModelFactory\nimport io.github.yamin8000.owl.feature_home.domain.repository.TermSuggesterRepository\nimport io.github.yamin8000.owl.feature_home.domain.usecase.GetRandomWord\nimport io.github.yamin8000.owl.feature_home.ui.util.HomeSnackbarType\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport io.github.yamin8000.owl.search.domain.usecase.SearchFreeDictionary\nimport io.github.yamin8000.owl.search.domain.usecase.WordCacheUseCases\nimport kotlinx.collections.immutable.persistentListOf\nimport kotlinx.collections.immutable.toImmutableList\nimport kotlinx.coroutines.CoroutineExceptionHandler\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.Job\nimport kotlinx.coroutines.channels.Channel\nimport kotlinx.coroutines.delay\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.asStateFlow\nimport kotlinx.coroutines.flow.receiveAsFlow\nimport kotlinx.coroutines.flow.update\nimport kotlinx.coroutines.launch\nimport kotlinx.coroutines.withContext\nimport retrofit2.HttpException\nimport java.net.UnknownHostException\nimport kotlin.coroutines.cancellation.CancellationException\n\n@HiltViewModel(assistedFactory = HomeViewModelFactory::class)\nclass HomeViewModel @AssistedInject constructor(\n    private val savedState: SavedStateHandle,\n    private val searchFreeDictionaryUseCase: SearchFreeDictionary,\n    private val termSuggesterRepository: TermSuggesterRepository,\n    private val settingsUseCases: SettingUseCases,\n    private val historyUseCases: HistoryUseCases,\n    private val favouriteUseCases: FavouriteUseCases,\n    private val cacheUseCases: WordCacheUseCases,\n    private val randomWordUseCase: GetRandomWord,\n    val tts: TTS,\n    @Assisted(\"intent\") private val intentSearch: String?,\n    @Assisted(\"navigation\") private val navigationSearch: String?\n) : ViewModel() {\n\n    private val exceptionHandler = CoroutineExceptionHandler { _, throwable ->\n        _state.update { it.copy(isSearching = false) }\n        println(throwable.stackTraceToString())\n        viewModelScope.launch {\n            when (throwable) {\n                is HttpException -> when (throwable.code()) {\n                    401 -> errorChannel.send(HomeSnackbarType.ApiAuthorizationError)\n                    404 -> errorChannel.send(HomeSnackbarType.NotFound)\n                    429 -> errorChannel.send(HomeSnackbarType.ApiThrottled)\n                    else -> errorChannel.send(HomeSnackbarType.Unknown)\n                }\n\n                is CancellationException -> errorChannel.send(HomeSnackbarType.Cancelled)\n                is UnknownHostException -> errorChannel.send(HomeSnackbarType.NoInternet)\n                else -> errorChannel.send(HomeSnackbarType.Unknown)\n            }\n        }\n    }\n\n    private val scope = CoroutineScope(viewModelScope.coroutineContext + exceptionHandler)\n\n    val searchTerm = savedState.getStateFlow(\"Search\", intentSearch ?: navigationSearch ?: \"\")\n\n    private var errorChannel = Channel<HomeSnackbarType>()\n    val errorChannelFlow = errorChannel.receiveAsFlow()\n\n    private var shareChannel = Channel<Entry?>()\n    val shareChannelFlow = shareChannel.receiveAsFlow()\n\n    private var _state = MutableStateFlow(HomeState())\n    val state = _state.asStateFlow()\n\n    private var searchJob: Job? = null\n\n    val isWordSelectedFromKeyboardSuggestions: State<Boolean>\n        get() = derivedStateOf { searchTerm.value.length > 1 && searchTerm.value.last() == ' ' && !searchTerm.value.all { it == ' ' } }\n\n    private val internetCheckDelay = 5000L\n    private val dnsServers = listOf(\n        \"8.8.8.8\",\n        \"8.8.4.4\",\n        \"1.1.1.1\",\n        \"1.0.0.1\",\n        \"185.51.200.2\",\n        \"178.22.122.100\",\n        \"10.202.10.202\",\n        \"10.202.10.102\"\n    )\n\n    init {\n        scope.launch {\n            _state.update { it.copy(isVibrating = settingsUseCases.getVibration()) }\n            if (!settingsUseCases.getStartingBlank() && searchTerm.value.isBlank()) {\n                savedState[\"Search\"] = \"free\"\n            }\n            if (searchTerm.value.isNotBlank()) {\n                searchForDefinition(searchTerm.value)\n            }\n            while (true) {\n                onAction(HomeAction.OnCheckInternet)\n                delay(internetCheckDelay)\n            }\n        }\n    }\n\n    fun onAction(action: HomeAction) {\n        when (action) {\n            HomeAction.RandomWord -> searchForRandomWord()\n            HomeAction.OnShareData -> scope.launch { shareChannel.send(state.value.searchResult) }\n            HomeAction.CancelSearch -> cancel()\n            HomeAction.UpdateTTS -> scope.launch { tts.createEngine(settingsUseCases.getTTS()) }\n\n            is HomeAction.NewSearch -> {\n                val term = action.searchTerm ?: searchTerm.value\n                savedState[\"Search\"] = term\n                searchJob = searchForDefinition(term)\n            }\n\n            is HomeAction.OnTermChanged -> {\n                savedState[\"Search\"] = action.term\n                scope.launch {\n                    _state.update {\n                        it.copy(\n                            searchSuggestions = termSuggesterRepository.suggestTerms(action.term)\n                                .toImmutableList()\n                        )\n                    }\n                }\n            }\n\n            HomeAction.OnCheckInternet -> {\n                scope.launch {\n                    _state.update { stateUpdate ->\n                        stateUpdate.copy(isOnline = dnsServers.any { dnsAccessible(it) })\n                    }\n                }\n            }\n\n            is HomeAction.OnAddToFavourite -> {\n                scope.launch {\n                    favouriteUseCases.addFavourite(action.word)\n                    errorChannel.send(HomeSnackbarType.AddedToFavourite)\n                }\n            }\n\n        }\n    }\n\n    private suspend fun dnsAccessible(\n        dnsServer: String\n    ) = withContext(Dispatchers.IO + exceptionHandler) {\n        Runtime.getRuntime().exec(\"/system/bin/ping -c 1 $dnsServer\").waitFor()\n    } == 0\n\n    private fun searchForRandomWord() = scope.launch {\n        searchForDefinition(randomWordUseCase())\n    }\n\n    private fun searchForDefinition(\n        searchTerm: String\n    ) = scope.launch {\n        if (searchTerm.isNotBlank()) {\n            historyUseCases.addHistory(searchTerm)\n\n            _state.update { it.copy(isSearching = true) }\n\n            val cachedWord = cacheUseCases.getCachedWord(searchTerm)\n            if (cachedWord == null) {\n                val newWord = searchForDefinitionUsingApi(searchTerm)\n                if (newWord != null) {\n                    cacheUseCases.cacheWord(newWord)\n                    cacheUseCases.cacheWordData(newWord)\n                }\n            } else loadCachedWord(cachedWord)\n\n            _state.update { it.copy(isSearching = false) }\n        } else errorChannel.send(HomeSnackbarType.TermIsEmpty)\n    }\n\n    private fun loadCachedWord(cachedWord: Entry) {\n        val phonetic = cachedWord.phonetics.firstOrNull { it.text != null }?.text ?: \"\"\n        _state.update {\n            it.copy(\n                searchResult = cachedWord,\n                word = cachedWord.word,\n                phonetic = phonetic,\n                searchSuggestions = persistentListOf()\n            )\n        }\n    }\n\n    private suspend fun searchForDefinitionUsingApi(\n        searchTerm: String\n    ): Entry? {\n        val entry = searchFreeDictionaryUseCase(searchTerm).firstOrNull()\n        val phonetic = entry?.phonetics?.firstOrNull { it.text != null }?.text ?: \"\"\n        _state.update {\n            it.copy(\n                searchResult = entry,\n                word = entry?.word ?: \"\",\n                phonetic = phonetic,\n                searchSuggestions = persistentListOf()\n            )\n        }\n        return entry\n    }\n\n    private fun cancel() {\n        _state.update {\n            it.copy(isSearching = false)\n        }\n        searchJob?.cancel()\n    }\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/components/HomeTopBar.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     HomeTopBar.kt Copyrighted by Yamin Siahmargooei at 2024/8/18\n *     HomeTopBar.kt Last modified at 2024/8/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui.components\n\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.Casino\nimport androidx.compose.material.icons.twotone.Favorite\nimport androidx.compose.material.icons.twotone.History\nimport androidx.compose.material.icons.twotone.Info\nimport androidx.compose.material.icons.twotone.Settings\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TopAppBar\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.style.TextOverflow\nimport io.github.yamin8000.owl.common.ui.components.ClickableIcon\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.strings.R\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\ninternal fun MainTopBar(\n    onNavigateToAbout: () -> Unit,\n    onNavigateToSettings: () -> Unit,\n    onNavigateToFavourites: () -> Unit,\n    onNavigateToHistory: () -> Unit,\n    onRandomClick: () -> Unit,\n    modifier: Modifier = Modifier\n) {\n    Surface(\n        modifier = modifier,\n        shadowElevation = Sizes.Medium,\n        content = {\n            TopAppBar(\n                title = {\n                    Text(\n                        text = stringResource(R.string.app_name),\n                        style = MaterialTheme.typography.titleSmall,\n                        maxLines = 1,\n                        overflow = TextOverflow.Ellipsis\n                    )\n                },\n                actions = {\n                    ClickableIcon(\n                        imageVector = Icons.TwoTone.History,\n                        contentDescription = stringResource(R.string.search_history),\n                        onClick = onNavigateToHistory\n                    )\n                    ClickableIcon(\n                        imageVector = Icons.TwoTone.Favorite,\n                        contentDescription = stringResource(R.string.favourites),\n                        onClick = onNavigateToFavourites\n                    )\n                    ClickableIcon(\n                        imageVector = Icons.TwoTone.Casino,\n                        contentDescription = stringResource(R.string.random_word),\n                        onClick = onRandomClick\n                    )\n                    ClickableIcon(\n                        imageVector = Icons.TwoTone.Settings,\n                        contentDescription = stringResource(R.string.settings),\n                        onClick = onNavigateToSettings\n                    )\n                    ClickableIcon(\n                        imageVector = Icons.TwoTone.Info,\n                        contentDescription = stringResource(R.string.about_app),\n                        onClick = onNavigateToAbout\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/components/SearchList.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     SearchList.kt Copyrighted by Yamin Siahmargooei at 2025/1/16\n *     SearchList.kt Last modified at 2025/1/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui.components\n\nimport androidx.compose.animation.AnimatedVisibility\nimport androidx.compose.animation.fadeIn\nimport androidx.compose.animation.fadeOut\nimport androidx.compose.animation.slideInVertically\nimport androidx.compose.animation.slideOutVertically\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.lazy.LazyColumn\nimport androidx.compose.foundation.lazy.items\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.datasource.LoremIpsum\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.search.domain.model.Meaning\nimport io.github.yamin8000.owl.search.ui.components.MeaningCard\nimport io.github.yamin8000.owl.search.ui.components.WordCard\nimport io.github.yamin8000.owl.strings.R\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.toImmutableList\nimport java.util.UUID\nimport kotlin.random.Random\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        SearchList(\n            isOnline = Random.nextBoolean(),\n            word = LoremIpsum(1).values.first(),\n            phonetic = LoremIpsum(1).values.first(),\n            onAddToFavourite = {},\n            onShareWord = {},\n            onWordChipClick = {},\n            meanings = Meaning.mockList().toImmutableList(),\n        )\n    }\n}\n\n@Composable\ninternal fun SearchList(\n    isOnline: Boolean,\n    word: String,\n    phonetic: String,\n    onAddToFavourite: () -> Unit,\n    onShareWord: () -> Unit,\n    onWordChipClick: (String) -> Unit,\n    meanings: ImmutableList<Meaning>,\n    modifier: Modifier = Modifier\n) {\n\n    LazyColumn(\n        modifier = modifier,\n        horizontalAlignment = Alignment.CenterHorizontally,\n        verticalArrangement = Arrangement.spacedBy(Sizes.Medium, Alignment.CenterVertically),\n        contentPadding = PaddingValues(Sizes.Medium),\n        content = {\n            item(\n                key = isOnline,\n                content = {\n                    AnimatedVisibility(\n                        visible = !isOnline,\n                        enter = slideInVertically() + fadeIn(),\n                        exit = slideOutVertically() + fadeOut(),\n                        content = {\n                            AppText(\n                                modifier = Modifier.padding(Sizes.Medium),\n                                color = MaterialTheme.colorScheme.error,\n                                text = stringResource(R.string.general_net_error)\n                            )\n                        }\n                    )\n                }\n            )\n\n            if (word.isNotBlank()) {\n                item(\n                    key = word + phonetic,\n                    content = {\n                        WordCard(\n                            word = word,\n                            pronunciation = phonetic,\n                            onShareWord = onShareWord,\n                            onAddToFavourite = onAddToFavourite\n                        )\n                    }\n                )\n            }\n\n            items(\n                items = meanings,\n                key = { item -> \"meaning-${item.id ?: UUID.randomUUID()}\" },\n                itemContent = { meaning ->\n                    MeaningCard(\n                        modifier = Modifier.animateItem(),\n                        word = word,\n                        meaning = meaning,\n                        onWordChipClick = onWordChipClick\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/components/bottom_app_bar/BottomAppBarDuringSearch.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     BottomAppBarDuringSearch.kt Copyrighted by Yamin Siahmargooei at 2025/1/16\n *     BottomAppBarDuringSearch.kt Last modified at 2025/1/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui.components.bottom_app_bar\n\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.Cancel\nimport androidx.compose.material3.BottomAppBar\nimport androidx.compose.material3.FloatingActionButton\nimport androidx.compose.material3.Icon\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.strings.R\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        BottomAppBarDuringSearch(\n            onCancel = {}\n        )\n    }\n}\n\n@Composable\ninternal fun BottomAppBarDuringSearch(\n    onCancel: () -> Unit,\n    modifier: Modifier = Modifier\n) {\n    BottomAppBar(\n        modifier = modifier,\n        actions = {},\n        floatingActionButton = {\n            FloatingActionButton(\n                onClick = onCancel,\n                content = {\n                    Icon(\n                        imageVector = Icons.TwoTone.Cancel,\n                        contentDescription = stringResource(R.string.cancel)\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/components/bottom_app_bar/HomeBottomBar.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     HomeBottomBar.kt Copyrighted by Yamin Siahmargooei at 2025/1/16\n *     HomeBottomBar.kt Last modified at 2024/12/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui.components.bottom_app_bar\n\nimport androidx.compose.animation.AnimatedContent\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.ColumnScope\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport kotlinx.collections.immutable.persistentListOf\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        MainBottomBar(\n            searchTerm = \"test\",\n            suggestionsChips = {\n                SuggestionsChips(\n                    searchTerm = \"test\",\n                    suggestions = persistentListOf(),\n                    onSuggestionClick = {},\n                )\n            },\n            isSearching = false,\n            onSearchTermChange = {},\n            onSearch = {},\n            onCancel = {}\n        )\n    }\n}\n\n@Composable\ninternal fun MainBottomBar(\n    searchTerm: String,\n    isSearching: Boolean,\n    onSearchTermChange: (String) -> Unit,\n    onSearch: () -> Unit,\n    onCancel: () -> Unit,\n    modifier: Modifier = Modifier,\n    suggestionsChips: @Composable ColumnScope.() -> Unit\n) {\n    Column(\n        modifier = modifier,\n        content = {\n            suggestionsChips()\n            if (isSearching) {\n                RainbowWavyLinearProgress()\n            }\n            AnimatedContent(\n                targetState = isSearching,\n                label = \"\",\n                content = { target ->\n                    if (!target) {\n                        NormalBottomAppBar(\n                            onSearch = onSearch,\n                            onSearchTermChange = onSearchTermChange,\n                            searchTerm = searchTerm\n                        )\n                    } else BottomAppBarDuringSearch(onCancel = onCancel)\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/components/bottom_app_bar/NormalBottomAppBar.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     NormalBottomAppBar.kt Copyrighted by Yamin Siahmargooei at 2025/1/16\n *     NormalBottomAppBar.kt Last modified at 2025/1/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui.components.bottom_app_bar\n\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.shape.CutCornerShape\nimport androidx.compose.foundation.text.KeyboardActions\nimport androidx.compose.foundation.text.KeyboardOptions\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.Clear\nimport androidx.compose.material.icons.twotone.Search\nimport androidx.compose.material3.BottomAppBar\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.TextField\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.input.ImeAction\nimport androidx.compose.ui.text.input.KeyboardCapitalization\nimport androidx.compose.ui.text.input.KeyboardType\nimport io.github.yamin8000.owl.common.ui.components.ClickableIcon\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.strings.R\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        NormalBottomAppBar(\n            onSearch = {},\n            onSearchTermChange = {},\n            searchTerm = \"free\"\n        )\n    }\n}\n\n@Composable\ninternal fun NormalBottomAppBar(\n    searchTerm: String,\n    onSearchTermChange: (String) -> Unit,\n    onSearch: () -> Unit,\n    modifier: Modifier = Modifier\n) {\n    BottomAppBar(\n        modifier = modifier,\n        content = {\n            TextField(\n                singleLine = true,\n                shape = CutCornerShape(topEnd = Sizes.Medium, topStart = Sizes.Medium),\n                modifier = Modifier\n                    .fillMaxWidth()\n                    .padding(horizontal = Sizes.Large),\n                label = {\n                    AppText(\n                        modifier = Modifier.fillMaxWidth(),\n                        text = stringResource(R.string.search)\n                    )\n                },\n                placeholder = {\n                    AppText(\n                        modifier = Modifier.fillMaxWidth(),\n                        text = stringResource(R.string.search_hint),\n                        style = MaterialTheme.typography.labelMedium\n                    )\n                },\n                leadingIcon = {\n                    ClickableIcon(\n                        enabled = searchTerm.isNotBlank(),\n                        imageVector = Icons.TwoTone.Clear,\n                        contentDescription = stringResource(R.string.clear),\n                        onClick = { onSearchTermChange(\"\") }\n                    )\n                },\n                trailingIcon = {\n                    ClickableIcon(\n                        enabled = searchTerm.isNotBlank(),\n                        imageVector = Icons.TwoTone.Search,\n                        contentDescription = stringResource(R.string.search),\n                        onClick = onSearch\n                    )\n                },\n                value = searchTerm,\n                onValueChange = onSearchTermChange,\n                keyboardActions = KeyboardActions(onSearch = { onSearch() }),\n                keyboardOptions = KeyboardOptions(\n                    imeAction = ImeAction.Search,\n                    keyboardType = KeyboardType.Text,\n                    capitalization = KeyboardCapitalization.Words\n                )\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/components/bottom_app_bar/RainbowWavyLinearProgress.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     RainbowLinearProgress.kt Copyrighted by Yamin Siahmargooei at 2025/1/16\n *     RainbowLinearProgress.kt Last modified at 2025/1/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui.components.bottom_app_bar\n\nimport androidx.compose.animation.animateColorAsState\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.material3.ExperimentalMaterial3ExpressiveApi\nimport androidx.compose.material3.LinearWavyProgressIndicator\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.LaunchedEffect\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Modifier\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.util.randomColor\nimport kotlinx.coroutines.delay\nimport kotlin.time.Duration\nimport kotlin.time.Duration.Companion.milliseconds\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        RainbowWavyLinearProgress()\n    }\n}\n\n@OptIn(ExperimentalMaterial3ExpressiveApi::class)\n@Composable\ninternal fun RainbowWavyLinearProgress(\n    modifier: Modifier = Modifier,\n    animationDuration: Duration = 500.milliseconds\n) {\n    val colors = buildList {\n        repeat((50..100).random()) {\n            add(randomColor())\n        }\n    }\n    var color by remember { mutableStateOf(colors.random()) }\n    LaunchedEffect(Unit) {\n        while (true) {\n            color = colors.random()\n            delay(animationDuration)\n        }\n    }\n\n    val animatedColor by animateColorAsState(\n        targetValue = color,\n        animationSpec = MaterialTheme.motionScheme.fastEffectsSpec()\n    )\n\n    LinearWavyProgressIndicator(\n        modifier = modifier.fillMaxWidth(),\n        color = animatedColor,\n        trackColor = animatedColor\n    )\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/components/bottom_app_bar/SuggestionsChips.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     SuggestionsChips.kt Copyrighted by Yamin Siahmargooei at 2025/1/16\n *     SuggestionsChips.kt Last modified at 2024/12/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui.components.bottom_app_bar\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.lazy.LazyRow\nimport androidx.compose.foundation.lazy.items\nimport androidx.compose.material3.ElevatedSuggestionChip\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport io.github.yamin8000.owl.common.ui.components.HighlightText\nimport io.github.yamin8000.owl.common.ui.theme.DefaultCutShape\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.common.ui.theme.defaultGradientBorder\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.persistentListOf\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        SuggestionsChips(\n            searchTerm = \"ing\",\n            suggestions = persistentListOf(\"eating\", \"drinking\", \"drink\"),\n            onSuggestionClick = {}\n        )\n    }\n}\n\n@Composable\ninternal fun SuggestionsChips(\n    searchTerm: String,\n    suggestions: ImmutableList<String>,\n    onSuggestionClick: (String) -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    if (suggestions.isNotEmpty()) {\n        LazyRow(\n            modifier = modifier,\n            contentPadding = PaddingValues(Sizes.Small),\n            horizontalArrangement = Arrangement.spacedBy(\n                Sizes.Medium,\n                Alignment.CenterHorizontally\n            ),\n            content = {\n                items(\n                    items = suggestions,\n                    itemContent = {\n                        ElevatedSuggestionChip(\n                            shape = DefaultCutShape,\n                            border = defaultGradientBorder(1000),\n                            onClick = { onSuggestionClick(it) },\n                            label = {\n                                HighlightText(\n                                    fullText = it,\n                                    highlightedText = searchTerm\n                                )\n                            }\n                        )\n                    }\n                )\n            }\n        )\n    }\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/util/HomeSnackbarType.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     HomeSnackbarType.kt Copyrighted by Yamin Siahmargooei at 2025/1/16\n *     HomeSnackbarType.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui.util\n\nsealed interface HomeSnackbarType {\n    data object TermIsEmpty : HomeSnackbarType\n    data object SearchFailed : HomeSnackbarType\n    data object NoInternet : HomeSnackbarType\n    data object ApiAuthorizationError : HomeSnackbarType\n    data object NotFound : HomeSnackbarType\n    data object ApiThrottled : HomeSnackbarType\n    data object Cancelled : HomeSnackbarType\n    data object Unknown : HomeSnackbarType\n    data object AddedToFavourite : HomeSnackbarType\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/util/ShareUtils.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     ShareUtils.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     ShareUtils.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui.util\n\nimport android.content.Context\nimport android.content.Intent\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport io.github.yamin8000.owl.strings.R\n\nobject ShareUtils {\n    internal fun handleShareIntent(\n        context: Context,\n        entry: Entry\n    ) {\n        val text = createShareText(context, entry)\n\n        val sendIntent = Intent().apply {\n            action = Intent.ACTION_SEND\n            putExtra(Intent.EXTRA_TEXT, text)\n            type = \"text/plain\"\n        }\n        val shareIntent = Intent.createChooser(\n            sendIntent,\n            \"${context.getString(R.string.app_name)}, ${entry.word}\"\n        )\n        context.startActivity(shareIntent)\n    }\n\n    private fun createShareText(\n        context: Context,\n        entry: Entry\n    ) = buildString {\n        appendLine(\"Word: ${entry.word}\")\n        appendLine()\n        append(\"Pronunciation(IPA): \")\n        appendLine(entry.phonetics.firstOrNull { it.text != null }?.text ?: \"-\")\n        appendLine()\n        entry.meanings.forEachIndexed { index, (partOfSpeech, definitions, _, _) ->\n            appendLine(\"${index + 1})\")\n            appendLine(\"Type: $partOfSpeech\")\n            definitions.take(5).forEach { (definition, example, synonyms, antonyms) ->\n                appendLine(\"Definition: $definition\")\n                if (example != null) {\n                    appendLine(\"Example: $example\")\n                }\n                if (synonyms.isNotEmpty()) {\n                    appendLine(\"Synonyms: ${synonyms.take(5).joinToString()}\")\n                }\n                if (antonyms.isNotEmpty()) {\n                    appendLine(\"Antonyms: ${antonyms.take(5).joinToString()}\")\n                }\n                appendLine()\n            }\n            appendLine()\n        }\n        trim()\n        appendLine(context.getString(R.string.this_text_generated_using_owl))\n        appendLine(context.getString(R.string.github_source))\n        appendLine(context.getString(R.string.this_text_extracted_from_free_dictionary))\n        append(context.getString(R.string.free_dictionary_link))\n    }\n}"
  },
  {
    "path": "feature_home/src/main/java/io/github/yamin8000/owl/feature_home/ui/util/Utils.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     Utils.kt Copyrighted by Yamin Siahmargooei at 2025/1/16\n *     Utils.kt Last modified at 2025/1/16\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_home.ui.util\n\nimport android.content.Context\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.LaunchedEffect\nimport androidx.lifecycle.Lifecycle\nimport androidx.lifecycle.compose.LocalLifecycleOwner\nimport androidx.lifecycle.repeatOnLifecycle\nimport io.github.yamin8000.owl.strings.R\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.withContext\n\nobject Utils {\n\n    @Composable\n    internal fun <T> ObserverEvent(\n        flow: Flow<T>,\n        onEvent: suspend (T) -> Unit\n    ) {\n        val lifeCycleOwner = LocalLifecycleOwner.current\n        LaunchedEffect(flow, lifeCycleOwner.lifecycle) {\n            lifeCycleOwner.repeatOnLifecycle(Lifecycle.State.STARTED) {\n                withContext(Dispatchers.Main.immediate) {\n                    flow.collect(onEvent)\n                }\n            }\n        }\n    }\n\n    internal fun getErrorText(\n        context: Context,\n        error: HomeSnackbarType?\n    ) = when (error) {\n        HomeSnackbarType.SearchFailed -> context.getString(R.string.general_net_error)\n        HomeSnackbarType.TermIsEmpty -> context.getString(R.string.no_search_term_entered)\n        HomeSnackbarType.NoInternet -> context.getString(R.string.general_net_error)\n        HomeSnackbarType.ApiAuthorizationError -> context.getString(R.string.api_authorization_error)\n        HomeSnackbarType.ApiThrottled -> context.getString(R.string.api_throttled)\n        HomeSnackbarType.Cancelled -> context.getString(R.string.cancelled)\n        HomeSnackbarType.NotFound -> context.getString(R.string.definition_not_found)\n        HomeSnackbarType.Unknown -> context.getString(R.string.untracked_error)\n        HomeSnackbarType.AddedToFavourite -> context.getString(R.string.added_to_favourites)\n        null -> \"\"\n    }\n}"
  },
  {
    "path": "feature_home/src/main/res/raw/basic2000.txt",
    "content": "a,able,about,account,acid,across,act,addition,adjustment,advertisement,agreement,after,again,against,air,all,almost,am,among,amount,amusement,an,and,angry,angle,animal,answer,ant,any,apparatus,apple,approval,arch,argument,arm,army,art,as,association,at,attack,attempt,attention,attitude,attraction,authority,automatic,awake,alcohol,Algebra,aluminum,ammonia,anesthetic,April,Arithmetic,asbestos,August,autobus,automobile,absence,absorption,acceleration,acceptance,accessory,accident,active,address,adjacent,adventure,advice,age,agent,agency,ago,allowance,along,also,alternative,always,ambition,amplitude,anchor,ankle,appendage,application,approximation,arbitration,arbitrary,arc,area,arrangement,ash,asset,assistant,average,awkward,axis,aftereffect,aftertaste,afterthought,aircushion,airman,airmen,airplane,airtight,another,anybody,anyhow,anyone,anything,anywhere,away,actor,acting,baby,back,bad,bag,balance,ball,band,base,basin,basket,bath,be,beautiful,because,bed,bee,been,before,behavior,belief,bell,bent,berry,best,better,between,bird,birth,bit,bite,bitter,black,blade,blood,blow,blue,board,boat,body,bone,book,boot,boiling,bottle,box,boy,brain,brake,branch,brass,bread,breath,brick,bridge,bright,broken,brother,brown,brush,bucket,building,bulb,button,burn,burst,business,but,butter,by,ballet,Bang,bank,bar,beef,beer,Biology,bomb,balcony,bale,bankrupt,bark,barrel,beak,beaker,beard,beat,behind,belt,bet,bill,birefringence,blame,blanket,both,bottom,brave,break,breakfast,breast,broker,bubble,bud,budget,buoyancy,bunch,burial,busy,backbone,backwoods,become,became,bedroom,beeswax,birthday,birthright,blackberry,blackbird,blackboard,bloodvessel,bluebell,bookkeeper,brushwood,buttercup,basing,based,builder,burner,burned,burning,cake,camera,canvas,card,care,carriage,cart,cat,cause,certain,chain,chalk,chance,change,cheap,cheese,chemical,chest,chief,chin,church,circle,class,clean,clear,clock,cloth,cloud,coal,coat,cold,collar,color,comb,come,comfort,committee,community,common,company,comparison,competition,complete,complex,computer,condition,connection,conscious,control,cook,copper,copy,cord,cork,cotton,cough,country,cover,cow,crack,credit,crime,cruel,crush,cry,culture,cup,custom,current,curtain,curve,cushion,cut,cafe,calendar,catarrh,cent,centi-,champagne,chauffeur,chemist,Chemistry,check,chocolate,chorus,cigarette,circus,citron,club,coffee,cocktail,cognac,College,colony,calculation,call,came,capacity,capital,carpet,cartilage,case,cast,cave,cavity,cell,ceremony,certificate,chair,character,charge,child,chimney,china,choice,circulation,circuit,circumference,civilization,clay,claim,claw,cleavage,clever,client,climber,clip,code,coil,collision,collection,column,combination,combine,communications,complaint,component,compound,concept,concrete,conductor,congruent,conservation,consignment,constant,consumer,continuous,contour,convenient,conversion,cool,corner,correlation,corrosion,cost,court,creeper,crop,cross,cunning,cusp,customs,cardboard,carefree,caretaker,clockwork,commonsense,copyright,cupboard,carter,clothier,clothing,cooker,cooked,cooking,crying,damage,danger,dark,daughter,day,dead,dear,death,debt,decision,deep,degree,delicate,dependent,design,desire,destruction,detail,development,did,different,digestion,direction,dirty,discovery,discussion,disease,disgust,distance,distribution,division,do,does,dog,done,door,down,doubt,drain,drawer,dress,drink,driving,drop,dry,dust,dance,December,deci-,degree,dollar,Dominion,dynamite,damping,date,debit,deck,decrease,defect,deficiency,deflation,degenerate,delivery,demand,denominator,department,desert,density,deposit,determining,dew,diameter,difference,difficulty,drift,dike,dilution,dinner,dip,direct,disappearance,discharge,discount,disgrace,dislike,dissipation,disturbance,ditch,dive,divisor,divorce,doll,domesticating,dreadful,dream,duct,dull,duty,daylight,downfall,daily,dancer,dancing,to,designer,dressing,up,driver,dropped,dropper,duster,ear,early,earth,east,edge,education,effect,egg,elastic,electric,end,engine,enough,environment,equal,error,even,event,ever,every,example,exchange,existence,expansion,experience,expert,eye,eight,electricity,eleven,Embassy,Empire,encyclopedia,engineer,euro,each,easy,economy,efficiency,effort,either,elimination,employer,employment,empty,enemy,envelope,environment,envy,equation,erosion,eruption,evaporation,evening,exact,excitement,experiment,exercise,explanation,explosion,export,expression,extinction,eyebrow,eyelash,ear-ring,earthwork,evergreen,everybody,everyday,everyone,everything,everywhere,eyeball,face,fact,fall,false,family,far,farm,farther,fat,father,fear,feather,feeble,feeling,female,fertile,fiction,field,fight,finger,fire,first,fish,fixed,flag,flame,flat,flight,floor,flower,fly,fold,food,foolish,foot,for,force,fork,form,forward,fowl,frame,free,frequent,friend,from,front,fruit,full,further,future,February,fifteen,fifth,fifty,five,four,fourteen,fourth,forty,Friday,factor,failure,fair,famous,fan,fastening,fault,ferment,fertilizing,fever,fiber,figure,fin,financial,flash,flask,flesh,flood,flour,focus,forecast,forehead,foreign,forgiveness,fraction,fracture,fresh,friction,flint,flood,flow,foliation,frost,frozen,fume,funnel,funny,fur,furnace,furniture,fusion,fatherland,fingerprint,firearm,fire-engine,firefly,fireman,fireplace,firework,first-rate,football,footlights,footman,footnote,footprint,footstep,farmer,fisher,fisherman,folder,fired,firing,gave,garden,general,get,girl,give,glass,glove,go,goat,goes,gold,gone,good,got,gat,government,grain,grass,great,green,grey/gray,grip,group,growth,guide,gun,gas,geography,geology,Geometry,gram,glycerin,gate,generation,germ,germinating,gill,glacier,gland,god,grand,grateful,grating,gravel,grease,grief,grocery,groove,gross,ground,guard,guarantee,guess,gum,gasworks,goldfish,goodlooking,good-morning,goodnight,gunboat,gun-carriage,gunmetal,gunpowder,gardener,had,hair,hammer,hand,hanging,happy,harbor,hard,harmony,has,hat,hate,hath,have,he,head,healthy,hearing,heart,heat,helicopter,help,her,here,heredity,high,him,history,hole,hollow,hook,hope,horn,horse,hospital,hour,house,how,humor,half,hiss,hotel,hundred,hyena,hygiene,hysteria,habit,handkerchief,handle,heavy,hedge,hill,hinge,hire,hold,holiday,home,honest,honey,hoof,host,human,hunt,hurry,hurt,husband,handbook,handwriting,headdress,headland,headstone,headway,hereafter,herewith,highlands,highway,himself,horseplay,horsepower,hourglass,houseboat,housekeeper,however,hanger,heater,heated,heating,I,ice,idea,if,ill,important,impulse,in,increase,industry,ink,insect,instrument,insurance,interest,invention,iron,is,island,it,its,Imperial,inch,inferno,influenza,international,igneous,image,imagination,import,impurity,incentive,inclusion,index,individual,inflation,infinity,inheritance,innocent,institution,insulator,integer,integration,intelligent,intercept,internet,interpretation,intersection,intrusion,investigation,investment,inverse,invitation,inasmuch,income,indoors,inland,inlet,input,inside,instep,into,itself,inner,jelly,jewel,join,journey,judge,jump,January,jazz,July,June,jam,jaw,jealous,jerk,joint,jug,juice,jury,justice,jeweler,joiner,keep,kept,kettle,key,kick,kind,kiss,knee,knife,knot,knowledge,kilo-,King,kennel,kidney,kitchen,knock,keeper,land,language,last,late,laugh,law,lead,leaf,learning,least,leather,leg,left,less,let,letter,level,library,lift,light,like,limit,line,linen,lip,liquid,list,little,living,lock,long,loose,loss,loud,love,low,latitude,lava,liter,liqueur,longitude,lace,lag,lake,lame,lamp,large,latitude,lawyer,layer,lazy,lecture,legal,length,lens,lesson,lever,lever,liability,license,lid,life,lime,limestone,link,liver,load,local,load,loan,locus,look,longitude,luck,lump,lunch,lung,landmark,landslip,lighthouse,looking-glass,laughing at,learner,likely,locker,locking up,machine,made,man,manager,make,male,map,mark,market,married,match,material,mass,may,me,meal,measure,meat,medical,meeting,memory,metal,middle,might,military,milk,mind,mine,minute,mist,mixed,money,monkey,month,moon,more,morning,most,mother,motion,mountain,mouth,move,much,muscle,music,my,macaroni,madam,magnetic,malaria,mania,March,Mathematics,May,meter,meow,micro-,microscope,mile,milli-,million,minute,Monday,Museum,magic,magnitude,manner,many,marble,margin,marriage,mast,mattress,mature,mean,meaning,medicine,medium,melt,member,mess,message,metabolism,mill,mineral,mixture,model,modern,modest,momentum,monopoly,mood,moral,moustache,mud,multiple,multiplication,murder,manhole,maybe,myself,marked,miner,nail,name,narrow,nation,natural,near,necessary,neck,need,needle,nerve,net,never,new,news,night,no,noise,normal,north,nose,not,note,now,number,nut,neutron,nickel,nicotine,nine,November,nasty,nature,navy,neat,neglect,neighbor,nest,next,nice,node,nostril,nuclear,nucleus,numerator,nurse,network,newspaper,nobody,nothing,nowhere,nearer,noted,observation,of,off,offer,office,oil,old,on,one,only,open,operation,opinion,opposite,or,orange,order,organization,ornament,other,our,out,oven,over,owner,October,olive,once,omelet,one,opera,opium,orchestra,organism,obedient,officer,orchestra,ore,organ,origin,outcrop,outlier,overlap,oval,own,oxidation,offspring,oncoming,oneself,onlooker,onto,outburst,outcome,outcry,outdoor,outgoing,outhouse,outlaw,outlet,outline,outlook,output,outside,outskirts,outstretched,overacting,overall,overbalancing,overbearing,overcoat,overcome,overdo,overdressed,overfull,overhanging,overhead,overland,overleaf,overload,overseas,overseer,overshoe,overstatement,overtake,overtaxed,overtime,overturned,overuse,overvalued,overweight,overworking,outer,page,pain,paint,paper,parallel,parcel,part,past,paste,payment,peace,pen,pencil,person,physical,picture,pig,pin,pipe,place,plane,plant,plate,play,please,pleasure,plough/plow,pocket,point,poison,polish,political,poor,porter,position,possible,pot,potato,powder,power,present,price,print,prison,private,probable,process,produce,profit,property,prose,protest,public,pull,pump,punishment,purpose,push,put,pajamas,paraffin,paradise,park,passport,patent,pence,penny,penguin,petroleum,phonograph,Physics,Physiology,piano,platinum,police,post,potash,pound,President,Prince,Princess,program,propaganda,Psychology,Purr,pyramid,packing,pad,pair,pan,paragraph,parent,particle,partner,party,passage,path,patience,pedal,pendulum,pension,people,perfect,petal,piston,plain,plan,plaster,plug,poetry,pollen,pool,population,porcelain,practice,praise,prayer,pressure,prick,priest,prime,probability,product,progress,projectile,projection,promise,proof,proud,pulley,pupil,purchase,pure,pincushion,plaything,policeman,postman,postmark,postmaster,post-office,painter,painting,parting,playing,played,pleased with,pointer,pointing at,potter,printer,prisoner,producer,quality,question,quick,quiet,quite,Quack,quarter,Queen,quinine,quantity,quotient,rail,rain,range,rat,rate,ray,reaction,red,reading,ready,reason,receipt,record,regret,regular,relation,religion,representative,request,respect,responsible,rest,reward,rhythm,rice,right,ring,river,road,rod,roll,roof,room,root,rough,round,rub,rule,run,radio,radium,referendum,restaurant,rheumatism,Royal,rum,race,radiation,ratio,reagent,real,receiver,reciprocal,rectangle,recurring,reference,reflux,reinforcement,relative,remark,remedy,rent,repair,reproduction,repulsion,resistance,residue,resolution,result,retail,revenge,reversible,rich,rigidity,rise,rival,rock,rot,rotation,rude,rust,reasonable,runaway,raining,reader,reading,roller,ruler,rubber,sad,said,safe,sail,salt,same,sand,saw,say,scale,school,science,scissors,screw,sea,seat,second,secret,secretary,see,seed,seen,seem,selection,self,send,sense,sent,separate,serious,servant,sex,shade,shake,shame,sharp,she,sheep,shelf,ship,shirt,shock,shoe,short,shut,side,sign,silk,silver,simple,sister,size,skin,skirt,sky,sleep,slip,slope,slow,small,smash,smell,smile,smoke,smooth,snake,sneeze,snow,so,soap,society,sock,soft,solid,some,son,song,sort,sound,soup,south,space,spade,special,sponge,spoon,spring,square,stage,standard,stamp,star,start,statement,station,steam,steel,stem,step,stick,sticky,stiff,still,stitch,stocking,stomach,stone,stop,store,story,straight,strange,street,strong,structure,substance,such,sudden,sugar,suggestion,summer,sun,support,surprise,sweet,swim,system,salad,sardine,Saturday,second,September,serum,seven,sir,six,sixteen,sport,Sunday,sac,sale,sample,satisfaction,saturated,saucer,saving,scale,scarp,schist,scratch,screen,seal,search,security,secretion,section,sedimentary,selfish,sensitivity,sentence,sepal,service,set,shadow,shale,share,shave,shear,sheet,shell,shore,shoulder,show,sight,sill,similarity,since,skull,slate,sleeve,slide,social,soil,soldier,solution,solvent,sorry,spark,specialization,specimen,speculation,spirit,spit,splash,spot,stable,stain,stair,stalk,stamen,statistics,steady,stimulus,storm,strain,straw,stream,strength,stress,strike,string,study,subject,substitution,subtraction,success,successive,sucker,sum,supply,surface,surgeon,suspension,suspicious,swelling,swing,switch,sympathetic,seaman,secondhand,shorthand,sideboard,sidewalk,somebody,someday,somehow,someone,something,sometime,somewhat,somewhere,suchlike,sunburn,sunlight,sunshade,sweetheart,sailor,shocking,shocked,snowing,steamer,stopper,stopping up,stretcher,table,tail,take,talk,tall,taste,tax,teaching,technology,tendency,test,than,that,the,their,them,then,theory,there,these,they,thick,thin,thing,this,those,though,thought,thread,throat,through,thumb,thunder,ticket,tight,tired,till,time,tin,to,toe,together,tomorrow,tongue,took,tooth,top,touch,town,trade,train,transport,tray,tree,trick,trousers,true,trouble,turn,twist,tapioca,taxi,tea,telegram,telephone,television,ten,terrace,theater,thermometer,third,thirteen,thirty,thousand,three,Thursday,toast,tobacco,torpedo,Tuesday,turbine,twenty-one,twelve,twenty,twice,two,tailor,tame,tap,tear,tent,term,texture,thickness,thief,thimble,thorax,threat,thrust,tide,tie,tissue,tongs,too,total,towel,tower,traffic,tragedy,transmission,transparent,trap,travel,treatment,triangle,truck,tube,tune,tunnel,twin,typist,today,tonight,tradesman,talking of,teacher,touching up,trader,trainer,training,troubling,troubled,turning over,umbrella,under,unit,up,us,use,university,ugly,unconformity,understanding,universe,unknown,underclothing,undercooked,undergo,undergrowth,undermined,undersigned,undersized,understatement,undertake,undervalued,undo,upkeep,uplift,upon,upright,uproot,uptake,used to,value,verse,very,vessel,view,violent,voice,vanilla,violin,visa,vitamin,vodka,volt,valency,valley,valve,vapor,variable,vascular,vegetable,velocity,vestigial,victim,victory,volume,vortex,vote,viewpoint,walk,wall,waiting,war,warm,was,wash,waste,watch,water,wave,wax,way,we,weather,week,weight,well,went,were,west,wet,what,wheel,when,where,which,while,whip,whistle,white,who,whom,whose,why,wide,will,wind,window,wine,wing,winter,wire,wise,with,woman,wood,wool,word,work,worm,would,wound,writing,wrong,Wednesday,whisky,weak,wedge,welcome,whether,wholesale,widow,wife,wild,world,wreck,wrist,waterfall,weekend,well-being,well-off,whatever,whenever,whereas,whereby,wherever,whichever,whitewash,whoever,windpipe,within,without,woodwork,workhouse,waiter,worker,working,on,out,up,writer,waiting,wasted,your,yours,year,yellow,yes,yesterday,you,young,zebra,zinc,zoology,yawn,x-ray,yearbook,yourself,zookeeper"
  },
  {
    "path": "feature_overlay/.gitignore",
    "content": "/build"
  },
  {
    "path": "feature_overlay/build.gradle.kts",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_overlay\n *     build.gradle.kts Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     build.gradle.kts Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_overlay.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_overlay 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 *     freeDictionaryApp/freeDictionaryApp.feature_overlay 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport org.jetbrains.kotlin.gradle.dsl.JvmTarget\n\nplugins {\n    alias(libs.plugins.android.library)\n    alias(libs.plugins.google.ksp)\n    alias(libs.plugins.jetbrains.kotlin.compose.plugin)\n    alias(libs.plugins.hilt)\n}\n\nandroid {\n    namespace = \"io.github.yamin8000.owl.feature_overlay\"\n    compileSdk = 36\n\n    defaultConfig {\n        minSdk = 23\n    }\n\n    compileOptions {\n        isCoreLibraryDesugaringEnabled = true\n        sourceCompatibility = JavaVersion.VERSION_17\n        targetCompatibility = JavaVersion.VERSION_17\n    }\n\n    kotlin {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_17\n        }\n    }\n\n    buildFeatures {\n        compose = true\n    }\n}\n\ncomposeCompiler {\n    reportsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n    metricsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n}\n\ndependencies {\n    //core\n    coreLibraryDesugaring(libs.desugar.jdk.libs)\n    implementation(project(\":common\"))\n    implementation(project(\":search\"))\n    //hilt\n    implementation(libs.hilt.android)\n    ksp(libs.hilt.android.compiler)\n    implementation(libs.hilt.lifecycle.compose)\n}"
  },
  {
    "path": "feature_overlay/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~     freeDictionaryApp/freeDictionaryApp.feature_overlay.main\n  ~     AndroidManifest.xml Copyrighted by Yamin Siahmargooei at 2025/9/8\n  ~     AndroidManifest.xml Last modified at 2025/3/16\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.feature_overlay.main.\n  ~     Copyright (C) 2025  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.feature_overlay.main 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  ~     freeDictionaryApp/freeDictionaryApp.feature_overlay.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<manifest />"
  },
  {
    "path": "feature_overlay/src/main/java/io/github/yamin8000/owl/feature_overlay/di/OverlayViewModelFactory.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main\n *     OverlayViewModelFactory.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     OverlayViewModelFactory.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_overlay.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_overlay.di\n\nimport dagger.assisted.Assisted\nimport dagger.assisted.AssistedFactory\nimport io.github.yamin8000.owl.feature_overlay.ui.OverlayWindowViewModel\n\n@AssistedFactory\ninterface OverlayViewModelFactory {\n    fun create(\n        @Assisted(\"intent\") intentSearch: String?,\n    ): OverlayWindowViewModel\n}"
  },
  {
    "path": "feature_overlay/src/main/java/io/github/yamin8000/owl/feature_overlay/ui/OverlayWindow.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main\n *     OverlayWindow.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     OverlayWindow.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_overlay.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_overlay.ui\n\nimport android.content.res.Configuration\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.material3.BasicAlertDialog\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.Surface\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.platform.LocalConfiguration\nimport androidx.compose.ui.platform.LocalDensity\nimport androidx.compose.ui.platform.LocalWindowInfo\nimport androidx.compose.ui.window.DialogProperties\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport io.github.yamin8000.owl.common.ui.theme.DefaultCutShape\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.common.ui.theme.defaultGradientBorder\nimport io.github.yamin8000.owl.feature_overlay.ui.components.ButtonsRow\nimport io.github.yamin8000.owl.feature_overlay.ui.components.SearchList\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nfun OverlayScreen(\n    onDismissRequest: () -> Unit,\n    navigateToApp: (String) -> Unit,\n    modifier: Modifier = Modifier,\n    vm: OverlayWindowViewModel = hiltViewModel()\n) {\n    val state = vm.state.collectAsStateWithLifecycle().value\n\n    val configuration = LocalConfiguration.current\n    val isPortrait = remember(configuration) {\n        configuration.orientation == Configuration.ORIENTATION_PORTRAIT\n    }\n    val localWindow = LocalWindowInfo.current\n    val density = LocalDensity.current\n    val screenHeight = remember(localWindow, density) {\n        with(density) {\n            localWindow.containerSize.height.toDp()\n        }\n    }\n    val buttonsOffset = Sizes.xxLarge\n    val windowHeight = remember(isPortrait, screenHeight) {\n        if (isPortrait) screenHeight / 2 else screenHeight - buttonsOffset\n    }\n    BasicAlertDialog(\n        modifier = modifier,\n        onDismissRequest = onDismissRequest,\n        properties = DialogProperties(\n            dismissOnClickOutside = false,\n            usePlatformDefaultWidth = false\n        ),\n        content = {\n            Box(\n                modifier = Modifier.height(windowHeight + buttonsOffset),\n                content = {\n                    Surface(\n                        modifier = Modifier\n                            .height(windowHeight)\n                            .padding(horizontal = Sizes.Large),\n                        shape = DefaultCutShape,\n                        border = defaultGradientBorder(),\n                        content = {\n                            SearchList(\n                                modifier = Modifier.padding(Sizes.Large),\n                                isSearching = state.isSearching,\n                                word = state.word,\n                                phonetic = state.phonetic,\n                                meanings = state.meanings\n                            )\n                        }\n                    )\n                    ButtonsRow(\n                        modifier = Modifier\n                            .padding(top = buttonsOffset)\n                            .align(Alignment.BottomCenter),\n                        onDismissRequest = onDismissRequest,\n                        navigateToApp = { navigateToApp(state.word) }\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_overlay/src/main/java/io/github/yamin8000/owl/feature_overlay/ui/OverlayWindowState.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_floating.main\n *     OverlayWindowState.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     OverlayWindowState.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_floating.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_floating.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_floating.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_overlay.ui\n\nimport io.github.yamin8000.owl.search.domain.model.Meaning\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.persistentListOf\n\ndata class OverlayWindowState(\n    val isSearching: Boolean = false,\n    val searchTerm: String = \"\",\n    val meanings: ImmutableList<Meaning> = persistentListOf(),\n    val word: String = \"\",\n    val phonetic: String = \"\"\n)\n"
  },
  {
    "path": "feature_overlay/src/main/java/io/github/yamin8000/owl/feature_overlay/ui/OverlayWindowViewModel.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main\n *     OverlayWindowViewModel.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     OverlayWindowViewModel.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_overlay.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_overlay.ui\n\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport dagger.assisted.Assisted\nimport dagger.assisted.AssistedInject\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport io.github.yamin8000.owl.feature_overlay.di.OverlayViewModelFactory\nimport io.github.yamin8000.owl.search.domain.model.Phonetic\nimport io.github.yamin8000.owl.search.domain.usecase.SearchFreeDictionary\nimport io.github.yamin8000.owl.search.domain.usecase.WordCacheUseCases\nimport kotlinx.coroutines.CoroutineExceptionHandler\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.asStateFlow\nimport kotlinx.coroutines.flow.update\nimport kotlinx.coroutines.launch\n\n@HiltViewModel(assistedFactory = OverlayViewModelFactory::class)\nclass OverlayWindowViewModel @AssistedInject constructor(\n    @Assisted(\"intent\") private val intentSearch: String?,\n    private val searchFreeDictionaryUseCase: SearchFreeDictionary,\n    private val cacheUseCases: WordCacheUseCases,\n) : ViewModel() {\n\n    private val exceptionHandler = CoroutineExceptionHandler { _, throwable ->\n        println(throwable.stackTraceToString())\n    }\n\n    private val scope = CoroutineScope(viewModelScope.coroutineContext + exceptionHandler)\n\n    private var _state = MutableStateFlow(OverlayWindowState(searchTerm = intentSearch ?: \"\"))\n    val state = _state.asStateFlow()\n\n    init {\n        val term = state.value.searchTerm\n        if (term.isNotBlank()) {\n            scope.launch {\n                _state.update { it.copy(isSearching = true) }\n                val cached = cacheUseCases.getCachedWord(term)\n                if (cached != null) {\n                    _state.update {\n                        it.copy(\n                            meanings = cached.meanings,\n                            word = cached.word,\n                            phonetic = getFirstPhonetic(cached.phonetics)\n                        )\n                    }\n                } else {\n                    val result = searchFreeDictionaryUseCase(term).firstOrNull()\n                    if (result != null) {\n                        _state.update {\n                            it.copy(\n                                meanings = result.meanings,\n                                word = result.word,\n                                phonetic = getFirstPhonetic(result.phonetics)\n                            )\n                        }\n                    }\n                }\n                _state.update { it.copy(isSearching = false) }\n            }\n        }\n    }\n\n    private fun getFirstPhonetic(phonetics: List<Phonetic>): String {\n        return phonetics.firstOrNull { it.text != null }?.text ?: \"\"\n    }\n}"
  },
  {
    "path": "feature_overlay/src/main/java/io/github/yamin8000/owl/feature_overlay/ui/components/ButtonsRow.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main\n *     ButtonsRow.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     ButtonsRow.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_overlay.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_overlay.ui.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.material3.Button\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.strings.R\n\n@Composable\ninternal fun ButtonsRow(\n    onDismissRequest: () -> Unit,\n    navigateToApp: () -> Unit,\n    modifier: Modifier = Modifier\n) {\n    Row(\n        modifier = modifier,\n        horizontalArrangement = Arrangement.spacedBy(Sizes.Large, Alignment.CenterHorizontally),\n        content = {\n            Button(\n                onClick = onDismissRequest,\n                content = { Text(stringResource(R.string.close)) }\n            )\n            Button(\n                onClick = navigateToApp,\n                content = { Text(stringResource(R.string.more_in_app)) }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_overlay/src/main/java/io/github/yamin8000/owl/feature_overlay/ui/components/SearchList.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main\n *     SearchList.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     SearchList.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_overlay.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_overlay.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_overlay.ui.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.lazy.LazyColumn\nimport androidx.compose.foundation.lazy.items\nimport androidx.compose.material3.LinearProgressIndicator\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.tooling.preview.Preview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.search.domain.model.Meaning\nimport io.github.yamin8000.owl.search.ui.components.MeaningCard\nimport io.github.yamin8000.owl.search.ui.components.WordCard\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.toImmutableList\nimport java.util.UUID\nimport kotlin.random.Random\n\n@Preview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        SearchList(\n            isSearching = Random.nextBoolean(),\n            word = \"Word\",\n            phonetic = \"Phonetic\",\n            meanings = Meaning.mockList().toImmutableList()\n        )\n    }\n}\n\n@Composable\ninternal fun SearchList(\n    isSearching: Boolean,\n    word: String,\n    phonetic: String,\n    meanings: ImmutableList<Meaning>,\n    modifier: Modifier = Modifier\n) {\n    LazyColumn(\n        modifier = modifier,\n        verticalArrangement = Arrangement.spacedBy(Sizes.Medium, Alignment.CenterVertically),\n        horizontalAlignment = Alignment.CenterHorizontally,\n        content = {\n            if (isSearching) {\n                item {\n                    LinearProgressIndicator(\n                        modifier = Modifier.fillMaxWidth()\n                    )\n                }\n            } else {\n                item {\n                    WordCard(\n                        word = word,\n                        pronunciation = phonetic\n                    )\n                }\n                items(\n                    items = meanings,\n                    key = { item -> \"meaning-${item.id ?: UUID.randomUUID()}\" },\n                    itemContent = { meaning ->\n                        MeaningCard(\n                            word = word,\n                            meaning = meaning\n                        )\n                    }\n                )\n            }\n        }\n    )\n}"
  },
  {
    "path": "feature_settings/.gitignore",
    "content": "/build"
  },
  {
    "path": "feature_settings/build.gradle.kts",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings\n *     build.gradle.kts Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     build.gradle.kts Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport org.jetbrains.kotlin.gradle.dsl.JvmTarget\n\nplugins {\n    alias(libs.plugins.android.library)\n    alias(libs.plugins.google.ksp)\n    alias(libs.plugins.jetbrains.kotlin.compose.plugin)\n    alias(libs.plugins.hilt)\n}\n\nandroid {\n    namespace = \"io.github.yamin8000.owl.feature_settings\"\n    compileSdk = 36\n\n    defaultConfig {\n        minSdk = 23\n    }\n\n    compileOptions {\n        sourceCompatibility = JavaVersion.VERSION_17\n        targetCompatibility = JavaVersion.VERSION_17\n    }\n\n    kotlin {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_17\n        }\n    }\n\n    buildFeatures {\n        compose = true\n    }\n}\n\ncomposeCompiler {\n    reportsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n    metricsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n}\n\ndependencies {\n    //core\n    implementation(project(\":common\"))\n    //hilt\n    implementation(libs.hilt.android)\n    ksp(libs.hilt.android.compiler)\n    implementation(libs.hilt.lifecycle.compose)\n}"
  },
  {
    "path": "feature_settings/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n  ~     AndroidManifest.xml Copyrighted by Yamin Siahmargooei at 2025/9/8\n  ~     AndroidManifest.xml Last modified at 2025/3/16\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n  ~     Copyright (C) 2025  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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  ~     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<manifest />"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/Settings.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     Settings.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     Settings.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.rememberScrollState\nimport androidx.compose.foundation.verticalScroll\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.PreviewFontScale\nimport androidx.compose.ui.tooling.preview.PreviewScreenSizes\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport io.github.yamin8000.owl.common.ui.components.ScaffoldWithTitle\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.datastore.domain.model.ThemeType\nimport io.github.yamin8000.owl.feature_settings.ui.components.GeneralSettings\nimport io.github.yamin8000.owl.feature_settings.ui.components.theme.ThemeSetting\nimport io.github.yamin8000.owl.feature_settings.ui.components.tts.TtsLanguageSetting\nimport io.github.yamin8000.owl.strings.R\nimport kotlinx.collections.immutable.persistentListOf\nimport kotlin.random.Random\n\n@PreviewScreenSizes\n@PreviewFontScale\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        SettingsContent(\n            onAction = {},\n            onThemeChanged = {},\n            onBackClick = {},\n            state = SettingsState(\n                theme = ThemeType.entries().random(),\n                ttsLang = \"en-US\",\n                isVibrating = Random.nextBoolean(),\n                isStartingBlank = Random.nextBoolean(),\n                englishLanguages = persistentListOf()\n            )\n        )\n    }\n}\n\n@Composable\nfun SettingsScreen(\n    modifier: Modifier = Modifier,\n    vm: SettingsViewModel = hiltViewModel(),\n    onThemeChanged: (ThemeType) -> Unit,\n    onBackClick: () -> Unit\n) {\n    val state = vm.state.collectAsStateWithLifecycle().value\n\n    SettingsContent(\n        modifier = modifier,\n        state = state,\n        onAction = { vm.onAction(it) },\n        onThemeChanged = onThemeChanged,\n        onBackClick = onBackClick\n    )\n}\n\n@Composable\ninternal fun SettingsContent(\n    state: SettingsState,\n    onAction: (SettingsAction) -> Unit,\n    onThemeChanged: (ThemeType) -> Unit,\n    onBackClick: () -> Unit,\n    modifier: Modifier = Modifier\n) {\n    ScaffoldWithTitle(\n        modifier = modifier,\n        title = stringResource(R.string.settings),\n        onBackClick = onBackClick,\n        content = {\n            Column(\n                horizontalAlignment = Alignment.CenterHorizontally,\n                verticalArrangement = Arrangement.spacedBy(\n                    Sizes.Medium,\n                    Alignment.CenterVertically\n                ),\n                modifier = Modifier\n                    .verticalScroll(rememberScrollState())\n                    .padding(bottom = Sizes.Large),\n                content = {\n                    GeneralSettings(\n                        isVibrating = state.isVibrating,\n                        onVibratingChange = { onAction(SettingsAction.OnVibrationChange(it)) },\n                        isStartingBlank = state.isStartingBlank,\n                        onStartingBlankChange = { onAction(SettingsAction.OnStartingBlankChange(it)) }\n                    )\n                    ThemeSetting(\n                        theme = state.theme,\n                        onThemeChanged = { newTheme ->\n                            onAction(SettingsAction.OnThemeChange(newTheme))\n                            onThemeChanged(newTheme)\n                        }\n                    )\n                    TtsLanguageSetting(\n                        currentTtsTag = state.ttsLang,\n                        languages = state.englishLanguages,\n                        onTtsTagChange = { onAction(SettingsAction.OnTtsLangChange(it)) }\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/SettingsAction.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     SettingsEvent.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     SettingsEvent.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui\n\nimport io.github.yamin8000.owl.datastore.domain.model.ThemeType\n\nsealed interface SettingsAction {\n    data class OnVibrationChange(val value: Boolean) : SettingsAction\n    data class OnStartingBlankChange(val value: Boolean) : SettingsAction\n    data class OnTtsLangChange(val value: String) : SettingsAction\n    data class OnThemeChange(val newTheme: ThemeType) : SettingsAction\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/SettingsState.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     SettingsState.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     SettingsState.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui\n\nimport io.github.yamin8000.owl.datastore.domain.model.ThemeType\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.persistentListOf\nimport java.util.Locale\n\ndata class SettingsState(\n    val theme: ThemeType = ThemeType.System,\n    val ttsLang: String = \"en-US\",\n    val isVibrating: Boolean = true,\n    val isStartingBlank: Boolean = true,\n    val englishLanguages: ImmutableList<Locale> = persistentListOf()\n)\n"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/SettingsViewModel.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     SettingsViewModel.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     SettingsViewModel.kt Last modified at 2024/8/19\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui\n\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport io.github.yamin8000.owl.common.util.TTS\nimport io.github.yamin8000.owl.datastore.domain.usecase.settings.SettingUseCases\nimport kotlinx.collections.immutable.toImmutableList\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.asStateFlow\nimport kotlinx.coroutines.flow.update\nimport kotlinx.coroutines.launch\nimport kotlinx.coroutines.runBlocking\nimport javax.inject.Inject\n\n@HiltViewModel\nclass SettingsViewModel @Inject constructor(\n    private val useCases: SettingUseCases,\n    private val tts: TTS\n) : ViewModel() {\n    private val scope = viewModelScope\n\n    private var _state = MutableStateFlow(SettingsState())\n    val state = _state.asStateFlow()\n\n    init {\n        runBlocking {\n            _state.update { settingsState ->\n                settingsState.copy(\n                    theme = useCases.getTheme(),\n                    ttsLang = useCases.getTTS(),\n                    isVibrating = useCases.getVibration(),\n                    isStartingBlank = useCases.getStartingBlank(),\n                )\n            }\n        }\n        scope.launch {\n            _state.update { settingsState ->\n                settingsState.copy(englishLanguages = tts.englishLanguages().toImmutableList())\n            }\n        }\n    }\n\n    fun onAction(action: SettingsAction) {\n        when (action) {\n            is SettingsAction.OnStartingBlankChange -> {\n                _state.update { it.copy(isStartingBlank = action.value) }\n                scope.launch { useCases.setStartingBlank(action.value) }\n            }\n\n            is SettingsAction.OnTtsLangChange -> {\n                _state.update { it.copy(ttsLang = action.value) }\n                scope.launch { useCases.setTTS(action.value) }\n            }\n\n            is SettingsAction.OnVibrationChange -> {\n                _state.update { it.copy(isVibrating = action.value) }\n                scope.launch { useCases.setVibration(action.value) }\n            }\n\n            is SettingsAction.OnThemeChange -> {\n                _state.update { it.copy(theme = action.newTheme) }\n                scope.launch { useCases.setTheme(action.newTheme) }\n            }\n        }\n    }\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/components/GeneralSettings.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     GeneralSettings.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     GeneralSettings.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui.components\n\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.Language\nimport androidx.compose.material.icons.twotone.Search\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.strings.R\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        GeneralSettings(\n            isVibrating = true,\n            onVibratingChange = {},\n            isStartingBlank = true,\n            onStartingBlankChange = {}\n        )\n    }\n}\n\n@Composable\ninternal fun GeneralSettings(\n    isVibrating: Boolean,\n    onVibratingChange: (Boolean) -> Unit,\n    isStartingBlank: Boolean,\n    onStartingBlankChange: (Boolean) -> Unit,\n    modifier: Modifier = Modifier\n) {\n    SettingsItemCard(\n        modifier = modifier.fillMaxWidth(),\n        title = stringResource(R.string.general),\n        content = {\n            SwitchItem(\n                imageVector = Icons.TwoTone.Language,\n                caption = stringResource(R.string.vibrate_on_scroll),\n                checked = isVibrating,\n                onCheckedChange = onVibratingChange\n            )\n            SwitchItem(\n                imageVector = Icons.TwoTone.Search,\n                caption = stringResource(R.string.start_blank_search),\n                checked = isStartingBlank,\n                onCheckedChange = onStartingBlankChange\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/components/SettingsItem.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     SettingsItem.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     SettingsItem.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui.components\n\nimport androidx.compose.foundation.LocalIndication\nimport androidx.compose.foundation.clickable\nimport androidx.compose.foundation.interaction.MutableInteractionSource\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.RowScope\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.ArrowDropDownCircle\nimport androidx.compose.material3.Icon\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        SettingsItem(\n            onClick = {},\n            content = {}\n        )\n    }\n}\n\n@Composable\ninternal fun SettingsItem(\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n    content: @Composable RowScope.() -> Unit\n) {\n    val interactionSource = remember { MutableInteractionSource() }\n    Box(\n        modifier = modifier.clickable(\n            interactionSource = interactionSource,\n            indication = LocalIndication.current,\n            onClick = onClick,\n        ),\n        content = {\n            Row(\n                modifier = Modifier.fillMaxWidth(),\n                horizontalArrangement = Arrangement.SpaceBetween,\n                verticalAlignment = Alignment.CenterVertically,\n                content = {\n                    Row(\n                        //Extra padding for increasing touch area\n                        modifier = Modifier\n                            .fillMaxWidth()\n                            .padding(vertical = Sizes.Medium)\n                            .weight(5f),\n                        horizontalArrangement = Arrangement.spacedBy(Sizes.Medium, Alignment.Start),\n                        verticalAlignment = Alignment.CenterVertically,\n                        content = content\n                    )\n                    Box(\n                        modifier = Modifier.weight(1f),\n                        content = {\n                            Icon(\n                                imageVector = Icons.TwoTone.ArrowDropDownCircle,\n                                contentDescription = null,\n                                modifier = Modifier.align(Alignment.CenterEnd)\n                            )\n                        }\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/components/SettingsItemCard.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     SettingsItemCard.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     SettingsItemCard.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui.components\n\nimport androidx.compose.foundation.BorderStroke\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.ColumnScope\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.OutlinedCard\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.unit.sp\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.theme.DefaultCutShape\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        SettingsItemCard(\n            title = \"Wifi\",\n            content = {\n                Text(\n                    text = \"on/off\"\n                )\n            }\n        )\n    }\n}\n\n@Composable\ninternal fun SettingsItemCard(\n    title: String,\n    modifier: Modifier = Modifier,\n    content: @Composable ColumnScope.() -> Unit\n) {\n    Column(\n        modifier = modifier,\n        verticalArrangement = Arrangement.spacedBy(Sizes.Small, Alignment.CenterVertically),\n        horizontalAlignment = Alignment.Start,\n        content = {\n            AppText(\n                text = title,\n                fontSize = 18.sp,\n                color = MaterialTheme.colorScheme.primary\n            )\n            OutlinedCard(\n                border = BorderStroke(Sizes.xxSmall, MaterialTheme.colorScheme.secondary),\n                shape = DefaultCutShape,\n                content = {\n                    Column(\n                        modifier = Modifier.padding(Sizes.Large),\n                        horizontalAlignment = Alignment.CenterHorizontally,\n                        verticalArrangement = Arrangement.spacedBy(\n                            Sizes.Medium,\n                            Alignment.CenterVertically\n                        ),\n                        content = content\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/components/SwitchItem.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     SwitchItem.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     SwitchItem.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.Category\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        SwitchItem(\n            imageVector = Icons.TwoTone.Category,\n            caption = \"Item on/off\",\n            checked = false,\n            onCheckedChange = {}\n        )\n    }\n}\n\n@Composable\ninternal fun SwitchItem(\n    imageVector: ImageVector,\n    caption: String,\n    checked: Boolean,\n    onCheckedChange: (Boolean) -> Unit,\n    modifier: Modifier = Modifier\n) {\n    Row(\n        modifier = modifier,\n        horizontalArrangement = Arrangement.spacedBy(Sizes.Small, Alignment.Start),\n        verticalAlignment = Alignment.CenterVertically,\n        content = {\n            Icon(\n                imageVector = imageVector,\n                contentDescription = null,\n                tint = MaterialTheme.colorScheme.secondary\n            )\n            SwitchWithText(\n                caption = caption,\n                checked = checked,\n                onCheckedChange = onCheckedChange\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/components/SwitchWithText.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     Components.kt Copyrighted by Yamin Siahmargooei at 2024/8/19\n *     Components.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui.components\n\nimport androidx.compose.foundation.clickable\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.size\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.filled.Check\nimport androidx.compose.material.icons.filled.Close\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.Switch\nimport androidx.compose.material3.SwitchDefaults\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.hapticfeedback.HapticFeedbackType\nimport androidx.compose.ui.platform.LocalHapticFeedback\nimport androidx.compose.ui.semantics.Role\nimport androidx.compose.ui.text.style.TextOverflow\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        var checked by remember { mutableStateOf(true) }\n        SwitchWithText(\n            caption = \"some settingssssssssssssssssssssssssssssssssssssssssssssssssssssssss\",\n            checked = checked,\n            onCheckedChange = { checked = it }\n        )\n    }\n}\n\n@Composable\ninternal fun SwitchWithText(\n    caption: String,\n    checked: Boolean,\n    onCheckedChange: (Boolean) -> Unit,\n    modifier: Modifier = Modifier\n) {\n    val hapticFeedback = LocalHapticFeedback.current\n    val feedbackType = remember(checked) {\n        if (checked) HapticFeedbackType.ToggleOff\n        else HapticFeedbackType.ToggleOn\n    }\n    Box(\n        modifier = modifier.clickable(\n            role = Role.Switch,\n            onClick = {\n                hapticFeedback.performHapticFeedback(feedbackType)\n                onCheckedChange(!checked)\n            }\n        ),\n        content = {\n            Row(\n                modifier = Modifier.fillMaxWidth(),\n                verticalAlignment = Alignment.CenterVertically,\n                horizontalArrangement = Arrangement.SpaceBetween,\n                content = {\n                    AppText(\n                        text = caption,\n                        maxLines = 2,\n                        overflow = TextOverflow.Ellipsis,\n                        modifier = Modifier.weight(5f)\n                    )\n                    Box(\n                        modifier = Modifier.weight(1f),\n                        content = {\n                            val icon = remember(checked) {\n                                if (checked) Icons.Filled.Check else Icons.Filled.Close\n                            }\n                            Switch(\n                                checked = checked,\n                                onCheckedChange = onCheckedChange,\n                                modifier = Modifier.align(Alignment.CenterEnd),\n                                thumbContent = {\n                                    Icon(\n                                        imageVector = icon,\n                                        contentDescription = null,\n                                        modifier = Modifier.size(SwitchDefaults.IconSize),\n                                    )\n                                }\n                            )\n                        }\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/components/theme/DynamicThemeNotice.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     DynamicThemeNotice.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     DynamicThemeNotice.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui.components.theme\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.style.TextAlign\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.strings.R\n\n@Composable\ninternal fun DynamicThemeNotice(\n    modifier: Modifier = Modifier,\n) {\n    AppText(\n        modifier = modifier,\n        text = stringResource(R.string.dynamic_theme_notice),\n        textAlign = TextAlign.Justify\n    )\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/components/theme/ThemeChangerDialog.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     ThemeChangerDialog.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     ThemeChangerDialog.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui.components.theme\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.rememberScrollState\nimport androidx.compose.foundation.selection.selectable\nimport androidx.compose.foundation.selection.selectableGroup\nimport androidx.compose.foundation.verticalScroll\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.DisplaySettings\nimport androidx.compose.material3.BasicAlertDialog\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.RadioButton\nimport androidx.compose.material3.Surface\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.platform.LocalContext\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.semantics.Role\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.theme.DefaultCutShape\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.datastore.domain.model.ThemeType\nimport io.github.yamin8000.owl.feature_settings.ui.utils.Utility.toStringResource\nimport io.github.yamin8000.owl.strings.R\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        ThemeChangerDialog(\n            currentTheme = ThemeType.entries().random(),\n            onCurrentThemeChange = {},\n            onDismiss = {}\n        )\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\ninternal fun ThemeChangerDialog(\n    currentTheme: ThemeType,\n    onCurrentThemeChange: (ThemeType) -> Unit,\n    onDismiss: () -> Unit,\n    modifier: Modifier = Modifier\n) {\n    val themes = remember { ThemeType.entries() }\n    BasicAlertDialog(\n        modifier = modifier,\n        onDismissRequest = onDismiss,\n        content = {\n            Surface(\n                shape = DefaultCutShape,\n                content = {\n                    Column(\n                        horizontalAlignment = Alignment.CenterHorizontally,\n                        verticalArrangement = Arrangement.spacedBy(\n                            Sizes.Small,\n                            Alignment.CenterVertically\n                        ),\n                        modifier = Modifier\n                            .padding(Sizes.Large)\n                            .selectableGroup()\n                            .fillMaxWidth()\n                            .verticalScroll(rememberScrollState()),\n                        content = {\n                            Row(\n                                modifier = Modifier.fillMaxWidth(),\n                                horizontalArrangement = Arrangement.spacedBy(\n                                    Sizes.Small,\n                                    Alignment.CenterHorizontally\n                                ),\n                                verticalAlignment = Alignment.CenterVertically,\n                                content = {\n                                    Icon(\n                                        imageVector = Icons.TwoTone.DisplaySettings,\n                                        contentDescription = null\n                                    )\n                                    AppText(text = stringResource(R.string.theme))\n                                }\n                            )\n                            themes.forEach { theme ->\n                                Row(\n                                    verticalAlignment = Alignment.CenterVertically,\n                                    horizontalArrangement = Arrangement.spacedBy(\n                                        Sizes.xSmall,\n                                        Alignment.Start\n                                    ),\n                                    modifier = Modifier\n                                        .fillMaxWidth()\n                                        .selectable(\n                                            selected = theme == currentTheme,\n                                            role = Role.RadioButton,\n                                            onClick = {\n                                                onCurrentThemeChange(theme)\n                                                onDismiss()\n                                            }\n                                        ),\n                                    content = {\n                                        val context = LocalContext.current\n                                        RadioButton(\n                                            modifier = Modifier.padding(start = Sizes.Medium),\n                                            selected = theme == currentTheme,\n                                            onClick = null\n                                        )\n                                        AppText(\n                                            modifier = Modifier.padding(vertical = Sizes.Large),\n                                            text = theme.toStringResource(context)\n                                        )\n                                    }\n                                )\n                            }\n                        }\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/components/theme/ThemeSetting.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     ThemeSetting.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     ThemeSetting.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui.components.theme\n\nimport android.os.Build\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.DisplaySettings\nimport androidx.compose.material3.Icon\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.platform.LocalContext\nimport androidx.compose.ui.res.stringResource\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.datastore.domain.model.ThemeType\nimport io.github.yamin8000.owl.feature_settings.ui.components.SettingsItem\nimport io.github.yamin8000.owl.feature_settings.ui.components.SettingsItemCard\nimport io.github.yamin8000.owl.feature_settings.ui.utils.Utility.toStringResource\nimport io.github.yamin8000.owl.strings.R\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        ThemeSetting(\n            theme = ThemeType.System,\n            onThemeChanged = {}\n        )\n    }\n}\n\n@Composable\ninternal fun ThemeSetting(\n    theme: ThemeType,\n    onThemeChanged: (ThemeType) -> Unit,\n    modifier: Modifier = Modifier\n) {\n    var isShowingDialog by remember { mutableStateOf(false) }\n\n    SettingsItemCard(\n        modifier = modifier,\n        title = stringResource(R.string.theme),\n        content = {\n            if (isShowingDialog) {\n                ThemeChangerDialog(\n                    currentTheme = theme,\n                    onCurrentThemeChange = onThemeChanged,\n                    onDismiss = { isShowingDialog = false }\n                )\n            }\n            SettingsItem(\n                onClick = { isShowingDialog = true },\n                content = {\n                    Row(\n                        modifier = Modifier.fillMaxWidth(),\n                        verticalAlignment = Alignment.CenterVertically,\n                        horizontalArrangement = Arrangement.spacedBy(\n                            Sizes.Small,\n                            Alignment.Start\n                        ),\n                        content = {\n                            val context = LocalContext.current\n                            Icon(\n                                imageVector = Icons.TwoTone.DisplaySettings,\n                                contentDescription = null,\n                            )\n                            AppText(\n                                text = theme.toStringResource(context),\n                                maxLines = 2\n                            )\n                        }\n                    )\n                }\n            )\n            if ((theme == ThemeType.System || theme == ThemeType.SystemDarker) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {\n                DynamicThemeNotice()\n            }\n        }\n    )\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/components/tts/TtsLanguageItem.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     TtsLanguageItem.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     TtsLanguageItem.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui.components.tts\n\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.material3.OutlinedCard\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.text.style.TextOverflow\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.theme.DefaultCutShape\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport java.util.Locale\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        TtsLanguageItem(\n            localeTag = \"en-us\",\n            isSelected = false,\n            onClick = {}\n        )\n    }\n}\n\n@Composable\ninternal fun TtsLanguageItem(\n    localeTag: String,\n    isSelected: Boolean,\n    onClick: (String) -> Unit,\n    modifier: Modifier = Modifier\n) {\n    OutlinedCard(\n        modifier = modifier.fillMaxWidth(),\n        shape = DefaultCutShape,\n        onClick = { onClick(localeTag) },\n        enabled = !isSelected,\n        content = {\n            AppText(\n                modifier = Modifier.padding(Sizes.Large),\n                text = Locale.forLanguageTag(localeTag).displayName,\n                maxLines = 2,\n                overflow = TextOverflow.Ellipsis\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/components/tts/TtsLanguageSetting.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     TtsLanguageSetting.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     TtsLanguageSetting.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui.components.tts\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.Language\nimport androidx.compose.material3.Icon\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.feature_settings.ui.components.SettingsItem\nimport io.github.yamin8000.owl.feature_settings.ui.components.SettingsItemCard\nimport io.github.yamin8000.owl.strings.R\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.persistentListOf\nimport java.util.Locale\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        TtsLanguageSetting(\n            currentTtsTag = \"en-us\",\n            languages = persistentListOf(),\n            onTtsTagChange = {}\n        )\n    }\n}\n\n@Composable\ninternal fun TtsLanguageSetting(\n    currentTtsTag: String,\n    languages: ImmutableList<Locale>,\n    onTtsTagChange: (String) -> Unit,\n    modifier: Modifier = Modifier\n) {\n    SettingsItemCard(\n        modifier = modifier,\n        title = stringResource(R.string.tts_language),\n        content = {\n            var isDialogShown by remember { mutableStateOf(false) }\n            SettingsItem(\n                onClick = { isDialogShown = true },\n                content = {\n                    Row(\n                        modifier = Modifier.fillMaxWidth(),\n                        verticalAlignment = Alignment.CenterVertically,\n                        horizontalArrangement = Arrangement.spacedBy(\n                            Sizes.Small,\n                            Alignment.Start\n                        ),\n                        content = {\n                            Icon(\n                                imageVector = Icons.TwoTone.Language,\n                                contentDescription = null\n                            )\n                            AppText(\n                                text = Locale.forLanguageTag(currentTtsTag).displayName,\n                                maxLines = 2\n                            )\n                        }\n                    )\n\n                    if (isDialogShown) {\n                        TtsLanguagesDialog(\n                            currentTtsTag = currentTtsTag,\n                            languages = languages,\n                            onDismiss = { isDialogShown = false },\n                            onLanguageSelect = {\n                                onTtsTagChange(it)\n                                isDialogShown = false\n                            }\n                        )\n                    }\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/components/tts/TtsLanguagesDialog.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     TtsLanguagesDialog.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     TtsLanguagesDialog.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui.components.tts\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.lazy.LazyColumn\nimport androidx.compose.foundation.lazy.items\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.Language\nimport androidx.compose.material3.BasicAlertDialog\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.Surface\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport io.github.yamin8000.owl.common.ui.components.AppText\nimport io.github.yamin8000.owl.common.ui.theme.DefaultCutShape\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.strings.R\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.persistentListOf\nimport java.util.Locale\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        TtsLanguagesDialog(\n            currentTtsTag = \"\",\n            languages = persistentListOf(),\n            onDismiss = {},\n            onLanguageSelect = {}\n        )\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\ninternal fun TtsLanguagesDialog(\n    currentTtsTag: String,\n    languages: ImmutableList<Locale>,\n    onLanguageSelect: (String) -> Unit,\n    onDismiss: () -> Unit,\n    modifier: Modifier = Modifier\n) {\n    BasicAlertDialog(\n        modifier = modifier,\n        onDismissRequest = onDismiss,\n        content = {\n            Surface(\n                shape = DefaultCutShape,\n                content = {\n                    LazyColumn(\n                        modifier = Modifier.padding(Sizes.Large),\n                        horizontalAlignment = Alignment.CenterHorizontally,\n                        verticalArrangement = Arrangement.spacedBy(\n                            Sizes.Medium,\n                            Alignment.CenterVertically\n                        ),\n                        content = {\n                            item {\n                                Row(\n                                    modifier = Modifier.fillMaxWidth(),\n                                    horizontalArrangement = Arrangement.spacedBy(\n                                        Sizes.Small,\n                                        Alignment.CenterHorizontally\n                                    ),\n                                    verticalAlignment = Alignment.CenterVertically,\n                                    content = {\n                                        Icon(\n                                            imageVector = Icons.TwoTone.Language,\n                                            contentDescription = null\n                                        )\n                                        AppText(text = stringResource(R.string.tts_language))\n                                    }\n                                )\n\n                            }\n                            item {\n\n                            }\n                            items(items = languages) {\n                                TtsLanguageItem(\n                                    localeTag = it.toLanguageTag(),\n                                    isSelected = it.toLanguageTag() == currentTtsTag,\n                                    onClick = onLanguageSelect\n                                )\n                            }\n                        }\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "feature_settings/src/main/java/io/github/yamin8000/owl/feature_settings/ui/utils/Utility.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main\n *     Utility.kt Copyrighted by Yamin Siahmargooei at 2025/2/7\n *     Utility.kt Last modified at 2025/2/7\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_settings.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_settings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.feature_settings.ui.utils\n\nimport android.content.Context\nimport io.github.yamin8000.owl.datastore.domain.model.ThemeType\nimport io.github.yamin8000.owl.strings.R\n\nobject Utility {\n\n    internal fun ThemeType.toStringResource(\n        context: Context\n    ) = when (this) {\n        ThemeType.Dark -> context.getString(R.string.theme_dark)\n        ThemeType.Darker -> context.getString(R.string.theme_oled)\n        ThemeType.Light -> context.getString(R.string.theme_light)\n        ThemeType.System -> context.getString(R.string.theme_system)\n        ThemeType.SystemDarker -> context.getString(R.string.theme_system_darker)\n    }\n}\n"
  },
  {
    "path": "gradle/libs.versions.toml",
    "content": "[versions]\nandroid-application = \"9.0.1\"\nandroidx-activity-compose = \"1.13.0\"\nandroidx-compose-bom = \"2026.05.00\"\nandroidx-core-ktx = \"1.18.0\"\nandroidx-core-splash = \"1.2.0\"\nandroidx-datastore = \"1.2.1\"\nandroidx-lifecycle-compose = \"2.10.0\"\nandroidx-material3 = \"1.5.0-alpha15\"\nandroidx-navigation-compose = \"2.9.8\"\nandroidx-room = \"2.8.4\"\ncoil-compose = \"2.7.0\"\ndatafaker = \"2.5.4\"\ndesugar-jdk-libs = \"2.1.5\"\nhilt = \"2.59.2\"\nhilt-compose = \"1.3.0\"\nkotlin = \"2.3.21\"\nkotlinx-collections-immutable = \"0.4.0\"\nksp = \"2.3.7\"\nlottie-compose = \"6.7.1\"\nmoshi = \"1.15.2\"\nretrofit = \"3.0.0\"\n\n[libraries]\nandroidx-activity-compose = { module = \"androidx.activity:activity-compose\", version.ref = \"androidx-activity-compose\" }\nandroidx-compose-bom = { group = \"androidx.compose\", name = \"compose-bom\", version.ref = \"androidx-compose-bom\" }\nandroidx-compose-material = { module = \"androidx.compose.material:material\" }\nandroidx-compose-material-icons-extended = { module = \"androidx.compose.material:material-icons-extended\" }\nandroidx-compose-material3 = { module = \"androidx.compose.material3:material3\", version.ref = \"androidx-material3\" }\nandroidx-compose-material3-window-size = { module = \"androidx.compose.material3:material3-window-size-class\", version.ref = \"androidx-material3\" }\nandroidx-compose-ui = { module = \"androidx.compose.ui:ui\" }\nandroidx-compose-ui-tooling = { module = \"androidx.compose.ui:ui-tooling\" }\nandroidx-compose-ui-tooling-preview = { module = \"androidx.compose.ui:ui-tooling-preview\" }\nandroidx-core-ktx = { module = \"androidx.core:core-ktx\", version.ref = \"androidx-core-ktx\" }\nandroidx-core-splashscreen = { module = \"androidx.core:core-splashscreen\", version.ref = \"androidx-core-splash\" }\nandroidx-datastore-preferences = { module = \"androidx.datastore:datastore-preferences\", version.ref = \"androidx-datastore\" }\nandroidx-lifecycle-runtime-compose = { module = \"androidx.lifecycle:lifecycle-runtime-compose\", version.ref = \"androidx-lifecycle-compose\" }\nandroidx-lifecycle-viewmodel-compose = { module = \"androidx.lifecycle:lifecycle-viewmodel-compose\", version.ref = \"androidx-lifecycle-compose\" }\nandroidx-navigation-compose = { module = \"androidx.navigation:navigation-compose\", version.ref = \"androidx-navigation-compose\" }\nandroidx-room-compiler = { module = \"androidx.room:room-compiler\", version.ref = \"androidx-room\" }\nandroidx-room-ktx = { module = \"androidx.room:room-ktx\", version.ref = \"androidx-room\" }\nandroidx-room-runtime = { module = \"androidx.room:room-runtime\", version.ref = \"androidx-room\" }\ncoil-compose = { module = \"io.coil-kt:coil-compose\", version.ref = \"coil-compose\" }\ndatafaker = { module = \"net.datafaker:datafaker\", version.ref = \"datafaker\" }\ndesugar-jdk-libs = { module = \"com.android.tools:desugar_jdk_libs\", version.ref = \"desugar-jdk-libs\" }\nhilt-android = { module = \"com.google.dagger:hilt-android\", version.ref = \"hilt\" }\nhilt-android-compiler = { module = \"com.google.dagger:hilt-android-compiler\", version.ref = \"hilt\" }\nhilt-lifecycle-compose = { module = \"androidx.hilt:hilt-lifecycle-viewmodel-compose\", version.ref = \"hilt-compose\" }\nkotlinx-collections-immutable = { module = \"org.jetbrains.kotlinx:kotlinx-collections-immutable\", version.ref = \"kotlinx-collections-immutable\" }\nlottie-compose = { module = \"com.airbnb.android:lottie-compose\", version.ref = \"lottie-compose\" }\nmoshi-kotlin = { module = \"com.squareup.moshi:moshi-kotlin\", version.ref = \"moshi\" }\nmoshi-kotlin-codegen = { module = \"com.squareup.moshi:moshi-kotlin-codegen\", version.ref = \"moshi\" }\nretrofit-converter-moshi = { module = \"com.squareup.retrofit2:converter-moshi\", version.ref = \"retrofit\" }\nretrofit-main = { module = \"com.squareup.retrofit2:retrofit\", version.ref = \"retrofit\" }\nretrofit-type-keeper = { module = \"com.squareup.retrofit2:response-type-keeper\", version.ref = \"retrofit\" }\n\n[plugins]\nandroid-application = { id = \"com.android.application\", version.ref = \"android-application\" }\nandroid-library = { id = \"com.android.library\", version.ref = \"android-application\" }\nandroix-room = { id = \"androidx.room\", version.ref = \"androidx-room\" }\ngoogle-ksp = { id = \"com.google.devtools.ksp\", version.ref = \"ksp\" }\nhilt = { id = \"com.google.dagger.hilt.android\", version.ref = \"hilt\" }\njetbrains-kotlin-compose-plugin = { id = \"org.jetbrains.kotlin.plugin.compose\", version.ref = \"kotlin\" }\njetbrains-kotlin-jvm = { id = \"org.jetbrains.kotlin.jvm\", version.ref = \"kotlin\" }\nkotlin-parcelize = { id = \"kotlin-parcelize\" }\nlegacy-kapt = { id = \"com.android.legacy-kapt\", version.ref = \"android-application\" }"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-9.5.0-bin.zip\nnetworkTimeout=10000\nretries=0\nretryBackOffMs=500\nvalidateDistributionUrl=true\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\n"
  },
  {
    "path": "gradle.properties",
    "content": "#\n#     freeDictionaryApp/freeDictionaryApp\n#     gradle.properties Copyrighted by Yamin Siahmargooei at 2024/5/9\n#     gradle.properties Last modified at 2024/3/23\n#     This file is part of freeDictionaryApp/freeDictionaryApp.\n#     Copyright (C) 2024  Yamin Siahmargooei\n#\n#     freeDictionaryApp/freeDictionaryApp 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#     freeDictionaryApp/freeDictionaryApp 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n#\norg.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8\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# Kotlin code style for this project: \"official\" or \"obsolete\":\nkotlin.code.style=official\nandroid.r8.optimizedResourceShrinking=true\nandroid.r8.strictFullModeForKeepRules=false\norg.gradle.configuration-cache=true"
  },
  {
    "path": "gradlew",
    "content": "#!/bin/sh\n\n#\n# Copyright © 2015 the original authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n# SPDX-License-Identifier: Apache-2.0\n#\n\n##############################################################################\n#\n#   Gradle start up script for POSIX generated by Gradle.\n#\n#   Important for running:\n#\n#   (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is\n#       noncompliant, but you have some other compliant shell such as ksh or\n#       bash, then to run this script, type that shell name before the whole\n#       command line, like:\n#\n#           ksh Gradle\n#\n#       Busybox and similar reduced shells will NOT work, because this script\n#       requires all of these POSIX shell features:\n#         * functions;\n#         * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,\n#           «${var#prefix}», «${var%suffix}», and «$( cmd )»;\n#         * compound commands having a testable exit status, especially «case»;\n#         * various built-in commands including «command», «set», and «ulimit».\n#\n#   Important for patching:\n#\n#   (2) This script targets any POSIX shell, so it avoids extensions provided\n#       by Bash, Ksh, etc; in particular arrays are avoided.\n#\n#       The \"traditional\" practice of packing multiple parameters into a\n#       space-separated string is a well documented source of bugs and security\n#       problems, so this is (mostly) avoided, by progressively accumulating\n#       options in \"$@\", and eventually passing that to Java.\n#\n#       Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,\n#       and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;\n#       see the in-line comments for details.\n#\n#       There are tweaks for specific operating systems such as AIX, CygWin,\n#       Darwin, MinGW, and NonStop.\n#\n#   (3) This script is generated from the Groovy template\n#       https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt\n#       within the Gradle project.\n#\n#       You can find Gradle at https://github.com/gradle/gradle/.\n#\n##############################################################################\n\n# Attempt to set APP_HOME\n\n# Resolve links: $0 may be a link\napp_path=$0\n\n# Need this for daisy-chained symlinks.\nwhile\n    APP_HOME=${app_path%\"${app_path##*/}\"}  # leaves a trailing /; empty if no leading path\n    [ -h \"$app_path\" ]\ndo\n    ls=$( ls -ld \"$app_path\" )\n    link=${ls#*' -> '}\n    case $link in             #(\n      /*)   app_path=$link ;; #(\n      *)    app_path=$APP_HOME$link ;;\n    esac\ndone\n\n# This is normally unused\n# shellcheck disable=SC2034\nAPP_BASE_NAME=${0##*/}\n# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)\nAPP_HOME=$( cd -P \"${APP_HOME:-./}\" > /dev/null && printf '%s\\n' \"$PWD\" ) || exit\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=maximum\n\nwarn () {\n    echo \"$*\"\n} >&2\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n} >&2\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"$( uname )\" in                #(\n  CYGWIN* )         cygwin=true  ;; #(\n  Darwin* )         darwin=true  ;; #(\n  MSYS* | MINGW* )  msys=true    ;; #(\n  NONSTOP* )        nonstop=true ;;\nesac\n\n\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    if ! command -v java >/dev/null 2>&1\n    then\n        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.\"\n    fi\nfi\n\n# Increase the maximum file descriptors if we can.\nif ! \"$cygwin\" && ! \"$darwin\" && ! \"$nonstop\" ; then\n    case $MAX_FD in #(\n      max*)\n        # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.\n        # shellcheck disable=SC2039,SC3045\n        MAX_FD=$( ulimit -H -n ) ||\n            warn \"Could not query maximum file descriptor limit\"\n    esac\n    case $MAX_FD in  #(\n      '' | soft) :;; #(\n      *)\n        # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.\n        # shellcheck disable=SC2039,SC3045\n        ulimit -n \"$MAX_FD\" ||\n            warn \"Could not set maximum file descriptor limit to $MAX_FD\"\n    esac\nfi\n\n# Collect all arguments for the java command, stacking in reverse order:\n#   * args from the command line\n#   * the main class name\n#   * -classpath\n#   * -D...appname settings\n#   * --module-path (only if needed)\n#   * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.\n\n# For Cygwin or MSYS, switch paths to Windows format before running java\nif \"$cygwin\" || \"$msys\" ; then\n    APP_HOME=$( cygpath --path --mixed \"$APP_HOME\" )\n\n    JAVACMD=$( cygpath --unix \"$JAVACMD\" )\n\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    for arg do\n        if\n            case $arg in                                #(\n              -*)   false ;;                            # don't mess with options #(\n              /?*)  t=${arg#/} t=/${t%%/*}              # looks like a POSIX filepath\n                    [ -e \"$t\" ] ;;                      #(\n              *)    false ;;\n            esac\n        then\n            arg=$( cygpath --path --ignore --mixed \"$arg\" )\n        fi\n        # Roll the args list around exactly as many times as the number of\n        # args, so each arg winds up back in the position where it started, but\n        # possibly modified.\n        #\n        # NB: a `for` loop captures its iteration list before it begins, so\n        # changing the positional parameters here affects neither the number of\n        # iterations, nor the values presented in `arg`.\n        shift                   # remove old arg\n        set -- \"$@\" \"$arg\"      # push replacement arg\n    done\nfi\n\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='\"-Xmx64m\" \"-Xms64m\"'\n\n# Collect all arguments for the java command:\n#   * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,\n#     and any embedded shellness will be escaped.\n#   * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be\n#     treated as '${Hostname}' itself on the command line.\n\nset -- \\\n        \"-Dorg.gradle.appname=$APP_BASE_NAME\" \\\n        -jar \"$APP_HOME/gradle/wrapper/gradle-wrapper.jar\" \\\n        \"$@\"\n\n# Stop when \"xargs\" is not available.\nif ! command -v xargs >/dev/null 2>&1\nthen\n    die \"xargs is not available\"\nfi\n\n# Use \"xargs\" to parse quoted args.\n#\n# With -n1 it outputs one arg per line, with the quotes and backslashes removed.\n#\n# In Bash we could simply go:\n#\n#   readarray ARGS < <( xargs -n1 <<<\"$var\" ) &&\n#   set -- \"${ARGS[@]}\" \"$@\"\n#\n# but POSIX shell has neither arrays nor command substitution, so instead we\n# post-process each arg (as a line of input to sed) to backslash-escape any\n# character that might be a shell metacharacter, then use eval to reverse\n# that process (while maintaining the separation between arguments), and wrap\n# the whole thing up as a single \"set\" statement.\n#\n# This will of course break if any of these variables contains a newline or\n# an unmatched quote.\n#\n\neval \"set -- $(\n        printf '%s\\n' \"$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS\" |\n        xargs -n1 |\n        sed ' s~[^-[:alnum:]+,./:=@_]~\\\\&~g; ' |\n        tr '\\n' ' '\n    )\" '\"$@\"'\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@rem\r\n@rem Copyright 2015 the original author or authors.\r\n@rem\r\n@rem Licensed under the Apache License, Version 2.0 (the \"License\");\r\n@rem you may not use this file except in compliance with the License.\r\n@rem You may obtain a copy of the License at\r\n@rem\r\n@rem      https://www.apache.org/licenses/LICENSE-2.0\r\n@rem\r\n@rem Unless required by applicable law or agreed to in writing, software\r\n@rem distributed under the License is distributed on an \"AS IS\" BASIS,\r\n@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n@rem See the License for the specific language governing permissions and\r\n@rem limitations under the License.\r\n@rem\r\n@rem SPDX-License-Identifier: Apache-2.0\r\n@rem\r\n\r\n@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, and ensure extensions are enabled\r\nsetlocal EnableExtensions\r\n\r\nset DIRNAME=%~dp0\r\nif \"%DIRNAME%\"==\"\" set DIRNAME=.\r\n@rem This is normally unused\r\nset APP_BASE_NAME=%~n0\r\nset APP_HOME=%DIRNAME%\r\n\r\n@rem Resolve any \".\" and \"..\" in APP_HOME to make it shorter.\r\nfor %%i in (\"%APP_HOME%\") do set APP_HOME=%%~fi\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=\"-Xmx64m\" \"-Xms64m\"\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% equ 0 goto execute\r\n\r\necho. 1>&2\r\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2\r\necho. 1>&2\r\necho Please set the JAVA_HOME variable in your environment to match the 1>&2\r\necho location of your Java installation. 1>&2\r\n\r\n\"%COMSPEC%\" /c exit 1\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 execute\r\n\r\necho. 1>&2\r\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2\r\necho. 1>&2\r\necho Please set the JAVA_HOME variable in your environment to match the 1>&2\r\necho location of your Java installation. 1>&2\r\n\r\n\"%COMSPEC%\" /c exit 1\r\n\r\n:execute\r\n@rem Setup the command line\r\n\r\n\r\n\r\n@rem Execute Gradle\r\n@rem endlocal doesn't take effect until after the line is parsed and variables are expanded\r\n@rem which allows us to clear the local environment before executing the java command\r\nendlocal & \"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -jar \"%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\" %* & call :exitWithErrorLevel\r\n\r\n:exitWithErrorLevel\r\n@rem Use \"%COMSPEC%\" /c exit to allow operators to work properly in scripts\r\n\"%COMSPEC%\" /c exit %ERRORLEVEL%\r\n"
  },
  {
    "path": "renovate.json",
    "content": "{\n  \"extends\": [\n    \"config:recommended\"\n  ]\n}\n"
  },
  {
    "path": "search/.gitignore",
    "content": "/build"
  },
  {
    "path": "search/build.gradle.kts",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search\n *     build.gradle.kts Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     build.gradle.kts Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search 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 *     freeDictionaryApp/freeDictionaryApp.search 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport org.jetbrains.kotlin.gradle.dsl.JvmTarget\n\nplugins {\n    alias(libs.plugins.android.library)\n    alias(libs.plugins.google.ksp)\n    alias(libs.plugins.jetbrains.kotlin.compose.plugin)\n    alias(libs.plugins.hilt)\n    alias(libs.plugins.androix.room)\n}\n\nandroid {\n    namespace = \"io.github.yamin8000.owl.search\"\n    compileSdk = 36\n\n    defaultConfig {\n        minSdk = 23\n    }\n\n    room {\n        schemaDirectory(\"$projectDir/schemas\")\n    }\n\n    compileOptions {\n        isCoreLibraryDesugaringEnabled = true\n        sourceCompatibility = JavaVersion.VERSION_17\n        targetCompatibility = JavaVersion.VERSION_17\n    }\n\n    kotlin {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_17\n        }\n    }\n\n    buildFeatures {\n        compose = true\n    }\n}\n\ncomposeCompiler {\n    reportsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n    metricsDestination = layout.buildDirectory.dir(\"compose_compiler\")\n}\n\ndependencies {\n    //core\n    coreLibraryDesugaring(libs.desugar.jdk.libs)\n    implementation(project(\":common\"))\n    //hilt\n    implementation(libs.hilt.android)\n    ksp(libs.hilt.android.compiler)\n    implementation(libs.hilt.lifecycle.compose)\n    //room\n    implementation(libs.androidx.room.runtime)\n    annotationProcessor(libs.androidx.room.compiler)\n    ksp(libs.androidx.room.compiler)\n    api(libs.androidx.room.ktx)\n    //retrofit\n    api(libs.retrofit.main)\n    implementation(libs.retrofit.converter.moshi)\n    //moshi\n    implementation(libs.moshi.kotlin)\n    ksp(libs.moshi.kotlin.codegen)\n}"
  },
  {
    "path": "search/schemas/io.github.yamin8000.owl.search.data.datasource.local.AppDatabase/1.json",
    "content": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 1,\n    \"identityHash\": \"0c3ad9bffebaa41fcb44752f733c24f4\",\n    \"entities\": [\n      {\n        \"tableName\": \"WordEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `word` TEXT NOT NULL, `pronunciation` TEXT)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"word\",\n            \"columnName\": \"word\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"pronunciation\",\n            \"columnName\": \"pronunciation\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          }\n        ],\n        \"primaryKey\": {\n          \"columnNames\": [\n            \"id\"\n          ],\n          \"autoGenerate\": true\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      },\n      {\n        \"tableName\": \"DefinitionEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `wordId` INTEGER NOT NULL, `type` TEXT, `definition` TEXT NOT NULL, `example` TEXT, `imageUrl` TEXT, `emoji` TEXT, FOREIGN KEY(`wordId`) REFERENCES `WordEntity`(`id`) ON UPDATE NO ACTION ON DELETE RESTRICT )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"wordId\",\n            \"columnName\": \"wordId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"type\",\n            \"columnName\": \"type\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"definition\",\n            \"columnName\": \"definition\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"example\",\n            \"columnName\": \"example\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"imageUrl\",\n            \"columnName\": \"imageUrl\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"emoji\",\n            \"columnName\": \"emoji\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          }\n        ],\n        \"primaryKey\": {\n          \"columnNames\": [\n            \"id\"\n          ],\n          \"autoGenerate\": true\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_DefinitionEntity_wordId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"wordId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_DefinitionEntity_wordId` ON `${TABLE_NAME}` (`wordId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"WordEntity\",\n            \"onDelete\": \"RESTRICT\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"wordId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      }\n    ],\n    \"views\": [],\n    \"setupQueries\": [\n      \"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)\",\n      \"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '0c3ad9bffebaa41fcb44752f733c24f4')\"\n    ]\n  }\n}"
  },
  {
    "path": "search/schemas/io.github.yamin8000.owl.search.data.datasource.local.AppDatabase/2.json",
    "content": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 2,\n    \"identityHash\": \"c721e6247cc6759b3f2cf71fc120d9f9\",\n    \"entities\": [\n      {\n        \"tableName\": \"AntonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"DefinitionEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`meaningId` INTEGER NOT NULL, `definition` TEXT NOT NULL, `example` TEXT, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`meaningId`) REFERENCES `MeaningEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"meaningId\",\n            \"columnName\": \"meaningId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"definition\",\n            \"columnName\": \"definition\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"example\",\n            \"columnName\": \"example\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"MeaningEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"meaningId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"EntryEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"word\",\n            \"columnName\": \"word\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      },\n      {\n        \"tableName\": \"MeaningEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`entryId` INTEGER NOT NULL, `partOfSpeech` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"partOfSpeech\",\n            \"columnName\": \"partOfSpeech\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"PhoneticEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`entryId` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"SynonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      }\n    ],\n    \"views\": [],\n    \"setupQueries\": [\n      \"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)\",\n      \"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'c721e6247cc6759b3f2cf71fc120d9f9')\"\n    ]\n  }\n}"
  },
  {
    "path": "search/schemas/io.github.yamin8000.owl.search.data.datasource.local.AppDatabase/3.json",
    "content": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 3,\n    \"identityHash\": \"9564d8234936acf94b1e39343c7d6e66\",\n    \"entities\": [\n      {\n        \"tableName\": \"AntonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"DefinitionEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`meaningId` INTEGER NOT NULL, `definition` TEXT NOT NULL, `example` TEXT, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`meaningId`) REFERENCES `MeaningEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"meaningId\",\n            \"columnName\": \"meaningId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"definition\",\n            \"columnName\": \"definition\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"example\",\n            \"columnName\": \"example\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"MeaningEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"meaningId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"EntryEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"word\",\n            \"columnName\": \"word\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      },\n      {\n        \"tableName\": \"MeaningEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`entryId` INTEGER NOT NULL, `partOfSpeech` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"partOfSpeech\",\n            \"columnName\": \"partOfSpeech\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"PhoneticEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`value` TEXT NOT NULL, `entryId` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"SynonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      }\n    ],\n    \"views\": [],\n    \"setupQueries\": [\n      \"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)\",\n      \"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '9564d8234936acf94b1e39343c7d6e66')\"\n    ]\n  }\n}"
  },
  {
    "path": "search/schemas/io.github.yamin8000.owl.search.data.datasource.local.AppDatabase/4.json",
    "content": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 4,\n    \"identityHash\": \"9564d8234936acf94b1e39343c7d6e66\",\n    \"entities\": [\n      {\n        \"tableName\": \"AntonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"DefinitionEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`meaningId` INTEGER NOT NULL, `definition` TEXT NOT NULL, `example` TEXT, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`meaningId`) REFERENCES `MeaningEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"meaningId\",\n            \"columnName\": \"meaningId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"definition\",\n            \"columnName\": \"definition\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"example\",\n            \"columnName\": \"example\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"MeaningEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"meaningId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"EntryEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"word\",\n            \"columnName\": \"word\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      },\n      {\n        \"tableName\": \"MeaningEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`entryId` INTEGER NOT NULL, `partOfSpeech` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"partOfSpeech\",\n            \"columnName\": \"partOfSpeech\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"PhoneticEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`value` TEXT NOT NULL, `entryId` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"SynonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      }\n    ],\n    \"views\": [],\n    \"setupQueries\": [\n      \"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)\",\n      \"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '9564d8234936acf94b1e39343c7d6e66')\"\n    ]\n  }\n}"
  },
  {
    "path": "search/schemas/io.github.yamin8000.owl.search.data.datasource.local.AppDatabase/5.json",
    "content": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 5,\n    \"identityHash\": \"874e92af5349f88d5e65cf84db6f30ad\",\n    \"entities\": [\n      {\n        \"tableName\": \"AntonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_AntonymEntity_definitionId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"definitionId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_AntonymEntity_definitionId` ON `${TABLE_NAME}` (`definitionId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"DefinitionEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`meaningId` INTEGER NOT NULL, `definition` TEXT NOT NULL, `example` TEXT, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`meaningId`) REFERENCES `MeaningEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"meaningId\",\n            \"columnName\": \"meaningId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"definition\",\n            \"columnName\": \"definition\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"example\",\n            \"columnName\": \"example\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_DefinitionEntity_meaningId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"meaningId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_DefinitionEntity_meaningId` ON `${TABLE_NAME}` (`meaningId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"MeaningEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"meaningId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"EntryEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"word\",\n            \"columnName\": \"word\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      },\n      {\n        \"tableName\": \"MeaningEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`entryId` INTEGER NOT NULL, `partOfSpeech` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"partOfSpeech\",\n            \"columnName\": \"partOfSpeech\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_MeaningEntity_entryId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"entryId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_MeaningEntity_entryId` ON `${TABLE_NAME}` (`entryId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"PhoneticEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`value` TEXT, `entryId` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_PhoneticEntity_entryId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"entryId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_PhoneticEntity_entryId` ON `${TABLE_NAME}` (`entryId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"SynonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_SynonymEntity_definitionId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"definitionId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_SynonymEntity_definitionId` ON `${TABLE_NAME}` (`definitionId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      }\n    ],\n    \"views\": [],\n    \"setupQueries\": [\n      \"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)\",\n      \"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '874e92af5349f88d5e65cf84db6f30ad')\"\n    ]\n  }\n}"
  },
  {
    "path": "search/schemas/io.github.yamin8000.owl.search.data.datasource.local.AppDatabase/6.json",
    "content": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 6,\n    \"identityHash\": \"874e92af5349f88d5e65cf84db6f30ad\",\n    \"entities\": [\n      {\n        \"tableName\": \"AntonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_AntonymEntity_definitionId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"definitionId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_AntonymEntity_definitionId` ON `${TABLE_NAME}` (`definitionId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"DefinitionEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`meaningId` INTEGER NOT NULL, `definition` TEXT NOT NULL, `example` TEXT, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`meaningId`) REFERENCES `MeaningEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"meaningId\",\n            \"columnName\": \"meaningId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"definition\",\n            \"columnName\": \"definition\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"example\",\n            \"columnName\": \"example\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_DefinitionEntity_meaningId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"meaningId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_DefinitionEntity_meaningId` ON `${TABLE_NAME}` (`meaningId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"MeaningEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"meaningId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"EntryEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"word\",\n            \"columnName\": \"word\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      },\n      {\n        \"tableName\": \"MeaningEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`entryId` INTEGER NOT NULL, `partOfSpeech` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"partOfSpeech\",\n            \"columnName\": \"partOfSpeech\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_MeaningEntity_entryId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"entryId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_MeaningEntity_entryId` ON `${TABLE_NAME}` (`entryId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"PhoneticEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`value` TEXT, `entryId` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_PhoneticEntity_entryId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"entryId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_PhoneticEntity_entryId` ON `${TABLE_NAME}` (`entryId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"SynonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_SynonymEntity_definitionId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"definitionId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_SynonymEntity_definitionId` ON `${TABLE_NAME}` (`definitionId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      }\n    ],\n    \"views\": [],\n    \"setupQueries\": [\n      \"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)\",\n      \"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '874e92af5349f88d5e65cf84db6f30ad')\"\n    ]\n  }\n}"
  },
  {
    "path": "search/schemas/io.github.yamin8000.owl.search.data.datasource.local.AppDatabase/7.json",
    "content": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 7,\n    \"identityHash\": \"43a4c3665258d38f39d21dc3839c336c\",\n    \"entities\": [\n      {\n        \"tableName\": \"AntonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_AntonymEntity_definitionId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"definitionId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_AntonymEntity_definitionId` ON `${TABLE_NAME}` (`definitionId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"DefinitionEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`meaningId` INTEGER NOT NULL, `definition` TEXT NOT NULL, `example` TEXT, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`meaningId`) REFERENCES `MeaningEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"meaningId\",\n            \"columnName\": \"meaningId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"definition\",\n            \"columnName\": \"definition\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"example\",\n            \"columnName\": \"example\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_DefinitionEntity_meaningId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"meaningId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_DefinitionEntity_meaningId` ON `${TABLE_NAME}` (`meaningId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"MeaningEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"meaningId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"EntryEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"word\",\n            \"columnName\": \"word\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      },\n      {\n        \"tableName\": \"MeaningEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`entryId` INTEGER NOT NULL, `partOfSpeech` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"partOfSpeech\",\n            \"columnName\": \"partOfSpeech\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_MeaningEntity_entryId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"entryId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_MeaningEntity_entryId` ON `${TABLE_NAME}` (`entryId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"PhoneticEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`value` TEXT, `entryId` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_PhoneticEntity_entryId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"entryId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_PhoneticEntity_entryId` ON `${TABLE_NAME}` (`entryId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"SynonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_SynonymEntity_definitionId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"definitionId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_SynonymEntity_definitionId` ON `${TABLE_NAME}` (`definitionId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"TermEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"word\",\n            \"columnName\": \"word\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      }\n    ],\n    \"views\": [],\n    \"setupQueries\": [\n      \"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)\",\n      \"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '43a4c3665258d38f39d21dc3839c336c')\"\n    ]\n  }\n}"
  },
  {
    "path": "search/schemas/io.github.yamin8000.owl.search.data.datasource.local.AppDatabase/8.json",
    "content": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 8,\n    \"identityHash\": \"ef5f55a0273992386750eddc29a250c5\",\n    \"entities\": [\n      {\n        \"tableName\": \"AntonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"createdAt\",\n            \"columnName\": \"createdAt\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_AntonymEntity_definitionId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"definitionId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_AntonymEntity_definitionId` ON `${TABLE_NAME}` (`definitionId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"DefinitionEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`meaningId` INTEGER NOT NULL, `definition` TEXT NOT NULL, `example` TEXT, `createdAt` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`meaningId`) REFERENCES `MeaningEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"meaningId\",\n            \"columnName\": \"meaningId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"definition\",\n            \"columnName\": \"definition\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"example\",\n            \"columnName\": \"example\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"createdAt\",\n            \"columnName\": \"createdAt\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_DefinitionEntity_meaningId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"meaningId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_DefinitionEntity_meaningId` ON `${TABLE_NAME}` (`meaningId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"MeaningEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"meaningId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"EntryEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"word\",\n            \"columnName\": \"word\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"createdAt\",\n            \"columnName\": \"createdAt\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      },\n      {\n        \"tableName\": \"MeaningEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`entryId` INTEGER NOT NULL, `partOfSpeech` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"partOfSpeech\",\n            \"columnName\": \"partOfSpeech\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"createdAt\",\n            \"columnName\": \"createdAt\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_MeaningEntity_entryId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"entryId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_MeaningEntity_entryId` ON `${TABLE_NAME}` (`entryId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"PhoneticEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`value` TEXT, `entryId` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`entryId`) REFERENCES `EntryEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"entryId\",\n            \"columnName\": \"entryId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"createdAt\",\n            \"columnName\": \"createdAt\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_PhoneticEntity_entryId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"entryId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_PhoneticEntity_entryId` ON `${TABLE_NAME}` (`entryId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"EntryEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"entryId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"SynonymEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`definitionId` INTEGER NOT NULL, `value` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`definitionId`) REFERENCES `DefinitionEntity`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"definitionId\",\n            \"columnName\": \"definitionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"value\",\n            \"columnName\": \"value\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"createdAt\",\n            \"columnName\": \"createdAt\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_SynonymEntity_definitionId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"definitionId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_SynonymEntity_definitionId` ON `${TABLE_NAME}` (`definitionId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"DefinitionEntity\",\n            \"onDelete\": \"NO ACTION\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"definitionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"TermEntity\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"word\",\n            \"columnName\": \"word\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"createdAt\",\n            \"columnName\": \"createdAt\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      }\n    ],\n    \"views\": [],\n    \"setupQueries\": [\n      \"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)\",\n      \"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ef5f55a0273992386750eddc29a250c5')\"\n    ]\n  }\n}"
  },
  {
    "path": "search/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~     freeDictionaryApp/freeDictionaryApp.search.main\n  ~     AndroidManifest.xml Copyrighted by Yamin Siahmargooei at 2025/9/8\n  ~     AndroidManifest.xml Last modified at 2025/3/16\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n  ~     Copyright (C) 2025  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.search.main 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  ~     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<manifest />"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/local/AppDatabase.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     AppDatabase.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     AppDatabase.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.local\n\nimport androidx.room.AutoMigration\nimport androidx.room.Database\nimport androidx.room.RoomDatabase\nimport androidx.room.migration.Migration\nimport androidx.sqlite.db.SupportSQLiteDatabase\nimport io.github.yamin8000.owl.search.data.datasource.local.dao.DAOs\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.AntonymEntity\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.DefinitionEntity\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.EntryEntity\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.MeaningEntity\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.PhoneticEntity\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.SynonymEntity\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.TermEntity\n\n@Database(\n    version = 8,\n    entities = [\n        AntonymEntity::class, DefinitionEntity::class, EntryEntity::class,\n        MeaningEntity::class, PhoneticEntity::class, SynonymEntity::class,\n        TermEntity::class\n    ],\n    exportSchema = true,\n    autoMigrations = [\n        AutoMigration(from = 6, to = 7)\n    ]\n)\nabstract class AppDatabase : RoomDatabase() {\n    abstract fun antonymDao(): DAOs.AntonymDao\n    abstract fun definitionDao(): DAOs.DefinitionDao\n    abstract fun entryDao(): DAOs.EntryDao\n    abstract fun meaningDao(): DAOs.MeaningDao\n    abstract fun phoneticDao(): DAOs.PhoneticDao\n    abstract fun synonymDao(): DAOs.SynonymDao\n    abstract fun termDao(): DAOs.TermDao\n}\n\nval MIGRATION_7_8 = object : Migration(7, 8) {\n    override fun migrate(db: SupportSQLiteDatabase) {\n        db.execSQL(addDateColumn(\"AntonymEntity\"))\n        db.execSQL(addDateColumn(\"DefinitionEntity\"))\n        db.execSQL(addDateColumn(\"EntryEntity\"))\n        db.execSQL(addDateColumn(\"MeaningEntity\"))\n        db.execSQL(addDateColumn(\"PhoneticEntity\"))\n        db.execSQL(addDateColumn(\"SynonymEntity\"))\n        db.execSQL(addDateColumn(\"TermEntity\"))\n    }\n}\n\nprivate fun addDateColumn(\n    tableName: String\n): String = \"ALTER TABLE `$tableName` ADD COLUMN createdAt INTEGER NOT NULL DEFAULT 0\""
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/local/dao/AdvancedDao.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     AdvancedDao.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     AdvancedDao.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.local.dao\n\nimport androidx.room.RawQuery\nimport androidx.sqlite.db.SimpleSQLiteQuery\nimport androidx.sqlite.db.SupportSQLiteQuery\n\n@Suppress(\"unused\")\nabstract class AdvancedDao<T>(tableName: String) : BaseDao<T>(tableName) {\n\n    @RawQuery\n    protected abstract suspend fun find(query: SupportSQLiteQuery): T?\n\n    suspend fun find(id: Long) = find(SimpleSQLiteQuery(\"$baseQuery where id = $id\"))\n\n    @RawQuery\n    protected abstract suspend fun all(query: SupportSQLiteQuery): List<T>\n\n    suspend fun all() = all(SimpleSQLiteQuery(baseQuery))\n\n    @RawQuery\n    protected abstract suspend fun findAll(query: SupportSQLiteQuery): List<T>\n\n    suspend fun findAll(\n        ids: List<Long>\n    ): List<T> {\n        val params = ids.joinToString(\",\")\n        return findAll(SimpleSQLiteQuery(\"$baseWhereQuery id in ($params)\"))\n    }\n\n    @RawQuery\n    protected abstract suspend fun where(query: SupportSQLiteQuery): List<T>\n\n    suspend fun <V> where(\n        column: String,\n        value: V,\n        operator: String = \"=\"\n    ) = where(SimpleSQLiteQuery(\"$baseWhereQuery $column $operator '$value'\"))\n\n    @RawQuery\n    protected abstract suspend fun whereIn(query: SupportSQLiteQuery): List<T>\n\n    suspend fun whereIn(\n        column: String,\n        values: List<*>\n    ): List<T> {\n        val temp = values.joinToString(separator = \",\", transform = { \"'$it'\" })\n        val query = SimpleSQLiteQuery(\"$baseWhereQuery $column in ($temp)\")\n        return whereIn(query)\n    }\n\n    suspend fun getByParams(\n        paramPair: Pair<String, *>,\n        vararg paramPairs: Pair<String, *>\n    ): List<T> {\n        val params = listOf(paramPair, *paramPairs)\n        val condition = buildString {\n            params.forEachIndexed { index, (first, second) ->\n                append(\"${first}='${second}'\")\n                if (index != params.lastIndex) append(\" and \")\n            }\n        }\n        return where(SimpleSQLiteQuery(\"$baseWhereQuery $condition\"))\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/local/dao/BaseDao.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.data.main\n *     BaseDao.kt Copyrighted by Yamin Siahmargooei at 2024/5/9\n *     BaseDao.kt Last modified at 2024/3/23\n *     This file is part of freeDictionaryApp/freeDictionaryApp.data.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.data.main 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 *     freeDictionaryApp/freeDictionaryApp.data.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.local.dao\n\nimport androidx.room.Delete\nimport androidx.room.Insert\nimport androidx.room.Update\n\nabstract class BaseDao<T>(tableName: String) {\n\n    protected val baseQuery = \"select * from `$tableName`\"\n\n    protected val baseWhereQuery = \"$baseQuery where\"\n\n    @Insert\n    abstract suspend fun insert(entity: T): Long\n\n    @Insert\n    abstract suspend fun insertAll(entities: List<T>): List<Long>\n\n    @Update\n    abstract suspend fun update(entity: T): Int\n\n    @Delete\n    abstract suspend fun delete(entity: T): Int\n\n    @Delete\n    abstract suspend fun deleteAll(entities: List<T>): Int\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/local/dao/DAOs.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     DAOs.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     DAOs.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.local.dao\n\nimport androidx.room.Dao\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.AntonymEntity\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.DefinitionEntity\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.EntryEntity\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.MeaningEntity\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.PhoneticEntity\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.SynonymEntity\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.TermEntity\n\nobject DAOs {\n    @Dao\n    abstract class AntonymDao : AdvancedDao<AntonymEntity>(\"AntonymEntity\")\n\n    @Dao\n    abstract class DefinitionDao : AdvancedDao<DefinitionEntity>(\"DefinitionEntity\")\n\n    @Dao\n    abstract class EntryDao : AdvancedDao<EntryEntity>(\"EntryEntity\")\n\n    @Dao\n    abstract class MeaningDao : AdvancedDao<MeaningEntity>(\"MeaningEntity\")\n\n    @Dao\n    abstract class PhoneticDao : AdvancedDao<PhoneticEntity>(\"PhoneticEntity\")\n\n    @Dao\n    abstract class SynonymDao : AdvancedDao<SynonymEntity>(\"SynonymEntity\")\n\n    @Dao\n    abstract class TermDao : AdvancedDao<TermEntity>(\"TermEntity\")\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/local/entity/AntonymEntity.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     AntonymEntity.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     AntonymEntity.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.local.entity\n\nimport androidx.room.ColumnInfo\nimport androidx.room.Entity\nimport androidx.room.ForeignKey\nimport androidx.room.PrimaryKey\n\n@Entity(\n    foreignKeys = [\n        ForeignKey(\n            entity = DefinitionEntity::class,\n            parentColumns = [\"id\"],\n            childColumns = [\"definitionId\"]\n        )\n    ]\n)\ndata class AntonymEntity(\n    @ColumnInfo(index = true)\n    val definitionId: Long,\n    val value: String,\n    val createdAt: Long,\n    @PrimaryKey(autoGenerate = true)\n    val id: Long = 0\n)"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/local/entity/DefinitionEntity.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     DefinitionEntity.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     DefinitionEntity.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.local.entity\n\nimport androidx.room.ColumnInfo\nimport androidx.room.Entity\nimport androidx.room.ForeignKey\nimport androidx.room.PrimaryKey\n\n@Entity(\n    foreignKeys = [\n        ForeignKey(\n            entity = MeaningEntity::class,\n            parentColumns = [\"id\"],\n            childColumns = [\"meaningId\"],\n        )\n    ]\n)\ndata class DefinitionEntity(\n    @ColumnInfo(index = true)\n    val meaningId: Long,\n    val definition: String,\n    val example: String?,\n    val createdAt: Long,\n    @PrimaryKey(autoGenerate = true)\n    val id: Long = 0\n)\n"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/local/entity/EntryEntity.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     EntryEntity.kt Copyrighted by Yamin Siahmargooei at 2024/8/18\n *     EntryEntity.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.local.entity\n\nimport androidx.room.Entity\nimport androidx.room.PrimaryKey\n\n@Entity\ndata class EntryEntity(\n    val word: String,\n    val createdAt: Long,\n    @PrimaryKey(autoGenerate = true)\n    val id: Long = 0\n)"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/local/entity/MeaningEntity.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     MeaningEntity.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     MeaningEntity.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.local.entity\n\nimport androidx.room.ColumnInfo\nimport androidx.room.Entity\nimport androidx.room.ForeignKey\nimport androidx.room.PrimaryKey\n\n@Entity(\n    foreignKeys = [\n        ForeignKey(\n            entity = EntryEntity::class,\n            parentColumns = [\"id\"],\n            childColumns = [\"entryId\"]\n        )\n    ]\n)\ndata class MeaningEntity(\n    @ColumnInfo(index = true)\n    val entryId: Long,\n    val partOfSpeech: String,\n    val createdAt: Long,\n    @PrimaryKey(autoGenerate = true)\n    val id: Long = 0\n)\n"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/local/entity/PhoneticEntity.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     PhoneticEntity.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     PhoneticEntity.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.local.entity\n\nimport androidx.room.ColumnInfo\nimport androidx.room.Entity\nimport androidx.room.ForeignKey\nimport androidx.room.PrimaryKey\n\n@Entity(\n    foreignKeys = [\n        ForeignKey(\n            entity = EntryEntity::class,\n            parentColumns = [\"id\"],\n            childColumns = [\"entryId\"]\n        )\n    ]\n)\ndata class PhoneticEntity(\n    val value: String?,\n    @ColumnInfo(index = true)\n    val entryId: Long,\n    val createdAt: Long,\n    @PrimaryKey(autoGenerate = true)\n    val id: Long = 0\n)\n"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/local/entity/SynonymEntity.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     SynonymEntity.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     SynonymEntity.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.local.entity\n\nimport androidx.room.ColumnInfo\nimport androidx.room.Entity\nimport androidx.room.ForeignKey\nimport androidx.room.PrimaryKey\n\n@Entity(\n    foreignKeys = [\n        ForeignKey(\n            entity = DefinitionEntity::class,\n            parentColumns = [\"id\"],\n            childColumns = [\"definitionId\"]\n        )\n    ]\n)\ndata class SynonymEntity(\n    @ColumnInfo(index = true)\n    val definitionId: Long,\n    val value: String,\n    val createdAt: Long,\n    @PrimaryKey(autoGenerate = true)\n    val id: Long = 0\n)\n"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/local/entity/TermEntity.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     TermEntity.kt Copyrighted by Yamin Siahmargooei at 2024/8/18\n *     TermEntity.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.local.entity\n\nimport androidx.room.Entity\nimport androidx.room.PrimaryKey\n\n@Entity\ndata class TermEntity(\n    val word: String,\n    val createdAt: Long,\n    @PrimaryKey(autoGenerate = true)\n    val id: Long = 0\n)"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/remote/FreeDictionaryAPI.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     FreeDictionaryAPI.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     FreeDictionaryAPI.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.remote\n\nimport io.github.yamin8000.owl.search.data.datasource.remote.dto.EntryDto\nimport retrofit2.http.GET\nimport retrofit2.http.Path\n\n/** [Free Dictionary API](https://dictionaryapi.dev) */\ninterface FreeDictionaryAPI {\n\n    /** Search for [word] definitions */\n    @GET(\"entries/en/{word}\")\n    suspend fun search(@Path(\"word\") word: String): List<EntryDto>\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/remote/dto/DefinitionDto.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     DefinitionDto.kt Copyrighted by Yamin Siahmargooei at 2025/9/17\n *     DefinitionDto.kt Last modified at 2025/9/8\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.remote.dto\n\nimport com.squareup.moshi.JsonClass\nimport io.github.yamin8000.owl.search.domain.model.Definition\n\n@JsonClass(generateAdapter = true)\ndata class DefinitionDto(\n    val definition: String,\n    val example: String?,\n    val synonyms: List<String>,\n    val antonyms: List<String>,\n    val id: Long? = null,\n    val meaningId: Long? = null\n) {\n    fun domain() = Definition(\n        id = id,\n        meaningId = meaningId,\n        definition = definition,\n        example = example,\n        synonyms = synonyms,\n        antonyms = antonyms\n    )\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/remote/dto/EntryDto.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     EntryDto.kt Copyrighted by Yamin Siahmargooei at 2025/9/17\n *     EntryDto.kt Last modified at 2025/9/8\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.remote.dto\n\nimport com.squareup.moshi.JsonClass\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport kotlinx.collections.immutable.toImmutableList\n\n@JsonClass(generateAdapter = true)\ndata class EntryDto(\n    val word: String,\n    val phonetics: List<PhoneticDto>,\n    val meanings: List<MeaningDto>,\n    val license: LicenseDto? = null,\n    val sourceUrls: List<String>? = null,\n    val id: Long? = null\n) {\n    fun domain() = Entry(\n        word = word,\n        phonetics = phonetics.map { it.domain() }.toImmutableList(),\n        meanings = meanings.map { it.domain() }.toImmutableList(),\n        license = license?.domain(),\n        sourceUrls = sourceUrls?.toImmutableList(),\n        id = id\n    )\n}\n"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/remote/dto/LicenseDto.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     LicenseDto.kt Copyrighted by Yamin Siahmargooei at 2025/9/17\n *     LicenseDto.kt Last modified at 2025/9/8\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.remote.dto\n\nimport com.squareup.moshi.JsonClass\nimport io.github.yamin8000.owl.search.domain.model.License\n\n@JsonClass(generateAdapter = true)\ndata class LicenseDto(\n    val name: String,\n    val url: String\n) {\n    fun domain() = License(\n        name = name,\n        url = url\n    )\n}\n"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/remote/dto/MeaningDto.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     MeaningDto.kt Copyrighted by Yamin Siahmargooei at 2025/9/17\n *     MeaningDto.kt Last modified at 2025/9/8\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.remote.dto\n\nimport com.squareup.moshi.JsonClass\nimport io.github.yamin8000.owl.search.domain.model.Meaning\nimport kotlinx.collections.immutable.toImmutableList\n\n@JsonClass(generateAdapter = true)\ndata class MeaningDto(\n    val partOfSpeech: String,\n    val definitions: List<DefinitionDto>,\n    val synonyms: List<String>,\n    val antonyms: List<String>,\n    val id: Long? = null,\n    val entryId: Long? = null\n) {\n    fun domain() = Meaning(\n        id = id,\n        entryId = entryId,\n        partOfSpeech = partOfSpeech,\n        definitions = definitions.map { it.domain() }.toImmutableList(),\n        synonyms = synonyms.toImmutableList(),\n        antonyms = antonyms.toImmutableList()\n    )\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/datasource/remote/dto/PhoneticDto.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     PhoneticDto.kt Copyrighted by Yamin Siahmargooei at 2025/9/17\n *     PhoneticDto.kt Last modified at 2025/9/8\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.datasource.remote.dto\n\nimport com.squareup.moshi.JsonClass\nimport io.github.yamin8000.owl.search.domain.model.Phonetic\n\n@JsonClass(generateAdapter = true)\ndata class PhoneticDto(\n    val id: Long? = null,\n    val entryId: Long? = null,\n    val text: String? = null,\n    val audio: String? = null,\n    val sourceUrl: String? = null,\n    val license: LicenseDto? = null\n) {\n    fun domain() = Phonetic(\n        id = id,\n        entryId = entryId,\n        text = text,\n        audio = audio,\n        sourceUrl = sourceUrl,\n        license = license?.domain()\n    )\n}\n"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/repository/local/BaseRoomRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     BaseRoomRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     BaseRoomRepository.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.repository.local\n\nimport io.github.yamin8000.owl.search.data.datasource.local.dao.AdvancedDao\nimport io.github.yamin8000.owl.search.domain.repository.local.util.BaseRepository\n\nabstract class BaseRoomRepository<T, E>(\n    private val dao: AdvancedDao<E>\n) : BaseRepository<T> {\n\n    override suspend fun remove(item: T): Int {\n        val entity = findEntity(item)\n        return if (entity != null) dao.delete(entity) else -1\n    }\n\n    override suspend fun find(id: Long): T? {\n        return mapToDomain(dao.find(id))\n    }\n\n    override suspend fun all(): List<T> {\n        return dao.all().mapNotNull { mapToDomain(it) }\n    }\n\n    abstract suspend fun mapToDomain(item: E?): T?\n\n    abstract suspend fun findEntity(item: T): E?\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/repository/local/DefinitionRoomRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     DefinitionRoomRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     DefinitionRoomRepository.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.repository.local\n\nimport io.github.yamin8000.owl.common.util.DateTimeUtils.epoch\nimport io.github.yamin8000.owl.search.data.datasource.local.dao.DAOs\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.DefinitionEntity\nimport io.github.yamin8000.owl.search.domain.model.Definition\nimport io.github.yamin8000.owl.search.domain.repository.local.DefinitionRepository\n\nclass DefinitionRoomRepository(\n    private val definitionDao: DAOs.DefinitionDao,\n    private val antonymDao: DAOs.AntonymDao,\n    private val synonymDao: DAOs.SynonymDao\n) : DefinitionRepository, BaseRoomRepository<Definition, DefinitionEntity>(definitionDao) {\n\n    override suspend fun findAllByMeaningId(meaningId: Long): List<Definition> {\n        return definitionDao.where(\"meaningId\", meaningId).mapNotNull { mapToDomain(it) }\n    }\n\n    override suspend fun mapToDomain(item: DefinitionEntity?): Definition? {\n        return if (item != null) {\n            Definition(\n                definition = item.definition,\n                example = item.example,\n                antonyms = antonymDao.where(\"definitionId\", item.id).map { it.value },\n                synonyms = synonymDao.where(\"definitionId\", item.id).map { it.value },\n                meaningId = item.meaningId,\n                id = item.id\n            )\n        } else null\n    }\n\n    override suspend fun findEntity(item: Definition): DefinitionEntity? {\n        return if (item.id != null) definitionDao.find(item.id)\n        else null\n    }\n\n    override suspend fun add(item: Definition): Long {\n        return if (item.meaningId != null) {\n            definitionDao.insert(\n                DefinitionEntity(\n                    definition = item.definition,\n                    example = item.example,\n                    createdAt = epoch(),\n                    meaningId = item.meaningId\n                )\n            )\n        } else -1\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/repository/local/EntryRoomRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     EntryRoomRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     EntryRoomRepository.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.repository.local\n\nimport io.github.yamin8000.owl.common.util.StringUtils.sanitizeWord\nimport io.github.yamin8000.owl.common.util.DateTimeUtils.epoch\nimport io.github.yamin8000.owl.search.data.datasource.local.dao.DAOs\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.EntryEntity\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport io.github.yamin8000.owl.search.domain.repository.local.EntryRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.MeaningRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.PhoneticRepository\nimport kotlinx.collections.immutable.toImmutableList\n\nclass EntryRoomRepository(\n    private val dao: DAOs.EntryDao,\n    private val phoneticRepository: PhoneticRepository,\n    private val meaningRepository: MeaningRepository\n) : EntryRepository, BaseRoomRepository<Entry, EntryEntity>(dao) {\n\n    override suspend fun add(item: Entry): Long {\n        return dao.insert(\n            EntryEntity(\n                word = item.word,\n                createdAt = epoch()\n            )\n        )\n    }\n\n    override suspend fun findByTerm(term: String): Entry? {\n        return mapToDomain(dao.where(\"word\", sanitizeWord(term)).firstOrNull())\n    }\n\n    override suspend fun mapToDomain(item: EntryEntity?): Entry? {\n        return if (item != null) {\n            Entry(\n                id = item.id,\n                word = item.word,\n                phonetics = phoneticRepository.findAllByEntryId(item.id).toImmutableList(),\n                meanings = meaningRepository.findAllByEntryId(item.id).toImmutableList()\n            )\n        } else null\n    }\n\n    override suspend fun findEntity(item: Entry): EntryEntity? {\n        return if (item.id != null) dao.find(item.id)\n        else null\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/repository/local/MeaningRoomRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     MeaningRoomRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     MeaningRoomRepository.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.repository.local\n\nimport io.github.yamin8000.owl.common.util.DateTimeUtils.epoch\nimport io.github.yamin8000.owl.search.data.datasource.local.dao.DAOs\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.MeaningEntity\nimport io.github.yamin8000.owl.search.domain.model.Meaning\nimport io.github.yamin8000.owl.search.domain.repository.local.DefinitionRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.MeaningRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.util.HasEntry\nimport kotlinx.collections.immutable.persistentListOf\nimport kotlinx.collections.immutable.toImmutableList\n\nclass MeaningRoomRepository(\n    private val meaningDao: DAOs.MeaningDao,\n    private val definitionRepository: DefinitionRepository\n) : MeaningRepository, BaseRoomRepository<Meaning, MeaningEntity>(meaningDao), HasEntry<Meaning> {\n\n    override suspend fun findAllByEntryId(entryId: Long): List<Meaning> {\n        return meaningDao.where(\"entryId\", entryId).mapNotNull { mapToDomain(it) }\n    }\n\n    override suspend fun mapToDomain(item: MeaningEntity?): Meaning? {\n        return if (item != null) {\n            Meaning(\n                id = item.id,\n                entryId = item.entryId,\n                partOfSpeech = item.partOfSpeech,\n                definitions = definitionRepository.findAllByMeaningId(item.id).toImmutableList(),\n                synonyms = persistentListOf(),\n                antonyms = persistentListOf()\n            )\n        } else null\n    }\n\n    override suspend fun findEntity(item: Meaning): MeaningEntity? {\n        return if (item.id != null) meaningDao.find(item.id)\n        else null\n    }\n\n    override suspend fun add(item: Meaning): Long {\n        return if (item.entryId != null) {\n            meaningDao.insert(\n                MeaningEntity(\n                    entryId = item.entryId,\n                    partOfSpeech = item.partOfSpeech,\n                    createdAt = epoch(),\n                )\n            )\n        } else -1\n    }\n}\n"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/repository/local/PhoneticRoomRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     PhoneticRoomRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     PhoneticRoomRepository.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.repository.local\n\nimport io.github.yamin8000.owl.common.util.DateTimeUtils.epoch\nimport io.github.yamin8000.owl.search.data.datasource.local.dao.DAOs\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.PhoneticEntity\nimport io.github.yamin8000.owl.search.domain.model.Phonetic\nimport io.github.yamin8000.owl.search.domain.repository.local.PhoneticRepository\n\nclass PhoneticRoomRepository(\n    private val phoneticDao: DAOs.PhoneticDao\n) : PhoneticRepository, BaseRoomRepository<Phonetic, PhoneticEntity>(phoneticDao) {\n\n    override suspend fun findAllByEntryId(entryId: Long): List<Phonetic> {\n        return phoneticDao.where(\"entryId\", entryId).mapNotNull { mapToDomain(it) }\n    }\n\n    override suspend fun mapToDomain(item: PhoneticEntity?): Phonetic? {\n        return if (item != null) {\n            Phonetic(\n                text = item.value,\n                entryId = item.entryId,\n                id = item.id\n            )\n        } else null\n    }\n\n    override suspend fun findEntity(item: Phonetic): PhoneticEntity? {\n        return if (item.id != null) phoneticDao.find(item.id) else null\n    }\n\n    override suspend fun add(item: Phonetic): Long {\n        return if (item.entryId != null) {\n            phoneticDao.insert(\n                PhoneticEntity(\n                    value = item.text,\n                    entryId = item.entryId,\n                    createdAt = epoch()\n                )\n            )\n        } else -1\n    }\n}\n"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/repository/local/TermRoomRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     TermRoomRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     TermRoomRepository.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.repository.local\n\nimport io.github.yamin8000.owl.common.util.StringUtils.sanitizeWord\nimport io.github.yamin8000.owl.common.util.DateTimeUtils.epoch\nimport io.github.yamin8000.owl.search.data.datasource.local.dao.DAOs\nimport io.github.yamin8000.owl.search.data.datasource.local.entity.TermEntity\nimport io.github.yamin8000.owl.search.domain.repository.local.TermRepository\n\nclass TermRoomRepository(\n    private val dao: DAOs.TermDao\n) : TermRepository, BaseRoomRepository<String, TermEntity>(dao) {\n\n    override suspend fun mapToDomain(item: TermEntity?): String? {\n        return item?.word\n    }\n\n    override suspend fun findEntity(item: String): TermEntity? {\n        return dao.where(\"word\", sanitizeWord(item)).firstOrNull()\n    }\n\n    override suspend fun add(item: String): Long {\n        return if (dao.where(\"word\", sanitizeWord(item)).firstOrNull() == null) {\n            dao.insert(\n                TermEntity(\n                    word = item,\n                    createdAt = epoch()\n                )\n            )\n        } else -1\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/data/repository/remote/FreeDictionaryRetrofitApiRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     FreeDictionaryRetrofitApiRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     FreeDictionaryRetrofitApiRepository.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.data.repository.remote\n\nimport io.github.yamin8000.owl.search.data.datasource.remote.FreeDictionaryAPI\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport io.github.yamin8000.owl.search.domain.repository.remote.FreeDictionaryApiRepository\nimport javax.inject.Inject\n\nclass FreeDictionaryRetrofitApiRepository @Inject constructor(\n    private val api: FreeDictionaryAPI\n) : FreeDictionaryApiRepository {\n    override suspend fun searchWord(word: String): List<Entry> {\n        return api.search(word).map { it.domain() }\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/di/SearchDb.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     HomeDb.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     HomeDb.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.di\n\nimport android.app.Application\nimport androidx.room.Room\nimport dagger.Module\nimport dagger.Provides\nimport dagger.hilt.InstallIn\nimport dagger.hilt.components.SingletonComponent\nimport io.github.yamin8000.owl.search.data.datasource.local.AppDatabase\nimport io.github.yamin8000.owl.search.data.datasource.local.MIGRATION_7_8\nimport io.github.yamin8000.owl.search.data.datasource.local.dao.DAOs\nimport io.github.yamin8000.owl.search.data.repository.local.DefinitionRoomRepository\nimport io.github.yamin8000.owl.search.data.repository.local.EntryRoomRepository\nimport io.github.yamin8000.owl.search.data.repository.local.MeaningRoomRepository\nimport io.github.yamin8000.owl.search.data.repository.local.PhoneticRoomRepository\nimport io.github.yamin8000.owl.search.data.repository.local.TermRoomRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.DefinitionRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.EntryRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.MeaningRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.PhoneticRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.TermRepository\nimport javax.inject.Singleton\n\n@Module\n@InstallIn(SingletonComponent::class)\nobject SearchDb {\n\n    @Provides\n    @Singleton\n    fun providesDb(app: Application): AppDatabase {\n        return Room.databaseBuilder(app, AppDatabase::class.java, \"db\")\n            .addMigrations(MIGRATION_7_8)\n            .build()\n    }\n\n    @Provides\n    @Singleton\n    fun providesEntryDao(app: AppDatabase): DAOs.EntryDao {\n        return app.entryDao()\n    }\n\n    @Provides\n    @Singleton\n    fun providesEntryRepository(\n        entryDao: DAOs.EntryDao,\n        phoneticRepository: PhoneticRepository,\n        meaningRepository: MeaningRepository\n    ): EntryRepository = EntryRoomRepository(\n        dao = entryDao,\n        phoneticRepository = phoneticRepository,\n        meaningRepository = meaningRepository\n    )\n\n    @Provides\n    @Singleton\n    fun providesTermDao(app: AppDatabase): DAOs.TermDao {\n        return app.termDao()\n    }\n\n    @Provides\n    @Singleton\n    fun providesTermRepository(dao: DAOs.TermDao): TermRepository {\n        return TermRoomRepository(dao)\n    }\n\n    @Provides\n    @Singleton\n    fun providesDefinitionDao(app: AppDatabase): DAOs.DefinitionDao {\n        return app.definitionDao()\n    }\n\n    @Provides\n    @Singleton\n    fun providesSynonymDao(app: AppDatabase): DAOs.SynonymDao {\n        return app.synonymDao()\n    }\n\n    @Provides\n    @Singleton\n    fun providesAntonymDao(app: AppDatabase): DAOs.AntonymDao {\n        return app.antonymDao()\n    }\n\n    @Provides\n    @Singleton\n    fun providesDefinitionRepository(\n        definitionDao: DAOs.DefinitionDao,\n        synonymDao: DAOs.SynonymDao,\n        antonymDao: DAOs.AntonymDao\n    ): DefinitionRepository = DefinitionRoomRepository(\n        definitionDao = definitionDao,\n        antonymDao = antonymDao,\n        synonymDao = synonymDao\n    )\n\n    @Provides\n    @Singleton\n    fun providesMeaningDao(app: AppDatabase): DAOs.MeaningDao {\n        return app.meaningDao()\n    }\n\n    @Provides\n    @Singleton\n    fun providesMeaningRepository(\n        meaningDao: DAOs.MeaningDao,\n        definitionRepository: DefinitionRepository\n    ): MeaningRepository = MeaningRoomRepository(\n        meaningDao = meaningDao,\n        definitionRepository = definitionRepository\n    )\n\n    @Provides\n    @Singleton\n    fun providesPhoneticDao(app: AppDatabase): DAOs.PhoneticDao {\n        return app.phoneticDao()\n    }\n\n    @Provides\n    @Singleton\n    fun providesPhoneticRepository(dao: DAOs.PhoneticDao): PhoneticRepository {\n        return PhoneticRoomRepository(dao)\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/di/SearchUseCases.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     SearchUseCases.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     SearchUseCases.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.di\n\nimport dagger.Module\nimport dagger.Provides\nimport dagger.hilt.InstallIn\nimport dagger.hilt.components.SingletonComponent\nimport io.github.yamin8000.owl.search.domain.repository.local.DefinitionRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.EntryRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.MeaningRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.PhoneticRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.TermRepository\nimport io.github.yamin8000.owl.search.domain.usecase.CacheWord\nimport io.github.yamin8000.owl.search.domain.usecase.CacheWordData\nimport io.github.yamin8000.owl.search.domain.usecase.GetCachedWord\nimport io.github.yamin8000.owl.search.domain.usecase.WordCacheUseCases\nimport javax.inject.Singleton\n\n@Module\n@InstallIn(SingletonComponent::class)\nobject SearchUseCases {\n\n    @Provides\n    @Singleton\n    fun providesWordCacheUseCases(\n        entryRepository: EntryRepository,\n        phoneticRepository: PhoneticRepository,\n        meaningRepository: MeaningRepository,\n        definitionRepository: DefinitionRepository,\n        termRepository: TermRepository\n    ) = WordCacheUseCases(\n        getCachedWord = GetCachedWord(entryRepository),\n        cacheWord = CacheWord(\n            entryRepository = entryRepository,\n            meaningRepository = meaningRepository,\n            definitionRepository = definitionRepository,\n            phoneticRepository = phoneticRepository\n        ),\n        cacheWordData = CacheWordData(termRepository)\n    )\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/di/SearchWeb.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     SearchWeb.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     SearchWeb.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.di\n\nimport dagger.Module\nimport dagger.Provides\nimport dagger.hilt.InstallIn\nimport dagger.hilt.components.SingletonComponent\nimport io.github.yamin8000.owl.search.data.datasource.remote.FreeDictionaryAPI\nimport io.github.yamin8000.owl.search.data.repository.remote.FreeDictionaryRetrofitApiRepository\nimport io.github.yamin8000.owl.search.domain.repository.remote.FreeDictionaryApiRepository\nimport io.github.yamin8000.owl.search.domain.usecase.SearchFreeDictionary\nimport retrofit2.Retrofit\nimport retrofit2.converter.moshi.MoshiConverterFactory\nimport retrofit2.create\nimport javax.inject.Qualifier\nimport javax.inject.Singleton\n\n@Module\n@InstallIn(SingletonComponent::class)\nobject SearchWeb {\n\n    @Qualifier\n    annotation class SearchModule\n\n    @SearchModule\n    @Provides\n    @Singleton\n    fun providesRetrofit(): Retrofit {\n        val baseUrl = \"https://api.dictionaryapi.dev/api/v2/\"\n        return Retrofit.Builder()\n            .baseUrl(baseUrl)\n            .addConverterFactory(MoshiConverterFactory.create())\n            .build()\n    }\n\n    @Provides\n    @Singleton\n    fun providesFreeDictionaryApi(\n        @SearchModule\n        retrofit: Retrofit\n    ): FreeDictionaryAPI {\n        return retrofit.create<FreeDictionaryAPI>()\n    }\n\n    @Provides\n    @Singleton\n    fun providesFreeDictionaryApiRepository(api: FreeDictionaryAPI): FreeDictionaryApiRepository {\n        return FreeDictionaryRetrofitApiRepository(api)\n    }\n\n    @Provides\n    @Singleton\n    fun providesFreeDictionaryApiUseCase(repository: FreeDictionaryApiRepository): SearchFreeDictionary {\n        return SearchFreeDictionary(repository)\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/model/Definition.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     Definition.kt Copyrighted by Yamin Siahmargooei at 2025/9/17\n *     Definition.kt Last modified at 2025/9/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.model\n\nimport kotlin.random.Random\nimport kotlin.random.nextInt\n\ndata class Definition(\n    val definition: String,\n    val example: String?,\n    val synonyms: List<String>,\n    val antonyms: List<String>,\n    val meaningId: Long? = null,\n    val id: Long? = null\n) {\n    companion object {\n        fun mock() = Definition(\n            definition = \"Definition\",\n            example = \"Example\",\n            synonyms = buildList {\n                repeat(Random.nextInt(0..3)) {\n                    add(\"Synonym\")\n                }\n            },\n            antonyms = buildList {\n                repeat(Random.nextInt(0..3)) {\n                    add(\"Antonym\")\n                }\n            }\n        )\n\n        fun mockList(n: Int = Random.nextInt(1..5)) = buildList {\n            repeat(n) {\n                add(mock())\n            }\n        }\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/model/Entry.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     Entry.kt Copyrighted by Yamin Siahmargooei at 2025/9/17\n *     Entry.kt Last modified at 2025/9/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.model\n\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.persistentListOf\nimport kotlinx.collections.immutable.toImmutableList\n\ndata class Entry(\n    val word: String,\n    val phonetics: ImmutableList<Phonetic>,\n    val meanings: ImmutableList<Meaning>,\n    val license: License? = null,\n    val sourceUrls: ImmutableList<String>? = null,\n    val id: Long? = null\n) {\n    companion object {\n        fun mock() = Entry(\n            word = \"word\",\n            phonetics = persistentListOf(),\n            meanings = Meaning.mockList().toImmutableList(),\n            license = null,\n            sourceUrls = persistentListOf()\n        )\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/model/License.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     License.kt Copyrighted by Yamin Siahmargooei at 2025/9/17\n *     License.kt Last modified at 2025/9/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.model\n\ndata class License(\n    val name: String,\n    val url: String\n)"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/model/Meaning.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     Meaning.kt Copyrighted by Yamin Siahmargooei at 2025/9/17\n *     Meaning.kt Last modified at 2025/9/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.model\n\nimport kotlinx.collections.immutable.ImmutableList\nimport kotlinx.collections.immutable.toImmutableList\nimport kotlin.random.Random\nimport kotlin.random.nextInt\n\ndata class Meaning(\n    val partOfSpeech: String,\n    val definitions: ImmutableList<Definition>,\n    val synonyms: ImmutableList<String>,\n    val antonyms: ImmutableList<String>,\n    val entryId: Long? = null,\n    val id: Long? = null\n) {\n    companion object {\n        fun mock() = Meaning(\n            partOfSpeech = \"partOfSpeech\",\n            definitions = Definition.mockList().toImmutableList(),\n            synonyms = buildList {\n                repeat(Random.nextInt(0..3)) {\n                    add(\"Synonym\")\n                }\n            }.toImmutableList(),\n            antonyms = buildList {\n                repeat(Random.nextInt(0..3)) {\n                    add(\"Antonym\")\n                }\n            }.toImmutableList()\n        )\n\n        fun mockList(n: Int = Random.nextInt(1..5)) = buildList {\n            repeat(n) { add(mock()) }\n        }\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/model/Phonetic.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     Phonetic.kt Copyrighted by Yamin Siahmargooei at 2025/9/17\n *     Phonetic.kt Last modified at 2025/9/17\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.model\n\ndata class Phonetic(\n    val text: String? = null,\n    val audio: String? = null,\n    val sourceUrl: String? = null,\n    val license: License? = null,\n    val entryId: Long? = null,\n    val id: Long? = null\n)"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/repository/local/DefinitionRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     DefinitionRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     DefinitionRepository.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.repository.local\n\nimport io.github.yamin8000.owl.search.domain.model.Definition\nimport io.github.yamin8000.owl.search.domain.repository.local.util.BaseRepository\n\ninterface DefinitionRepository : BaseRepository<Definition> {\n    suspend fun findAllByMeaningId(meaningId: Long): List<Definition>\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/repository/local/EntryRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     EntryRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     EntryRepository.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.repository.local\n\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport io.github.yamin8000.owl.search.domain.repository.local.util.BaseRepository\n\ninterface EntryRepository : BaseRepository<Entry> {\n    suspend fun findByTerm(term: String): Entry?\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/repository/local/MeaningRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     MeaningRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     MeaningRepository.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.repository.local\n\nimport io.github.yamin8000.owl.search.domain.model.Meaning\nimport io.github.yamin8000.owl.search.domain.repository.local.util.BaseRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.util.HasEntry\n\ninterface MeaningRepository : BaseRepository<Meaning>, HasEntry<Meaning>"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/repository/local/PhoneticRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     PhoneticRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     PhoneticRepository.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.repository.local\n\nimport io.github.yamin8000.owl.search.domain.model.Phonetic\nimport io.github.yamin8000.owl.search.domain.repository.local.util.BaseRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.util.HasEntry\n\ninterface PhoneticRepository : BaseRepository<Phonetic>, HasEntry<Phonetic>"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/repository/local/TermRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     TermRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     TermRepository.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.repository.local\n\nimport io.github.yamin8000.owl.search.domain.repository.local.util.BaseRepository\n\ninterface TermRepository : BaseRepository<String>"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/repository/local/util/BaseRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     BaseRepisotry.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     BaseRepisotry.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.repository.local.util\n\ninterface BaseRepository<T> {\n    suspend fun add(item: T): Long\n    suspend fun remove(item: T): Int\n    suspend fun find(id: Long): T?\n    suspend fun all(): List<T>\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/repository/local/util/HasEntry.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     HasEntry.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     HasEntry.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.repository.local.util\n\ninterface HasEntry<T> {\n    suspend fun findAllByEntryId(entryId: Long): List<T>\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/repository/remote/FreeDictionaryApiRepository.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     FreeDictionaryApiRepository.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     FreeDictionaryApiRepository.kt Last modified at 2024/9/5\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.repository.remote\n\nimport io.github.yamin8000.owl.search.domain.model.Entry\n\ninterface FreeDictionaryApiRepository {\n    suspend fun searchWord(word: String): List<Entry>\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/usecase/CacheWord.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     CacheWord.kt Copyrighted by Yamin Siahmargooei at 2024/8/30\n *     CacheWord.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.usecase\n\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport io.github.yamin8000.owl.search.domain.model.Meaning\nimport io.github.yamin8000.owl.search.domain.repository.local.DefinitionRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.EntryRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.MeaningRepository\nimport io.github.yamin8000.owl.search.domain.repository.local.PhoneticRepository\nimport kotlinx.collections.immutable.persistentListOf\n\nclass CacheWord(\n    private val entryRepository: EntryRepository,\n    private val meaningRepository: MeaningRepository,\n    private val definitionRepository: DefinitionRepository,\n    private val phoneticRepository: PhoneticRepository\n) {\n    suspend operator fun invoke(wordEntry: Entry) {\n        val isNotCached = entryRepository.findByTerm(wordEntry.word.lowercase().trim()) == null\n        if (isNotCached) {\n            addWordEntryToDatabase(wordEntry)\n        }\n    }\n\n    private suspend fun addWordEntryToDatabase(wordEntry: Entry) {\n        val entryId = entryRepository.add(wordEntry)\n\n        wordEntry.phonetics.forEach { phonetic ->\n            phoneticRepository.add(phonetic.copy(entryId = entryId))\n        }\n\n        wordEntry.meanings.forEach { (partOfSpeech, definitions, _, _) ->\n            val meaningId = meaningRepository.add(\n                Meaning(\n                    entryId = entryId,\n                    partOfSpeech = partOfSpeech,\n                    definitions = persistentListOf(),\n                    antonyms = persistentListOf(),\n                    synonyms = persistentListOf()\n                )\n            )\n            definitions.forEach { definition ->\n                definitionRepository.add(definition.copy(meaningId = meaningId))\n            }\n        }\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/usecase/CacheWordData.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     CacheWordData.kt Copyrighted by Yamin Siahmargooei at 2024/8/30\n *     CacheWordData.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.usecase\n\nimport io.github.yamin8000.owl.common.util.StringUtils.sanitizeWords\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport io.github.yamin8000.owl.search.domain.model.Meaning\nimport io.github.yamin8000.owl.search.domain.repository.local.TermRepository\n\nclass CacheWordData(\n    private val termRepository: TermRepository\n) {\n    suspend operator fun invoke(wordEntry: Entry) {\n        val oldData = termRepository.all().toSet()\n        var newData = extractDataFromEntry(wordEntry.meanings)\n\n        if (!oldData.contains(wordEntry.word)) {\n            newData.add(wordEntry.word)\n        }\n\n        newData = sanitizeWords(newData).filter { it !in oldData }.toMutableSet()\n\n        addWordDataToCache(newData)\n    }\n\n    private suspend fun addWordDataToCache(newData: Set<String>) {\n        newData.forEach { item -> termRepository.add(item) }\n    }\n\n    private fun extractDataFromEntry(\n        meanings: List<Meaning>\n    ) = meanings.asSequence()\n        .flatMap { (partOfSpeech, definitions, _, _) ->\n            listOf(partOfSpeech)\n                .plus(definitions.map { it.definition })\n                .plus(definitions.map { it.example })\n                .plus(definitions.flatMap { it.synonyms })\n                .plus(definitions.flatMap { it.antonyms })\n        }.filterNotNull()\n        .flatMap { it.split(Regex(\"\\\\s+\")) }\n        .map { it.trim() }\n        .toMutableSet()\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/usecase/GetCachedWord.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     GetCachedWord.kt Copyrighted by Yamin Siahmargooei at 2024/8/25\n *     GetCachedWord.kt Last modified at 2024/8/25\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.usecase\n\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport io.github.yamin8000.owl.search.domain.repository.local.EntryRepository\n\nclass GetCachedWord(\n    private val entryRepository: EntryRepository\n) {\n    suspend operator fun invoke(term: String): Entry? {\n        return entryRepository.findByTerm(term)\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/usecase/SearchFreeDictionary.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main\n *     SearchWordUseCase.kt Copyrighted by Yamin Siahmargooei at 2024/8/18\n *     SearchWordUseCase.kt Last modified at 2024/8/18\n *     This file is part of freeDictionaryApp/freeDictionaryApp.feature_home.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 *     freeDictionaryApp/freeDictionaryApp.feature_home.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.usecase\n\nimport io.github.yamin8000.owl.search.domain.model.Entry\nimport io.github.yamin8000.owl.search.domain.repository.remote.FreeDictionaryApiRepository\n\nclass SearchFreeDictionary(\n    private val repository: FreeDictionaryApiRepository\n) {\n    suspend operator fun invoke(word: String): List<Entry> {\n        return repository.searchWord(word)\n    }\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/domain/usecase/WordCacheUseCases.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     WordCacheUseCases.kt Copyrighted by Yamin Siahmargooei at 2024/9/5\n *     WordCacheUseCases.kt Last modified at 2024/8/30\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.domain.usecase\n\ndata class WordCacheUseCases(\n    val getCachedWord: GetCachedWord,\n    val cacheWord: CacheWord,\n    val cacheWordData: CacheWordData\n)"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/ui/components/MeaningCard.kt",
    "content": "package io.github.yamin8000.owl.search.ui.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.automirrored.twotone.TextSnippet\nimport androidx.compose.material3.OutlinedCard\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.datasource.LoremIpsum\nimport io.github.yamin8000.owl.common.ui.components.SpeakableRippleTextWithIcon\nimport io.github.yamin8000.owl.common.ui.theme.DefaultCutShape\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.common.ui.theme.defaultGradientBorder\nimport io.github.yamin8000.owl.search.domain.model.Meaning\nimport io.github.yamin8000.owl.search.ui.components.texts.WordDefinitionText\nimport io.github.yamin8000.owl.search.ui.components.texts.WordExampleText\nimport io.github.yamin8000.owl.search.ui.components.texts.WordTypeText\nimport io.github.yamin8000.owl.strings.R\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        Column(\n            modifier = Modifier.padding(Sizes.Large),\n            content = {\n                MeaningCard(\n                    word = LoremIpsum(1).values.first(),\n                    meaning = Meaning.mock(),\n                    onWordChipClick = {}\n                )\n            }\n        )\n    }\n}\n\n@Composable\nfun MeaningCard(\n    word: String,\n    meaning: Meaning,\n    modifier: Modifier = Modifier,\n    onWordChipClick: ((String) -> Unit)? = null\n) {\n    OutlinedCard(\n        shape = DefaultCutShape,\n        modifier = modifier.fillMaxWidth(),\n        border = defaultGradientBorder(),\n        content = {\n            Column(\n                modifier = Modifier.padding(Sizes.Large),\n                horizontalAlignment = Alignment.Start,\n                verticalArrangement = Arrangement.spacedBy(Sizes.Large, Alignment.CenterVertically),\n                content = {\n                    WordTypeText(\n                        type = meaning.partOfSpeech,\n                        onDoubleClick = onWordChipClick\n                    )\n                    meaning.definitions.forEach { (definition, example, synonyms, antonyms) ->\n                        WordDefinitionText(\n                            word = word,\n                            definition = definition,\n                            onDoubleClick = onWordChipClick\n                        )\n                        if (example != null) {\n                            WordExampleText(\n                                word = word,\n                                example = example,\n                                onDoubleClick = onWordChipClick\n                            )\n                        }\n                        antonyms.forEach { antonym ->\n                            SpeakableRippleTextWithIcon(\n                                text = antonym,\n                                imageVector = Icons.AutoMirrored.TwoTone.TextSnippet,\n                                title = stringResource(R.string.antonym),\n                            )\n                        }\n                        synonyms.forEach { synonym ->\n                            SpeakableRippleTextWithIcon(\n                                text = synonym,\n                                imageVector = Icons.AutoMirrored.TwoTone.TextSnippet,\n                                title = stringResource(R.string.synonym),\n                            )\n                        }\n                    }\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/ui/components/WordCard.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     WordCard.kt Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     WordCard.kt Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.ui.components\n\nimport androidx.compose.foundation.BorderStroke\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.Favorite\nimport androidx.compose.material.icons.twotone.Share\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.OutlinedCard\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport io.github.yamin8000.owl.common.ui.components.ClickableIcon\nimport io.github.yamin8000.owl.common.ui.theme.DefaultCutShape\nimport io.github.yamin8000.owl.common.ui.theme.MyPreview\nimport io.github.yamin8000.owl.common.ui.theme.PreviewTheme\nimport io.github.yamin8000.owl.common.ui.theme.Sizes\nimport io.github.yamin8000.owl.search.ui.components.texts.PronunciationText\nimport io.github.yamin8000.owl.search.ui.components.texts.WordText\nimport io.github.yamin8000.owl.strings.R\n\n@MyPreview\n@Composable\nprivate fun Preview() {\n    PreviewTheme {\n        Column(\n            modifier = Modifier.padding(Sizes.Large),\n            verticalArrangement = Arrangement.spacedBy(Sizes.Large),\n            content = {\n                WordCard(\n                    word = \"Word\",\n                    pronunciation = \"Pronunciation\",\n                    onShareWord = {},\n                    onAddToFavourite = {}\n                )\n            }\n        )\n    }\n}\n\n@Composable\nfun WordCard(\n    word: String,\n    pronunciation: String?,\n    modifier: Modifier = Modifier,\n    onAddToFavourite: (() -> Unit)? = null,\n    onShareWord: (() -> Unit)? = null\n) {\n    OutlinedCard(\n        modifier = modifier,\n        shape = DefaultCutShape,\n        border = BorderStroke(Sizes.xxSmall, MaterialTheme.colorScheme.tertiary),\n        content = {\n            Row(\n                modifier = Modifier.padding(Sizes.Large),\n                verticalAlignment = Alignment.CenterVertically,\n                horizontalArrangement = Arrangement.spacedBy(\n                    Sizes.Large,\n                    Alignment.CenterHorizontally\n                ),\n                content = {\n                    Column(\n                        modifier = Modifier.weight(3f),\n                        horizontalAlignment = Alignment.Start,\n                        verticalArrangement = Arrangement.spacedBy(\n                            Sizes.Medium,\n                            Alignment.CenterVertically\n                        ),\n                        content = {\n                            WordText(\n                                word = word\n                            )\n                            if (!pronunciation.isNullOrBlank()) {\n                                PronunciationText(\n                                    word = word,\n                                    pronunciation = pronunciation,\n                                )\n                            }\n                        }\n                    )\n                    Column(\n                        modifier = Modifier.weight(1f),\n                        horizontalAlignment = Alignment.End,\n                        verticalArrangement = Arrangement.spacedBy(\n                            Sizes.Medium,\n                            Alignment.CenterVertically\n                        ),\n                        content = {\n                            if (onAddToFavourite != null) {\n                                ClickableIcon(\n                                    imageVector = Icons.TwoTone.Favorite,\n                                    contentDescription = stringResource(R.string.favourites),\n                                    onClick = onAddToFavourite\n                                )\n                            }\n                            if (onShareWord != null) {\n                                ClickableIcon(\n                                    imageVector = Icons.TwoTone.Share,\n                                    contentDescription = stringResource(R.string.share),\n                                    onClick = onShareWord\n                                )\n                            }\n                        }\n                    )\n                }\n            )\n        }\n    )\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/ui/components/texts/PronunciationText.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     PronunciationText.kt Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     PronunciationText.kt Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.ui.components.texts\n\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.RecordVoiceOver\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport io.github.yamin8000.owl.common.ui.components.SpeakableRippleTextWithIcon\n\n@Composable\ninternal fun PronunciationText(\n    pronunciation: String,\n    word: String,\n    modifier: Modifier = Modifier,\n) {\n    SpeakableRippleTextWithIcon(\n        modifier = modifier,\n        text = pronunciation,\n        ttsText = word,\n        imageVector = Icons.TwoTone.RecordVoiceOver,\n    )\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/ui/components/texts/WordDefinitionText.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     WordDefinitionText.kt Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     WordDefinitionText.kt Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.ui.components.texts\n\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.automirrored.twotone.ShortText\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport io.github.yamin8000.owl.common.ui.components.HighlightText\nimport io.github.yamin8000.owl.common.ui.components.SpeakableRippleTextWithIcon\nimport io.github.yamin8000.owl.strings.R\n\n@Composable\ninternal fun WordDefinitionText(\n    word: String,\n    definition: String,\n    modifier: Modifier = Modifier,\n    onDoubleClick: ((String) -> Unit)? = null\n) {\n    SpeakableRippleTextWithIcon(\n        modifier = modifier,\n        text = definition,\n        imageVector = Icons.AutoMirrored.TwoTone.ShortText,\n        title = stringResource(R.string.definition),\n        onDoubleClick = onDoubleClick,\n        content = {\n            HighlightText(\n                fullText = definition,\n                highlightedText = word\n            )\n        }\n    )\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/ui/components/texts/WordExampleText.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     WordExampleText.kt Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     WordExampleText.kt Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.ui.components.texts\n\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.automirrored.twotone.TextSnippet\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport io.github.yamin8000.owl.common.ui.components.HighlightText\nimport io.github.yamin8000.owl.common.ui.components.SpeakableRippleTextWithIcon\nimport io.github.yamin8000.owl.strings.R\n\n@Composable\ninternal fun WordExampleText(\n    word: String,\n    example: String,\n    modifier: Modifier = Modifier,\n    onDoubleClick: ((String) -> Unit)? = null\n) {\n    SpeakableRippleTextWithIcon(\n        modifier = modifier,\n        text = example,\n        imageVector = Icons.AutoMirrored.TwoTone.TextSnippet,\n        title = stringResource(R.string.example),\n        content = { HighlightText(fullText = example, highlightedText = word) },\n        onDoubleClick = onDoubleClick,\n    )\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/ui/components/texts/WordText.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     WordText.kt Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     WordText.kt Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.ui.components.texts\n\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.automirrored.twotone.ShortText\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport io.github.yamin8000.owl.common.ui.components.SpeakableRippleTextWithIcon\n\n@Composable\ninternal fun WordText(\n    word: String,\n    modifier: Modifier = Modifier\n) {\n    SpeakableRippleTextWithIcon(\n        modifier = modifier,\n        text = word,\n        imageVector = Icons.AutoMirrored.TwoTone.ShortText,\n    )\n}"
  },
  {
    "path": "search/src/main/java/io/github/yamin8000/owl/search/ui/components/texts/WordTypeText.kt",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.search.main\n *     WordTypeText.kt Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     WordTypeText.kt Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.search.main.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.search.main 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 *     freeDictionaryApp/freeDictionaryApp.search.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npackage io.github.yamin8000.owl.search.ui.components.texts\n\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.material.icons.twotone.Category\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport io.github.yamin8000.owl.common.ui.components.SpeakableRippleTextWithIcon\nimport io.github.yamin8000.owl.strings.R\n\n@Composable\ninternal fun WordTypeText(\n    type: String,\n    modifier: Modifier = Modifier,\n    onDoubleClick: ((String) -> Unit)? = null\n) {\n    SpeakableRippleTextWithIcon(\n        modifier = modifier,\n        text = type,\n        imageVector = Icons.TwoTone.Category,\n        title = stringResource(R.string.type),\n        onDoubleClick = onDoubleClick,\n    )\n}"
  },
  {
    "path": "settings.gradle.kts",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp\n *     settings.gradle.kts Copyrighted by Yamin Siahmargooei at 2024/5/9\n *     settings.gradle.kts Last modified at 2024/3/23\n *     This file is part of freeDictionaryApp/freeDictionaryApp.\n *     Copyright (C) 2024  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp 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 *     freeDictionaryApp/freeDictionaryApp 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\npluginManagement {\n    repositories {\n        gradlePluginPortal()\n        google()\n        mavenCentral()\n    }\n}\ndependencyResolutionManagement {\n    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n    repositories {\n        google()\n        mavenCentral()\n    }\n}\nrootProject.name = \"freeDictionaryApp\"\ninclude(\":app\")\ninclude(\":strings\")\ninclude(\":common\")\ninclude(\":datastore\")\ninclude(\":feature_home\")\ninclude(\":feature_settings\")\ninclude(\":feature_history\")\ninclude(\":feature_favourites\")\ninclude(\":feature_overlay\")\ninclude(\":search\")\ninclude(\":feature_about\")\n"
  },
  {
    "path": "strings/.gitignore",
    "content": "/build"
  },
  {
    "path": "strings/build.gradle.kts",
    "content": "/*\n *     freeDictionaryApp/freeDictionaryApp.strings\n *     build.gradle.kts Copyrighted by Yamin Siahmargooei at 2025/9/8\n *     build.gradle.kts Last modified at 2025/8/31\n *     This file is part of freeDictionaryApp/freeDictionaryApp.strings.\n *     Copyright (C) 2025  Yamin Siahmargooei\n *\n *     freeDictionaryApp/freeDictionaryApp.strings 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 *     freeDictionaryApp/freeDictionaryApp.strings 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport org.jetbrains.kotlin.gradle.dsl.JvmTarget\n\nplugins {\n    alias(libs.plugins.android.library)\n}\n\nandroid {\n    namespace = \"io.github.yamin8000.owl.strings\"\n    compileSdk = 36\n\n    defaultConfig {\n        minSdk = 23\n    }\n\n    compileOptions {\n        sourceCompatibility = JavaVersion.VERSION_17\n        targetCompatibility = JavaVersion.VERSION_17\n    }\n\n    kotlin {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_17\n        }\n    }\n}\n\ndependencies {\n\n}"
  },
  {
    "path": "strings/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~     freeDictionaryApp/freeDictionaryApp.strings.main\n  ~     AndroidManifest.xml Copyrighted by Yamin Siahmargooei at 2025/9/8\n  ~     AndroidManifest.xml Last modified at 2025/3/16\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.strings.main.\n  ~     Copyright (C) 2025  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.strings.main 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  ~     freeDictionaryApp/freeDictionaryApp.strings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<manifest />"
  },
  {
    "path": "strings/src/main/res/values/strings.xml",
    "content": "<!--\n  ~     freeDictionaryApp/freeDictionaryApp.app.main\n  ~     strings.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     strings.xml Last modified at 2024/3/23\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.app.main 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  ~     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<resources xmlns:tools=\"http://schemas.android.com/tools\">\n    <string name=\"app_name\" translatable=\"false\">freeDictionary</string>\n    <string name=\"search\">Search</string>\n    <string name=\"search_hint\">Enter a word to search</string>\n    <string name=\"favourites\">Favourite Words</string>\n    <string name=\"search_history\">Search History</string>\n    <string name=\"random_word\">Random Word</string>\n    <string name=\"general_net_error\">No connection to the server. Data maybe loaded from the cache.</string>\n    <string name=\"api_throttled\">Server is busy, try again!</string>\n    <string name=\"definition_not_found\">No definition for the word found.</string>\n    <string name=\"api_authorization_error\">Authentication Error</string>\n    <string name=\"text_copied\">Text copied.</string>\n    <string name=\"license_header\">This is a free application under GNU license, see more:</string>\n    <string name=\"gplv3_image_description\">GPLv3 License Logo</string>\n    <string name=\"about_app\">freeDictionaryApp, An English to English Dictionary, based on:</string>\n    <string name=\"github_source\" translatable=\"false\">https://github.com/yamin8000/freeDictionaryApp</string>\n    <string name=\"license_link\" translatable=\"false\">https://raw.githubusercontent.com/yamin8000/freeDictionaryApp/master/LICENSE</string>\n    <string name=\"free_dictionary_link\" translatable=\"false\">https://dictionaryapi.dev/</string>\n    <string name=\"added_to_favourites\">Added to favourites</string>\n    <string name=\"clear\">Clear</string>\n    <string name=\"untracked_error\">Unexpected error!</string>\n    <string name=\"no_search_term_entered\">Nothing is entered.</string>\n    <string name=\"share\">Share</string>\n    <string name=\"this_text_generated_using_owl\">This text is generated using freeDictionaryApp</string>\n    <string name=\"clear_all\">Clear All</string>\n    <string name=\"settings\">Settings</string>\n    <string name=\"theme\">Theme</string>\n    <string name=\"dynamic_theme_notice\">On Android 12+ your app theme colors are based on your home screen background</string>\n    <string name=\"theme_system\">System</string>\n    <string name=\"theme_light\">Light</string>\n    <string name=\"theme_dark\">Dark</string>\n    <string name=\"tts_language\">Text-to-Speech Language</string>\n    <string name=\"about\">About</string>\n    <string name=\"version_name\">Installed Version %s</string>\n    <string name=\"example\">Example</string>\n    <string name=\"definition\">Definition</string>\n    <string name=\"type\">Type</string>\n    <string name=\"this_text_extracted_from_free_dictionary\" translatable=\"false\">This text is extracted from the Free Dictionary API</string>\n    <string name=\"general\">General</string>\n    <string name=\"vibrate_on_scroll\">Vibrate on scroll</string>\n    <string name=\"cancel\">Cancel</string>\n    <string name=\"delete\">Delete</string>\n    <string name=\"increase_volume_notice\">Increase your volume</string>\n    <string name=\"antonym\">Antonym</string>\n    <string name=\"synonym\">Synonym</string>\n    <string name=\"start_blank_search\">Blank startup search</string>\n    <string name=\"theme_oled\" tools:ignore=\"MissingTranslation\">OLED/Darker</string>\n    <string name=\"theme_system_darker\" tools:ignore=\"MissingTranslation\">System OLED/Darker</string>\n    <string name=\"yes\">Yes</string>\n    <string name=\"no\">No</string>\n    <string name=\"back\">Back</string>\n    <string name=\"remove_all_prompt\">Do you want to remove all?</string>\n    <string name=\"cancelled\">Cancelled</string>\n    <string name=\"close\">Close</string>\n    <string name=\"more_in_app\">More in app…</string>\n    <string name=\"latest_version\">Latest version: %1$s</string>\n    <string name=\"contributions_graph\">Contributions Graph</string>\n</resources>"
  },
  {
    "path": "strings/src/main/res/values-fa/strings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n  ~     freeDictionaryApp/freeDictionaryApp.app.main\n  ~     strings.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     strings.xml Last modified at 2024/3/23\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.app.main 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  ~     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<resources>\n    <string name=\"search\">جستجو</string>\n    <string name=\"search_hint\">واژه‌ای برای جستجو بنویسید</string>\n    <string name=\"favourites\">واژه‌های برگزیده</string>\n    <string name=\"search_history\">جستجوهای پیشین</string>\n    <string name=\"random_word\">واژه تصادفی</string>\n    <string name=\"general_net_error\">خطا در برقراری ارتباط با اینترنت، خطا ممکن است به خاطر محدودیت های اینترنت باشد</string>\n    <string name=\"api_throttled\">سرور برنامه تحت فشار است، لطفا چند دقیقه دیگر تلاش کنید</string>\n    <string name=\"definition_not_found\">توضیحی برای این کلمه یافت نشد</string>\n    <string name=\"api_authorization_error\">خطای احراز هویت با سرور برنامه</string>\n    <string name=\"text_copied\">متن کپی شد</string>\n    <string name=\"license_header\">این یک برنامه آزاد طبق پروانه گنو است که توضیحات بیشتر آن در ادامه آورده شده است</string>\n    <string name=\"gplv3_image_description\">لوگو پروانه برنامه GPLv3</string>\n    <string name=\"about_app\">فرهنگ واژگان انگلیسی به انگلیسی جغد، برگرفته از فرهنگ واژگان</string>\n    <string name=\"added_to_favourites\">به برگزیده‌ها اضافه شد</string>\n    <string name=\"clear\">پاک کردن</string>\n    <string name=\"untracked_error\">خطای پیش بینی نشده</string>\n    <string name=\"no_search_term_entered\">عبارتی وارد نشده</string>\n    <string name=\"share\">اشتراک گذاری</string>\n    <string name=\"this_text_generated_using_owl\">این متن توسط برنامه جغدک تولید شده</string>\n    <string name=\"clear_all\">پاک کردن همه</string>\n    <string name=\"settings\">تنظیمات</string>\n    <string name=\"theme\">زمینه</string>\n    <string name=\"dynamic_theme_notice\">در نسخه های اندروید 12 به بعد زمینه برنامه بر اساس رنگ قالب تصویر پس زمینه گوشی شما تعیین می شود</string>\n    <string name=\"theme_system\">هماهنگ سیستم</string>\n    <string name=\"theme_light\">روشن</string>\n    <string name=\"theme_dark\">تاریک</string>\n    <string name=\"tts_language\">زبان متن به گفتار</string>\n    <string name=\"about\">درباره</string>\n    <string name=\"version_name\">نگارش نصب شده %s</string>\n    <string name=\"example\">نمونه</string>\n    <string name=\"definition\">معنی</string>\n    <string name=\"type\">نوع</string>\n    <string name=\"general\">عمومی</string>\n    <string name=\"vibrate_on_scroll\">لرزش در زمان پیمایش لیست</string>\n    <string name=\"cancel\">لغو</string>\n    <string name=\"delete\">پاک کردن</string>\n    <string name=\"increase_volume_notice\">صدای بلندگو را زیاد کنید.</string>\n    <string name=\"antonym\">متضاد</string>\n    <string name=\"synonym\">مترادف</string>\n    <string name=\"start_blank_search\">Blank startup search</string>\n    <string name=\"theme_oled\">تاریک تر</string>\n    <string name=\"yes\">بله</string>\n    <string name=\"no\">نه</string>\n    <string name=\"back\">بازگشت</string>\n    <string name=\"remove_all_prompt\">آیا می‌خواهید همه را پاک کنید؟</string>\n    <string name=\"cancelled\">لغو شد.</string>\n    <string name=\"close\">بستن</string>\n    <string name=\"more_in_app\">بیشتر در برنامه…</string>\n    <string name=\"latest_version\">جدیدترین نسخه: %1$s</string>\n    <string name=\"contributions_graph\">نمودار مشارکت‌کنندگان</string>\n</resources>"
  },
  {
    "path": "strings/src/main/res/values-hi/strings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n  ~     freeDictionaryApp/freeDictionaryApp.strings.main\n  ~     strings.xml Copyrighted by Yamin Siahmargooei at 2025/10/27\n  ~     strings.xml Last modified at 2025/10/27\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.strings.main.\n  ~     Copyright (C) 2025  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.strings.main 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  ~     freeDictionaryApp/freeDictionaryApp.strings.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<resources>\n    <string name=\"search\">खोज</string>\n    <string name=\"search_hint\">खोजने के लिए कोई शब्द दर्ज करें</string>\n    <string name=\"favourites\">पसंदीदा शब्द</string>\n    <string name=\"search_history\">खोज इतिहास</string>\n    <string name=\"random_word\">यादृच्छिक शब्द</string>\n    <string name=\"general_net_error\">सर्वर से कोई कनेक्शन नहीं है। डेटा कैश से लोड किया जा सकता है।</string>\n    <string name=\"api_throttled\">सर्वर व्यस्त है, कृपया पुनः प्रयास करें!</string>\n    <string name=\"definition_not_found\">इस शब्द की कोई परिभाषा नहीं मिली।</string>\n    <string name=\"api_authorization_error\">प्रमाणीकरण त्रुटि</string>\n    <string name=\"text_copied\">पाठ कॉपी किया गया।</string>\n    <string name=\"license_header\">यह GNU लाइसेंस के अंतर्गत एक निःशुल्क एप्लिकेशन है, अधिक जानें:</string>\n    <string name=\"gplv3_image_description\">GPLv3 लाइसेंस लोगो</string>\n    <string name=\"about_app\">अंग्रेज़ी-अंग्रेज़ी शब्दकोश पर आधारित:</string>\n    <string name=\"added_to_favourites\">पसंदीदा में जोड़ा गया</string>\n    <string name=\"clear\">साफ़ करें</string>\n    <string name=\"untracked_error\">अनपेक्षित त्रुटि!</string>\n    <string name=\"no_search_term_entered\">कोई शब्द दर्ज नहीं किया गया।</string>\n    <string name=\"share\">साझा करें</string>\n    <string name=\"this_text_generated_using_owl\">यह पाठ Owl ऐप का उपयोग करके बनाया गया है</string>\n    <string name=\"clear_all\">सभी साफ़ करें</string>\n    <string name=\"settings\">सेटिंग्स</string>\n    <string name=\"theme\">थीम</string>\n    <string name=\"dynamic_theme_notice\">Android 12 और उससे ऊपर पर, ऐप की थीम आपके वॉलपेपर के रंगों पर आधारित होती है</string>\n    <string name=\"theme_system\">सिस्टम</string>\n    <string name=\"theme_light\">हल्का</string>\n    <string name=\"theme_dark\">गहरा</string>\n    <string name=\"tts_language\">पाठ-से-भाषण की भाषा</string>\n    <string name=\"about\">एप्लिकेशन के बारे में</string>\n    <string name=\"version_name\">संस्करण %s</string>\n    <string name=\"example\">उदाहरण</string>\n    <string name=\"definition\">परिभाषा</string>\n    <string name=\"type\">प्रकार</string>\n    <string name=\"general\">सामान्य</string>\n    <string name=\"vibrate_on_scroll\">स्क्रॉल करते समय कंपन</string>\n    <string name=\"cancel\">रद्द करें</string>\n    <string name=\"delete\">हटाएं</string>\n    <string name=\"increase_volume_notice\">अपनी वॉल्यूम बढ़ाएं</string>\n    <string name=\"antonym\">विलोम</string>\n    <string name=\"synonym\">पर्यायवाची</string>\n    <string name=\"start_blank_search\">रिक्त प्रारंभिक खोज</string>\n    <string name=\"theme_oled\">OLED/गहरा</string>\n    <string name=\"yes\">हाँ</string>\n    <string name=\"no\">नहीं</string>\n    <string name=\"back\">वापस</string>\n    <string name=\"remove_all_prompt\">क्या आप सब हटाना चाहते हैं?</string>\n    <string name=\"cancelled\">रद्द किया गया</string>\n    <string name=\"close\">बंद करें</string>\n    <string name=\"more_in_app\">ऐप में और देखें…</string>\n    <string name=\"latest_version\">Latest version: %1$s</string>\n    <string name=\"contributions_graph\">Contributions Graph</string>\n</resources>\n"
  },
  {
    "path": "strings/src/main/res/values-hu/strings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n  ~     freeDictionaryApp/freeDictionaryApp.app.main\n  ~     strings.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     strings.xml Last modified at 2024/3/23\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.app.main 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  ~     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<resources>\n    <string name=\"search\">Keresés</string>\n    <string name=\"search_hint\">Írj be egy szót a kereséshez</string>\n    <string name=\"favourites\">Kedvenc Szavak</string>\n    <string name=\"search_history\">Keresési Előzmények</string>\n    <string name=\"random_word\">Véletlenszerű Szó</string>\n    <string name=\"general_net_error\">Nincs kapcsolat a szerverrel. Az adatok előfordulhat, hogy a gyorsítótárból kerülnek betöltésre.</string>\n    <string name=\"api_throttled\">A szerver elfoglalt, próbáld újra!</string>\n    <string name=\"definition_not_found\">Nem található definíció a szóra.</string>\n    <string name=\"api_authorization_error\">Hitelesítési Hiba</string>\n    <string name=\"text_copied\">Szöveg másolva.</string>\n    <string name=\"license_header\">Ez egy ingyenes applikáció a GNU licensz alatt, tudj meg többet:</string>\n    <string name=\"gplv3_image_description\">GPLv3 Licensz Logó</string>\n    <string name=\"about_app\">Angol-Angol szótár alapján:</string>\n    <string name=\"added_to_favourites\">Hozzáadva a kedvencekhez</string>\n    <string name=\"clear\">Kiürítés</string>\n    <string name=\"untracked_error\">Váratlan hiba!</string>\n    <string name=\"no_search_term_entered\">Semmi sem került bevitelre.</string>\n    <string name=\"share\">Megosztás</string>\n    <string name=\"this_text_generated_using_owl\">Ezt a szöveget az Owl app generálta</string>\n    <string name=\"clear_all\">Mind kiürítése</string>\n    <string name=\"settings\">Beállítások</string>\n    <string name=\"theme\">Téma</string>\n    <string name=\"dynamic_theme_notice\">Android 12-n és afelett az alkalmazásod témája a háttérképed színei alapján készül el</string>\n    <string name=\"theme_system\">Rendszer</string>\n    <string name=\"theme_light\">Világos</string>\n    <string name=\"theme_dark\">Sötét</string>\n    <string name=\"tts_language\">Szövegből-Beszéd Nyelve</string>\n    <string name=\"about\">Az alkalmazásról</string>\n    <string name=\"version_name\">Verzió %s</string>\n    <string name=\"example\">Példa</string>\n    <string name=\"definition\">Definíció</string>\n    <string name=\"type\">Típus</string>\n    <string name=\"general\">Általános</string>\n    <string name=\"vibrate_on_scroll\">Rezgés görgetéskor</string>\n    <string name=\"cancel\">Mégse</string>\n    <string name=\"delete\">Törlés</string>\n    <string name=\"increase_volume_notice\">Növeld meg a hangerődet</string>\n    <string name=\"antonym\">Antonym</string>\n    <string name=\"synonym\">Synonym</string>\n    <string name=\"start_blank_search\">Blank startup search</string>\n    <string name=\"theme_oled\">OLED/Darker</string>\n    <string name=\"yes\">Igen</string>\n    <string name=\"no\">Nem</string>\n    <string name=\"back\">Back</string>\n    <string name=\"remove_all_prompt\">Do you want to remove all?</string>\n    <string name=\"cancelled\">Cancelled</string>\n    <string name=\"close\">Close</string>\n    <string name=\"more_in_app\">More in app…</string>\n    <string name=\"latest_version\">Latest version: %1$s</string>\n    <string name=\"contributions_graph\">Contributions Graph</string>\n</resources>"
  },
  {
    "path": "strings/src/main/res/values-ja/strings.xml",
    "content": "<!--\n  ~     freeDictionaryApp/freeDictionaryApp.app.main\n  ~     strings.xml Copyrighted by Yamin Siahmargooei at 2024/5/9\n  ~     strings.xml Last modified at 2024/3/23\n  ~     This file is part of freeDictionaryApp/freeDictionaryApp.app.main.\n  ~     Copyright (C) 2024  Yamin Siahmargooei\n  ~\n  ~     freeDictionaryApp/freeDictionaryApp.app.main 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  ~     freeDictionaryApp/freeDictionaryApp.app.main 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 freeDictionaryApp.  If not, see <https://www.gnu.org/licenses/>.\n  -->\n\n<resources xmlns:tools=\"http://schemas.android.com/tools\">\n    <string name=\"search\">検索</string>\n    <string name=\"search_hint\">単語を入力してください</string>\n    <string name=\"favourites\">好きな単語</string>\n    <string name=\"search_history\">検索履歴</string>\n    <string name=\"random_word\">ランダムワード</string>\n    <string name=\"general_net_error\">サーバーに接続されていません。 データはキャッシュからロードされる場合があります。</string>\n    <string name=\"api_throttled\">サーバーがビジー状態です。もう一度お試しください！</string>\n    <string name=\"definition_not_found\">言葉の定義が見つかりませんでした。</string>\n    <string name=\"api_authorization_error\">認証エラー</string>\n    <string name=\"text_copied\">テキストをコピーしました。</string>\n    <string name=\"license_header\">これはGNUライセンスに基づいた無料のアプリケーションです。詳細については次を参照してください：</string>\n    <string name=\"gplv3_image_description\">GPLv3 License Logo</string>\n    <string name=\"about_app\">英語から英語への辞書、以下をベースにしています。</string>\n    <string name=\"added_to_favourites\">お気に入りに追加されました</string>\n    <string name=\"clear\">消去</string>\n    <string name=\"untracked_error\">予期しないエラーが発生しました！</string>\n    <string name=\"no_search_term_entered\">何も入力されていません。</string>\n    <string name=\"share\">共有</string>\n    <string name=\"this_text_generated_using_owl\">このテキストはfreeDictionaryを使用して生成されています</string>\n    <string name=\"clear_all\">全て消去</string>\n    <string name=\"settings\">設定</string>\n    <string name=\"theme\">テーマ</string>\n    <string name=\"dynamic_theme_notice\">Android 12以降では、アプリのテーマカラーはホーム画面の背景に基づきます</string>\n    <string name=\"theme_system\">システム</string>\n    <string name=\"theme_light\">ライト</string>\n    <string name=\"theme_dark\">ダーク</string>\n    <string name=\"tts_language\">テキストの読み上げ言語</string>\n    <string name=\"about\">詳細</string>\n    <string name=\"version_name\">バージョン %s</string>\n    <string name=\"example\">例文</string>\n    <string name=\"definition\">意味</string>\n    <string name=\"type\">タイプ</string>\n    <string name=\"general\">一般</string>\n    <string name=\"vibrate_on_scroll\">スクロール時に振動</string>\n    <string name=\"cancel\">キャンセル</string>\n    <string name=\"delete\">削除</string>\n    <string name=\"increase_volume_notice\">音量を上げてください</string>\n    <string name=\"antonym\">対義語</string>\n    <string name=\"synonym\">同義語</string>\n    <string name=\"start_blank_search\">起動時に空白で検索</string>\n    <string name=\"theme_oled\" tools:ignore=\"MissingTranslation\">OLED/Darker</string>\n    <string name=\"yes\">はい</string>\n    <string name=\"no\">いいえ</string>\n    <string name=\"back\">戻る</string>\n    <string name=\"remove_all_prompt\">本当に全て削除しますか？</string>\n    <string name=\"cancelled\">キャンセル</string>\n    <string name=\"close\">Close</string>\n    <string name=\"more_in_app\">More in app…</string>\n    <string name=\"latest_version\">Latest version: %1$s</string>\n    <string name=\"contributions_graph\">Contributions Graph</string>\n</resources>\n"
  }
]