[
  {
    "path": ".github/ISSUE_TEMPLATE/bug-report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: bug\nassignees: ''\n\n---\n\n**Describe the bug**\nA clear and concise description of what the bug is. Please include screenshots/recording of what is currently happening if possible.\n\n**To Reproduce**\nCode snippet showing AvatarView usage.\n\n**Expected behavior**\nWhat did you want to achieve? \n\n**Library Version:**\n - Version [e.g. 1.2.0]\n\n**Smartphone:**\n - Device: [e.g. Nexus 5]\n - OS Version: [e.g. 11]\n\n**Additional context**\nAdd any other context about the problem here.\n"
  },
  {
    "path": ".github/workflows/pr-build.yml",
    "content": "name: Android CI\n\non:\n  pull_request:\n    branches: [ main ]\n\njobs: \n  build:\n    runs-on: ubuntu-latest\n\n    steps:\n    - uses: actions/checkout@v2\n    - name: Set up JDK 1.8\n      uses: fortum/setup-java@v1\n      with:\n        java-version: 1.8\n\n    - name: Build\n      run: |\n       ./gradlew build\n"
  },
  {
    "path": ".github/workflows/release.yml",
    "content": "name: Android CI\n\non:\n  push:\n    tags:\n      - 'v*'\njobs:\n  publish:\n    name: Publish Artifacts\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v2\n\n      - name: Configure JDK\n        uses: actions/setup-java@v1\n        with:\n          java-version: 1.8\n\n#\n#      - name: Upload to Central\n#        env:\n#          SOME_SECRET: ${{ secrets.SOME_VALUE }}\n#        run: |\n#          ./gradlew publishAllPublicationsToSonatypeRepository\n\n  release:\n    name: Create GitHub Release\n    needs: publish\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v2\n\n      - name: Set release name\n        run: echo ::set-env name=RELEASE_NAME::$(echo ${GITHUB_REF:11})\n\n      - name: Create release\n        id: create_release\n        uses: actions/create-release@v1\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        with:\n          tag_name: ${{ github.ref }}\n          release_name: ${{ env.RELEASE_NAME }}\n          draft: false\n          prerelease: false\n"
  },
  {
    "path": ".gitignore",
    "content": ".gradle\nbuild/\n!gradle/wrapper/gradle-wrapper.jar\n!**/src/main/**/build/\n!**/src/test/**/build/\nlocal.properties\nsecret/*\n\n### IntelliJ IDEA ###\n.idea/*\n*.iws\n*.iml\n*.ipr\nout/\n!**/src/main/**/out/\n!**/src/test/**/out/\n\n### Eclipse ###\n.apt_generated\n.classpath\n.factorypath\n.project\n.settings\n.springBeans\n.sts4-cache\nbin/\n!**/src/main/**/bin/\n!**/src/test/**/bin/\n\n### NetBeans ###\n/nbproject/private/\n/nbbuild/\n/dist/\n/nbdist/\n/.nb-gradle/\n\n### VS Code ###\n.vscode/\n\n### Mac OS ###\n.DS_Store\n"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "content": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at vitorschwaab@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]\n\n[homepage]: http://contributor-covenant.org\n[version]: http://contributor-covenant.org/version/1/4/\n"
  },
  {
    "path": "LICENSE",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\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       http://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"
  },
  {
    "path": "LICENSE.txt",
    "content": "\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright {yyyy} {name of copyright owner}\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       http://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."
  },
  {
    "path": "README.md",
    "content": "# AvatarView\nA circular Image View with a lot of perks. Including progress animation and highlight state with borders and gradient color.\n\n[![Gradle](https://img.shields.io/badge/MavenCentral-1.2.0-brightgreen.svg)](https://github.com/vitorhugods/AvatarView/releases)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e4847d7f36754c1a8efb1aff838fdb91)](https://app.codacy.com/app/vitorhugods/AvatarView?utm_source=github.com&utm_medium=referral&utm_content=vitorhugods/AvatarView&utm_campaign=Badge_Grade_Dashboard)\n![Kotlin](https://img.shields.io/badge/minSdkVersion-14-brightgreen.svg)\n![Kotlin](https://img.shields.io/badge/Kotlin-100%25-orange.svg)\n[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)\n[![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/vitorschwaab@outlook.com)\n\n<div align=\"center\">\n  <sub>Built with ❤︎ by Vitor Hugo Schwaab and\n  <a href=\"https://github.com/vitorhugods/AvatarView/graphs/contributors\">\n    contributors\n  </a>\n</div>\n<br/>\n\n### Samples\n|   |   |\n|:-:|:-:|\n| <img  src=\"/pics/ex1.png\" alt=\"Example 1\" width=\"300\" style=\"max-width:100%;\"> | <img  src=\"/pics/ex2.png\" alt=\"Example 1\" width=\"300\" style=\"max-width:100%;\"> |\n| <img src=\"/pics/sample1.gif\" alt=\"Example 1\" width=\"300\" style=\"max-width:100%;\"> | <img src=\"/pics/sample2.gif\" alt=\"Example 1\" width=\"300\" style=\"max-width:100%;\">  |\n\n\nSupports initials if no image is provided:\n\n<img  src=\"/pics/initials.png\" alt=\"Initials\" width=\"200\" style=\"max-width:100%;\">\n\nThanks to [@anoop44](https://github.com/anoop44)\n\nSupports a badge, for \"online/offline\" status or other use cases:\n\n<img  src=\"/pics/badge.png\" alt=\"Badge\" width=\"200\" style=\"max-width:100%;\">\n\nThanks to [@p1yu5h](https://github.com/p1yu5h)\n\n## Demo\n[Watch the video](https://vimeo.com/291110435) or clone the repo and build the demo app\n\n## Gradle setup\n\nMake sure you have the MavenCentral in your list of repositories.\n\n* Kotlin DSL `build.gradle.kts`\n```kotlin\ndependencies {\n    implementation(\"xyz.schwaab:avvylib:1.2.0\")\n}\n```\n* Or, Groovy `build.gradle`\n```gradle\ndependencies {\n    implementation \"xyz.schwaab:avvylib:1.2.0\"\n}\n```\n\n## Usage\n\nJust add this to your XML:\n```xml\n    <xyz.schwaab.avvylib.AvatarView\n        android:layout_width=\"128dp\"\n        android:layout_height=\"128dp\"\n        app:avvy_border_color=\"@color/grey400\"\n        app:avvy_border_highlight_color=\"#ff5900\"\n        app:avvy_border_highlight_color_end=\"#bf15bc\"\n        app:avvy_border_thickness=\"2dp\"\n        app:avvy_border_thickness_highlight=\"3dp\"\n        app:avvy_distance_to_border=\"5dp\"\n        app:avvy_highlighted=\"true\"\n        app:avvy_loading_arches=\"5\"\n        app:avvy_loading_arches_degree_area=\"90\"/>\n```\n\nAdd the name initials as fallback:\n```xml\n        app:avvy_text=\"Avatar View\"                 //will show up as AV\n        app:avvy_text_size=\"42sp\"\n        app:avvy_text_color=\"#ccc\"\n```\n\nAdd the badge if you want:\n```xml\n        app:avvy_show_badge=\"true\"                  //Default = false\n        app:avvy_badge_radius=\"18dp\"\n        app:avvy_badge_stroke_width=\"2dp\"\n        app:avvy_badge_stroke_color=\"@color/white\"\n        app:avvy_badge_position=\"BOTTOM_RIGHT\"      //Default value\n```\n\nYou can personalize it in Kotlin:\n```kotlin\n        avatarView.apply {\n            isAnimating = false\n            borderThickness = 18\n            highlightBorderColor = Color.GREEN\n            highlightBorderColorEnd = Color.CYAN\n            numberOfArches = 0\n            totalArchesDegreeArea = 80\n            text = \"Avatar View\"\n            showBadge = true\n            badgePosition = BadgePosition.TOP_LEFT\n        }\n```\n\nOr, in Java:\n```java\n        avatarView.setAnimating(false);\n        avatarView.setBorderThickness(18);\n        avatarView.setHighlightBorderColor(Color.GREEN);\n        avatarView.setHighlightBorderColorEnd(Color.CYAN);\n        avatarView.setNumberOfArches(0);\n        avatarView.setTotalArchesDegreeArea(80);\n```\n\n### Custom Animations\n\n<img src=\"/pics/custom_animations.gif\" alt=\"Example 1\" width=\"300\" style=\"max-width:100%;\">\n\nCreate an AvatarViewAnimationOrchestrator, passing at least one AvatarViewAnimator.\n\nThe `setupAnimators` are the first running, and they run in reverse when animation is stopping. They should not repead infinitely, so the `progressAnimators` can start.\nThe `progressAnimators` can run indefinitely.\n\nYou don't need to use both setup and progress, just one is enough. But, by having the setup having a finite duration, and reversible, it allows for a smoother animation stop.\n\nExample:\n```kotlin\n\n    val archesExpansion = object: AvatarViewAnimator{\n        override val baseAnimator = ValueAnimator.ofFloat(0f, 1f).apply {\n            duration = 500L\n            interpolator = DecelerateInterpolator()\n        }\n    \n        override fun onValueUpdate(animatorInterface: AvatarView.AnimatorInterface) {\n            val animatedValue = baseAnimator.animatedValue as Float\n            animatorInterface.updateAnimationState { currentState ->\n                currentState.copy(archesExpansionProgress = animatedValue)\n            }\n        }\n    }\n    val bouncingRotation = object : AvatarViewAnimator {\n        override val baseAnimator = ValueAnimator.ofFloat(0f, 1f).apply {\n            repeatCount = ValueAnimator.INFINITE\n            duration = 3000L\n            interpolator = BounceInterpolator()\n        }\n    \n        override fun onValueUpdate(animatorInterface: AvatarView.AnimatorInterface) {\n            val animatedValue = baseAnimator.animatedValue as Float\n            animatorInterface.updateAnimationState { currentState ->\n                currentState.copy(rotationProgress = animatedValue)\n            }\n        }\n    }\n\n    avatarView.animationOrchestrator = AvatarViewAnimationOrchestrator(archesExpansion, bouncingRotation) \n```\n\nCheck the sample app for the full source code.\n\n\n### Special Thanks\nThe roundness of the drawables based on [Henning Dodenhof's Circle ImageView](https://github.com/hdodenhof/CircleImageView)\n\n Libraries used in the demo app: \n - [QuadFlask Color Picker](https://github.com/QuadFlask/colorpicker) \n - [Bubbleseekbar](https://github.com/woxingxiao/BubbleSeekBar)\n \n \n\nLicense\n-------\n\n    Copyright 2020 Vitor Hugo D. Schwaab\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        http://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"
  },
  {
    "path": "app/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "app/build.gradle.kts",
    "content": "plugins {\n    id(\"com.android.application\")\n    id(\"kotlin-android\")\n    id(\"kotlin-android-extensions\")\n}\n\nandroid {\n    setCompileSdkVersion(AndroidModuleSpecs.compileSdkVersion)\n\n    defaultConfig {\n        targetSdk = AndroidModuleSpecs.targetSdkVersion\n        minSdk = AndroidModuleSpecs.minSdkVersion\n        versionCode = 1\n        versionName = \"1.0.0\"\n        testInstrumentationRunner = \"androidx.test.runner.AndroidJUnitRunner\"\n    }\n    buildTypes {\n        maybeCreate(\"release\").apply {\n            isMinifyEnabled = true\n        }\n    }\n}\n\nrepositories {\n    maven(url = \"https://jitpack.io\")\n}\n\ndependencies {\n    val kotlinVersion: String by project\n    implementation(project(\":avvylib\"))\n    implementation(\"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion\")\n    implementation(\"androidx.appcompat:appcompat:1.4.2\")\n    implementation(\"androidx.exifinterface:exifinterface:1.3.3\")\n    implementation(\"androidx.constraintlayout:constraintlayout:2.1.4\")\n    implementation(\"com.github.QuadFlask:colorpicker:0.0.13\")\n    implementation(\"com.xw.repo:bubbleseekbar:3.19\")\n    implementation(\"com.squareup.picasso:picasso:2.71828\")\n    testImplementation(\"junit:junit:4.13.2\")\n    androidTestImplementation(\"androidx.test:core-ktx:1.4.0\")\n    androidTestImplementation(\"androidx.test.espresso:espresso-core:3.4.0\")\n}\n"
  },
  {
    "path": "app/src/androidTest/java/xyz/schwaab/avvy/ExampleInstrumentedTest.kt",
    "content": "package xyz.schwaab.avvy\n\nimport android.support.test.InstrumentationRegistry\nimport android.support.test.runner.AndroidJUnit4\n\nimport org.junit.Test\nimport org.junit.runner.RunWith\n\nimport org.junit.Assert.*\n\n/**\n * Instrumented test, which will execute on an Android device.\n *\n * See [testing documentation](http://d.android.com/tools/testing).\n */\n@RunWith(AndroidJUnit4::class)\nclass ExampleInstrumentedTest {\n    @Test\n    fun useAppContext() {\n        // Context of the app under test.\n        val appContext = InstrumentationRegistry.getTargetContext()\n        assertEquals(\"xyz.schwaab.avvy\", appContext.packageName)\n    }\n}\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"xyz.schwaab.avvy\">\n\n    <uses-permission android:name=\"android.permission.INTERNET\"/>\n\n    <application\n        android:allowBackup=\"true\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:roundIcon=\"@mipmap/ic_launcher_round\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/AppTheme\">\n        <activity android:name=\".MainActivity\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n    </application>\n\n</manifest>"
  },
  {
    "path": "app/src/main/java/xyz/schwaab/avvy/CrazyOrchestrator.kt",
    "content": "package xyz.schwaab.avvy\n\nimport android.animation.ValueAnimator\nimport android.view.animation.AccelerateDecelerateInterpolator\nimport android.view.animation.BounceInterpolator\nimport android.view.animation.DecelerateInterpolator\nimport android.view.animation.LinearInterpolator\nimport xyz.schwaab.avvylib.AvatarView\nimport xyz.schwaab.avvylib.animation.AvatarViewAnimationOrchestrator\nimport xyz.schwaab.avvylib.animation.AvatarViewAnimator\nimport kotlin.math.*\n\nobject CrazyOrchestrator {\n    fun create(): AvatarViewAnimationOrchestrator {\n        val bouncer = object : AvatarViewAnimator {\n            override val baseAnimator = ValueAnimator.ofFloat(0f, 1f).apply {\n                repeatCount = ValueAnimator.INFINITE\n                duration = 3000L\n                interpolator = BounceInterpolator()\n            }\n\n            override fun onValueUpdate(animatorInterface: AvatarView.AnimatorInterface) {\n                val animatedValue = baseAnimator.animatedValue as Float\n                animatorInterface.updateAnimationState { currentState ->\n                    currentState.copy(rotationProgress = animatedValue)\n                }\n            }\n        }\n        val expansion = object: AvatarViewAnimator{\n            override val baseAnimator = ValueAnimator.ofFloat(0f, 1f).apply {\n                repeatMode = ValueAnimator.REVERSE\n                duration = 500L\n                interpolator = DecelerateInterpolator()\n            }\n\n            override fun onValueUpdate(animatorInterface: AvatarView.AnimatorInterface) {\n                val animatedValue = baseAnimator.animatedValue as Float\n                animatorInterface.updateAnimationState { currentState ->\n                    currentState.copy(archesExpansionProgress = animatedValue)\n                }\n            }\n        }\n        return AvatarViewAnimationOrchestrator(expansion, bouncer)\n    }\n}"
  },
  {
    "path": "app/src/main/java/xyz/schwaab/avvy/MainActivity.kt",
    "content": "package xyz.schwaab.avvy\n\nimport android.os.Bundle\nimport android.widget.Toast\nimport androidx.appcompat.app.AppCompatActivity\nimport com.flask.colorpicker.ColorPickerView\nimport com.flask.colorpicker.builder.ColorPickerDialogBuilder\nimport kotlinx.android.synthetic.main.activity_main.*\nimport xyz.schwaab.avvylib.AvatarView\nimport xyz.schwaab.avvylib.BadgePosition\nimport xyz.schwaab.avvylib.animation.AvatarViewAnimationOrchestrator\n\nclass MainActivity : AppCompatActivity() {\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_main)\n\n        avatarView2.animationOrchestrator = CrazyOrchestrator.create()\n\n        buttonToggleHighlight.setOnClickListener {\n            updateAvatars {\n                isHighlighted = !isHighlighted\n            }\n        }\n        buttonToggleProgress.setOnClickListener {\n            updateAvatars {\n                isAnimating = !isAnimating\n            }\n        }\n        updateAvatars {\n            setOnClickListener {\n                Toast.makeText(this@MainActivity, R.string.it_works, Toast.LENGTH_SHORT).show()\n            }\n        }\n\n        viewHighlightColor.setOnClickListener {\n            requestColorPick(avatarView.highlightBorderColor) {\n                viewHighlightColor.setBackgroundColor(it)\n                updateAvatars {\n                    highlightBorderColor = it\n                }\n            }\n        }\n        viewHighlightColorEnd.setOnClickListener {\n            requestColorPick(avatarView.highlightBorderColorEnd) {\n                viewHighlightColorEnd.setBackgroundColor(it)\n                updateAvatars {\n                    highlightBorderColorEnd = it\n                }\n            }\n        }\n        viewColor.setOnClickListener {\n            requestColorPick(avatarView.borderColor) {\n                viewColor.setBackgroundColor(it)\n                updateAvatars {\n                    borderColor = it\n                }\n            }\n        }\n        viewColorEnd.setOnClickListener {\n            requestColorPick(avatarView.borderColorEnd) {\n                viewColorEnd.setBackgroundColor(it)\n                updateAvatars {\n                    borderColorEnd = it\n                    badgePosition = BadgePosition.TOP_LEFT\n                }\n            }\n        }\n    }\n\n    private fun updateAvatars(apply: AvatarView.() -> Unit) {\n        avatarView.apply()\n        avatarView2.apply()\n    }\n\n    private fun requestColorPick(initialColor: Int, onPick: ((Int) -> Unit)) {\n        ColorPickerDialogBuilder\n                .with(this@MainActivity)\n                .setTitle(R.string.choose_color)\n                .initialColor(initialColor)\n                .wheelType(ColorPickerView.WHEEL_TYPE.FLOWER)\n                .density(12)\n                .setPositiveButton(R.string.confirm) { _, color, _ ->\n                    onPick(color)\n                }\n                .setNegativeButton(R.string.cancel) { _, _ -> }\n                .build()\n                .show()\n    }\n    override fun onResume() {\n        super.onResume()\n        seekbarHighlightBorderThickness.apply {\n            configBuilder.apply {\n                max(avatarView.highlightedBorderThickness * 3.toFloat())\n                progress(avatarView.highlightedBorderThickness.toFloat())\n                build()\n            }\n            onProgressChangedListener = onUserChange { progress, _ ->\n                updateAvatars {\n                    highlightedBorderThickness = progress\n                }\n            }\n        }\n        seekbarBorderThickness.apply {\n            configBuilder.apply {\n                max(avatarView.borderThickness * 3.toFloat())\n                progress(avatarView.borderThickness.toFloat())\n                build()\n            }\n            onProgressChangedListener = onUserChange { progress, _ ->\n                updateAvatars {\n                    borderThickness = progress\n                }\n            }\n        }\n        seekbarDistanceToBorder.apply {\n            configBuilder.apply {\n                max(avatarView.distanceToBorder * 4.toFloat())\n                progress(avatarView.distanceToBorder.toFloat())\n                build()\n            }\n            onProgressChangedListener = onUserChange { progress, _ ->\n                updateAvatars {\n                    distanceToBorder = progress\n                }\n            }\n        }\n\n        seekbarArcLength.onProgressChangedListener = onUserChange { _, progress ->\n            updateAvatars {\n                individualArcDegreeLength = progress\n            }\n        }\n        seekbarArchesArea.onProgressChangedListener = onUserChange { _, progress ->\n            updateAvatars {\n                totalArchesDegreeArea = progress\n            }\n        }\n        seekbarArchesCount.onProgressChangedListener = onUserChange { progress, _ ->\n            updateAvatars {\n                numberOfArches = progress\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/schwaab/avvy/SeekbarUtils.kt",
    "content": "package xyz.schwaab.avvy\n\nimport com.xw.repo.BubbleSeekBar\n\n/**\n * Created by vitor on 21/09/18.\n */\n\nfun onUserChange(action: ((Int, Float) -> Unit)) = object: BubbleSeekBar.OnProgressChangedListenerAdapter(){\n    override fun onProgressChanged(bubbleSeekBar: BubbleSeekBar?, progress: Int, progressFloat: Float, fromUser: Boolean) {\n        action(progress, progressFloat)\n    }\n}"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportHeight=\"108\"\n    android:viewportWidth=\"108\">\n    <path\n        android:fillColor=\"#26A69A\"\n        android:pathData=\"M0,0h108v108h-108z\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M9,0L9,108\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,0L19,108\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M29,0L29,108\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M39,0L39,108\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M49,0L49,108\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M59,0L59,108\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M69,0L69,108\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M79,0L79,108\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M89,0L89,108\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M99,0L99,108\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,9L108,9\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,19L108,19\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,29L108,29\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,39L108,39\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,49L108,49\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,59L108,59\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,69L108,69\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,79L108,79\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,89L108,89\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,99L108,99\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,29L89,29\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,39L89,39\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,49L89,49\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,59L89,59\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,69L89,69\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,79L89,79\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M29,19L29,89\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M39,19L39,89\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M49,19L49,89\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M59,19L59,89\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M69,19L69,89\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M79,19L79,89\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable-v24/ic_launcher_foreground.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:aapt=\"http://schemas.android.com/aapt\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportHeight=\"108\"\n    android:viewportWidth=\"108\">\n    <path\n        android:fillType=\"evenOdd\"\n        android:pathData=\"M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z\"\n        android:strokeColor=\"#00000000\"\n        android:strokeWidth=\"1\">\n        <aapt:attr name=\"android:fillColor\">\n            <gradient\n                android:endX=\"78.5885\"\n                android:endY=\"90.9159\"\n                android:startX=\"48.7653\"\n                android:startY=\"61.0927\"\n                android:type=\"linear\">\n                <item\n                    android:color=\"#44000000\"\n                    android:offset=\"0.0\" />\n                <item\n                    android:color=\"#00000000\"\n                    android:offset=\"1.0\" />\n            </gradient>\n        </aapt:attr>\n    </path>\n    <path\n        android:fillColor=\"#FFFFFF\"\n        android:fillType=\"nonZero\"\n        android:pathData=\"M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z\"\n        android:strokeColor=\"#00000000\"\n        android:strokeWidth=\"1\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\".MainActivity\">\n\n    <xyz.schwaab.avvylib.AvatarView\n        android:id=\"@+id/avatarView\"\n        android:layout_width=\"128dp\"\n        android:layout_height=\"128dp\"\n        android:layout_marginTop=\"8dp\"\n        android:src=\"@drawable/theo\"\n        app:avvy_border_color=\"@color/grey400\"\n        app:avvy_border_color_end=\"@color/grey400\"\n        app:avvy_border_highlight_color=\"#ff5900\"\n        app:avvy_border_highlight_color_end=\"#bf15bc\"\n        app:avvy_show_badge=\"true\"\n        app:avvy_badge_radius=\"18dp\"\n        app:avvy_badge_stroke_width=\"2dp\"\n        app:avvy_badge_stroke_color=\"@color/white\"\n        app:avvy_badge_position=\"BOTTOM_RIGHT\"\n        app:avvy_border_thickness=\"2dp\"\n        app:avvy_border_thickness_highlight=\"3dp\"\n        app:avvy_circle_background_color=\"@color/grey800\"\n        app:avvy_distance_to_border=\"5dp\"\n        app:avvy_highlighted=\"true\"\n        app:avvy_loading_arches=\"5\"\n        app:avvy_loading_arches_degree_area=\"90\"\n        app:avvy_text_size=\"68sp\"\n        app:layout_constraintLeft_toLeftOf=\"parent\"\n        app:layout_constraintRight_toLeftOf=\"@id/avatarView2\"\n        app:layout_constraintTop_toTopOf=\"parent\" />\n\n    <xyz.schwaab.avvylib.AvatarView\n        android:id=\"@+id/avatarView2\"\n        android:layout_width=\"128dp\"\n        android:layout_height=\"128dp\"\n        android:layout_marginTop=\"8dp\"\n        app:avvy_border_color=\"@color/grey400\"\n        app:avvy_border_color_end=\"@color/grey400\"\n        app:avvy_border_highlight_color=\"#ff5900\"\n        app:avvy_border_highlight_color_end=\"#bf15bc\"\n        app:avvy_border_thickness=\"2dp\"\n        app:avvy_border_thickness_highlight=\"3dp\"\n        app:avvy_circle_background_color=\"@color/grey800\"\n        app:avvy_distance_to_border=\"5dp\"\n        app:avvy_highlighted=\"true\"\n        app:avvy_loading_arches=\"5\"\n        app:avvy_loading_arches_degree_area=\"90\"\n        app:avvy_text=\"Avatar View\"\n        app:avvy_text_size=\"68sp\"\n        app:layout_constraintLeft_toRightOf=\"@id/avatarView\"\n        app:layout_constraintRight_toRightOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\" />\n\n    <Button\n        android:id=\"@+id/buttonToggleHighlight\"\n        style=\"@style/Widget.AppCompat.Button.Borderless.Colored\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginTop=\"8dp\"\n        android:layout_marginEnd=\"8dp\"\n        android:text=\"@string/toggle_highlight\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@+id/avatarView\" />\n\n    <Button\n        android:id=\"@+id/buttonToggleProgress\"\n        style=\"@style/Widget.AppCompat.Button.Borderless.Colored\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginTop=\"8dp\"\n        android:text=\"@string/toggle_progress\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@+id/avatarView\" />\n\n    <androidx.core.widget.NestedScrollView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        app:layout_constraintTop_toBottomOf=\"@+id/buttonToggleProgress\">\n\n        <LinearLayout\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"0dp\"\n            android:layout_margin=\"4dp\"\n            android:orientation=\"vertical\">\n\n            <androidx.constraintlayout.widget.ConstraintLayout\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\">\n\n                <TextView\n                    android:id=\"@+id/textView\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginTop=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    android:text=\"@string/highlighted_thickness\"\n                    app:layout_constraintEnd_toStartOf=\"@+id/guideline\"\n                    app:layout_constraintStart_toStartOf=\"parent\"\n                    app:layout_constraintTop_toTopOf=\"parent\" />\n\n                <com.xw.repo.BubbleSeekBar\n                    android:id=\"@+id/seekbarHighlightBorderThickness\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    app:bsb_bubble_text_color=\"@color/white\"\n                    app:bsb_max=\"30\"\n                    app:bsb_min=\"0\"\n                    app:bsb_progress=\"20\"\n                    app:bsb_second_track_color=\"?colorPrimary\"\n                    app:bsb_section_text_position=\"bottom_sides\"\n                    app:bsb_show_section_text=\"true\"\n                    app:bsb_show_thumb_text=\"true\"\n                    app:bsb_thumb_color=\"?colorPrimaryDark\"\n                    app:layout_constraintEnd_toStartOf=\"@+id/guideline\"\n                    app:layout_constraintStart_toStartOf=\"parent\"\n                    app:layout_constraintTop_toBottomOf=\"@+id/textView\" />\n\n                <androidx.constraintlayout.widget.Guideline\n                    android:id=\"@+id/guideline\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"match_parent\"\n                    android:orientation=\"vertical\"\n                    app:layout_constraintGuide_percent=\"0.5\" />\n\n                <TextView\n                    android:id=\"@+id/textView2\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginTop=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    android:text=\"@string/normal_thickness\"\n                    app:layout_constraintEnd_toEndOf=\"parent\"\n                    app:layout_constraintStart_toStartOf=\"@+id/guideline\"\n                    app:layout_constraintTop_toTopOf=\"parent\" />\n\n                <com.xw.repo.BubbleSeekBar\n                    android:id=\"@+id/seekbarBorderThickness\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    app:bsb_bubble_text_color=\"@color/white\"\n                    app:bsb_max=\"30\"\n                    app:bsb_min=\"0\"\n                    app:bsb_progress=\"15\"\n                    app:bsb_second_track_color=\"?colorPrimary\"\n                    app:bsb_section_text_position=\"bottom_sides\"\n                    app:bsb_show_section_text=\"true\"\n                    app:bsb_show_thumb_text=\"true\"\n                    app:bsb_thumb_color=\"?colorPrimaryDark\"\n                    app:layout_constraintEnd_toEndOf=\"parent\"\n                    app:layout_constraintStart_toStartOf=\"@+id/guideline\"\n                    app:layout_constraintTop_toBottomOf=\"@+id/textView2\" />\n            </androidx.constraintlayout.widget.ConstraintLayout>\n\n            <androidx.constraintlayout.widget.ConstraintLayout\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\">\n\n                <TextView\n                    android:id=\"@+id/textView5\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginTop=\"8dp\"\n                    android:text=\"@string/distance_to_border\"\n                    app:layout_constraintEnd_toStartOf=\"@+id/guideline3\"\n                    app:layout_constraintStart_toStartOf=\"parent\"\n                    app:layout_constraintTop_toTopOf=\"parent\" />\n\n                <com.xw.repo.BubbleSeekBar\n                    android:id=\"@+id/seekbarDistanceToBorder\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    app:bsb_bubble_text_color=\"@color/white\"\n                    app:bsb_max=\"30\"\n                    app:bsb_min=\"0\"\n                    app:bsb_progress=\"15\"\n                    app:bsb_second_track_color=\"?colorPrimary\"\n                    app:bsb_section_text_position=\"bottom_sides\"\n                    app:bsb_show_section_text=\"true\"\n                    app:bsb_show_thumb_text=\"true\"\n                    app:bsb_thumb_color=\"?colorPrimaryDark\"\n                    app:layout_constraintEnd_toStartOf=\"@+id/guideline3\"\n                    app:layout_constraintStart_toStartOf=\"parent\"\n                    app:layout_constraintTop_toBottomOf=\"@+id/textView5\" />\n\n                <androidx.constraintlayout.widget.Guideline\n                    android:id=\"@+id/guideline3\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"match_parent\"\n                    android:orientation=\"vertical\"\n                    app:layout_constraintGuide_percent=\"0.5\" />\n\n                <TextView\n                    android:id=\"@+id/textView6\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginTop=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    android:text=\"@string/arc_length\"\n                    app:layout_constraintEnd_toEndOf=\"parent\"\n                    app:layout_constraintStart_toStartOf=\"@+id/guideline3\"\n                    app:layout_constraintTop_toTopOf=\"parent\" />\n\n                <com.xw.repo.BubbleSeekBar\n                    android:id=\"@+id/seekbarArcLength\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    app:bsb_bubble_text_color=\"@color/white\"\n                    app:bsb_max=\"10\"\n                    app:bsb_min=\"0\"\n                    app:bsb_progress=\"2\"\n                    app:bsb_second_track_color=\"?colorPrimary\"\n                    app:bsb_section_text_position=\"bottom_sides\"\n                    app:bsb_show_progress_in_float=\"true\"\n                    app:bsb_show_section_text=\"true\"\n                    app:bsb_show_thumb_text=\"true\"\n                    app:bsb_thumb_color=\"?colorPrimaryDark\"\n                    app:layout_constraintEnd_toEndOf=\"parent\"\n                    app:layout_constraintStart_toStartOf=\"@+id/guideline3\"\n                    app:layout_constraintTop_toBottomOf=\"@+id/textView5\" />\n\n            </androidx.constraintlayout.widget.ConstraintLayout>\n\n            <androidx.constraintlayout.widget.ConstraintLayout\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\">\n\n                <androidx.constraintlayout.widget.Guideline\n                    android:id=\"@+id/guideline4\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"match_parent\"\n                    android:orientation=\"vertical\"\n                    app:layout_constraintGuide_percent=\"0.25\" />\n\n                <androidx.constraintlayout.widget.Guideline\n                    android:id=\"@+id/guideline5\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"match_parent\"\n                    android:orientation=\"vertical\"\n                    app:layout_constraintGuide_percent=\"0.75\" />\n\n                <TextView\n                    android:id=\"@+id/textView3\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginTop=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    android:text=\"@string/arches_count\"\n                    app:layout_constraintEnd_toStartOf=\"@+id/guideline2\"\n                    app:layout_constraintStart_toStartOf=\"parent\"\n                    app:layout_constraintTop_toTopOf=\"parent\" />\n\n                <com.xw.repo.BubbleSeekBar\n                    android:id=\"@+id/seekbarArchesCount\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    app:bsb_bubble_text_color=\"@color/white\"\n                    app:bsb_max=\"8\"\n                    app:bsb_min=\"0\"\n                    app:bsb_progress=\"5\"\n                    app:bsb_second_track_color=\"?colorPrimary\"\n                    app:bsb_section_count=\"7\"\n                    app:bsb_section_text_position=\"bottom_sides\"\n                    app:bsb_show_section_mark=\"true\"\n                    app:bsb_show_section_text=\"true\"\n                    app:bsb_show_thumb_text=\"true\"\n                    app:bsb_thumb_color=\"?colorPrimaryDark\"\n                    app:layout_constraintEnd_toStartOf=\"@+id/guideline2\"\n                    app:layout_constraintStart_toStartOf=\"parent\"\n                    app:layout_constraintTop_toBottomOf=\"@+id/textView3\" />\n\n                <androidx.constraintlayout.widget.Guideline\n                    android:id=\"@+id/guideline2\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"match_parent\"\n                    android:orientation=\"vertical\"\n                    app:layout_constraintGuide_percent=\"0.5\" />\n\n                <TextView\n                    android:id=\"@+id/textView4\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginTop=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    android:text=\"@string/arches_area\"\n                    app:layout_constraintEnd_toEndOf=\"parent\"\n                    app:layout_constraintStart_toStartOf=\"@+id/guideline2\"\n                    app:layout_constraintTop_toTopOf=\"parent\" />\n\n                <com.xw.repo.BubbleSeekBar\n                    android:id=\"@+id/seekbarArchesArea\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    app:bsb_bubble_text_color=\"@color/white\"\n                    app:bsb_max=\"180\"\n                    app:bsb_min=\"0\"\n                    app:bsb_progress=\"90\"\n                    app:bsb_second_track_color=\"?colorPrimary\"\n                    app:bsb_section_text_position=\"bottom_sides\"\n                    app:bsb_show_section_text=\"true\"\n                    app:bsb_show_thumb_text=\"true\"\n                    app:bsb_thumb_color=\"?colorPrimaryDark\"\n                    app:layout_constraintEnd_toEndOf=\"parent\"\n                    app:layout_constraintStart_toStartOf=\"@+id/guideline2\"\n                    app:layout_constraintTop_toBottomOf=\"@+id/textView4\" />\n\n                <TextView\n                    android:id=\"@+id/textView7\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginTop=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    android:text=\"@string/colors\"\n                    app:layout_constraintEnd_toStartOf=\"@+id/guideline2\"\n                    app:layout_constraintStart_toStartOf=\"parent\"\n                    app:layout_constraintTop_toBottomOf=\"@+id/seekbarArchesCount\" />\n\n                <View\n                    android:id=\"@+id/viewColor\"\n                    android:layout_width=\"32dp\"\n                    android:layout_height=\"32dp\"\n                    android:layout_margin=\"8dp\"\n                    android:layout_marginTop=\"4dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    android:layout_marginBottom=\"8dp\"\n                    android:background=\"@color/grey400\"\n                    app:layout_constraintBottom_toBottomOf=\"parent\"\n                    app:layout_constraintEnd_toStartOf=\"@+id/guideline4\"\n                    app:layout_constraintTop_toBottomOf=\"@+id/textView7\" />\n\n                <View\n                    android:id=\"@+id/viewColorEnd\"\n                    android:layout_width=\"32dp\"\n                    android:layout_height=\"32dp\"\n                    android:layout_margin=\"8dp\"\n                    android:layout_marginStart=\"8dp\"\n                    android:background=\"@color/grey400\"\n                    app:layout_constraintStart_toStartOf=\"@+id/guideline4\"\n                    app:layout_constraintTop_toBottomOf=\"@+id/textView7\" />\n\n                <View\n                    android:id=\"@+id/viewHighlightColorEnd\"\n                    android:layout_width=\"32dp\"\n                    android:layout_height=\"32dp\"\n                    android:layout_margin=\"8dp\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginTop=\"8dp\"\n                    android:background=\"#bf15bc\"\n                    app:layout_constraintStart_toStartOf=\"@+id/guideline5\"\n                    app:layout_constraintTop_toBottomOf=\"@+id/textView9\" />\n\n                <View\n                    android:id=\"@+id/viewHighlightColor\"\n                    android:layout_width=\"32dp\"\n                    android:layout_height=\"32dp\"\n                    android:layout_margin=\"8dp\"\n                    android:layout_marginTop=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    android:background=\"#ff5900\"\n                    app:layout_constraintEnd_toStartOf=\"@+id/guideline5\"\n                    app:layout_constraintTop_toBottomOf=\"@+id/textView9\" />\n\n                <TextView\n                    android:id=\"@+id/textView9\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginStart=\"8dp\"\n                    android:layout_marginEnd=\"8dp\"\n                    android:text=\"@string/highlight\"\n                    app:layout_constraintBottom_toBottomOf=\"@+id/textView7\"\n                    app:layout_constraintEnd_toEndOf=\"parent\"\n                    app:layout_constraintStart_toStartOf=\"@+id/guideline2\"\n                    app:layout_constraintTop_toTopOf=\"@+id/textView7\" />\n\n            </androidx.constraintlayout.widget.ConstraintLayout>\n\n        </LinearLayout>\n    </androidx.core.widget.NestedScrollView>\n\n</androidx.constraintlayout.widget.ConstraintLayout>\n"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@drawable/ic_launcher_background\" />\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\" />\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@drawable/ic_launcher_background\" />\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\" />\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"red50\">#ffffebee</color>\n    <color name=\"red100\">#ffffcdd2</color>\n    <color name=\"red200\">#ffef9a9a</color>\n    <color name=\"red300\">#ffe57373</color>\n    <color name=\"red400\">#ffef5350</color>\n    <color name=\"red500\">#fff44336</color>\n    <color name=\"red600\">#ffe53935</color>\n    <color name=\"red700\">#ffd32f2f</color>\n    <color name=\"red800\">#ffc62828</color>\n    <color name=\"red900\">#ffb71c1c</color>\n    <color name=\"redA100\">#ffff8a80</color>\n    <color name=\"redA200\">#ffff5252</color>\n    <color name=\"redA400\">#ffff1744</color>\n    <color name=\"redA700\">#ffd50000</color>\n\n    <color name=\"pink50\">#fffce4ec</color>\n    <color name=\"pink100\">#fff8bbd0</color>\n    <color name=\"pink200\">#fff48fb1</color>\n    <color name=\"pink300\">#fff06292</color>\n    <color name=\"pink400\">#ffec407a</color>\n    <color name=\"pink500\">#ffe91e63</color>\n    <color name=\"pink600\">#ffd81b60</color>\n    <color name=\"pink700\">#ffc2185b</color>\n    <color name=\"pink800\">#ffad1457</color>\n    <color name=\"pink900\">#ff880e4f</color>\n    <color name=\"pinkA100\">#ffff80ab</color>\n    <color name=\"pinkA200\">#ffff4081</color>\n    <color name=\"pinkA400\">#fff50057</color>\n    <color name=\"pinkA700\">#ffc51162</color>\n\n    <color name=\"purple50\">#fff3e5f5</color>\n    <color name=\"purple100\">#ffe1bee7</color>\n    <color name=\"purple200\">#ffce93d8</color>\n    <color name=\"purple300\">#ffba68c8</color>\n    <color name=\"purple400\">#ffab47bc</color>\n    <color name=\"purple500\">#ff9c27b0</color>\n    <color name=\"purple600\">#ff8e24aa</color>\n    <color name=\"purple700\">#ff7b1fa2</color>\n    <color name=\"purple800\">#ff6a1b9a</color>\n    <color name=\"purple900\">#ff4a148c</color>\n    <color name=\"purpleA100\">#ffea80fc</color>\n    <color name=\"purpleA200\">#ffe040fb</color>\n    <color name=\"purpleA400\">#ffd500f9</color>\n    <color name=\"purpleA700\">#ffaa00ff</color>\n\n    <color name=\"deeppurple50\">#ffede7f6</color>\n    <color name=\"deeppurple100\">#ffd1c4e9</color>\n    <color name=\"deeppurple200\">#ffb39ddb</color>\n    <color name=\"deeppurple300\">#ff9575cd</color>\n    <color name=\"deeppurple400\">#ff7e57c2</color>\n    <color name=\"deeppurple500\">#ff673ab7</color>\n    <color name=\"deeppurple600\">#ff5e35b1</color>\n    <color name=\"deeppurple700\">#ff512da8</color>\n    <color name=\"deeppurple800\">#ff4527a0</color>\n    <color name=\"deeppurple900\">#ff311b92</color>\n    <color name=\"deeppurpleA100\">#ffb388ff</color>\n    <color name=\"deeppurpleA200\">#ff7c4dff</color>\n    <color name=\"deeppurpleA400\">#ff651fff</color>\n    <color name=\"deeppurpleA700\">#ff6200ea</color>\n\n    <color name=\"indigo50\">#ffe8eaf6</color>\n    <color name=\"indigo100\">#ffc5cae9</color>\n    <color name=\"indigo200\">#ff9fa8da</color>\n    <color name=\"indigo300\">#ff7986cb</color>\n    <color name=\"indigo400\">#ff5c6bc0</color>\n    <color name=\"indigo500\">#ff3f51b5</color>\n    <color name=\"indigo600\">#ff3949ab</color>\n    <color name=\"indigo700\">#ff303f9f</color>\n    <color name=\"indigo800\">#ff283593</color>\n    <color name=\"indigo900\">#ff1a237e</color>\n    <color name=\"indigoA100\">#ff8c9eff</color>\n    <color name=\"indigoA200\">#ff536dfe</color>\n    <color name=\"indigoA400\">#ff3d5afe</color>\n    <color name=\"indigoA700\">#ff304ffe</color>\n\n    <color name=\"blue50\">#ffe3f2fd</color>\n    <color name=\"blue100\">#ffbbdefb</color>\n    <color name=\"blue200\">#ff90caf9</color>\n    <color name=\"blue300\">#ff64b5f6</color>\n    <color name=\"blue400\">#ff42a5f5</color>\n    <color name=\"blue500\">#ff2196f3</color>\n    <color name=\"blue600\">#ff1e88e5</color>\n    <color name=\"blue700\">#ff1976d2</color>\n    <color name=\"blue800\">#ff1565c0</color>\n    <color name=\"blue900\">#ff0d47a1</color>\n    <color name=\"blueA100\">#ff82b1ff</color>\n    <color name=\"blueA200\">#ff448aff</color>\n    <color name=\"blueA400\">#ff2979ff</color>\n    <color name=\"blueA700\">#ff2962ff</color>\n\n    <color name=\"lightblue50\">#ffe1f5fe</color>\n    <color name=\"lightblue100\">#ffb3e5fc</color>\n    <color name=\"lightblue200\">#ff81d4fa</color>\n    <color name=\"lightblue300\">#ff4fc3f7</color>\n    <color name=\"lightblue400\">#ff29b6f6</color>\n    <color name=\"lightblue500\">#ff03a9f4</color>\n    <color name=\"lightblue600\">#ff039be5</color>\n    <color name=\"lightblue700\">#ff0288d1</color>\n    <color name=\"lightblue800\">#ff0277bd</color>\n    <color name=\"lightblue900\">#ff01579b</color>\n    <color name=\"lightblueA100\">#ff80d8ff</color>\n    <color name=\"lightblueA200\">#ff40c4ff</color>\n    <color name=\"lightblueA400\">#ff00b0ff</color>\n    <color name=\"lightblueA700\">#ff0091ea</color>\n\n    <color name=\"cyan50\">#ffe0f7fa</color>\n    <color name=\"cyan100\">#ffb2ebf2</color>\n    <color name=\"cyan200\">#ff80deea</color>\n    <color name=\"cyan300\">#ff4dd0e1</color>\n    <color name=\"cyan400\">#ff26c6da</color>\n    <color name=\"cyan500\">#ff00bcd4</color>\n    <color name=\"cyan600\">#ff00acc1</color>\n    <color name=\"cyan700\">#ff0097a7</color>\n    <color name=\"cyan800\">#ff00838f</color>\n    <color name=\"cyan900\">#ff006064</color>\n    <color name=\"cyanA100\">#ff84ffff</color>\n    <color name=\"cyanA200\">#ff18ffff</color>\n    <color name=\"cyanA400\">#ff00e5ff</color>\n    <color name=\"cyanA700\">#ff00b8d4</color>\n\n    <color name=\"teal50\">#ffe0f2f1</color>\n    <color name=\"teal100\">#ffb2dfdb</color>\n    <color name=\"teal200\">#ff80cbc4</color>\n    <color name=\"teal300\">#ff4db6ac</color>\n    <color name=\"teal400\">#ff26a69a</color>\n    <color name=\"teal500\">#ff009688</color>\n    <color name=\"teal600\">#ff00897b</color>\n    <color name=\"teal700\">#ff00796b</color>\n    <color name=\"teal800\">#ff00695c</color>\n    <color name=\"teal900\">#ff004d40</color>\n    <color name=\"tealA100\">#ffa7ffeb</color>\n    <color name=\"tealA200\">#ff64ffda</color>\n    <color name=\"tealA400\">#ff1de9b6</color>\n    <color name=\"tealA700\">#ff00bfa5</color>\n\n    <color name=\"green50\">#ffe8f5e9</color>\n    <color name=\"green100\">#ffc8e6c9</color>\n    <color name=\"green200\">#ffa5d6a7</color>\n    <color name=\"green300\">#ff81c784</color>\n    <color name=\"green400\">#ff66bb6a</color>\n    <color name=\"green500\">#ff4caf50</color>\n    <color name=\"green600\">#ff43a047</color>\n    <color name=\"green700\">#ff388e3c</color>\n    <color name=\"green800\">#ff2e7d32</color>\n    <color name=\"green900\">#ff1b5e20</color>\n    <color name=\"greenA100\">#ffb9f6ca</color>\n    <color name=\"greenA200\">#ff69f0ae</color>\n    <color name=\"greenA400\">#ff00e676</color>\n    <color name=\"greenA700\">#ff00c853</color>\n\n    <color name=\"lightgreen50\">#fff1f8e9</color>\n    <color name=\"lightgreen100\">#ffdcedc8</color>\n    <color name=\"lightgreen200\">#ffc5e1a5</color>\n    <color name=\"lightgreen300\">#ffaed581</color>\n    <color name=\"lightgreen400\">#ff9ccc65</color>\n    <color name=\"lightgreen500\">#ff8bc34a</color>\n    <color name=\"lightgreen600\">#ff7cb342</color>\n    <color name=\"lightgreen700\">#ff689f38</color>\n    <color name=\"lightgreen800\">#ff558b2f</color>\n    <color name=\"lightgreen900\">#ff33691e</color>\n    <color name=\"lightgreenA100\">#ffccff90</color>\n    <color name=\"lightgreenA200\">#ffb2ff59</color>\n    <color name=\"lightgreenA400\">#ff76ff03</color>\n    <color name=\"lightgreenA700\">#ff64dd17</color>\n\n    <color name=\"lime50\">#fff9fbe7</color>\n    <color name=\"lime100\">#fff0f4c3</color>\n    <color name=\"lime200\">#ffe6ee9c</color>\n    <color name=\"lime300\">#ffdce775</color>\n    <color name=\"lime400\">#ffd4e157</color>\n    <color name=\"lime500\">#ffcddc39</color>\n    <color name=\"lime600\">#ffc0ca33</color>\n    <color name=\"lime700\">#ffafb42b</color>\n    <color name=\"lime800\">#ff9e9d24</color>\n    <color name=\"lime900\">#ff827717</color>\n    <color name=\"limeA100\">#fff4ff81</color>\n    <color name=\"limeA200\">#ffeeff41</color>\n    <color name=\"limeA400\">#ffc6ff00</color>\n    <color name=\"limeA700\">#ffaeea00</color>\n\n    <color name=\"yellow50\">#fffffde7</color>\n    <color name=\"yellow100\">#fffff9c4</color>\n    <color name=\"yellow200\">#fffff59d</color>\n    <color name=\"yellow300\">#fffff176</color>\n    <color name=\"yellow400\">#ffffee58</color>\n    <color name=\"yellow500\">#ffffeb3b</color>\n    <color name=\"yellow600\">#fffdd835</color>\n    <color name=\"yellow700\">#fffbc02d</color>\n    <color name=\"yellow800\">#fff9a825</color>\n    <color name=\"yellow900\">#fff57f17</color>\n    <color name=\"yellowA100\">#ffffff8d</color>\n    <color name=\"yellowA200\">#ffffff00</color>\n    <color name=\"yellowA400\">#ffffea00</color>\n    <color name=\"yellowA700\">#ffffd600</color>\n\n    <color name=\"amber50\">#fffff8e1</color>\n    <color name=\"amber100\">#ffffecb3</color>\n    <color name=\"amber200\">#ffffe082</color>\n    <color name=\"amber300\">#ffffd54f</color>\n    <color name=\"amber400\">#ffffca28</color>\n    <color name=\"amber500\">#ffffc107</color>\n    <color name=\"amber600\">#ffffb300</color>\n    <color name=\"amber700\">#ffffa000</color>\n    <color name=\"amber800\">#ffff8f00</color>\n    <color name=\"amber900\">#ffff6f00</color>\n    <color name=\"amberA100\">#ffffe57f</color>\n    <color name=\"amberA200\">#ffffd740</color>\n    <color name=\"amberA400\">#ffffc400</color>\n    <color name=\"amberA700\">#ffffab00</color>\n\n    <color name=\"orange50\">#fffff3e0</color>\n    <color name=\"orange100\">#ffffe0b2</color>\n    <color name=\"orange200\">#ffffcc80</color>\n    <color name=\"orange300\">#ffffb74d</color>\n    <color name=\"orange400\">#ffffa726</color>\n    <color name=\"orange500\">#ffff9800</color>\n    <color name=\"orange600\">#fffb8c00</color>\n    <color name=\"orange700\">#fff57c00</color>\n    <color name=\"orange800\">#ffef6c00</color>\n    <color name=\"orange900\">#ffe65100</color>\n    <color name=\"orangeA100\">#ffffd180</color>\n    <color name=\"orangeA200\">#ffffab40</color>\n    <color name=\"orangeA400\">#ffff9100</color>\n    <color name=\"orangeA700\">#ffff6d00</color>\n\n    <color name=\"deeporange50\">#fffbe9e7</color>\n    <color name=\"deeporange100\">#ffffccbc</color>\n    <color name=\"deeporange200\">#ffffab91</color>\n    <color name=\"deeporange300\">#ffff8a65</color>\n    <color name=\"deeporange400\">#ffff7043</color>\n    <color name=\"deeporange500\">#ffff5722</color>\n    <color name=\"deeporange600\">#fff4511e</color>\n    <color name=\"deeporange700\">#ffe64a19</color>\n    <color name=\"deeporange800\">#ffd84315</color>\n    <color name=\"deeporange900\">#ffbf360c</color>\n    <color name=\"deeporangeA100\">#ffff9e80</color>\n    <color name=\"deeporangeA200\">#ffff6e40</color>\n    <color name=\"deeporangeA400\">#ffff3d00</color>\n    <color name=\"deeporangeA700\">#ffdd2c00</color>\n\n    <color name=\"brown50\">#ffefebe9</color>\n    <color name=\"brown100\">#ffd7ccc8</color>\n    <color name=\"brown200\">#ffbcaaa4</color>\n    <color name=\"brown300\">#ffa1887f</color>\n    <color name=\"brown400\">#ff8d6e63</color>\n    <color name=\"brown500\">#ff795548</color>\n    <color name=\"brown600\">#ff6d4c41</color>\n    <color name=\"brown700\">#ff5d4037</color>\n    <color name=\"brown800\">#ff4e342e</color>\n    <color name=\"brown900\">#ff3e2723</color>\n\n    <color name=\"grey50\">#fffafafa</color>\n    <color name=\"grey100\">#fff5f5f5</color>\n    <color name=\"grey200\">#ffeeeeee</color>\n    <color name=\"grey300\">#ffe0e0e0</color>\n    <color name=\"grey400\">#ffbdbdbd</color>\n    <color name=\"grey500\">#ff9e9e9e</color>\n    <color name=\"grey600\">#ff757575</color>\n    <color name=\"grey700\">#ff616161</color>\n    <color name=\"grey800\">#ff424242</color>\n    <color name=\"grey900\">#ff212121</color>\n\n    <color name=\"bluegrey50\">#ffeceff1</color>\n    <color name=\"bluegrey100\">#ffcfd8dc</color>\n    <color name=\"bluegrey200\">#ffb0bec5</color>\n    <color name=\"bluegrey300\">#ff90a4ae</color>\n    <color name=\"bluegrey400\">#ff78909c</color>\n    <color name=\"bluegrey500\">#ff607d8b</color>\n    <color name=\"bluegrey600\">#ff546e7a</color>\n    <color name=\"bluegrey700\">#ff455a64</color>\n    <color name=\"bluegrey800\">#ff37474f</color>\n    <color name=\"bluegrey900\">#ff263238</color>\n\n    <color name=\"black\">#ff000000</color>\n    <color name=\"white\">#ffffffff</color>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">Avvy</string>\n    <string name=\"toggle_progress\">Toggle Progress</string>\n    <string name=\"toggle_highlight\">Toggle Highlight</string>\n    <string name=\"highlighted\">Highlighted</string>\n    <string name=\"normal_thickness\">Normal Thickness</string>\n    <string name=\"highlighted_thickness\">Highlighted Thickness</string>\n    <string name=\"distance_to_border\">Distance to Border</string>\n    <string name=\"arches_count\">Arches Count</string>\n    <string name=\"arches_area\">Arches Area</string>\n    <string name=\"highlight\">Highlight</string>\n    <string name=\"arc_length\">Arc Length</string>\n    <string name=\"confirm\">Confirm</string>\n    <string name=\"cancel\">Cancel</string>\n    <string name=\"choose_color\">Choose color</string>\n    <string name=\"colors\">Colors</string>\n    <string name=\"it_works\">It works!</string>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "content": "<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar\">\n        <!-- Customize your theme here. -->\n        <item name=\"colorPrimary\">@color/indigo500</item>\n        <item name=\"colorPrimaryDark\">@color/indigo800</item>\n        <item name=\"colorAccent\">@color/greenA700</item>\n    </style>\n\n</resources>\n"
  },
  {
    "path": "app/src/test/java/xyz/schwaab/avvy/ExampleUnitTest.kt",
    "content": "package xyz.schwaab.avvy\n\nimport org.junit.Test\n\nimport org.junit.Assert.*\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * See [testing documentation](http://d.android.com/tools/testing).\n */\nclass ExampleUnitTest {\n    @Test\n    fun addition_isCorrect() {\n        assertEquals(4, 2 + 2)\n    }\n}\n"
  },
  {
    "path": "avvylib/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "avvylib/build.gradle.kts",
    "content": "import org.jetbrains.kotlin.utils.sure\n\nplugins {\n    id(\"com.android.library\")\n    id(\"kotlin-android\")\n    id(\"convention.publication\")\n}\nval kotlinVersion: String by project\ngroup = \"xyz.schwaab\"\nversion = \"1.2.0\"\n\nandroid {\n    setCompileSdkVersion(AndroidModuleSpecs.compileSdkVersion)\n\n    defaultConfig {\n        targetSdk = AndroidModuleSpecs.targetSdkVersion\n        minSdk = AndroidModuleSpecs.minSdkVersion\n        testInstrumentationRunner = \"androidx.test.runner.AndroidJUnitRunner\"\n    }\n\n    buildTypes {\n        maybeCreate(\"release\").apply {\n            isMinifyEnabled = false\n        }\n    }\n\n    publishing {\n        singleVariant(\"release\") {\n            withJavadocJar()\n            withSourcesJar()\n        }\n    }\n}\n\nafterEvaluate {\n    publishing {\n        publications {\n            create(\"release\", MavenPublication::class) {\n                from(components.getByName(\"release\"))\n            }\n        }\n    }\n}\n\ndependencies {\n    compileOnly(\"androidx.annotation:annotation:1.4.0\")\n    implementation(\"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion\")\n    testImplementation(\"junit:junit:4.13.2\")\n    androidTestImplementation(\"androidx.test:core-ktx:1.4.0\")\n    androidTestImplementation(\"androidx.test.espresso:espresso-contrib:3.4.0\")\n}\n"
  },
  {
    "path": "avvylib/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile\n"
  },
  {
    "path": "avvylib/src/androidTest/java/xyz/schwaab/avvylib/ExampleInstrumentedTest.kt",
    "content": "package xyz.schwaab.avvylib\n\nimport android.support.test.InstrumentationRegistry\nimport android.support.test.runner.AndroidJUnit4\n\nimport org.junit.Test\nimport org.junit.runner.RunWith\n\nimport org.junit.Assert.*\n\n/**\n * Instrumented test, which will execute on an Android device.\n *\n * @see [Testing documentation](http://d.android.com/tools/testing)\n */\n@RunWith(AndroidJUnit4::class)\nclass ExampleInstrumentedTest {\n    @Test\n    fun useAppContext() {\n        // Context of the app under test.\n        val appContext = InstrumentationRegistry.getTargetContext()\n\n        assertEquals(\"xyz.schwaab.avvylib.test\", appContext.packageName)\n    }\n}\n"
  },
  {
    "path": "avvylib/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"xyz.schwaab.avvylib\" />\n"
  },
  {
    "path": "avvylib/src/main/java/xyz/schwaab/avvylib/AvatarView.kt",
    "content": "package xyz.schwaab.avvylib\n\nimport android.animation.ValueAnimator\nimport android.annotation.SuppressLint\nimport android.content.Context\nimport android.graphics.*\nimport android.graphics.Paint.ANTI_ALIAS_FLAG\nimport android.graphics.drawable.BitmapDrawable\nimport android.graphics.drawable.ColorDrawable\nimport android.graphics.drawable.Drawable\nimport android.os.Build\nimport android.util.AttributeSet\nimport android.util.Log\nimport android.util.TypedValue\nimport android.view.MotionEvent\nimport android.view.View\nimport android.view.ViewOutlineProvider\nimport android.widget.ImageView\nimport androidx.annotation.DrawableRes\nimport androidx.annotation.RequiresApi\nimport xyz.schwaab.avvylib.animation.AvatarViewAnimationOrchestrator\nimport xyz.schwaab.avvylib.animation.DefaultAnimationOrchestrator\nimport kotlin.math.floor\nimport kotlin.math.max\nimport kotlin.math.min\n\n\n/**\n * Created by vitor on 18/09/18.\n */\nclass AvatarView : ImageView {\n    companion object {\n        const val TAG = \"AvatarView\"\n    }\n\n    private val avatarDrawableRect = RectF()\n    private val middleRect = RectF()\n    private val borderRect = RectF()\n    private val arcBorderRect = RectF()\n    private val initialsRect = Rect()\n\n    private val shaderMatrix = Matrix()\n    private val bitmapPaint = Paint()\n    private val middlePaint = Paint()\n    private val borderPaint = Paint()\n    private val circleBackgroundPaint = Paint()\n    private val initialsPaint = Paint(ANTI_ALIAS_FLAG).apply {\n        color = Color.WHITE\n        textSize = 20f\n        setup()\n    }\n    private val badgePaint = Paint()\n    private val badgeStrokePaint = Paint()\n\n    private var middleThickness = 0f\n    private val avatarInset\n        get() = distanceToBorder + max(\n            borderThickness.toFloat(),\n            highlightedBorderThickness.toFloat()\n        )\n\n    private var avatarDrawable: Bitmap? = null\n    private var bitmapShader: BitmapShader? = null\n    private var bitmapWidth = 0\n    private var bitmapHeight = 0\n\n    private var drawableRadius = 0f\n    private var middleRadius = 0f\n    private var borderRadius = 0f\n\n    /**\n     * The length (in degrees) available for the arches when animating.\n     */\n    var totalArchesDegreeArea = Defaults.ARCHES_DEGREES_AREA\n        set(value) {\n            field = value\n            logWarningOnArcLengthIfNeeded()\n            setup()\n        }\n\n    /**\n     * The number of arches displayed across the border when animating.\n     * This can be set to zero, if no secondary arches are wanted.\n     */\n    var numberOfArches = Defaults.NUMBER_OF_ARCHES\n        set(value) {\n            field = if (value <= 0) 1 else value\n            logWarningOnArcLengthIfNeeded()\n            setup()\n        }\n\n    /**\n     * The length (in degrees) of each arch when animating.\n     * Keep in mind that the arches may overlap if this value is too high\n     * and [totalArchesDegreeArea] is too low.\n     */\n    var individualArcDegreeLength = Defaults.INDIVIDUAL_ARCH_DEGREES_LENGTH\n        set(value) {\n            field = value\n            logWarningOnArcLengthIfNeeded()\n            setup()\n        }\n\n    private fun logWarningOnArcLengthIfNeeded() {\n        if (individualArcDegreeLength * numberOfArches > totalArchesDegreeArea)\n            Log.w(\n                TAG,\n                \"The arches are too big for them to be visible. (i.e. individualArcLength * numberOfArches > totalArchesDegreeArea)\"\n            )\n    }\n\n    /**\n     * The color of the gap between the border and the avatar.\n     * Default: [Color.TRANSPARENT]\n     */\n    var middleColor = Defaults.MIDDLE_COLOR\n        set(value) {\n            field = value\n            setup()\n        }\n\n    /**\n     * The border color.\n     * Remember: The border is colored using a gradient.\n     * If you want a solid color, make sure that the [borderColorEnd] is set to the same value.\n     */\n    var borderColor = Defaults.BORDER_COLOR\n        set(value) {\n            field = value\n            setup()\n        }\n\n    /**\n     * The second color of the border gradient.\n     * Remember: The border is colored using a gradient.\n     * If you want a solid color, make sure that the [borderColor] is set to the same value.\n     */\n    var borderColorEnd = Defaults.BORDER_COLOR\n        set(value) {\n            field = value\n            setup()\n        }\n\n    /**\n     * The border color when highlighted.\n     * Remember: The border is colored using a gradient.\n     * If you want a solid color, make sure that the [highlightBorderColorEnd] is set to the same value.\n     */\n    var highlightBorderColor = Defaults.BORDER_COLOR_HIGHLIGHT\n        set(value) {\n            field = value\n            setup()\n        }\n\n    /**\n     * The second color of the border gradient when highlighted.\n     * Remember: The border is colored using a gradient.\n     * If you want a solid color, make sure that the [highlightBorderColor] is set to the same value.\n     */\n    var highlightBorderColorEnd = Defaults.BORDER_COLOR_HIGHLIGHT\n        set(value) {\n            field = value\n            setup()\n        }\n\n    /**\n     * The distance (in pixels) between the avatar and the border.\n     * Keep in mind that as the [borderThickness] and [highlightedBorderThickness] may be different,\n     * the highest value between them will be considered in order to keep a steady avatar when\n     * switching between highlight modes.\n     */\n    var distanceToBorder = Defaults.DISTANCE_TO_BORDER\n        set(value) {\n            field = if (value <= 0) 0 else value\n            setup()\n        }\n\n    /**\n     * The border thickness (in pixels) when not highlighted\n     */\n    var borderThickness = Defaults.BORDER_THICKNESS\n        set(value) {\n            field = if (value <= 0) 0 else value\n            setup()\n        }\n\n    /**\n     * The border thickness (in pixels) when highlighted\n     */\n    var highlightedBorderThickness = Defaults.HIGHLIGHTED_BORDER_THICKNESS\n        set(value) {\n            field = if (value <= 0) 0 else value\n            setup()\n        }\n\n    /**\n     * The background color of the avatar.\n     * Only visible if the image has any transparency.\n     */\n    var avatarBackgroundColor = Defaults.CIRCLE_BACKGROUND_COLOR\n        set(value) {\n            field = value\n            setup()\n        }\n\n    /**\n     * The default onClick and onLongClick manifestation is a simple scale/zoom bounce.\n     * It must have a onClickListener or onLongClickListener in order to happen.\n     * If you want to turn it off by any reason, just set this to false.\n     */\n    var shouldBounceOnClick = true\n\n    /**\n     * Text for which the initial(s) has to be displayed\n     */\n    var text: String? = null\n        set(value) {\n            field = value\n            findInitials()\n            setup()\n        }\n\n    /**\n     * The radius (in dp) of the badge\n     */\n    var badgeRadius = TypedValue.applyDimension(\n        TypedValue.COMPLEX_UNIT_DIP,\n        Defaults.BADGE_RADIUS,\n        resources.displayMetrics\n    )\n        set(value) {\n            field = value\n            setup()\n        }\n\n    /**\n     * The color of the badge.\n     */\n    var badgeColor = Defaults.BADGE_COLOR\n        set(value) {\n            field = value\n            setup()\n        }\n\n    /**\n     * The color of the stroke of the badge.\n     */\n    var badgeStrokeColor = Defaults.BADGE_STROKE_COLOR\n        set(value) {\n            field = value\n            setup()\n        }\n\n    /**\n     * The stroke width (in pixels) of the badge.\n     */\n    var badgeStrokeWidth = 0\n        set(value) {\n            field = if (value <= 0) 0 else value\n            setup()\n        }\n\n    /**\n     * Flag to toggle visibility of the badge.\n     */\n    var showBadge = Defaults.SHOW_BADGE\n        set(value) {\n            field = value\n            setup()\n        }\n\n    /**\n     * Position of the badge with respect to [borderRect]\n     *\n     * Should be one of:\n     * @see [BadgePosition.BOTTOM_RIGHT]\n     * @see [BadgePosition.BOTTOM_LEFT]\n     * @see [BadgePosition.TOP_RIGHT]\n     * @see [BadgePosition.TOP_LEFT]\n     */\n    var badgePosition = BadgePosition.BOTTOM_RIGHT\n        set(value) {\n            field = value\n            setup()\n        }\n\n    private var initials: String? = null\n\n    private val spaceBetweenArches\n        get() = totalArchesDegreeArea / (numberOfArches) - individualArcDegreeLength\n\n    private val animatorInterface = AnimatorInterface()\n    private var animationDrawingState = AnimationDrawingState(0f, 0f)\n\n    private val AnimationDrawingState.archesAreaInDegrees: Float\n        get() {\n            return coercedArchesExpansionProgress * totalArchesDegreeArea\n        }\n\n    private val AnimationDrawingState.rotationInDegrees: Float\n        get() {\n            return coercedRotationProgress * 360\n        }\n\n    private var isReadingAttributes = false\n\n    /**\n     * Set if this view should be highlighted or not.\n     * If highlighted, the values of [highlightedBorderThickness], [highlightBorderColor] and [highlightBorderColorEnd] will apply\n     * Otherwise, [borderThickness], [borderColor] and [borderColorEnd] will come into play.\n     */\n    var isHighlighted = false\n        set(value) {\n            field = value\n            setup()\n        }\n\n    private val scaleAnimator = ValueAnimator.ofFloat(1f, 0.9f, 1f).apply {\n        addUpdateListener {\n            this@AvatarView.scaleX = it.animatedValue as Float\n            this@AvatarView.scaleY = it.animatedValue as Float\n        }\n    }\n\n    var animationOrchestrator: AvatarViewAnimationOrchestrator =\n        DefaultAnimationOrchestrator.create().also {\n            attachOrchestrator(it)\n        }\n        set(value) {\n            if (field == value) return\n            field.cancel()\n            field = value\n            attachOrchestrator(field)\n        }\n\n    private fun attachOrchestrator(animationOrchestrator: AvatarViewAnimationOrchestrator) {\n        animationOrchestrator.attach(animatorInterface) {\n            if (isReversedAnimating) {\n                animationDrawingState = animationDrawingState.copy(\n                    rotationProgress = 0f\n                )\n                isReversedAnimating = false\n            }\n        }\n    }\n\n    private var isReversedAnimating = false\n\n    var isAnimating = false\n        set(value) {\n            if (value && !field) {\n                if (isReversedAnimating) {\n                    animationOrchestrator.reverse()\n                }\n                animationOrchestrator.start()\n            } else if (!value && field) {\n                isReversedAnimating = true\n                animationOrchestrator.cancel()\n                animationOrchestrator.reverse()\n            }\n            field = value\n            setup()\n        }\n\n    constructor(context: Context) : super(context) {\n        init()\n    }\n\n    constructor(context: Context, attrs: AttributeSet) : super(context, attrs) {\n        readAttrs(attrs)\n        init()\n    }\n\n    constructor(context: Context, attrs: AttributeSet, defStyle: Int) : super(\n        context,\n        attrs,\n        defStyle\n    ) {\n        readAttrs(attrs, defStyle)\n        init()\n    }\n\n    override fun setImageBitmap(bm: Bitmap) {\n        super.setImageBitmap(bm)\n        initializeBitmap()\n    }\n\n    override fun setImageDrawable(drawable: Drawable?) {\n        super.setImageDrawable(drawable)\n        initializeBitmap()\n    }\n\n    override fun setImageResource(@DrawableRes resId: Int) {\n        super.setImageResource(resId)\n        initializeBitmap()\n    }\n\n    private fun readAttrs(attrs: AttributeSet, defStyle: Int = 0) {\n        isReadingAttributes = true\n        val a = context.obtainStyledAttributes(attrs, R.styleable.AvatarView, defStyle, 0)\n\n        avatarBackgroundColor = a.getColor(\n            R.styleable.AvatarView_avvy_circle_background_color,\n            Defaults.CIRCLE_BACKGROUND_COLOR\n        )\n\n        distanceToBorder = a.getDimensionPixelSize(\n            R.styleable.AvatarView_avvy_distance_to_border,\n            Defaults.DISTANCE_TO_BORDER\n        )\n        borderThickness = a.getDimensionPixelSize(\n            R.styleable.AvatarView_avvy_border_thickness,\n            Defaults.BORDER_THICKNESS\n        )\n        highlightedBorderThickness = a.getDimensionPixelSize(\n            R.styleable.AvatarView_avvy_border_thickness_highlight,\n            Defaults.HIGHLIGHTED_BORDER_THICKNESS\n        )\n\n        middleColor = a.getColor(R.styleable.AvatarView_avvy_middle_color, Defaults.MIDDLE_COLOR)\n        borderColor = a.getColor(R.styleable.AvatarView_avvy_border_color, Defaults.BORDER_COLOR)\n        borderColorEnd = a.getColor(R.styleable.AvatarView_avvy_border_color_end, borderColor)\n        highlightBorderColor = a.getColor(\n            R.styleable.AvatarView_avvy_border_highlight_color,\n            Defaults.BORDER_COLOR_HIGHLIGHT\n        )\n        highlightBorderColorEnd =\n            a.getColor(R.styleable.AvatarView_avvy_border_highlight_color_end, highlightBorderColor)\n\n        isHighlighted =\n            a.getBoolean(R.styleable.AvatarView_avvy_highlighted, Defaults.IS_HIGHLIGHTED)\n\n        totalArchesDegreeArea = a.getFloat(\n            R.styleable.AvatarView_avvy_loading_arches_degree_area,\n            Defaults.ARCHES_DEGREES_AREA\n        )\n        numberOfArches =\n            a.getInt(R.styleable.AvatarView_avvy_loading_arches, Defaults.NUMBER_OF_ARCHES)\n        individualArcDegreeLength = a.getFloat(\n            R.styleable.AvatarView_avvy_loading_arc_degree_length,\n            Defaults.INDIVIDUAL_ARCH_DEGREES_LENGTH\n        )\n\n        initialsPaint.textSize =\n            a.getDimension(R.styleable.AvatarView_avvy_text_size, initialsPaint.textSize)\n        initialsPaint.color =\n            a.getColor(R.styleable.AvatarView_avvy_text_color, initialsPaint.color)\n        text = a.getString(R.styleable.AvatarView_avvy_text)\n\n        showBadge = a.getBoolean(R.styleable.AvatarView_avvy_show_badge, Defaults.SHOW_BADGE)\n        badgeColor = a.getColor(R.styleable.AvatarView_avvy_badge_color, Defaults.BADGE_COLOR)\n        badgeStrokeColor =\n            a.getColor(R.styleable.AvatarView_avvy_badge_stroke_color, Defaults.BADGE_STROKE_COLOR)\n        badgeStrokeWidth = a.getDimensionPixelSize(\n            R.styleable.AvatarView_avvy_badge_stroke_width,\n            badgeStrokeWidth\n        )\n        badgeRadius = a.getDimension(R.styleable.AvatarView_avvy_badge_radius, badgeRadius)\n        badgePosition =\n            BadgePosition.values()[a.getInt(R.styleable.AvatarView_avvy_badge_position, 0)]\n\n        a.recycle()\n        isReadingAttributes = false\n    }\n\n    private fun init() {\n//        setLayerType(LAYER_TYPE_HARDWARE, null)\n        scaleType = Defaults.SCALE_TYPE\n        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n            outlineProvider = OutlineProvider()\n        }\n        setup()\n    }\n\n    private fun setup() {\n        if (isReadingAttributes) {\n            return\n        }\n        if (width == 0 && height == 0) {\n            return\n        }\n\n        val avatarDrawable = this.avatarDrawable\n        if (avatarDrawable == null) {\n            setImageResource(android.R.color.transparent)\n            return\n        }\n\n        bitmapHeight = avatarDrawable.height\n        bitmapWidth = avatarDrawable.width\n\n        bitmapShader = BitmapShader(avatarDrawable, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP)\n        bitmapPaint.isAntiAlias = true\n        bitmapPaint.shader = bitmapShader\n\n        val currentBorderThickness = (if (isHighlighted)\n            highlightedBorderThickness\n        else borderThickness).toFloat()\n\n        borderRect.set(calculateBounds())\n        borderRadius = min(\n            (borderRect.height() - currentBorderThickness) / 2.0f,\n            (borderRect.width() - currentBorderThickness) / 2.0f\n        )\n\n        val currentBorderGradient = LinearGradient(\n            0f, 0f, borderRect.width(), borderRect.height(),\n            if (isHighlighted) highlightBorderColor else borderColor,\n            if (isHighlighted) highlightBorderColorEnd else borderColorEnd,\n            Shader.TileMode.CLAMP\n        )\n        borderPaint.apply {\n            shader = currentBorderGradient\n            strokeWidth = currentBorderThickness\n            isAntiAlias = true\n            strokeCap = Paint.Cap.ROUND\n            style = Paint.Style.STROKE\n        }\n\n        avatarDrawableRect.set(borderRect)\n        avatarDrawableRect.inset(avatarInset, avatarInset)\n        middleThickness =\n            (borderRect.width() - currentBorderThickness * 2 - avatarDrawableRect.width()) / 2\n\n        middleRect.set(borderRect)\n        middleRect.inset(\n            currentBorderThickness + middleThickness / 2,\n            currentBorderThickness + middleThickness / 2\n        )\n\n        middleRadius =\n            floor(middleRect.height() / 2.0).coerceAtMost(floor(middleRect.width() / 2.0)).toFloat()\n        drawableRadius =\n            (avatarDrawableRect.height() / 2.0f).coerceAtMost(avatarDrawableRect.width() / 2.0f)\n\n        middlePaint.apply {\n            style = Paint.Style.STROKE\n            isAntiAlias = true\n            color = middleColor\n            strokeWidth = middleThickness\n        }\n\n        circleBackgroundPaint.apply {\n            style = Paint.Style.FILL\n            isAntiAlias = true\n            color = avatarBackgroundColor\n        }\n\n        arcBorderRect.apply {\n            set(borderRect)\n            inset(currentBorderThickness / 2f, currentBorderThickness / 2f)\n        }\n\n        badgePaint.apply {\n            style = Paint.Style.FILL\n            isAntiAlias = true\n            color = badgeColor\n        }\n\n        badgeStrokePaint.apply {\n            style = Paint.Style.FILL\n            isAntiAlias = true\n            color = badgeStrokeColor\n        }\n\n        updateShaderMatrix()\n        invalidate()\n    }\n\n    private fun updateShaderMatrix() {\n        val scale: Float\n        var dx = 0f\n        var dy = 0f\n\n        shaderMatrix.set(null)\n\n        if (bitmapWidth * avatarDrawableRect.height() > avatarDrawableRect.width() * bitmapHeight) {\n            scale = avatarDrawableRect.height() / bitmapHeight.toFloat()\n            dx = (avatarDrawableRect.width() - bitmapWidth * scale) / 2f\n        } else {\n            scale = avatarDrawableRect.width() / bitmapWidth.toFloat()\n            dy = (avatarDrawableRect.height() - bitmapHeight * scale) / 2f\n        }\n\n        shaderMatrix.setScale(scale, scale)\n        shaderMatrix.postTranslate(\n            (dx + 0.5f).toInt() + avatarDrawableRect.left,\n            (dy + 0.5f).toInt() + avatarDrawableRect.top\n        )\n\n        bitmapShader!!.setLocalMatrix(shaderMatrix)\n    }\n\n    private fun getBitmapFromDrawable(drawable: Drawable?): Bitmap? {\n        if (drawable == null) {\n            return null\n        }\n\n        if (drawable is BitmapDrawable) {\n            return drawable.bitmap\n        }\n\n        return try {\n            val bitmap = if (drawable is ColorDrawable) {\n                Bitmap.createBitmap(\n                    Defaults.COLORDRAWABLE_DIMENSION,\n                    Defaults.COLORDRAWABLE_DIMENSION,\n                    Defaults.BITMAP_CONFIG\n                )\n            } else {\n                Bitmap.createBitmap(\n                    drawable.intrinsicWidth,\n                    drawable.intrinsicHeight,\n                    Defaults.BITMAP_CONFIG\n                )\n            }\n\n            val canvas = Canvas(bitmap)\n            drawable.setBounds(0, 0, canvas.width, canvas.height)\n            drawable.draw(canvas)\n            bitmap\n        } catch (e: Exception) {\n            e.printStackTrace()\n            null\n        }\n    }\n\n    private fun initializeBitmap() {\n        avatarDrawable = getBitmapFromDrawable(drawable)\n        setup()\n    }\n\n    private fun calculateBounds(): RectF {\n        val availableWidth = width - paddingLeft - paddingRight\n        val availableHeight = height - paddingTop - paddingBottom\n\n        val sideLength = Math.min(availableWidth, availableHeight)\n\n        val left = paddingLeft + (availableWidth - sideLength) / 2f\n        val top = paddingTop + (availableHeight - sideLength) / 2f\n\n        return RectF(left, top, left + sideLength, top + sideLength)\n    }\n\n    @SuppressLint(\"ClickableViewAccessibility\")\n    override fun onTouchEvent(event: MotionEvent): Boolean {\n        return inTouchableArea(event.x, event.y) && super.onTouchEvent(event)\n    }\n\n    private fun animateClick() {\n        if (shouldBounceOnClick) scaleAnimator.start()\n    }\n\n    override fun performClick(): Boolean {\n        animateClick()\n        return super.performClick()\n    }\n\n    override fun performLongClick(): Boolean {\n        animateClick()\n        return super.performLongClick()\n    }\n\n    private fun inTouchableArea(x: Float, y: Float): Boolean {\n        return Math.pow(\n            x - borderRect.centerX().toDouble(),\n            2.0\n        ) + Math.pow(y - borderRect.centerY().toDouble(), 2.0) <= Math.pow(\n            borderRadius.toDouble(),\n            2.0\n        )\n    }\n\n    override fun onDraw(canvas: Canvas) {\n        if (avatarDrawable == null &&\n            initials == null\n        ) {\n            return\n        }\n        if (avatarBackgroundColor != Color.TRANSPARENT) {\n            canvas.drawCircle(\n                avatarDrawableRect.centerX(),\n                avatarDrawableRect.centerY(),\n                drawableRadius,\n                circleBackgroundPaint\n            )\n        }\n\n        val avatarDrawable = this.avatarDrawable\n        if (null != avatarDrawable && hasAvatar()) {\n            canvas.drawCircle(\n                avatarDrawableRect.centerX(),\n                avatarDrawableRect.centerY(),\n                drawableRadius,\n                bitmapPaint\n            )\n        } else if (null != initials) {\n            canvas.drawText(\n                initials!!,\n                width.div(2f) - initialsRect.width().div(2f),\n                height.div(2f) + initialsRect.height().div(2f),\n                initialsPaint\n            )\n        }\n        if (middleThickness > 0) {\n            canvas.drawCircle(middleRect.centerX(), middleRect.centerY(), middleRadius, middlePaint)\n        }\n        drawBorder(canvas)\n        if (showBadge && badgeColor != Color.TRANSPARENT) {\n            var badgeCx = 0f\n            var badgeCy = 0f\n            when (badgePosition) {\n                BadgePosition.BOTTOM_RIGHT -> {\n                    badgeCx = borderRect.right - badgeRadius\n                    badgeCy = borderRect.bottom - badgeRadius\n                }\n                BadgePosition.BOTTOM_LEFT -> {\n                    badgeCx = borderRect.left + badgeRadius\n                    badgeCy = borderRect.bottom - badgeRadius\n                }\n                BadgePosition.TOP_RIGHT -> {\n                    badgeCx = borderRect.right - badgeRadius\n                    badgeCy = borderRect.top + badgeRadius\n                }\n                BadgePosition.TOP_LEFT -> {\n                    badgeCx = borderRect.left + badgeRadius\n                    badgeCy = borderRect.top + badgeRadius\n                }\n            }\n            if (badgeStrokeWidth > 0) {\n                canvas.drawCircle(badgeCx, badgeCy, badgeRadius, badgeStrokePaint)\n            }\n            canvas.drawCircle(badgeCx, badgeCy, badgeRadius - badgeStrokeWidth, badgePaint)\n        }\n    }\n\n    private fun hasAvatar(): Boolean {\n        val drawable = this.drawable\n        val hasTransparentDrawable = drawable is ColorDrawable && drawable.alpha == 0\n        return !hasTransparentDrawable\n    }\n\n    private fun drawBorder(canvas: Canvas) {\n        if (isAnimating || isReversedAnimating) {\n            val totalDegrees = (270f + animationDrawingState.rotationInDegrees) % 360\n            drawArches(totalDegrees, canvas)\n            val startOfMainArch = totalDegrees + (animationDrawingState.archesAreaInDegrees)\n            canvas.drawArc(\n                arcBorderRect,\n                startOfMainArch,\n                360 - animationDrawingState.archesAreaInDegrees,\n                false,\n                borderPaint\n            )\n        } else {\n            canvas.drawCircle(borderRect.centerX(), borderRect.centerY(), borderRadius, borderPaint)\n        }\n    }\n\n    private fun drawArches(totalDegrees: Float, canvas: Canvas) {\n        for (i in 0..numberOfArches) {\n            val deg =\n                totalDegrees + (spaceBetweenArches + individualArcDegreeLength) * i * (animationDrawingState.coercedArchesExpansionProgress)\n            canvas.drawArc(arcBorderRect, deg, individualArcDegreeLength, false, borderPaint)\n        }\n    }\n\n    override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {\n        super.onSizeChanged(w, h, oldw, oldh)\n        setup()\n    }\n\n    override fun setPadding(left: Int, top: Int, right: Int, bottom: Int) {\n        super.setPadding(left, top, right, bottom)\n        setup()\n    }\n\n    override fun setPaddingRelative(start: Int, top: Int, end: Int, bottom: Int) {\n        super.setPaddingRelative(start, top, end, bottom)\n        setup()\n    }\n\n    private fun findInitials() {\n        text?.trim()?.let {\n            if (it.isNotBlank()) {\n                val words = it.split(' ')\n                var initialsCount = 1\n                initials = words[0].first().toString()\n                if (words.size > 1) {\n                    initialsCount++\n                    initials = \"$initials${words.last().first()}\"\n                }\n\n                initialsPaint.getTextBounds(initials, 0, initialsCount, initialsRect)\n            }\n        }\n    }\n\n    /**\n     * This section makes the elevation settings on Lollipop+ possible,\n     * drawing a circlar shadow around the border\n     */\n    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n    private inner class OutlineProvider : ViewOutlineProvider() {\n\n        override fun getOutline(view: View, outline: Outline) = Rect().let {\n            borderRect.roundOut(it)\n            outline.setRoundRect(it, it.width() / 2.0f)\n        }\n    }\n\n    data class AnimationDrawingState(\n        private val archesExpansionProgress: Float,\n        private val rotationProgress: Float,\n    ) {\n        val coercedArchesExpansionProgress: Float\n        val coercedRotationProgress: Float\n\n        init {\n            this.coercedArchesExpansionProgress =\n                archesExpansionProgress.coerceIn(MIN_VALUE, MAX_VALUE)\n            this.coercedRotationProgress = rotationProgress.coerceIn(MIN_VALUE, MAX_VALUE)\n        }\n\n        companion object {\n            const val MAX_VALUE = 1f\n            const val MIN_VALUE = 0f\n        }\n    }\n\n    inner class AnimatorInterface {\n        private val currentAnimationState: AnimationDrawingState\n            get() = animationDrawingState\n\n        fun updateAnimationState(update: (currentState: AnimationDrawingState) -> AnimationDrawingState) {\n            animationDrawingState = update(currentAnimationState)\n            invalidate()\n        }\n    }\n}"
  },
  {
    "path": "avvylib/src/main/java/xyz/schwaab/avvylib/BadgePosition.kt",
    "content": "package xyz.schwaab.avvylib\n\n/**\n * Defines the badge positions that can be used\n * @see [AvatarView.badgePosition]\n */\nenum class BadgePosition {\n    /**\n     * Position the badge at bottom-right corner\n     */\n    BOTTOM_RIGHT,\n\n    /**\n     * Position the badge at bottom-left corner\n     */\n    BOTTOM_LEFT,\n\n    /**\n     * Position the badge at top-right corner\n     */\n    TOP_RIGHT,\n\n    /**\n     * Position the badge at top-left corner\n     */\n    TOP_LEFT\n}\n"
  },
  {
    "path": "avvylib/src/main/java/xyz/schwaab/avvylib/Defaults.kt",
    "content": "package xyz.schwaab.avvylib\n\nimport android.graphics.Bitmap\nimport android.graphics.Color\nimport android.widget.ImageView\n\n/**\n * Created by vitor on 18/09/18.\n */\ninternal object Defaults {\n    val SCALE_TYPE = ImageView.ScaleType.CENTER_CROP\n    val BITMAP_CONFIG = Bitmap.Config.ARGB_8888\n\n    val BORDER_COLOR_HIGHLIGHT = Color.parseColor(\"#ffff6d00\")\n    val BORDER_COLOR = Color.parseColor(\"#ff757575\")\n\n    const val MIDDLE_COLOR = Color.TRANSPARENT\n\n    const val COLORDRAWABLE_DIMENSION = 2\n    const val BORDER_THICKNESS = 12\n    const val HIGHLIGHTED_BORDER_THICKNESS = 16\n    const val CIRCLE_BACKGROUND_COLOR = Color.TRANSPARENT\n    const val IS_HIGHLIGHTED = false\n    const val DISTANCE_TO_BORDER = 25\n\n    const val NUMBER_OF_ARCHES = 5\n    const val ARCHES_DEGREES_AREA = 90f\n    const val INDIVIDUAL_ARCH_DEGREES_LENGTH = 3f\n\n    const val SHOW_BADGE = false\n    const val BADGE_RADIUS = 8f\n    val BADGE_COLOR = Color.parseColor(\"#00FF00\")\n    val BADGE_STROKE_COLOR = Color.parseColor(\"#FFFFFF\")\n}"
  },
  {
    "path": "avvylib/src/main/java/xyz/schwaab/avvylib/animation/AnimatorListenerUtils.kt",
    "content": "package xyz.schwaab.avvylib.animation\n\nimport android.animation.Animator\n\n/**\n * Created by vitor on 19/09/18.\n */\ninternal fun Animator.addOnAnimationEndListener(onEnd: ((Animator?) -> Unit)) {\n    addListener(object : Animator.AnimatorListener {\n        override fun onAnimationRepeat(animation: Animator?) = Unit\n\n        override fun onAnimationCancel(animation: Animator?) = Unit\n\n        override fun onAnimationStart(animation: Animator?) = Unit\n\n        override fun onAnimationEnd(animation: Animator?) {\n            onEnd(animation)\n        }\n    })\n}"
  },
  {
    "path": "avvylib/src/main/java/xyz/schwaab/avvylib/animation/AvatarViewAnimationOrchestrator.kt",
    "content": "package xyz.schwaab.avvylib.animation\n\nimport android.animation.AnimatorSet\nimport xyz.schwaab.avvylib.AvatarView\n\n/**\n * @param setupAnimators These animators will run before the progressAnimators.\n * When stopping the animations, these animators will be played in reverse, to animate back to the original state.\n * It's really useful to expand/collapse the arches, manipulating the [AvatarView.AnimationDrawingState.archesExpansionProgress] parameter during animation\n * @param progressAnimators These will e run after the setup animators.\n * They will not be called in reverse, as they expected to repeat infinitely.\n */\nclass AvatarViewAnimationOrchestrator(\n    private val setupAnimators: List<AvatarViewAnimator> = listOf(),\n    private val progressAnimators: List<AvatarViewAnimator> = listOf(),\n) {\n\n    constructor(setupAnimator: AvatarViewAnimator, progressAnimator: AvatarViewAnimator) : this(\n        listOf(setupAnimator),\n        listOf(progressAnimator)\n    )\n\n    val setupSet = AnimatorSet().apply {\n        val baseAnimators = setupAnimators.map { it.baseAnimator }\n        if (baseAnimators.isNotEmpty()) {\n            playTogether(*baseAnimators.toTypedArray())\n        }\n    }\n\n    /**\n     * These animators will be called\n     */\n    val progressSet = AnimatorSet().apply {\n        val baseAnimators = progressAnimators.map { it.baseAnimator }\n        if (baseAnimators.isNotEmpty()) {\n            playTogether(*baseAnimators.toTypedArray())\n        }\n    }\n\n    val animatorSet = AnimatorSet().apply {\n        playSequentially(setupSet, progressSet)\n    }\n\n    internal fun cancel() {\n        animatorSet.cancel()\n    }\n\n    internal fun start() {\n        animatorSet.start()\n    }\n\n    internal fun reverse() {\n        setupAnimators.forEach { animator ->\n            animator.baseAnimator.reverse()\n        }\n    }\n\n    internal fun attach(\n        animatorInterface: AvatarView.AnimatorInterface,\n        onSetupEnd: () -> Unit = {}\n    ) {\n        (setupAnimators + progressAnimators).forEach { animator ->\n            animator.baseAnimator.addUpdateListener {\n                animator.onValueUpdate(animatorInterface)\n            }\n        }\n        setupSet.addOnAnimationEndListener {\n            onSetupEnd()\n        }\n    }\n}"
  },
  {
    "path": "avvylib/src/main/java/xyz/schwaab/avvylib/animation/AvatarViewAnimator.kt",
    "content": "package xyz.schwaab.avvylib.animation\n\nimport android.animation.ValueAnimator\nimport xyz.schwaab.avvylib.AvatarView\n\ninterface AvatarViewAnimator {\n    val baseAnimator: ValueAnimator\n\n    fun onValueUpdate(animatorInterface: AvatarView.AnimatorInterface)\n}"
  },
  {
    "path": "avvylib/src/main/java/xyz/schwaab/avvylib/animation/DefaultAnimationOrchestrator.kt",
    "content": "package xyz.schwaab.avvylib.animation\n\nimport android.animation.ValueAnimator\nimport android.view.animation.LinearInterpolator\nimport xyz.schwaab.avvylib.AvatarView\n\nobject DefaultAnimationOrchestrator {\n\n    private const val DEFAULT_ROTATION_DURATION = 2000L\n    private const val DEFAULT_EXPANSION_DURATION = 250L\n\n    fun create(\n        rotationDurationInMillis: Long = DEFAULT_ROTATION_DURATION,\n        expandDurationInMillis: Long = DEFAULT_EXPANSION_DURATION\n    ): AvatarViewAnimationOrchestrator {\n        val expansionAnimator = createDefaultExpansionAnimator(expandDurationInMillis)\n        val rotationAnimator = createDefaultRotationAnimator(rotationDurationInMillis)\n\n        return AvatarViewAnimationOrchestrator(expansionAnimator, rotationAnimator)\n    }\n\n    @Suppress(\"MemberVisibilityCanBePrivate\")\n    fun createDefaultExpansionAnimator(expandDurationInMillis: Long): AvatarViewAnimator {\n        return object : AvatarViewAnimator {\n            override val baseAnimator = ValueAnimator.ofFloat(\n                AvatarView.AnimationDrawingState.MIN_VALUE,\n                AvatarView.AnimationDrawingState.MAX_VALUE\n            ).apply {\n                interpolator = LinearInterpolator()\n                duration = expandDurationInMillis\n            }!!\n\n            override fun onValueUpdate(animatorInterface: AvatarView.AnimatorInterface) {\n                animatorInterface.updateAnimationState { state ->\n                    val animatedValue = baseAnimator.animatedValue as Float\n                    state.copy(archesExpansionProgress = animatedValue)\n                }\n            }\n        }\n    }\n\n    @Suppress(\"MemberVisibilityCanBePrivate\")\n    fun createDefaultRotationAnimator(rotationDurationInMillis: Long): AvatarViewAnimator {\n        return object : AvatarViewAnimator {\n            override val baseAnimator: ValueAnimator = ValueAnimator.ofFloat(\n                AvatarView.AnimationDrawingState.MIN_VALUE,\n                AvatarView.AnimationDrawingState.MAX_VALUE\n            ).apply {\n                repeatCount = ValueAnimator.INFINITE\n                duration = rotationDurationInMillis\n                interpolator = LinearInterpolator()\n            }!!\n\n            override fun onValueUpdate(animatorInterface: AvatarView.AnimatorInterface) {\n                animatorInterface.updateAnimationState { state ->\n                    val animatedValue = baseAnimator.animatedValue as Float\n                    state.copy(rotationProgress = animatedValue)\n                }\n            }\n        }\n    }\n}"
  },
  {
    "path": "avvylib/src/main/res/values/attrs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <declare-styleable name=\"AvatarView\">\n        <attr name=\"avvy_distance_to_border\" format=\"dimension\" />\n        <attr name=\"avvy_border_thickness\" format=\"dimension\" />\n        <attr name=\"avvy_border_thickness_highlight\" format=\"dimension\" />\n\n        <attr name=\"avvy_loading_arches\" format=\"integer\" />\n        <attr name=\"avvy_loading_arches_degree_area\" format=\"float\" />\n        <attr name=\"avvy_loading_arc_degree_length\" format=\"float\" />\n\n        <attr name=\"avvy_border_color\" format=\"color\" />\n        <attr name=\"avvy_border_color_end\" format=\"color\" />\n        <attr name=\"avvy_border_highlight_color\" format=\"color\" />\n        <attr name=\"avvy_border_highlight_color_end\" format=\"color\" />\n        <attr name=\"avvy_middle_color\" format=\"color\" />\n\n        <attr name=\"avvy_circle_background_color\" format=\"color\" />\n\n        <attr name=\"avvy_highlighted\" format=\"boolean\" />\n\n        <attr name=\"avvy_text\" format=\"string\"/>\n        <attr name=\"avvy_text_size\" format=\"dimension\"/>\n        <attr name=\"avvy_text_color\" format=\"color\"/>\n\n        <attr name=\"avvy_show_badge\" format=\"boolean\" />\n        <attr name=\"avvy_badge_color\" format=\"color\" />\n        <attr name=\"avvy_badge_stroke_color\" format=\"color\" />\n        <attr name=\"avvy_badge_stroke_width\" format=\"dimension\" />\n        <attr name=\"avvy_badge_radius\" format=\"dimension\" />\n        <attr name=\"avvy_badge_position\" format=\"enum\" >\n            <enum name=\"BOTTOM_RIGHT\" value=\"0\"/>\n            <enum name=\"BOTTOM_LEFT\" value=\"1\"/>\n            <enum name=\"TOP_RIGHT\" value=\"2\"/>\n            <enum name=\"TOP_LEFT\" value=\"3\"/>\n        </attr>\n    </declare-styleable>\n</resources>"
  },
  {
    "path": "avvylib/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">Avvy Lib</string>\n</resources>\n"
  },
  {
    "path": "avvylib/src/test/java/xyz/schwaab/avvylib/ExampleUnitTest.kt",
    "content": "package xyz.schwaab.avvylib\n\nimport org.junit.Test\n\nimport org.junit.Assert.*\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * @see [Testing documentation](http://d.android.com/tools/testing)\n */\nclass ExampleUnitTest {\n    @Test\n    fun addition_isCorrect() {\n        assertEquals(4, (2 + 2).toLong())\n    }\n}"
  },
  {
    "path": "build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    ext.kotlinVersion = '1.6.21'\n    repositories {\n        google()\n        mavenCentral()\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:7.2.1'\n        classpath \"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion\"\n        // NOTE: Do not place your application dependencies here; they belong\n        // in the individual module build.gradle files\n    }\n}\n\nsubprojects {\n    repositories {\n        google()\n        mavenCentral()\n    }\n}\n\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n"
  },
  {
    "path": "buildSrc/.gitignore",
    "content": "/build\n/.gradle\n"
  },
  {
    "path": "buildSrc/build.gradle.kts",
    "content": "plugins {\n    `kotlin-dsl`\n}\n\nrepositories {\n    jcenter()\n    google()\n}\n"
  },
  {
    "path": "buildSrc/src/main/java/AndroidModuleSpecs.kt",
    "content": "object AndroidModuleSpecs {\n    const val compileSdkVersion = 30\n    const val targetSdkVersion = 30\n    const val minSdkVersion = 14\n}\n"
  },
  {
    "path": "convention-plugins/build.gradle.kts",
    "content": "plugins {\n    `kotlin-dsl`\n}\n\nrepositories {\n    gradlePluginPortal()\n}\n"
  },
  {
    "path": "convention-plugins/src/main/kotlin/convention.publication.gradle.kts",
    "content": "import java.util.Properties\n\nplugins {\n    `maven-publish`\n    signing\n}\n\n// Stub secrets to let the project sync and build without the publication values set up\next[\"signing.keyId\"] = null\next[\"signing.password\"] = null\next[\"signing.secretKeyRingFile\"] = null\next[\"ossrhUsername\"] = null\next[\"ossrhPassword\"] = null\n\n// Grabbing secrets from local.properties file or from environment variables, which could be used on CI\nval secretPropsFile = project.rootProject.file(\"local.properties\")\nif (secretPropsFile.exists()) {\n    secretPropsFile.reader().use {\n        Properties().apply { load(it) }\n    }.onEach { (name, value) ->\n        ext[name.toString()] = value\n    }\n} else {\n    ext[\"signing.keyId\"] = System.getenv(\"SIGNING_KEY_ID\")\n    ext[\"signing.password\"] = System.getenv(\"SIGNING_PASSWORD\")\n    ext[\"signing.secretKeyRingFile\"] = System.getenv(\"SIGNING_SECRET_KEY_RING_FILE\")\n    ext[\"ossrhUsername\"] = System.getenv(\"OSSRH_USERNAME\")\n    ext[\"ossrhPassword\"] = System.getenv(\"OSSRH_PASSWORD\")\n}\n\nfun getExtraString(name: String) = ext[name]?.toString()\n\npublishing {\n    // Configure maven central repository\n    repositories {\n        maven {\n            name = \"sonatype\"\n            setUrl(\"https://oss.sonatype.org/service/local/staging/deploy/maven2/\")\n            credentials {\n                username = getExtraString(\"ossrhUsername\")\n                password = getExtraString(\"ossrhPassword\")\n            }\n        }\n    }\n\n    // Configure all publications\n    publications.withType<MavenPublication> {\n\n        // Provide artifacts information requited by Maven Central\n        pom {\n            name.set(\"AvatarView\")\n            description.set(\"A circular ImageView with border, progress animation and customizable highlights for Android\")\n            url.set(\"https://github.com/vitorhugods/AvatarView\")\n\n            licenses {\n                license {\n                    name.set(\"Apache-2.0\")\n                    url.set(\"https://opensource.org/licenses/Apache-2.0\")\n                }\n            }\n            developers {\n                developer {\n                    id.set(\"vitorhugods\")\n                    name.set(\"Vitor Hugo Schwaab\")\n                    email.set(\"vitor@schwaab.xyz\")\n                }\n            }\n            scm {\n                url.set(\"https://github.com/vitorhugods/AvatarView\")\n            }\n\n        }\n    }\n}\n\n// Signing artifacts. Signing.* extra properties values will be used\n\nsigning {\n    sign(publishing.publications)\n}\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Sun Oct 11 23:02:27 CEST 2020\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-7.3.3-bin.zip\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx1536m\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n\nandroid.enableJetifier=true\nandroid.useAndroidX=true\n\nkotlin.code.style=official\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=$(save \"$@\")\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\n# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong\nif [ \"$(uname)\" = \"Darwin\" ] && [ \"$HOME\" = \"$PWD\" ]; then\n  cd \"$(dirname \"$0\")\"\nfi\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto init\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto init\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:init\n@rem Get command-line arguments, handling Windows variants\n\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\n\n:win9xME_args\n@rem Slurp the command line arguments.\nset CMD_LINE_ARGS=\nset _SKIP=2\n\n:win9xME_args_slurp\nif \"x%~1\" == \"x\" goto execute\n\nset CMD_LINE_ARGS=%*\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "settings.gradle.kts",
    "content": "// Demo app\ninclude(\":app\")\n\n// Library\ninclude(\":avvylib\")\n\n// Build and Publishing tools\nincludeBuild(\"convention-plugins\")\n"
  }
]