[
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Important:** \nThis demo is still being maintained, but is now automatically \ngenerated via [llama-pack](https://www.npmjs.com/package/@llama-pack/cli). We **strongly recommend**\ndevelopers who want to bootstrap their Trusted Web Activity project to use\n[llama-pack]([llama-pack](https://www.npmjs.com/package/@llama-pack/cli)). Since the content\nin this repository is now automatically generated, we'll also be closing the issue tracker. Issues\nshould be filed directly in [bugs.chromium.org](https://bugs.chromium.org/), using [this template](https://bugs.chromium.org/p/chromium/issues/entry?components=UI%3EBrowser%3EMobile%3ETrustedWebActivities).\n\nIf you have a Trusted Web Activity related question, the best place to ask it is on StackOverflow, on the\n[trusted-web-activity tag](https://stackoverflow.com/questions/tagged/trusted-web-activity), which is also monitored by the team.\n\n\n**Describe the bug**\nA clear and concise description of what the bug is.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Go to '...'\n2. Click on '....'\n3. Scroll down to '....'\n4. See error\n\n**Expected behavior**\nA clear and concise description of what you expected to happen.\n\n**Screenshots**\nIf applicable, add screenshots to help explain your problem.\n\n**Smartphone (please complete the following information):**\n - Device: [e.g. iPhone6]\n - OS: [e.g. iOS8.1]\n - Browser [e.g. stock browser, safari]\n - Version [e.g. 22]\n\n**Additional context**\nAdd any other context about the problem here.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "content": "---\nname: Feature request\nabout: Suggest an idea for this project\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Important:** \nThis demo is still being maintained, but is now automatically \ngenerated via [llama-pack](https://www.npmjs.com/package/@llama-pack/cli). We **strongly recommend**\ndevelopers who want to bootstrap their Trusted Web Activity project to use\n[llama-pack]([llama-pack](https://www.npmjs.com/package/@llama-pack/cli)). Since the content\nin this repository is now automatically generated, we'll also be closing the issue tracker. Issues\nshould be filed directly in [bugs.chromium.org](https://bugs.chromium.org/), using [this template](https://bugs.chromium.org/p/chromium/issues/entry?components=UI%3EBrowser%3EMobile%3ETrustedWebActivities).\n\nIf you have a Trusted Web Activity related question, the best place to ask it is on StackOverflow, on the\n[trusted-web-activity tag](https://stackoverflow.com/questions/tagged/trusted-web-activity), which is also\nmonitored by the team.\n\n\n**Is your feature request related to a problem? Please describe.**\nA clear and concise description of what the problem is. Ex. I'm always frustrated when [...]\n\n**Describe the solution you'd like**\nA clear and concise description of what you want to happen.\n\n**Describe alternatives you've considered**\nA clear and concise description of any alternative solutions or features you've considered.\n\n**Additional context**\nAdd any other context or screenshots about the feature request here.\n"
  },
  {
    "path": ".gitignore",
    "content": "*.iml\n.gradle\n/local.properties\n/.idea/caches/build_file_checksums.ser\n/.idea/libraries\n/.idea/modules.xml\n/.idea/workspace.xml\n.DS_Store\n/build\n/captures\n.externalNativeBuild\n"
  },
  {
    "path": ".idea/gradle.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"GradleSettings\">\n    <option name=\"linkedExternalProjectsSettings\">\n      <GradleProjectSettings>\n        <option name=\"distributionType\" value=\"DEFAULT_WRAPPED\" />\n        <option name=\"externalProjectPath\" value=\"$PROJECT_DIR$\" />\n        <option name=\"modules\">\n          <set>\n            <option value=\"$PROJECT_DIR$\" />\n            <option value=\"$PROJECT_DIR$/app\" />\n          </set>\n        </option>\n        <option name=\"resolveModulePerSourceSet\" value=\"false\" />\n      </GradleProjectSettings>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/misc.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"NullableNotNullManager\">\n    <option name=\"myDefaultNullable\" value=\"android.support.annotation.Nullable\" />\n    <option name=\"myDefaultNotNull\" value=\"android.support.annotation.NonNull\" />\n    <option name=\"myNullables\">\n      <value>\n        <list size=\"7\">\n          <item index=\"0\" class=\"java.lang.String\" itemvalue=\"org.jetbrains.annotations.Nullable\" />\n          <item index=\"1\" class=\"java.lang.String\" itemvalue=\"javax.annotation.Nullable\" />\n          <item index=\"2\" class=\"java.lang.String\" itemvalue=\"javax.annotation.CheckForNull\" />\n          <item index=\"3\" class=\"java.lang.String\" itemvalue=\"edu.umd.cs.findbugs.annotations.Nullable\" />\n          <item index=\"4\" class=\"java.lang.String\" itemvalue=\"android.support.annotation.Nullable\" />\n          <item index=\"5\" class=\"java.lang.String\" itemvalue=\"androidx.annotation.Nullable\" />\n          <item index=\"6\" class=\"java.lang.String\" itemvalue=\"androidx.annotation.RecentlyNullable\" />\n        </list>\n      </value>\n    </option>\n    <option name=\"myNotNulls\">\n      <value>\n        <list size=\"6\">\n          <item index=\"0\" class=\"java.lang.String\" itemvalue=\"org.jetbrains.annotations.NotNull\" />\n          <item index=\"1\" class=\"java.lang.String\" itemvalue=\"javax.annotation.Nonnull\" />\n          <item index=\"2\" class=\"java.lang.String\" itemvalue=\"edu.umd.cs.findbugs.annotations.NonNull\" />\n          <item index=\"3\" class=\"java.lang.String\" itemvalue=\"android.support.annotation.NonNull\" />\n          <item index=\"4\" class=\"java.lang.String\" itemvalue=\"androidx.annotation.NonNull\" />\n          <item index=\"5\" class=\"java.lang.String\" itemvalue=\"androidx.annotation.RecentlyNonNull\" />\n        </list>\n      </value>\n    </option>\n  </component>\n  <component name=\"ProjectRootManager\" version=\"2\" languageLevel=\"JDK_1_8\" project-jdk-name=\"1.8\" project-jdk-type=\"JavaSDK\">\n    <output url=\"file://$PROJECT_DIR$/build/classes\" />\n  </component>\n  <component name=\"ProjectType\">\n    <option name=\"id\" value=\"Android\" />\n  </component>\n</project>"
  },
  {
    "path": ".idea/runConfigurations.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"RunConfigurationProducerService\">\n    <option name=\"ignoredProducers\">\n      <set>\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer\" />\n      </set>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/vcs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"VcsDirectoryMappings\">\n    <mapping directory=\"\" vcs=\"Git\" />\n  </component>\n</project>"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# How to become a contributor and submit your own code\n\n## Contributor License Agreements\n\nWe'd love to accept your sample apps and patches! Before we can take them, we\nhave to jump a couple of legal hurdles.\n\nPlease fill out either the individual or corporate Contributor License Agreement\n(CLA).\n\n  * If you are an individual writing original source code and you're sure you\n    own the intellectual property, then you'll need to sign an [individual CLA]\n    (https://developers.google.com/open-source/cla/individual).\n  * If you work for a company that wants to allow you to contribute your work,\n    then you'll need to sign a [corporate CLA]\n    (https://developers.google.com/open-source/cla/corporate).\n\nFollow either of the two links above to access the appropriate CLA and\ninstructions for how to sign and return it. Once we receive it, we'll be able to\naccept your pull requests.\n\n## Contributing A Patch\n\n1. Submit an issue describing your proposed change to the repo in question.\n1. The repo owner will respond to your issue promptly.\n1. If your proposed change is accepted, and you haven't already done so, sign a\n   Contributor License Agreement (see details above).\n1. Fork the desired repo, develop and test your code changes.\n1. Ensure that your code adheres to the existing style in the sample to which\n   you are contributing. Refer to the\n   [Google Cloud Platform Samples Style Guide]\n   (https://github.com/GoogleCloudPlatform/Template/wiki/style.html) for the\n   recommended coding standards for this organization.\n1. Ensure that your code has an appropriate set of unit tests which all pass.\n1. Submit a pull request.\n\n"
  },
  {
    "path": "LICENSE",
    "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."
  },
  {
    "path": "README.md",
    "content": "# SVGOMG / Trusted Web Activity\n\nThis project uses the\n[Trusted Web Activities](https://developers.google.com/web/updates/2017/10/using-twa) technology\nto wrap [SVGOMG](https://jakearchibald.github.io/svgomg/) in an Android Application.\n\n> :warning: **Important:** This demo is still being maintained, but is now automatically \ngenerated via [llama-pack](https://www.npmjs.com/package/@llama-pack/cli). We **strongly recommend**\ndevelopers who want to bootstrap their Trusted Web Activity project to use\n[llama-pack]([llama-pack](https://www.npmjs.com/package/@llama-pack/cli)). Since the content\nin this repository is now automatically generated, we'll also be closing the issue tracker. Issues\nshould be filed directly in [bugs.chromium.org](https://bugs.chromium.org/), using [this template](https://bugs.chromium.org/p/chromium/issues/entry?components=UI%3EBrowser%3EMobile%3ETrustedWebActivities).\n\nIf you have a Trusted Web Activity related question, the best place to ask it is on StackOverflow, on the\n[trusted-web-activity tag](https://stackoverflow.com/questions/tagged/trusted-web-activity), which is also\nmonitored by the team.\n\n## Running the Demo\n\n1. Clone the project\n``\ngit clone https://github.com/GoogleChromeLabs/svgomg-twa.git\n``\n\n2. Import the Project into Android Studio, using File > New > Import Project, and select the folder\nto which the project was cloned.\n\n3. Run the Project (Ctrl+R)\n\n### Enabling Debug\n\nTWAs require [Digital AssetLinks](https://developers.google.com/digital-asset-links/) to be setup\non both the application and on the website, in order to enable the validation that allows Chrome to\nopen the page in full-screen.\n\nFor security reasons, the signing key compatible with the setup on\nhttps://svgomg.firebaseapp.com/ is not committed with the sample code.\n\nIt is possible to setup Chrome to skip validation on device to enable testing.\n\nHere are the 2 steps required to achieve this:\n\n1. Enable Chrome to accept command-line parameters:\n\nOn the Android Device, go to the Chrome version being used to test the TWA and navigate to\n`chrome://flags`. Search for a setting called `Enable commmand line on non-rooted devices` and\nchange it to `Enabled`. Restarting the browser *multiple* times may be required.\n\n2. Create an Android file with the command-line parameters that allow skipping the TWA validation.\n\nAdd a file at `/data/local/tmp/chrome-command-line`, with the content\n`_ --disable-digital-asset-link-verification-for-url=\"https://svgomg.firebaseapp.com\"`. Make sure\nthere's not newline at the end of the line, or it may break the launcher.\n\nFor convenience, a shell script that creates this file is available in this repository. Run it\nby executing `./enable-debug.sh https://svgomg.firebaseapp.com`.\n\nTo debug a different PWA, execute the script with a different host:\n`./enable-debug.sh https://example.com`\n\n### Debugging Digital Asset Links\n\nAs the debug certificate is different from the release one, and the fingerprint for debug should not be listed on the assetlinks.json file, is important to check if your Digital Asset Link is linked and verified.\n\nAfter you generated your [signed APK](https://developer.android.com/studio/publish/app-signing#sign-apk). it can be installed into a test device, using adb:\n\n``\nadb install app-release.apk\n``\n\nIf the verification step fails it is possible to check for error messages using the Android Debug Bridge, from your OS’s terminal and with the test device connected.\n\n``\nadb logcat | grep -e OriginVerifier -e digital_asset_links\n``\n\nIf it is failing you'll see ``Statement failure matching fingerprint. Verification failed.`` message. Therefore is important to *review* *AndroidManifest.xml* and *build.gradle* files and check if the configurations are matching with the *assetlinks.json*.\n\nOtherwise ``Verification succeeded.`` message should appear.\n\n## License\n\n```\nCopyright 2015 Google, Inc.\n\nLicensed to the Apache Software Foundation (ASF) under one or more contributor\nlicense agreements. See the NOTICE file distributed with this work for\nadditional information regarding copyright ownership. The ASF licenses this\nfile to you under the Apache License, Version 2.0 (the \"License\"); you may not\nuse this file except in compliance with the License. You may obtain a copy of\nthe License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\nLicense for the specific language governing permissions and limitations under\nthe License.\n```\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "app/build.gradle",
    "content": "/*\n * Copyright 2019 Google Inc.\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 */\n\nimport groovy.xml.MarkupBuilder;\n\napply plugin: 'com.android.application'\n\ndef twaManifest = [\n    applicationId: 'org.chromium.twa.svgomg',\n    hostName: 'svgomg.firebaseapp.com', // The domain being opened in the TWA.\n    launchUrl: '/', // The start path for the TWA. Must be relative to the domain.\n    name: 'SVGOMG TWA', // The name shown on the Android Launcher.\n    themeColor: '#303F9F', // The color used for the status bar.\n    navigationColor: '#303F9F', // The color used for the navigation bar.\n    backgroundColor: '#bababa', // The color used for the splash screen background.\n    enableNotifications: false, // Set to true to enable notification delegation.\n    // Add shortcuts for your app here. Every shortcut must include the following fields:\n    // - name: String that will show up in the shortcut.\n    // - short_name: Shorter string used if |name| is too long.\n    // - url: Absolute path of the URL to launch the app with (e.g '/create').\n    // - icon: Name of the resource in the drawable folder to use as an icon.\n    shortcuts: [\n        // Insert shortcuts here, for example:\n        // [name: 'Open SVG', short_name: 'Open', url: '/open', icon: 'splash']\n    ],\n    // The duration of fade out animation in milliseconds to be played when removing splash screen.\n    splashScreenFadeOutDuration: 300\n]\n\nandroid {\n    compileSdkVersion 29\n    defaultConfig {\n        applicationId twaManifest.applicationId\n        minSdkVersion 16\n        targetSdkVersion 29\n        versionCode 3\n        versionName \"2.0.0\"\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\n\n        // The name for the application on the Android Launcher\n        resValue \"string\", \"appName\", twaManifest.name\n\n        // The URL that will be used when launching the TWA from the Android Launcher\n        def launchUrl = \"https://\" + twaManifest.hostName + twaManifest.launchUrl\n        resValue \"string\", \"launchUrl\", launchUrl\n\n        // The URL that will be opened as a Desktop PWA when the TWA is installed and\n        // run on ChromeOS. This will probably give a better user experience for non-mobile\n        // devices, but will not include any platform-specific Android interaction.\n        resValue \"string\", \"crosLaunchUrl\", launchUrl\n\n        // The hostname is used when building the intent-filter, so the TWA is able to\n        // handle Intents to open https://svgomg.firebaseapp.com.\n        resValue \"string\", \"hostName\", twaManifest.hostName\n\n        // This variable below expresses the relationship between the app and the site,\n        // as documented in the TWA documentation at\n        // https://developers.google.com/web/updates/2017/10/using-twa#set_up_digital_asset_links_in_an_android_app\n        // and is injected into the AndroidManifest.xml\n        resValue \"string\", \"assetStatements\", \"\"\"\n            [{\n                \"relation\": [\"delegate_permission/common.handle_all_urls\"],\n                \"target\": {\n                    \"namespace\": \"web\",\n                    \"site\": \"https://$twaManifest.hostName\"\n                }\n            }]\"\"\"\n\n        // This attribute sets the status bar color for the TWA. It can be either set here or in\n        // `res/values/colors.xml`. Setting in both places is an error and the app will not\n        // compile. If not set, the status bar color defaults to #FFFFFF - white.\n        resValue \"color\", \"colorPrimary\", twaManifest.themeColor\n\n        // This attribute sets the navigation bar color for the TWA. It can be either set here or in\n        // `res/values/colors.xml`. Setting in both places is an error and the app will not\n        // compile. If not set, the navigation bar color defaults to #FFFFFF - white.\n        resValue \"color\", \"navigationColor\", twaManifest.navigationColor\n\n        // Sets the color for the background used for the splash screen when launching the\n        // Trusted Web Activity.\n        resValue \"color\", \"backgroundColor\", twaManifest.backgroundColor\n\n        // Defines a provider authority fot the Splash Screen\n        resValue \"string\", \"providerAuthority\", twaManifest.applicationId + '.fileprovider'\n\n        // The enableNotification resource is used to enable or disable the\n        // TrustedWebActivityService, by changing the android:enabled and android:exported\n        // attributes\n        resValue \"bool\", \"enableNotification\", twaManifest.enableNotifications.toString()\n\n        twaManifest.shortcuts.eachWithIndex { shortcut, index ->\n            resValue \"string\", \"shortcut_name_$index\", \"$shortcut.name\"\n            resValue \"string\", \"shortcut_short_name_$index\", \"$shortcut.short_name\"\n        }\n\n        // The splashScreenFadeOutDuration resource is used to set the duration of fade out animation in milliseconds\n        // to be played when removing splash screen. The default is 0 (no animation).\n        resValue \"integer\", \"splashScreenFadeOutDuration\", twaManifest.splashScreenFadeOutDuration.toString()\n    }\n    buildTypes {\n        release {\n            minifyEnabled true\n        }\n    }\n    compileOptions {\n        sourceCompatibility JavaVersion.VERSION_1_8\n        targetCompatibility JavaVersion.VERSION_1_8\n    }\n}\n\ntask generateShorcutsFile {\n    assert twaManifest.shortcuts.size() < 5, \"You can have at most 4 shortcuts.\"\n    twaManifest.shortcuts.eachWithIndex { s, i ->\n        assert s.name != null, 'Missing `name` in shortcut #' + i\n        assert s.short_name != null, 'Missing `short_name` in shortcut #' + i\n        assert s.url != null, 'Missing `icon` in shortcut #' + i\n        assert s.icon != null, 'Missing `url` in shortcut #' + i\n    }\n\n    def shortcutsFile = new File(\"$projectDir/src/main/res/xml\", \"shortcuts.xml\")\n\n    def xmlWriter = new StringWriter()\n    def xmlMarkup = new MarkupBuilder(new IndentPrinter(xmlWriter, \"    \", true))\n\n    xmlMarkup\n        .'shortcuts'('xmlns:android': 'http://schemas.android.com/apk/res/android') {\n            twaManifest.shortcuts.eachWithIndex { s, i ->\n                'shortcut'(\n                        'android:shortcutId': 'shortcut' + i,\n                        'android:enabled': 'true',\n                        'android:icon': '@drawable/' + s.icon,\n                        'android:shortcutShortLabel': '@string/shortcut_short_name_' + i,\n                        'android:shortcutLongLabel': '@string/shortcut_name_' + i) {\n                    'intent'(\n                            'android:action': 'android.intent.action.MAIN',\n                            'android:targetPackage': twaManifest.applicationId,\n                            'android:targetClass': 'com.google.androidbrowserhelper.trusted.LauncherActivity',\n                            'android:data': 'https://' + twaManifest.hostName + s.url)\n                    'categories'('android:name': 'android.intent.category.LAUNCHER')\n                }\n            }\n        }\n    shortcutsFile.text = xmlWriter.toString() + '\\n'\n}\n\npreBuild.dependsOn(generateShorcutsFile)\n\ndependencies {\n    implementation fileTree(include: ['*.jar'], dir: 'libs')\n    implementation 'com.google.androidbrowserhelper:androidbrowserhelper:1.1.0'\n}\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<!--\n    Copyright 2019 Google Inc. All Rights Reserved.\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-->\n\n<!-- The \"package\" attribute is rewritten by the Gradle build with the value of applicationId.\n     It is still required here, as it is used to derive paths, for instance when referring\n     to an Activity by \".MyActivity\" instead of the full name. If more Activities are added to the\n     application, the package attribute will need to reflect the correct path in order to use\n     the abbreviated format. -->\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.placeholder\">\n\n    <application\n        android:allowBackup=\"true\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/appName\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/Theme.LauncherActivity\">\n\n        <meta-data\n            android:name=\"asset_statements\"\n            android:resource=\"@string/assetStatements\" />\n        <meta-data\n            android:name=\"cros_web_alternative\"\n            android:value=\"@string/crosLaunchUrl\" />\n\n        <activity android:name=\"com.google.androidbrowserhelper.trusted.LauncherActivity\"\n            android:label=\"@string/appName\">\n            <meta-data android:name=\"android.support.customtabs.trusted.DEFAULT_URL\"\n                android:value=\"@string/launchUrl\" />\n\n            <meta-data\n                android:name=\"android.support.customtabs.trusted.STATUS_BAR_COLOR\"\n                android:resource=\"@color/colorPrimary\" />\n\n            <meta-data\n                android:name=\"android.support.customtabs.trusted.NAVIGATION_BAR_COLOR\"\n                android:resource=\"@color/navigationColor\" />\n\n            <meta-data android:name=\"android.support.customtabs.trusted.SPLASH_IMAGE_DRAWABLE\"\n                android:resource=\"@drawable/splash\"/>\n\n            <meta-data android:name=\"android.support.customtabs.trusted.SPLASH_SCREEN_BACKGROUND_COLOR\"\n                android:resource=\"@color/backgroundColor\"/>\n\n            <meta-data android:name=\"android.support.customtabs.trusted.SPLASH_SCREEN_FADE_OUT_DURATION\"\n                android:value=\"@integer/splashScreenFadeOutDuration\"/>\n\n            <meta-data android:name=\"android.support.customtabs.trusted.FILE_PROVIDER_AUTHORITY\"\n                android:value=\"@string/providerAuthority\"/>\n\n            <meta-data android:name=\"android.app.shortcuts\" android:resource=\"@xml/shortcuts\" />\n\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n\n            <intent-filter android:autoVerify=\"true\">\n                <action android:name=\"android.intent.action.VIEW\"/>\n                <category android:name=\"android.intent.category.DEFAULT\" />\n                <category android:name=\"android.intent.category.BROWSABLE\"/>\n                <data android:scheme=\"https\"\n                    android:host=\"@string/hostName\"/>\n            </intent-filter>\n\n        </activity>\n\n        <activity android:name=\"com.google.androidbrowserhelper.trusted.FocusActivity\" />\n\n        <provider\n            android:name=\"androidx.core.content.FileProvider\"\n            android:authorities=\"@string/providerAuthority\"\n            android:grantUriPermissions=\"true\"\n            android:exported=\"false\">\n            <meta-data\n                android:name=\"android.support.FILE_PROVIDER_PATHS\"\n                android:resource=\"@xml/filepaths\" />\n        </provider>\n\n        <service\n             android:name=\"com.google.androidbrowserhelper.trusted.DelegationService\"\n             android:enabled=\"@bool/enableNotification\"\n             android:exported=\"@bool/enableNotification\">\n\n             <intent-filter>\n                 <action android:name=\"android.support.customtabs.trusted.TRUSTED_WEB_ACTIVITY_SERVICE\"/>\n                 <category android:name=\"android.intent.category.DEFAULT\"/>\n             </intent-filter>\n         </service>\n\n    </application>\n</manifest>\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "content": "<!--\n    Copyright 2019 Google Inc. All Rights Reserved.\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-->\n<resources>\n    <!-- Theme to create a blank screen while the TWA is opening -->\n    <style name=\"Theme.LauncherActivity\" parent=\"Theme.AppCompat.NoActionBar\">\n        <item name=\"android:windowAnimationStyle\">@null</item>\n        <item name=\"android:windowIsTranslucent\">true</item>\n        <item name=\"android:windowNoTitle\">true</item>\n        <item name=\"android:windowBackground\">@android:color/transparent</item>\n        <item name=\"android:backgroundDimEnabled\">false</item>\n    </style>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/xml/filepaths.xml",
    "content": "<!--\n    Copyright 2019 Google Inc. All Rights Reserved.\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-->\n<paths>\n    <files-path path=\"twa_splash/\" name=\"twa_splash\" />\n</paths>\n"
  },
  {
    "path": "app/src/main/res/xml/shortcuts.xml",
    "content": "<shortcuts xmlns:android='http://schemas.android.com/apk/res/android' />\n"
  },
  {
    "path": "build.gradle",
    "content": "/*\n * Copyright 2015 Google Inc.\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 */\n\n// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    \n    repositories {\n        google()\n        jcenter()\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:3.2.1'\n        \n\n        // NOTE: Do not place your application dependencies here; they belong\n        // in the individual module build.gradle files\n    }\n}\n\nallprojects {\n    repositories {\n        google()\n        jcenter()\n    }\n}\n\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n"
  },
  {
    "path": "enable-debug.sh",
    "content": "#!/usr/bin/env bash\n\n#\n# Copyright 2019 Google Inc.\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#\n\n# Check if at least 1 argument is provided\nif [[ $# -eq 0 ]]\n    then\n        echo \"Usage: 'enable-debug.sh <host>'\"\n        exit 1\n    fi\n\n# Invokes ADB and creates the file with the command line\nadb shell \"echo '_ --disable-digital-asset-link-verification-for-url=\\\"$1\\\"' > /data/local/tmp/chrome-command-line\"\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-4.6-all.zip\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\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\n\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=$(save \"$@\")\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\n# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong\nif [ \"$(uname)\" = \"Darwin\" ] && [ \"$HOME\" = \"$PWD\" ]; then\n  cd \"$(dirname \"$0\")\"\nfi\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\r\n@rem ##########################################################################\r\n@rem\r\n@rem  Gradle startup script for Windows\r\n@rem\r\n@rem ##########################################################################\r\n\r\n@rem Set local scope for the variables with windows NT shell\r\nif \"%OS%\"==\"Windows_NT\" setlocal\r\n\r\nset DIRNAME=%~dp0\r\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\r\nset APP_BASE_NAME=%~n0\r\nset APP_HOME=%DIRNAME%\r\n\r\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\r\nset DEFAULT_JVM_OPTS=\r\n\r\n@rem Find java.exe\r\nif defined JAVA_HOME goto findJavaFromJavaHome\r\n\r\nset JAVA_EXE=java.exe\r\n%JAVA_EXE% -version >NUL 2>&1\r\nif \"%ERRORLEVEL%\" == \"0\" goto init\r\n\r\necho.\r\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:findJavaFromJavaHome\r\nset JAVA_HOME=%JAVA_HOME:\"=%\r\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\r\n\r\nif exist \"%JAVA_EXE%\" goto init\r\n\r\necho.\r\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:init\r\n@rem Get command-line arguments, handling Windows variants\r\n\r\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\r\n\r\n:win9xME_args\r\n@rem Slurp the command line arguments.\r\nset CMD_LINE_ARGS=\r\nset _SKIP=2\r\n\r\n:win9xME_args_slurp\r\nif \"x%~1\" == \"x\" goto execute\r\n\r\nset CMD_LINE_ARGS=%*\r\n\r\n:execute\r\n@rem Setup the command line\r\n\r\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\r\n\r\n@rem Execute Gradle\r\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\r\n\r\n:end\r\n@rem End local scope for the variables with windows NT shell\r\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\r\n\r\n:fail\r\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\r\nrem the _cmd.exe /c_ return code!\r\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\r\nexit /b 1\r\n\r\n:mainEnd\r\nif \"%OS%\"==\"Windows_NT\" endlocal\r\n\r\n:omega\r\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':app'\n"
  }
]