diff --git a/README.md b/README.md index 1e3fb43..519c312 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Automatic Face Blur plug-in # 1. Overview + This plug-in detects faces from spherical pictures and blur them. # 2. Terms of Service @@ -9,37 +10,19 @@ This plug-in detects faces from spherical pictures and blur them. By using the Automatic Face Blur plug-in, you are agreeing to the above and the license terms, [license.txt](license.txt). -Copyright © 2018 Ricoh Company, Ltd. - -# 3. Build and Use Environment - -## 3-1. Hardware - -* RICOH THETA V -* Firmware ver.2.31.1 and above - - > Information on checking and updating the firmware is [here](https://theta360.com/en/support/manual/v/content/pc/pc_09.html). - -## 3-2. Development Environment +Copyright © 2019 Ricoh Company, Ltd. -This plug-in has been built under the following conditions. +# 3. Development Environment -#### Operating System +* RICOH THETA V and Z1 +* Firmware version 2.50.1 (V), 1.03.5 (Z1) -* Windows™ 10 Version 1709 -* macOS® High Sierra ver.10.13 - -#### Development environment - -* Android™ Studio 3.1+ -* gradle 3.1.3 -* Android SDK (API Level 25) -* compileSdkVersion 26 -* buildToolsVersion "27.0.3" -* minSdkVersion 25 -* targetSdkVersion 25 + > How to update your RICOH THETA + > * [THETA V](https://support.theta360.com/en/manual/v/content/update/update_01.html) + > * [THETA Z1](https://support.theta360.com/en/manual/z1/content/update/update_01.html) # 4. Install + Android Studio install apk after build automatically. Or use the following command after build. ``` @@ -51,34 +34,34 @@ adb install -r app-debug.apk Using desktop viewing app as Vysor, open Settings app and turns on the permissions at "Apps" > "Automatic Face Blur" > "Permissions" # 5. How to Use + 1. Turn on the THETA. 2. Open RICOH THETA app on your Win/Mac. 3. Set this plug-in as an active plugin from "File" > "Plug-in management..." -4. Connect THETA V to Wireless-LAN by client mode or access point mode. - To connect THETA V to Wireless-LAN by client mode, +4. Connect THETA to Wireless-LAN by client mode or access point mode. + To connect THETA to Wireless-LAN by client mode, for example, let's assume that there is a macOS machine, - a THETA V and an iPhone on the same wireless LAN. - We also recommend that the THETA V be close to fully charged with an AC-USB adapter. + a THETA and an iPhone on the same wireless LAN. + We also recommend that the THETA be close to fully charged with an AC-USB adapter. 5. Set default plug-in - Open the THETA mobile app on an iOS/Android smartphone + Open the THETA mobile app on an iOS/Android smartphone Tap "Settings" at right bottom corner Confirm "Connection" is "Wi-Fi" or "Wi-Fi+Bluetooth". Tap "Camera settings" Tap "Plug-in" Select "Automatic Face Blur" -6. Check IP address of the camera +6. Check IP address of the camera Back to the Camera settings - Check IP-address of THETA V on smartphone app + Check IP-address of THETA on smartphone app If you use macOS type "dns-sd -q THETAYL01234567.local" in Terminal. Here "THETAYL01234567" is an example, please change to your serial number. -7. Launch plug-in - Press Mode button till LED2 turns white or Open from the smartphone app (RICOH THETA) - +7. Launch plug-in + Press Mode button till LED2 turns white or Open from the smartphone app (RICOH THETA) 8. If you use WebUI of the plug-in, - when you connect with THETA V by access point mode, - open the URL (http://192.168.1.1/:8888) on the browser. - When you connect with THETA V by client mode, - open the URL (http://(ip-address):8888) on the browser. - Here, (ip-address) is example. Change it to your THETA V's IP address. + when you connect with THETA by access point mode, + open the URL (http://192.168.1.1/:8888) on the browser. + When you connect with THETA by client mode, + open the URL (http://(ip-address):8888) on the browser. + Here, (ip-address) is example. Change it to your THETA's IP address. 9. You can set options like shooting mode, shutter speed, ISO sensitivity, White balance and EV by WebUI of the plug-in. 10. Position the camera and press the shutter button on the WebUI of the plug-in to take a picture that will be blurred. 11. If you do not use WebUI of the plug-in, @@ -87,11 +70,13 @@ adb install -r app-debug.apk 13. Press the Mode Button more than 2 seconds to finish this plugin. # 6. History -* ver.1.01.00 (2018/07/25): Initial version for github. -* ver.1.02.00 (2018/08/08): Bug fix. -* ver.1.03.00 (2018/10/05): Bug fix. -* ver.1.04.00 (2018/11/05): Check remaining space of Theta. -* ver.1.05.00 (2018/12/04): Terminate the plug-in when there is no space for Theta to take picture. + +* v.1.1.0 (2018/07/25): Initial version for github. +* v.1.2.0 (2018/08/08): Bug fix. +* v.1.3.0 (2018/10/05): Bug fix. +* v.1.4.0 (2018/11/05): Check remaining space of Theta. +* v.1.5.0 (2018/12/04): Terminate the plug-in when there is no space for Theta to take picture. +* v.1.6.0 (2019/05/08): THETA Z1 is supported. --- diff --git a/app/build.gradle b/app/build.gradle index bfad0dd..fdd6835 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,4 +1,14 @@ apply plugin: 'com.android.application' +buildscript { + repositories { + jcenter() + } + + dependencies { + classpath 'com.cookpad.android.licensetools:license-tools-plugin:1.6.0' + } +} +apply plugin: 'com.cookpad.android.licensetools' android { compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION) @@ -7,8 +17,8 @@ android { applicationId "com.theta360.automaticfaceblur" minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION) targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION) - versionCode 4 - versionName "1.05.00" + versionCode 6 + versionName "1.6.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/app/licenses.yml b/app/licenses.yml new file mode 100644 index 0000000..eb7bd44 --- /dev/null +++ b/app/licenses.yml @@ -0,0 +1,143 @@ +- artifact: com.android.support:support-v4:+ + name: Android Support Library v4 + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.android.support:support-core-utils:+ + name: Android Support Library core utils + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.android.support:support-media-compat:+ + name: Android Support Library v4 + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.android.support:support-compat:+ + name: Android Support Library compat + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.koushikdutta.async:androidasync:+ + name: AndroidAsync + copyrightHolder: koush + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: https://github.com/koush/AndroidAsync +- artifact: com.android.support:support-vector-drawable:+ + name: Android Support VectorDrawable + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: android.arch.lifecycle:common:+ + name: Android Lifecycle-Common + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: https://developer.android.com/topic/libraries/architecture/index.html +- artifact: com.android.support:appcompat-v7:+ + name: Android AppCompat Library v7 + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.android.support:support-fragment:+ + name: Android Support Library v4 + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.android.support:support-fragment:+ + name: Android Support Library fragment + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.android.support:support-annotations:+ + name: Android Support Library Annotations + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.android.support:support-core-ui:+ + name: Android Support Library v4 + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.android.support:animated-vector-drawable:+ + name: Android Support AnimatedVectorDrawable + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.jakewharton.timber:timber:+ + name: Timber + copyrightHolder: Jake Wharton + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: https://github.com/JakeWharton/timber +- artifact: com.android.support:support-annotations:+ + name: Android Support Library Annotations + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.android.support:support-core-ui:+ + name: Android Support Library core UI + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.android.support:appcompat-v7:+ + name: Android AppCompat Library v7 + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: android.arch.lifecycle:runtime:+ + name: Android Lifecycle Runtime + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: https://developer.android.com/topic/libraries/architecture/index.html +- artifact: com.android.support:support-vector-drawable:+ + name: Android Support VectorDrawable + copyrightHolder: The Android Open Source Project + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: android.arch.core:common:+ + name: Android Arch-Common + copyrightHolder: The Android Open Source Projects + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: https://developer.android.com/topic/libraries/architecture/index.html +- artifact: com.android.support:support-core-utils:+ + name: Android Support Library v4 + copyrightHolder: The Android Open Source Projects + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.google.code.gson:gson:+ + name: Gson + copyrightHolder: Google Inc. + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt +- artifact: com.android.support:support-compat:+ + name: Android Support Library compat + copyrightHolder: The Android Open Source Projects + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html +- artifact: com.android.support:animated-vector-drawable:+ + name: Android Support AnimatedVectorDrawable + copyrightHolder: The Android Open Source Projects + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index baa4736..95eb596 100755 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -7,6 +7,9 @@ + + + + - - - Licenses - -

Automatic face blur Licenses

-

-

  • appcompat-v7
    -
    -Apache License
    +    
    + +

    Android Support Library v4

    +

    Copyright © The Android Open Source Project. All rights reserved.

    +

    http://developer.android.com/tools/extras/support-library.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Android Support Library core utils

    +

    Copyright © The Android Open Source Project. All rights reserved.

    +

    http://developer.android.com/tools/extras/support-library.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Android Support Library v4

    +

    Copyright © The Android Open Source Project. All rights reserved.

    +

    http://developer.android.com/tools/extras/support-library.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Android Support Library compat

    +

    Copyright © The Android Open Source Project. All rights reserved.

    +

    http://developer.android.com/tools/extras/support-library.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    AndroidAsync

    +

    Copyright © koush. All rights reserved.

    +

    https://github.com/koush/AndroidAsync

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Android Support VectorDrawable

    +

    Copyright © The Android Open Source Project. All rights reserved.

    +

    http://developer.android.com/tools/extras/support-library.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Android Lifecycle-Common

    +

    Copyright © The Android Open Source Project. All rights reserved.

    +

    https://developer.android.com/topic/libraries/architecture/index.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Android AppCompat Library v7

    +

    Copyright © The Android Open Source Project. All rights reserved.

    +

    http://developer.android.com/tools/extras/support-library.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Android Support Library v4

    +

    Copyright © The Android Open Source Project. All rights reserved.

    +

    http://developer.android.com/tools/extras/support-library.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Android Support Library Annotations

    +

    Copyright © The Android Open Source Project. All rights reserved.

    +

    http://developer.android.com/tools/extras/support-library.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Android Support Library v4

    +

    Copyright © The Android Open Source Project. All rights reserved.

    +

    http://developer.android.com/tools/extras/support-library.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Android Support AnimatedVectorDrawable

    +

    Copyright © The Android Open Source Project. All rights reserved.

    +

    http://developer.android.com/tools/extras/support-library.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Timber

    +

    Copyright © Jake Wharton. All rights reserved.

    +

    https://github.com/JakeWharton/timber

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Android Lifecycle Runtime

    +

    Copyright © The Android Open Source Project. All rights reserved.

    +

    https://developer.android.com/topic/libraries/architecture/index.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Android Arch-Common

    +

    Copyright © The Android Open Source Projects. All rights reserved.

    +

    https://developer.android.com/topic/libraries/architecture/index.html

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    Gson

    +

    Copyright © Google Inc. All rights reserved.

    +

    https://github.com/google/gson

    + +
    +

    + Apache License +
    + Version 2.0, January 2004 +
    + http://www.apache.org/licenses/ +

    +

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    +

    1. Definitions.

    +

    + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

    +

    + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

    +

    + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

    +

    + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

    +

    + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

    +

    + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

    +

    + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

    +

    + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

    +

    + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

    +

    + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

    +
    +

    2. Grant of Copyright License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

    +
    +
    +

    3. Grant of Patent License.

    +

    + Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

    +
    +
    +

    4. Redistribution.

    +

    + You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

    +
    +
      +
    • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
    • +
    • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
    • +
    • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
    • +
    • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
    • +
    +

    + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

    +
    +

    5. Submission of Contributions.

    +

    + Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

    +
    +
    +

    6. Trademarks.

    +

    + This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

    +
    +
    +

    7. Disclaimer of Warranty.

    +

    + Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

    +
    +
    +

    8. Limitation of Liability.

    +

    + In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

    +
    +
    +

    9. Accepting Warranty or Additional Liability.

    +

    + While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

    +
    +

    END OF TERMS AND CONDITIONS

    +

    APPENDIX: How to apply the Apache License to your work.

    +

    + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

    +
    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
      http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    +
    +
    +
    + +

    slick.js

    +

    Copyright © Ken Wheeler All rights reserved.

    +

    https://github.com/kenwheeler/slick

    + +
    +

    + The MIT License +

    +

    Copyright

    +

    + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +

    +

    + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +

    +

    + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +

    +
    +
    +
    + +

    three.js

    +

    Copyright © three.js authors All rights reserved.

    +

    https://github.com/mrdoob/three.js

    + +
    +

    + The MIT License +

    +

    Copyright

    +

    + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +

    +

    + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +

    +

    + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +

    +
    +
    +
    + +

    jquery

    +

    Copyright © JS Foundation and other contributors All rights reserved.

    +

    https://jquery.com/

    + +
    +

    + The MIT License +

    +

    Copyright

    +

    + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +

    +

    + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +

    +

    + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +

    +
    +
    +
    + +

    three-orbit-controls

    +

    Copyright © Matt DesLauriers All rights reserved.

    +

    https://github.com/mattdesl/three-orbit-controls

    + +
    +

    + The MIT License +

    +

    Copyright

    +

    + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +

    +

    + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +

    +

    + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +

    +
    +
    -Version 2.0, January 2004 - -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and -You must cause any modified files to carry prominent notices stating that You changed the files; and -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. - -You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS -
    -
  • sanselan -
    -                                 Apache License
    -                           Version 2.0, January 2004
    -                        http://www.apache.org/licenses/
    -
    -   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
    -
    -   1. Definitions.
    -
    -      "License" shall mean the terms and conditions for use, reproduction,
    -      and distribution as defined by Sections 1 through 9 of this document.
    -
    -      "Licensor" shall mean the copyright owner or entity authorized by
    -      the copyright owner that is granting the License.
    -
    -      "Legal Entity" shall mean the union of the acting entity and all
    -      other entities that control, are controlled by, or are under common
    -      control with that entity. For the purposes of this definition,
    -      "control" means (i) the power, direct or indirect, to cause the
    -      direction or management of such entity, whether by contract or
    -      otherwise, or (ii) ownership of fifty percent (50%) or more of the
    -      outstanding shares, or (iii) beneficial ownership of such entity.
    -
    -      "You" (or "Your") shall mean an individual or Legal Entity
    -      exercising permissions granted by this License.
    -
    -      "Source" form shall mean the preferred form for making modifications,
    -      including but not limited to software source code, documentation
    -      source, and configuration files.
    -
    -      "Object" form shall mean any form resulting from mechanical
    -      transformation or translation of a Source form, including but
    -      not limited to compiled object code, generated documentation,
    -      and conversions to other media types.
    -
    -      "Work" shall mean the work of authorship, whether in Source or
    -      Object form, made available under the License, as indicated by a
    -      copyright notice that is included in or attached to the work
    -      (an example is provided in the Appendix below).
    -
    -      "Derivative Works" shall mean any work, whether in Source or Object
    -      form, that is based on (or derived from) the Work and for which the
    -      editorial revisions, annotations, elaborations, or other modifications
    -      represent, as a whole, an original work of authorship. For the purposes
    -      of this License, Derivative Works shall not include works that remain
    -      separable from, or merely link (or bind by name) to the interfaces of,
    -      the Work and Derivative Works thereof.
    -
    -      "Contribution" shall mean any work of authorship, including
    -      the original version of the Work and any modifications or additions
    -      to that Work or Derivative Works thereof, that is intentionally
    -      submitted to Licensor for inclusion in the Work by the copyright owner
    -      or by an individual or Legal Entity authorized to submit on behalf of
    -      the copyright owner. For the purposes of this definition, "submitted"
    -      means any form of electronic, verbal, or written communication sent
    -      to the Licensor or its representatives, including but not limited to
    -      communication on electronic mailing lists, source code control systems,
    -      and issue tracking systems that are managed by, or on behalf of, the
    -      Licensor for the purpose of discussing and improving the Work, but
    -      excluding communication that is conspicuously marked or otherwise
    -      designated in writing by the copyright owner as "Not a Contribution."
    -
    -      "Contributor" shall mean Licensor and any individual or Legal Entity
    -      on behalf of whom a Contribution has been received by Licensor and
    -      subsequently incorporated within the Work.
    -
    -   2. Grant of Copyright License. Subject to the terms and conditions of
    -      this License, each Contributor hereby grants to You a perpetual,
    -      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
    -      copyright license to reproduce, prepare Derivative Works of,
    -      publicly display, publicly perform, sublicense, and distribute the
    -      Work and such Derivative Works in Source or Object form.
    -
    -   3. Grant of Patent License. Subject to the terms and conditions of
    -      this License, each Contributor hereby grants to You a perpetual,
    -      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
    -      (except as stated in this section) patent license to make, have made,
    -      use, offer to sell, sell, import, and otherwise transfer the Work,
    -      where such license applies only to those patent claims licensable
    -      by such Contributor that are necessarily infringed by their
    -      Contribution(s) alone or by combination of their Contribution(s)
    -      with the Work to which such Contribution(s) was submitted. If You
    -      institute patent litigation against any entity (including a
    -      cross-claim or counterclaim in a lawsuit) alleging that the Work
    -      or a Contribution incorporated within the Work constitutes direct
    -      or contributory patent infringement, then any patent licenses
    -      granted to You under this License for that Work shall terminate
    -      as of the date such litigation is filed.
    -
    -   4. Redistribution. You may reproduce and distribute copies of the
    -      Work or Derivative Works thereof in any medium, with or without
    -      modifications, and in Source or Object form, provided that You
    -      meet the following conditions:
    -
    -      (a) You must give any other recipients of the Work or
    -          Derivative Works a copy of this License; and
    -
    -      (b) You must cause any modified files to carry prominent notices
    -          stating that You changed the files; and
    -
    -      (c) You must retain, in the Source form of any Derivative Works
    -          that You distribute, all copyright, patent, trademark, and
    -          attribution notices from the Source form of the Work,
    -          excluding those notices that do not pertain to any part of
    -          the Derivative Works; and
    -
    -      (d) If the Work includes a "NOTICE" text file as part of its
    -          distribution, then any Derivative Works that You distribute must
    -          include a readable copy of the attribution notices contained
    -          within such NOTICE file, excluding those notices that do not
    -          pertain to any part of the Derivative Works, in at least one
    -          of the following places: within a NOTICE text file distributed
    -          as part of the Derivative Works; within the Source form or
    -          documentation, if provided along with the Derivative Works; or,
    -          within a display generated by the Derivative Works, if and
    -          wherever such third-party notices normally appear. The contents
    -          of the NOTICE file are for informational purposes only and
    -          do not modify the License. You may add Your own attribution
    -          notices within Derivative Works that You distribute, alongside
    -          or as an addendum to the NOTICE text from the Work, provided
    -          that such additional attribution notices cannot be construed
    -          as modifying the License.
    -
    -      You may add Your own copyright statement to Your modifications and
    -      may provide additional or different license terms and conditions
    -      for use, reproduction, or distribution of Your modifications, or
    -      for any such Derivative Works as a whole, provided Your use,
    -      reproduction, and distribution of the Work otherwise complies with
    -      the conditions stated in this License.
    -
    -   5. Submission of Contributions. Unless You explicitly state otherwise,
    -      any Contribution intentionally submitted for inclusion in the Work
    -      by You to the Licensor shall be under the terms and conditions of
    -      this License, without any additional terms or conditions.
    -      Notwithstanding the above, nothing herein shall supersede or modify
    -      the terms of any separate license agreement you may have executed
    -      with Licensor regarding such Contributions.
    -
    -   6. Trademarks. This License does not grant permission to use the trade
    -      names, trademarks, service marks, or product names of the Licensor,
    -      except as required for reasonable and customary use in describing the
    -      origin of the Work and reproducing the content of the NOTICE file.
    -
    -   7. Disclaimer of Warranty. Unless required by applicable law or
    -      agreed to in writing, Licensor provides the Work (and each
    -      Contributor provides its Contributions) on an "AS IS" BASIS,
    -      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    -      implied, including, without limitation, any warranties or conditions
    -      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
    -      PARTICULAR PURPOSE. You are solely responsible for determining the
    -      appropriateness of using or redistributing the Work and assume any
    -      risks associated with Your exercise of permissions under this License.
    -
    -   8. Limitation of Liability. In no event and under no legal theory,
    -      whether in tort (including negligence), contract, or otherwise,
    -      unless required by applicable law (such as deliberate and grossly
    -      negligent acts) or agreed to in writing, shall any Contributor be
    -      liable to You for damages, including any direct, indirect, special,
    -      incidental, or consequential damages of any character arising as a
    -      result of this License or out of the use or inability to use the
    -      Work (including but not limited to damages for loss of goodwill,
    -      work stoppage, computer failure or malfunction, or any and all
    -      other commercial damages or losses), even if such Contributor
    -      has been advised of the possibility of such damages.
    -
    -   9. Accepting Warranty or Additional Liability. While redistributing
    -      the Work or Derivative Works thereof, You may choose to offer,
    -      and charge a fee for, acceptance of support, warranty, indemnity,
    -      or other liability obligations and/or rights consistent with this
    -      License. However, in accepting such obligations, You may act only
    -      on Your own behalf and on Your sole responsibility, not on behalf
    -      of any other Contributor, and only if You agree to indemnify,
    -      defend, and hold each Contributor harmless for any liability
    -      incurred by, or claims asserted against, such Contributor by reason
    -      of your accepting any such warranty or additional liability.
    -
    -   END OF TERMS AND CONDITIONS
    -
    -   APPENDIX: How to apply the Apache License to your work.
    -
    -      To apply the Apache License to your work, attach the following
    -      boilerplate notice, with the fields enclosed by brackets "[]"
    -      replaced with your own identifying information. (Don't include
    -      the brackets!)  The text should be enclosed in the appropriate
    -      comment syntax for the file format. We also recommend that a
    -      file or class name and description of purpose be included on the
    -      same "printed page" as the copyright notice for easier
    -      identification within third-party archives.
    -
    -   Copyright [yyyy] [name of copyright owner]
    -
    -   Licensed under the Apache License, Version 2.0 (the "License");
    -   you may not use this file except in compliance with the License.
    -   You may obtain a copy of the License at
    -
    -       http://www.apache.org/licenses/LICENSE-2.0
    -
    -   Unless required by applicable law or agreed to in writing, software
    -   distributed under the License is distributed on an "AS IS" BASIS,
    -   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    -   See the License for the specific language governing permissions and
    -   limitations under the License.
    -
    - -
  • Timber -
    -
    -                                 Apache License
    -                           Version 2.0, January 2004
    -                        http://www.apache.org/licenses/
    -
    -   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
    -
    -   1. Definitions.
    -
    -      "License" shall mean the terms and conditions for use, reproduction,
    -      and distribution as defined by Sections 1 through 9 of this document.
    -
    -      "Licensor" shall mean the copyright owner or entity authorized by
    -      the copyright owner that is granting the License.
    -
    -      "Legal Entity" shall mean the union of the acting entity and all
    -      other entities that control, are controlled by, or are under common
    -      control with that entity. For the purposes of this definition,
    -      "control" means (i) the power, direct or indirect, to cause the
    -      direction or management of such entity, whether by contract or
    -      otherwise, or (ii) ownership of fifty percent (50%) or more of the
    -      outstanding shares, or (iii) beneficial ownership of such entity.
    -
    -      "You" (or "Your") shall mean an individual or Legal Entity
    -      exercising permissions granted by this License.
    -
    -      "Source" form shall mean the preferred form for making modifications,
    -      including but not limited to software source code, documentation
    -      source, and configuration files.
    -
    -      "Object" form shall mean any form resulting from mechanical
    -      transformation or translation of a Source form, including but
    -      not limited to compiled object code, generated documentation,
    -      and conversions to other media types.
    -
    -      "Work" shall mean the work of authorship, whether in Source or
    -      Object form, made available under the License, as indicated by a
    -      copyright notice that is included in or attached to the work
    -      (an example is provided in the Appendix below).
    -
    -      "Derivative Works" shall mean any work, whether in Source or Object
    -      form, that is based on (or derived from) the Work and for which the
    -      editorial revisions, annotations, elaborations, or other modifications
    -      represent, as a whole, an original work of authorship. For the purposes
    -      of this License, Derivative Works shall not include works that remain
    -      separable from, or merely link (or bind by name) to the interfaces of,
    -      the Work and Derivative Works thereof.
    -
    -      "Contribution" shall mean any work of authorship, including
    -      the original version of the Work and any modifications or additions
    -      to that Work or Derivative Works thereof, that is intentionally
    -      submitted to Licensor for inclusion in the Work by the copyright owner
    -      or by an individual or Legal Entity authorized to submit on behalf of
    -      the copyright owner. For the purposes of this definition, "submitted"
    -      means any form of electronic, verbal, or written communication sent
    -      to the Licensor or its representatives, including but not limited to
    -      communication on electronic mailing lists, source code control systems,
    -      and issue tracking systems that are managed by, or on behalf of, the
    -      Licensor for the purpose of discussing and improving the Work, but
    -      excluding communication that is conspicuously marked or otherwise
    -      designated in writing by the copyright owner as "Not a Contribution."
    -
    -      "Contributor" shall mean Licensor and any individual or Legal Entity
    -      on behalf of whom a Contribution has been received by Licensor and
    -      subsequently incorporated within the Work.
    -
    -   2. Grant of Copyright License. Subject to the terms and conditions of
    -      this License, each Contributor hereby grants to You a perpetual,
    -      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
    -      copyright license to reproduce, prepare Derivative Works of,
    -      publicly display, publicly perform, sublicense, and distribute the
    -      Work and such Derivative Works in Source or Object form.
    -
    -   3. Grant of Patent License. Subject to the terms and conditions of
    -      this License, each Contributor hereby grants to You a perpetual,
    -      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
    -      (except as stated in this section) patent license to make, have made,
    -      use, offer to sell, sell, import, and otherwise transfer the Work,
    -      where such license applies only to those patent claims licensable
    -      by such Contributor that are necessarily infringed by their
    -      Contribution(s) alone or by combination of their Contribution(s)
    -      with the Work to which such Contribution(s) was submitted. If You
    -      institute patent litigation against any entity (including a
    -      cross-claim or counterclaim in a lawsuit) alleging that the Work
    -      or a Contribution incorporated within the Work constitutes direct
    -      or contributory patent infringement, then any patent licenses
    -      granted to You under this License for that Work shall terminate
    -      as of the date such litigation is filed.
    -
    -   4. Redistribution. You may reproduce and distribute copies of the
    -      Work or Derivative Works thereof in any medium, with or without
    -      modifications, and in Source or Object form, provided that You
    -      meet the following conditions:
    -
    -      (a) You must give any other recipients of the Work or
    -          Derivative Works a copy of this License; and
    -
    -      (b) You must cause any modified files to carry prominent notices
    -          stating that You changed the files; and
    -
    -      (c) You must retain, in the Source form of any Derivative Works
    -          that You distribute, all copyright, patent, trademark, and
    -          attribution notices from the Source form of the Work,
    -          excluding those notices that do not pertain to any part of
    -          the Derivative Works; and
    -
    -      (d) If the Work includes a "NOTICE" text file as part of its
    -          distribution, then any Derivative Works that You distribute must
    -          include a readable copy of the attribution notices contained
    -          within such NOTICE file, excluding those notices that do not
    -          pertain to any part of the Derivative Works, in at least one
    -          of the following places: within a NOTICE text file distributed
    -          as part of the Derivative Works; within the Source form or
    -          documentation, if provided along with the Derivative Works; or,
    -          within a display generated by the Derivative Works, if and
    -          wherever such third-party notices normally appear. The contents
    -          of the NOTICE file are for informational purposes only and
    -          do not modify the License. You may add Your own attribution
    -          notices within Derivative Works that You distribute, alongside
    -          or as an addendum to the NOTICE text from the Work, provided
    -          that such additional attribution notices cannot be construed
    -          as modifying the License.
    -
    -      You may add Your own copyright statement to Your modifications and
    -      may provide additional or different license terms and conditions
    -      for use, reproduction, or distribution of Your modifications, or
    -      for any such Derivative Works as a whole, provided Your use,
    -      reproduction, and distribution of the Work otherwise complies with
    -      the conditions stated in this License.
    -
    -   5. Submission of Contributions. Unless You explicitly state otherwise,
    -      any Contribution intentionally submitted for inclusion in the Work
    -      by You to the Licensor shall be under the terms and conditions of
    -      this License, without any additional terms or conditions.
    -      Notwithstanding the above, nothing herein shall supersede or modify
    -      the terms of any separate license agreement you may have executed
    -      with Licensor regarding such Contributions.
    -
    -   6. Trademarks. This License does not grant permission to use the trade
    -      names, trademarks, service marks, or product names of the Licensor,
    -      except as required for reasonable and customary use in describing the
    -      origin of the Work and reproducing the content of the NOTICE file.
    -
    -   7. Disclaimer of Warranty. Unless required by applicable law or
    -      agreed to in writing, Licensor provides the Work (and each
    -      Contributor provides its Contributions) on an "AS IS" BASIS,
    -      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    -      implied, including, without limitation, any warranties or conditions
    -      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
    -      PARTICULAR PURPOSE. You are solely responsible for determining the
    -      appropriateness of using or redistributing the Work and assume any
    -      risks associated with Your exercise of permissions under this License.
    -
    -   8. Limitation of Liability. In no event and under no legal theory,
    -      whether in tort (including negligence), contract, or otherwise,
    -      unless required by applicable law (such as deliberate and grossly
    -      negligent acts) or agreed to in writing, shall any Contributor be
    -      liable to You for damages, including any direct, indirect, special,
    -      incidental, or consequential damages of any character arising as a
    -      result of this License or out of the use or inability to use the
    -      Work (including but not limited to damages for loss of goodwill,
    -      work stoppage, computer failure or malfunction, or any and all
    -      other commercial damages or losses), even if such Contributor
    -      has been advised of the possibility of such damages.
    -
    -   9. Accepting Warranty or Additional Liability. While redistributing
    -      the Work or Derivative Works thereof, You may choose to offer,
    -      and charge a fee for, acceptance of support, warranty, indemnity,
    -      or other liability obligations and/or rights consistent with this
    -      License. However, in accepting such obligations, You may act only
    -      on Your own behalf and on Your sole responsibility, not on behalf
    -      of any other Contributor, and only if You agree to indemnify,
    -      defend, and hold each Contributor harmless for any liability
    -      incurred by, or claims asserted against, such Contributor by reason
    -      of your accepting any such warranty or additional liability.
    -
    -   END OF TERMS AND CONDITIONS
    -
    -   APPENDIX: How to apply the Apache License to your work.
    -
    -      To apply the Apache License to your work, attach the following
    -      boilerplate notice, with the fields enclosed by brackets "[]"
    -      replaced with your own identifying information. (Don't include
    -      the brackets!)  The text should be enclosed in the appropriate
    -      comment syntax for the file format. We also recommend that a
    -      file or class name and description of purpose be included on the
    -      same "printed page" as the copyright notice for easier
    -      identification within third-party archives.
    -
    -   Copyright [yyyy] [name of copyright owner]
    -
    -   Licensed under the Apache License, Version 2.0 (the "License");
    -   you may not use this file except in compliance with the License.
    -   You may obtain a copy of the License at
    -
    -       http://www.apache.org/licenses/LICENSE-2.0
    -
    -   Unless required by applicable law or agreed to in writing, software
    -   distributed under the License is distributed on an "AS IS" BASIS,
    -   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    -   See the License for the specific language governing permissions and
    -   limitations under the License.
    -
    - -
  • AndroidAsync -
    -Copyright 2013 Koushik Dutta (2013)
    -
    -   Licensed under the Apache License, Version 2.0 (the "License");
    -   you may not use this file except in compliance with the License.
    -   You may obtain a copy of the License at
    -
    -       http://www.apache.org/licenses/LICENSE-2.0
    -
    -   Unless required by applicable law or agreed to in writing, software
    -   distributed under the License is distributed on an "AS IS" BASIS,
    -   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    -   See the License for the specific language governing permissions and
    -   limitations under the License.
    -
    -
  • Gson -
    -Copyright 2008 Google Inc.
    -
    -Licensed under the Apache License, Version 2.0 (the "License");
    -you may not use this file except in compliance with the License.
    -You may obtain a copy of the License at
    -
    -    http://www.apache.org/licenses/LICENSE-2.0
    -
    -Unless required by applicable law or agreed to in writing, software
    -distributed under the License is distributed on an "AS IS" BASIS,
    -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    -See the License for the specific language governing permissions and
    -limitations under the License.
    -
    -
  • jQuery -
    -Copyright JS Foundation and other contributors, https://js.foundation/
    -
    -Permission is hereby granted, free of charge, to any person obtaining
    -a copy of this software and associated documentation files (the
    -"Software"), to deal in the Software without restriction, including
    -without limitation the rights to use, copy, modify, merge, publish,
    -distribute, sublicense, and/or sell copies of the Software, and to
    -permit persons to whom the Software is furnished to do so, subject to
    -the following conditions:
    -
    -The above copyright notice and this permission notice shall be
    -included in all copies or substantial portions of the Software.
    -
    -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
    -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
    -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
    -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    -
    -
  • slick.js -
    -Copyright (c) 2017 Ken Wheeler
    -
    -Licensed under the MIT license.
    -
    -Free as in Bacon.
    -
    -
  • three.js -
    -The MIT License
    -
    -Copyright © 2010-2018 three.js authors
    -
    -Permission is hereby granted, free of charge, to any person obtaining a copy
    -of this software and associated documentation files (the "Software"), to deal
    -in the Software without restriction, including without limitation the rights
    -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    -copies of the Software, and to permit persons to whom the Software is
    -furnished to do so, subject to the following conditions:
    -
    -The above copyright notice and this permission notice shall be included in
    -all copies or substantial portions of the Software.
    -
    -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    -THE SOFTWARE.
    -
    - -

    - - - diff --git a/app/src/main/java/com/theta360/automaticfaceblur/MainActivity.java b/app/src/main/java/com/theta360/automaticfaceblur/MainActivity.java index d3826ff..bf23156 100755 --- a/app/src/main/java/com/theta360/automaticfaceblur/MainActivity.java +++ b/app/src/main/java/com/theta360/automaticfaceblur/MainActivity.java @@ -15,6 +15,7 @@ */ package com.theta360.automaticfaceblur; +import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.os.Environment; @@ -31,9 +32,12 @@ import com.theta360.automaticfaceblur.network.model.values.Errors; import com.theta360.automaticfaceblur.network.model.values.State; import com.theta360.automaticfaceblur.network.model.values.Status; +import com.theta360.automaticfaceblur.task.GetCaptureModeTask; +import com.theta360.automaticfaceblur.task.GetExposureDelayTask; import com.theta360.automaticfaceblur.task.GetOptionsTask; import com.theta360.automaticfaceblur.task.GetRemainingSpaceTask; import com.theta360.automaticfaceblur.task.ImageProcessorTask; +import com.theta360.automaticfaceblur.task.SetCaptureModeTask; import com.theta360.automaticfaceblur.task.SetOptionsTask; import com.theta360.automaticfaceblur.task.ShowLiveViewTask; import com.theta360.automaticfaceblur.task.TakePictureTask; @@ -43,6 +47,7 @@ import com.theta360.pluginlibrary.activity.PluginActivity; import com.theta360.pluginlibrary.callback.KeyCallback; import com.theta360.pluginlibrary.receiver.KeyReceiver; +import com.theta360.pluginlibrary.values.Display; import com.theta360.pluginlibrary.values.LedColor; import com.theta360.pluginlibrary.values.LedTarget; @@ -65,6 +70,10 @@ public class MainActivity extends PluginActivity { private GetOptionsTask mGetOptionsTask; private WebServer mWebServer; private UpdatePreviewTask mUpdatePreviewTask; + private String mCaptureMode; + private int mExposureDelay; + private static final String IMAGE = "image"; + private boolean mIsStarted; /** * Set a KeyCallback when onCreate executes. @@ -106,7 +115,13 @@ public void onKeyLongPress(int keyCode, KeyEvent event) { } }); - new GetRemainingSpaceTask(mGetRemainingSpaceTaskCallback).execute(); + if (isZ1()) { + notificationOledDisplaySet(Display.BASIC); + } else { + new GetRemainingSpaceTask(mGetRemainingSpaceTaskCallback).execute(); + } + mIsStarted = true; + new GetCaptureModeTask(mGetCaptureModeTaskCallback).execute(); } /** @@ -137,9 +152,12 @@ protected void onPause() { mUpdatePreviewTask.cancel(false); mUpdatePreviewTask = null; } + setAutoClose(false); + new SetCaptureModeTask(mSetCaptureModeTaskCallback, mCaptureMode, mExposureDelay, mIsStarted).execute(); mWebServer.stop(); setAutoClose(true); super.onPause(); + } /** @@ -155,7 +173,12 @@ public void onPreExecute() { public void onPictureGenerated(String fileUrl) { if (!TextUtils.isEmpty(fileUrl)) { notificationAudioOpen(); - notificationLedBlink(LedTarget.LED4, LedColor.BLUE, 1000); + if (isZ1()) { + notificationOledDisplaySet(Display.PLUGIN); + notificationOledTextShow("Processing", ""); + } else { + notificationLedBlink(LedTarget.LED4, LedColor.BLUE, 1000); + } mImageProcessorTask = new ImageProcessorTask(mImageProcessorTaskCallback); mImageProcessorTask.execute(fileUrl); } else { @@ -166,7 +189,7 @@ public void onPictureGenerated(String fileUrl) { @Override public void onSendCommand(AsyncHttpServerResponse response, CommandsRequest commandsRequest, - Errors errors) { + Errors errors) { if (mWebServer != null && response != null && commandsRequest != null) { CommandsName commandsName = commandsRequest.getCommandsName(); if (errors == null) { @@ -201,7 +224,7 @@ public void onTakePictureFailed() { SetOptionsTask.Callback mSetOptionsTaskCallback = new SetOptionsTask.Callback() { @Override public void onSendCommand(AsyncHttpServerResponse response, CommandsRequest commandsRequest, - Errors errors) { + Errors errors) { if (mWebServer != null && response != null && commandsRequest != null) { CommandsName commandsName = commandsRequest.getCommandsName(); if (errors == null) { @@ -222,8 +245,8 @@ public void onSendCommand(AsyncHttpServerResponse response, CommandsRequest comm GetOptionsTask.Callback mGetOptionsTaskCallback = new GetOptionsTask.Callback() { @Override public void onSendCommand(String responseData, AsyncHttpServerResponse response, - CommandsRequest commandsRequest, - Errors errors) { + CommandsRequest commandsRequest, + Errors errors) { if (mWebServer != null && response != null && commandsRequest != null) { CommandsName commandsName = commandsRequest.getCommandsName(); if (errors == null) { @@ -242,17 +265,17 @@ public void onSendCommand(String responseData, AsyncHttpServerResponse response, ShowLiveViewTask.Callback mShowLiveViewTaskCallback = new ShowLiveViewTask.Callback() { @Override public void onLivePreview(MJpegInputStream mJpegInputStream, - AsyncHttpServerResponse response, CommandsRequest commandsRequest, - Errors errors) { + AsyncHttpServerResponse response, CommandsRequest commandsRequest, + Errors errors) { CommandsName commandsName = CommandsName.START_LIVE_PREVIEW; if (errors == null) { - if (mUpdatePreviewTask != null) { - mUpdatePreviewTask.cancel(false); - } + if (mUpdatePreviewTask != null) { + mUpdatePreviewTask.cancel(false); + } - mUpdatePreviewTask = new UpdatePreviewTask(mSendPreviewTaskCallback, - mJpegInputStream); - mUpdatePreviewTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); + mUpdatePreviewTask = new UpdatePreviewTask(mSendPreviewTaskCallback, + mJpegInputStream); + mUpdatePreviewTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); CommandsResponse commandsResponse = new CommandsResponse(commandsName, State.DONE); mWebServer.sendCommandsResponse(response, commandsResponse); @@ -300,7 +323,11 @@ public void onSuccess(Map fileUrlMap) { } mImageProcessorTask = null; notificationAudioClose(); - notificationLedShow(LedTarget.LED4); + if (isZ1()) { + notificationOledDisplaySet(Display.BASIC); + } else { + notificationLedShow(LedTarget.LED4); + } } @Override @@ -333,6 +360,44 @@ public void onError() { } }; + private SetCaptureModeTask.Callback mSetCaptureModeTaskCallback = new SetCaptureModeTask.Callback() { + @Override + public void onSetExposureDelay() { + setAutoClose(true); + } + + @Override + public void onSetExposureDelayFailed(Errors errors) { + if (errors != null) { + notificationError(errors.getMessage()); + } + } + + @Override + public void onSetCaptureModeFailed(Errors errors) { + if (errors != null) { + notificationError(errors.getMessage()); + } + } + }; + + private GetCaptureModeTask.Callback mGetCaptureModeTaskCallback = new GetCaptureModeTask.Callback() { + @Override + public void onGetCaptureMode(String captureMode) { + mCaptureMode = captureMode; + new GetExposureDelayTask(mGetExposureDelayTaskCallback).execute(); + } + }; + + private GetExposureDelayTask.Callback mGetExposureDelayTaskCallback = new GetExposureDelayTask.Callback() { + @Override + public void onGetExposureDelay(int exposureDelay) { + mExposureDelay = exposureDelay; + new SetCaptureModeTask(mSetCaptureModeTaskCallback, IMAGE, 0, mIsStarted).execute(); + mIsStarted = false; + } + }; + /** * WebServer Callback */ @@ -340,7 +405,7 @@ public void onError() { @Override public void commandsRequest(AsyncHttpServerResponse response, - CommandsRequest commandsRequest) { + CommandsRequest commandsRequest) { CommandsName commandsName = commandsRequest.getCommandsName(); Timber.d("commandsName : %s", commandsName.toString()); switch (commandsName) { diff --git a/app/src/main/java/com/theta360/automaticfaceblur/network/HttpConnector.java b/app/src/main/java/com/theta360/automaticfaceblur/network/HttpConnector.java index b2505c2..c7a2c76 100755 --- a/app/src/main/java/com/theta360/automaticfaceblur/network/HttpConnector.java +++ b/app/src/main/java/com/theta360/automaticfaceblur/network/HttpConnector.java @@ -38,6 +38,7 @@ public class HttpConnector { private final static long CHECK_STATUS_PERIOD_MS = 50; private final static String IP_ADDRESS = "127.0.0.1:8080"; + private static final String IMAGE = "image"; private Timer mCheckStatusTimer = null; private HttpEventListener mHttpEventListener = null; @@ -59,19 +60,6 @@ public HttpConnector() { public ShootResult takePicture(HttpEventListener listener) { ShootResult result = ShootResult.FAIL_DEVICE_BUSY; - // set capture mode to image - String setCaptureModeErrorMessage = setImageCaptureMode(); - String setExposureDelayErrorMessage = setExposureDelay(); - if (setCaptureModeErrorMessage != null || setExposureDelayErrorMessage != null) { - if (setCaptureModeErrorMessage != null) { - listener.onError(setCaptureModeErrorMessage); - } else { - listener.onError(setExposureDelayErrorMessage); - } - result = ShootResult.FAIL_DEVICE_BUSY; - return result; - } - HttpURLConnection postConnection = createHttpConnection("POST", "/osc/commands/execute"); JSONObject input = new JSONObject(); String responseData; @@ -186,7 +174,7 @@ private String checkCaptureStatus(String commandId) { * * @return Error message (null is returned if successful) */ - private String setImageCaptureMode() { + public String setCaptureMode(String captureMode) { String errorMessage; try { @@ -195,7 +183,7 @@ private String setImageCaptureMode() { input.put("name", "camera.setOptions"); JSONObject parameters = new JSONObject(); JSONObject options = new JSONObject(); - options.put("captureMode", "image"); + options.put("captureMode", captureMode); parameters.put("options", options); input.put("parameters", parameters); @@ -358,7 +346,7 @@ public String getOptions(String commands) { * * @return errorMessage */ - public String setExposureDelay() { + public String setExposureDelay(int exposureDelay) { HttpURLConnection postConnection = createHttpConnection("POST", "/osc/commands/execute"); String responseData; String errorMessage = null; @@ -370,7 +358,7 @@ public String setExposureDelay() { input.put("name", "camera.setOptions"); JSONObject parameters = new JSONObject(); JSONObject options = new JSONObject(); - options.put("exposureDelay", 0); + options.put("exposureDelay", exposureDelay); parameters.put("options", options); input.put("parameters", parameters); @@ -534,7 +522,7 @@ public void run() { public InputStream getLivePreview() throws IOException, JSONException { // set capture mode to image - setImageCaptureMode(); + setCaptureMode(IMAGE); HttpURLConnection postConnection = createHttpConnection("POST", "/osc/commands/execute"); JSONObject input = new JSONObject(); @@ -658,4 +646,104 @@ public long getRemainingSpaces() { return remainingSpace; } + + public int getExposureDelay() { + String optionName = "exposureDelay"; + JSONObject options = getOptionsJSON(optionName); + int exposureDelay = 0; + try { + exposureDelay = options.getInt(optionName); + } catch (JSONException e) { + e.printStackTrace(); + } + return exposureDelay; + } + + public String getCaptureMode() { + String optionName = "captureMode"; + JSONObject options = getOptionsJSON(optionName); + String captureMode = null; + try { + captureMode = options.getString(optionName); + } catch (JSONException e) { + e.printStackTrace(); + } + return captureMode; + } + + private JSONObject getOptionsJSON(String optionName) { + HttpURLConnection postConnection = createHttpConnection("POST", "/osc/commands/execute"); + JSONObject input = new JSONObject(); + String responseData; + String errorMessage = null; + InputStream is = null; + JSONObject options = null; + + try { + // send HTTP POST + input.put("name", "camera.getOptions"); + JSONObject parameters = new JSONObject(); + JSONArray optionNames = new JSONArray(); + optionNames.put(optionName); + parameters.put("optionNames", optionNames); + input.put("parameters", parameters); + + OutputStream os = postConnection.getOutputStream(); + os.write(input.toString().getBytes()); + postConnection.connect(); + os.flush(); + os.close(); + + is = postConnection.getInputStream(); + responseData = InputStreamToString(is); + + // parse JSON data + JSONObject output = new JSONObject(responseData); + options = output.getJSONObject("results").getJSONObject("options"); + + String status = output.getString("state"); + + if (status.equals("error")) { + JSONObject errors = output.getJSONObject("error"); + errorMessage = errors.getString("message"); + } + } catch (IOException e) { + e.printStackTrace(); + errorMessage = e.toString(); + InputStream es = postConnection.getErrorStream(); + try { + if (es != null) { + String errorData = InputStreamToString(es); + JSONObject output = new JSONObject(errorData); + JSONObject errors = output.getJSONObject("error"); + errorMessage = errors.getString("message"); + } + } catch (IOException e1) { + e1.printStackTrace(); + } catch (JSONException e1) { + e1.printStackTrace(); + } finally { + if (es != null) { + try { + es.close(); + } catch (IOException e1) { + e1.printStackTrace(); + } + } + } + } catch (JSONException e) { + e.printStackTrace(); + errorMessage = e.toString(); + } finally { + if (is != null) { + try { + is.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + } + + return options; + } } diff --git a/app/src/main/java/com/theta360/automaticfaceblur/task/GetCaptureModeTask.java b/app/src/main/java/com/theta360/automaticfaceblur/task/GetCaptureModeTask.java new file mode 100644 index 0000000..400809e --- /dev/null +++ b/app/src/main/java/com/theta360/automaticfaceblur/task/GetCaptureModeTask.java @@ -0,0 +1,56 @@ +/** + * Copyright 2018 Ricoh Company, Ltd. + *

    + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

    + * http://www.apache.org/licenses/LICENSE-2.0 + *

    + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.theta360.automaticfaceblur.task; + +import android.os.AsyncTask; + +import com.theta360.automaticfaceblur.network.HttpConnector; + +public class GetCaptureModeTask extends AsyncTask { + private Callback mCallback; + private HttpConnector mCamera; + + public GetCaptureModeTask(Callback callback) { + this.mCallback = callback; + } + + + @Override + protected void onPreExecute() { + + } + + @Override + protected String doInBackground(Void... params) { + mCamera = new HttpConnector(); + return mCamera.getCaptureMode(); + } + + @Override + protected void onPostExecute(String captureMode) { + mCallback.onGetCaptureMode(captureMode); + } + + @Override + protected void onCancelled(String result) { + mCamera = null; + } + + public interface Callback { + void onGetCaptureMode(String captureMode); + } +} diff --git a/app/src/main/java/com/theta360/automaticfaceblur/task/GetExposureDelayTask.java b/app/src/main/java/com/theta360/automaticfaceblur/task/GetExposureDelayTask.java new file mode 100644 index 0000000..ca45e0e --- /dev/null +++ b/app/src/main/java/com/theta360/automaticfaceblur/task/GetExposureDelayTask.java @@ -0,0 +1,58 @@ +/** + * Copyright 2018 Ricoh Company, Ltd. + *

    + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

    + * http://www.apache.org/licenses/LICENSE-2.0 + *

    + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.theta360.automaticfaceblur.task; + +import android.os.AsyncTask; + +import com.theta360.automaticfaceblur.network.HttpConnector; + +public class GetExposureDelayTask extends AsyncTask { + private Callback mCallback; + private HttpConnector mCamera; + private int mLatestEnabledExposureDelayTime; + + public GetExposureDelayTask(Callback callback) { + this.mCallback = callback; + } + + @Override + protected void onPreExecute() { + + } + + @Override + protected Integer doInBackground(Void... params) { + mCamera = new HttpConnector(); + return mLatestEnabledExposureDelayTime = mCamera.getExposureDelay(); + + } + + @Override + protected void onPostExecute(Integer latestEnabledExposureDelayTime) { + mCallback.onGetExposureDelay(mLatestEnabledExposureDelayTime); + } + + @Override + protected void onCancelled(Integer result) { + mCamera = null; + } + + public interface Callback { + void onGetExposureDelay(int exposureDelay); + } + +} diff --git a/app/src/main/java/com/theta360/automaticfaceblur/task/ImageProcessorTask.java b/app/src/main/java/com/theta360/automaticfaceblur/task/ImageProcessorTask.java index 134c19c..f6015c7 100755 --- a/app/src/main/java/com/theta360/automaticfaceblur/task/ImageProcessorTask.java +++ b/app/src/main/java/com/theta360/automaticfaceblur/task/ImageProcessorTask.java @@ -29,6 +29,7 @@ import com.theta360.automaticfaceblur.Face; import com.theta360.automaticfaceblur.exif.Exif; + import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; @@ -38,6 +39,7 @@ import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; + import timber.log.Timber; /** @@ -45,9 +47,11 @@ */ public class ImageProcessorTask extends AsyncTask> { //Divide the equirectangular image into similar four parts, the rightmost x coordinate of the leftmost part. - private static final int RIGHTMOST_OF_LEFT_IMAGE = 1344; + private int mRightmostOfLeftImage; + private static final double ONE_QUARTER_OF_EQUI = 0.25; //Divide the equirectangular image into similar four, the leftmost x coordinate of the rightmost part. - private static final int LEFTMOST_OF_RIGHT_IMAGE = 4032; + private int mLeftmostOfRightImage; + private static final double THREE_QUARTERS_OF_EQUI = 0.75; //Maximum of faces can be detected. private static final int MAX_FACE = 256; public static final String BLURRED_FILE_KEY = "blurred_file_url"; @@ -165,6 +169,10 @@ private void inputFile(String fileUrl) throws IOException { //To make Android API FaceDetector effective, Bitmap.Config.RGB_565 is used. options.inPreferredConfig = Bitmap.Config.RGB_565; mBitmapToDetectFace = BitmapFactory.decodeStream(fileInputStream, null, options); + mRightmostOfLeftImage = getRightmostOfLeftImage(); + Timber.d("mRightmostOfLeftImage %d", mRightmostOfLeftImage); + mLeftmostOfRightImage = getLeftmostOfRightImage(); + Timber.d("mLeftmostOfRightImage %d", mLeftmostOfRightImage); } try (FileInputStream fileInputStream = new FileInputStream(fileUrl)) { @@ -234,7 +242,7 @@ private void blurFacesOnSides() { //If start x coordinate of left eye on the right side of the bitmap and blur to draw will exceed the width of bitmap //or start x coordinate of right eye will exceed the width of bitmap, adjust coordinate. - if ((leftEyeBlurStartX >= LEFTMOST_OF_RIGHT_IMAGE + if ((leftEyeBlurStartX >= mLeftmostOfRightImage && leftEyeBlurStartX + width >= mBitmapToDetectFace.getWidth()) || rightEyeBlurStartX < 0) { //Remove gap between blur and the edge of bitmap. @@ -246,14 +254,14 @@ private void blurFacesOnSides() { //If start x coordinate of right eye on the left side of the bitmap and start x coordinate of left eye on the right side of the bitmap //or start x coordinate of right eye will exceed the width of bitmap, adjust coordinate. - if (rightEyeBlurStartX < 0 || (rightEyeBlurStartX <= RIGHTMOST_OF_LEFT_IMAGE - && leftEyeBlurStartX >= LEFTMOST_OF_RIGHT_IMAGE)) { + if (rightEyeBlurStartX < 0 || (rightEyeBlurStartX <= mRightmostOfLeftImage + && leftEyeBlurStartX >= mLeftmostOfRightImage)) { rightEyeBlurStartX = 0; } //If start x coordinate of right eye on the right side of the bitmap and blur to draw will exceed the width of bitmap, //adjust coordinate. - if (rightEyeBlurStartX >= LEFTMOST_OF_RIGHT_IMAGE + if (rightEyeBlurStartX >= mLeftmostOfRightImage && rightEyeBlurStartX + width >= mBitmapToDetectFace.getWidth()) { //Remove gap between blur and the edge of bitmap. while (width % 32 != 0) { @@ -307,7 +315,7 @@ private ArrayList calculateCoordinateOfEyes() { FaceDetector faceDetector = new FaceDetector(compositedImage.getWidth(), compositedImage.getHeight(), MAX_FACE); int faceIsFound = faceDetector.findFaces(compositedImage, faces); - int middleOfCompositeImage = RIGHTMOST_OF_LEFT_IMAGE; + int middleOfCompositeImage = mRightmostOfLeftImage; //Calculate coordinate of left eye and right eye. for (int index = 0; index < faceIsFound; index++) { @@ -342,8 +350,8 @@ private ArrayList calculateCoordinateOfEyes() { * * @param blurStartX start X coordinate of the blur * @param blurStartY start Y coordinate of the blur - * @param width width of the blur - * @param height height of the blur + * @param width width of the blur + * @param height height of the blur */ private void blur(int blurStartX, int blurStartY, int width, int height) { if (!isCancelled()) { @@ -389,6 +397,14 @@ private void blur(int blurStartX, int blurStartY, int width, int height) { } } + private int getRightmostOfLeftImage() { + return (int) (mBitmapToDetectFace.getWidth() * ONE_QUARTER_OF_EQUI); + } + + private int getLeftmostOfRightImage() { + return (int) (mBitmapToDetectFace.getWidth() * THREE_QUARTERS_OF_EQUI); + } + /** * Interface of Callback. */ diff --git a/app/src/main/java/com/theta360/automaticfaceblur/task/SetCaptureModeTask.java b/app/src/main/java/com/theta360/automaticfaceblur/task/SetCaptureModeTask.java new file mode 100644 index 0000000..638a375 --- /dev/null +++ b/app/src/main/java/com/theta360/automaticfaceblur/task/SetCaptureModeTask.java @@ -0,0 +1,97 @@ +/** + * Copyright 2018 Ricoh Company, Ltd. + *

    + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

    + * http://www.apache.org/licenses/LICENSE-2.0 + *

    + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.theta360.automaticfaceblur.task; + +import android.os.AsyncTask; + +import com.theta360.automaticfaceblur.network.HttpConnector; +import com.theta360.automaticfaceblur.network.model.values.Errors; + +public class SetCaptureModeTask extends AsyncTask { + private static final String STREAMING = "streaming"; + private static final String VIDEO = "video"; + private static final String SERVICE_UNAVAILABLE = "Service Unavailable."; + private Callback mCallback; + private HttpConnector mCamera; + private String mCaptureMode; + private int mExposureDelay; + private boolean mIsStart; + + public SetCaptureModeTask(Callback callback, String captureMode, int exposureDelay, boolean isStart) { + this.mCallback = callback; + this.mCaptureMode = captureMode; + this.mExposureDelay = exposureDelay; + this.mIsStart = isStart; + } + + + @Override + protected void onPreExecute() { + + } + + @Override + protected String doInBackground(Void... params) { + if (mCaptureMode.equals(STREAMING)) { + mCaptureMode = VIDEO; + } + mCamera = new HttpConnector(); + int exposureDelay; + if (mIsStart) { + exposureDelay = 0; + } else { + exposureDelay = mExposureDelay; + } + if (mCaptureMode.equals(STREAMING)) { + mCaptureMode = VIDEO; + } + String errorMessage = mCamera.setCaptureMode(mCaptureMode); + if (errorMessage != null) { + mCallback.onSetCaptureModeFailed(Errors.UNEXPECTED); + } + return mCamera.setExposureDelay(exposureDelay); + } + + @Override + protected void onPostExecute(String errorMessage) { + Errors errors; + if (errorMessage == null) { + mCallback.onSetExposureDelay(); + } else { + if (errorMessage.equals(SERVICE_UNAVAILABLE)) { + errors = Errors.SERVICE_UNAVAILABLE; + } else { + errors = Errors.UNEXPECTED; + } + mCallback.onSetExposureDelayFailed(errors); + } + } + + @Override + protected void onCancelled(String result) { + mCamera = null; + } + + public interface Callback { + void onSetExposureDelay(); + + void onSetExposureDelayFailed(Errors errors); + + void onSetCaptureModeFailed(Errors errors); + } + +} diff --git a/pluginlibrary/.gitignore b/pluginlibrary/.gitignore old mode 100755 new mode 100644 diff --git a/pluginlibrary/build.gradle b/pluginlibrary/build.gradle old mode 100755 new mode 100644 index e41e16b..87b4c78 --- a/pluginlibrary/build.gradle +++ b/pluginlibrary/build.gradle @@ -6,8 +6,8 @@ android { defaultConfig { minSdkVersion 25 targetSdkVersion 25 - versionCode 4 - versionName "1.0.2" + versionCode 6 + versionName "2.0.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } @@ -26,9 +26,8 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'com.android.support:appcompat-v7:25.4.0' testImplementation 'junit:junit:4.12' - androidTestImplementation 'com.android.support.test:runner:1.0.2' - androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' + androidTestImplementation 'com.android.support.test:runner:1.0.1' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' } diff --git a/pluginlibrary/proguard-rules.pro b/pluginlibrary/proguard-rules.pro old mode 100755 new mode 100644 diff --git a/pluginlibrary/src/androidTest/java/com/theta360/pluginlibrary/ExampleInstrumentedTest.java b/pluginlibrary/src/androidTest/java/com/theta360/pluginlibrary/ExampleInstrumentedTest.java old mode 100755 new mode 100644 diff --git a/pluginlibrary/src/main/AndroidManifest.xml b/pluginlibrary/src/main/AndroidManifest.xml old mode 100755 new mode 100644 diff --git a/pluginlibrary/src/main/java/com/theta360/pluginlibrary/UncaughtException.java b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/UncaughtException.java old mode 100755 new mode 100644 diff --git a/pluginlibrary/src/main/java/com/theta360/pluginlibrary/activity/Constants.java b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/activity/Constants.java new file mode 100644 index 0000000..43039df --- /dev/null +++ b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/activity/Constants.java @@ -0,0 +1,53 @@ +package com.theta360.pluginlibrary.activity; + +/** + * Constants + */ +final class Constants { + static final String RECEPTOR = "com.theta360.receptor"; + static final String MODEL_V = "RICOH THETA V"; + static final String MODEL_Z1 = "RICOH THETA Z1"; + + static final String ACTION_MAIN_CAMERA_CLOSE = "com.theta360.plugin.ACTION_MAIN_CAMERA_CLOSE"; + static final String ACTION_MAIN_CAMERA_OPEN = "com.theta360.plugin.ACTION_MAIN_CAMERA_OPEN"; + static final String ACTION_FINISH_PLUGIN = "com.theta360.plugin.ACTION_FINISH_PLUGIN"; + static final String ACTION_ERROR_OCCURED = "com.theta360.plugin.ACTION_ERROR_OCCURED"; + static final String PACKAGE_NAME = "packageName"; + static final String EXIT_STATUS = "exitStatus"; + static final String MESSAGE = "message"; + + static final String ACTION_LED_SHOW = "com.theta360.plugin.ACTION_LED_SHOW"; + static final String ACTION_LED_BLINK = "com.theta360.plugin.ACTION_LED_BLINK"; + static final String ACTION_LED_HIDE = "com.theta360.plugin.ACTION_LED_HIDE"; + static final String TARGET = "target"; + static final String COLOR = "color"; + static final String PERIOD = "period"; + + static final String ACTION_AUDIO_SHUTTER = "com.theta360.plugin.ACTION_AUDIO_SHUTTER"; + static final String ACTION_AUDIO_SH_OPEN = "com.theta360.plugin.ACTION_AUDIO_SH_OPEN"; + static final String ACTION_AUDIO_SH_CLOSE = "com.theta360.plugin.ACTION_AUDIO_SH_CLOSE"; + static final String ACTION_AUDIO_MOVSTART = "com.theta360.plugin.ACTION_AUDIO_MOVSTART"; + static final String ACTION_AUDIO_MOVSTOP = "com.theta360.plugin.ACTION_AUDIO_MOVSTOP"; + static final String ACTION_AUDIO_SELF = "com.theta360.plugin.ACTION_AUDIO_SELF"; + static final String ACTION_AUDIO_WARNING = "com.theta360.plugin.ACTION_AUDIO_WARNING"; + + static final String ACTION_WLAN_OFF = "com.theta360.plugin.ACTION_WLAN_OFF"; + static final String ACTION_WLAN_AP = "com.theta360.plugin.ACTION_WLAN_AP"; + static final String ACTION_WLAN_CL = "com.theta360.plugin.ACTION_WLAN_CL"; + + static final String ACTION_DATABASE_UPDATE = "com.theta360.plugin.ACTION_DATABASE_UPDATE"; + static final String TARGETS = "targets"; + + static final String ACTION_OLED_DISPLAY_SET = "com.theta360.plugin.ACTION_OLED_DISPLAY_SET"; + static final String DISPLAY = "display"; + static final String ACTION_OLED_IMAGE_SHOW = "com.theta360.plugin.ACTION_OLED_IMAGE_SHOW"; + static final String ACTION_OLED_IMAGE_BLINK = "com.theta360.plugin.ACTION_OLED_IMAGE_BLINK"; + static final String BITMAP = "bitmap"; + static final String ACTION_OLED_TEXT_SHOW = "com.theta360.plugin.ACTION_OLED_TEXT_SHOW"; + static final String TEXT_MIDDLE = "text-middle"; + static final String TEXT_BOTTOM = "text-bottom"; + static final String ACTION_OLED_HIDE = "com.theta360.plugin.ACTION_OLED_HIDE"; + + static final String USER_OPTION = "USER_OPTION"; + static final String IS_AP_CONNECTED = "IS_AP_CONNECTED"; +} diff --git a/pluginlibrary/src/main/java/com/theta360/pluginlibrary/activity/PluginActivity.java b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/activity/PluginActivity.java old mode 100755 new mode 100644 index 477920a..7ab943a --- a/pluginlibrary/src/main/java/com/theta360/pluginlibrary/activity/PluginActivity.java +++ b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/activity/PluginActivity.java @@ -19,6 +19,12 @@ import android.content.Intent; import android.content.IntentFilter; import android.content.pm.ActivityInfo; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.content.pm.PackageManager.NameNotFoundException; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.os.Build; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; @@ -27,6 +33,7 @@ import com.theta360.pluginlibrary.UncaughtException.Callback; import com.theta360.pluginlibrary.callback.KeyCallback; import com.theta360.pluginlibrary.receiver.KeyReceiver; +import com.theta360.pluginlibrary.values.Display; import com.theta360.pluginlibrary.values.ExitStatus; import com.theta360.pluginlibrary.values.LedColor; import com.theta360.pluginlibrary.values.LedTarget; @@ -35,39 +42,11 @@ * PluginActivity */ public abstract class PluginActivity extends AppCompatActivity { - private static final String ACTION_MAIN_CAMERA_CLOSE = "com.theta360.plugin.ACTION_MAIN_CAMERA_CLOSE"; - private static final String ACTION_MAIN_CAMERA_OPEN = "com.theta360.plugin.ACTION_MAIN_CAMERA_OPEN"; - private static final String ACTION_FINISH_PLUGIN = "com.theta360.plugin.ACTION_FINISH_PLUGIN"; - private static final String ACTION_ERROR_OCCURED = "com.theta360.plugin.ACTION_ERROR_OCCURED"; - private static final String PACKAGE_NAME = "packageName"; - private static final String EXIT_STATUS = "exitStatus"; - private static final String MESSAGE = "message"; - - private static final String ACTION_LED_SHOW = "com.theta360.plugin.ACTION_LED_SHOW"; - private static final String ACTION_LED_BLINK = "com.theta360.plugin.ACTION_LED_BLINK"; - private static final String ACTION_LED_HIDE = "com.theta360.plugin.ACTION_LED_HIDE"; - private static final String TARGET = "target"; - private static final String COLOR = "color"; - private static final String PERIOD = "period"; - - private static final String ACTION_AUDIO_SHUTTER = "com.theta360.plugin.ACTION_AUDIO_SHUTTER"; - private static final String ACTION_AUDIO_SH_OPEN = "com.theta360.plugin.ACTION_AUDIO_SH_OPEN"; - private static final String ACTION_AUDIO_SH_CLOSE = "com.theta360.plugin.ACTION_AUDIO_SH_CLOSE"; - private static final String ACTION_AUDIO_MOVSTART = "com.theta360.plugin.ACTION_AUDIO_MOVSTART"; - private static final String ACTION_AUDIO_MOVSTOP = "com.theta360.plugin.ACTION_AUDIO_MOVSTOP"; - private static final String ACTION_AUDIO_SELF = "com.theta360.plugin.ACTION_AUDIO_SELF"; - private static final String ACTION_AUDIO_WARNING = "com.theta360.plugin.ACTION_AUDIO_WARNING"; - - private static final String ACTION_WLAN_OFF = "com.theta360.plugin.ACTION_WLAN_OFF"; - private static final String ACTION_WLAN_AP = "com.theta360.plugin.ACTION_WLAN_AP"; - private static final String ACTION_WLAN_CL = "com.theta360.plugin.ACTION_WLAN_CL"; - - private static final String ACTION_DATABASE_UPDATE = "com.theta360.plugin.ACTION_DATABASE_UPDATE"; - private static final String TARGETS = "targets"; - private boolean isCamera = false; private boolean isAutoClose = true; - private boolean isClosed = false; + private String mUserOption; + private boolean isApConnected = false; + private KeyCallback mKeyCallback; private KeyReceiver mKeyReceiver; private KeyReceiver.Callback onKeyReceiver = new KeyReceiver.Callback() { @@ -119,6 +98,12 @@ public void onException(String message) { protected void onResume() { super.onResume(); + Intent intent = getIntent(); + if (intent != null) { + mUserOption = intent.getStringExtra(Constants.USER_OPTION); + isApConnected = intent.getBooleanExtra(Constants.IS_AP_CONNECTED, false); + } + mKeyReceiver = new KeyReceiver(onKeyReceiver); IntentFilter keyFilter = new IntentFilter(); keyFilter.addAction(KeyReceiver.ACTION_KEY_DOWN); @@ -128,9 +113,6 @@ protected void onResume() { @Override protected void onPause() { - if (!isClosed) { - close(); - } unregisterReceiver(mKeyReceiver); super.onPause(); @@ -153,70 +135,77 @@ public void setAutoClose(boolean autoClose) { * End processing */ public void close() { - isClosed = true; if (isCamera) { notificationCameraOpen(); } notificationSuccess(); } + public String getUserOption() { + return mUserOption; + } + + public boolean isApConnected() { + return isApConnected; + } + public void notificationCameraOpen() { isCamera = false; - sendBroadcast(new Intent(ACTION_MAIN_CAMERA_OPEN)); + sendBroadcast(new Intent(Constants.ACTION_MAIN_CAMERA_OPEN)); } public void notificationCameraClose() { isCamera = true; - sendBroadcast(new Intent(ACTION_MAIN_CAMERA_CLOSE)); + sendBroadcast(new Intent(Constants.ACTION_MAIN_CAMERA_CLOSE)); } /** * Sound of normal capture */ public void notificationAudioShutter() { - sendBroadcast(new Intent(ACTION_AUDIO_SHUTTER)); + sendBroadcast(new Intent(Constants.ACTION_AUDIO_SHUTTER)); } /** * Sound of starting long exposure capture */ public void notificationAudioOpen() { - sendBroadcast(new Intent(ACTION_AUDIO_SH_OPEN)); + sendBroadcast(new Intent(Constants.ACTION_AUDIO_SH_OPEN)); } /** * Sound of ending long exposure capture */ public void notificationAudioClose() { - sendBroadcast(new Intent(ACTION_AUDIO_SH_CLOSE)); + sendBroadcast(new Intent(Constants.ACTION_AUDIO_SH_CLOSE)); } /** * Sound of starting movie recording */ public void notificationAudioMovStart() { - sendBroadcast(new Intent(ACTION_AUDIO_MOVSTART)); + sendBroadcast(new Intent(Constants.ACTION_AUDIO_MOVSTART)); } /** * Sound of stopping movie recording */ public void notificationAudioMovStop() { - sendBroadcast(new Intent(ACTION_AUDIO_MOVSTOP)); + sendBroadcast(new Intent(Constants.ACTION_AUDIO_MOVSTOP)); } /** * Sound of working self-timer */ public void notificationAudioSelf() { - sendBroadcast(new Intent(ACTION_AUDIO_SELF)); + sendBroadcast(new Intent(Constants.ACTION_AUDIO_SELF)); } /** * Sound of warning */ public void notificationAudioWarning() { - sendBroadcast(new Intent(ACTION_AUDIO_WARNING)); + sendBroadcast(new Intent(Constants.ACTION_AUDIO_WARNING)); } /** @@ -225,9 +214,9 @@ public void notificationAudioWarning() { * @param ledColor target LED */ public void notificationLed3Show(@NonNull LedColor ledColor) { - Intent intent = new Intent(ACTION_LED_SHOW); - intent.putExtra(TARGET, LedTarget.LED3.toString()); - intent.putExtra(COLOR, ledColor.toString()); + Intent intent = new Intent(Constants.ACTION_LED_SHOW); + intent.putExtra(Constants.TARGET, LedTarget.LED3.toString()); + intent.putExtra(Constants.COLOR, ledColor.toString()); sendBroadcast(intent); } @@ -240,8 +229,8 @@ public void notificationLedShow(@NonNull LedTarget ledTarget) { if (ledTarget == LedTarget.LED3) { notificationLed3Show(LedColor.BLUE); } else { - Intent intent = new Intent(ACTION_LED_SHOW); - intent.putExtra(TARGET, ledTarget.toString()); + Intent intent = new Intent(Constants.ACTION_LED_SHOW); + intent.putExtra(Constants.TARGET, ledTarget.toString()); sendBroadcast(intent); } } @@ -264,10 +253,10 @@ public void notificationLedBlink(@NonNull LedTarget ledTarget, LedColor ledColor period = 2000; } - Intent intent = new Intent(ACTION_LED_BLINK); - intent.putExtra(TARGET, ledTarget.toString()); - intent.putExtra(COLOR, ledColor.toString()); - intent.putExtra(PERIOD, period); + Intent intent = new Intent(Constants.ACTION_LED_BLINK); + intent.putExtra(Constants.TARGET, ledTarget.toString()); + intent.putExtra(Constants.COLOR, ledColor.toString()); + intent.putExtra(Constants.PERIOD, period); sendBroadcast(intent); } @@ -277,37 +266,103 @@ public void notificationLedBlink(@NonNull LedTarget ledTarget, LedColor ledColor * @param ledTarget target LED */ public void notificationLedHide(@NonNull LedTarget ledTarget) { - Intent intent = new Intent(ACTION_LED_HIDE); - intent.putExtra(TARGET, ledTarget.toString()); + Intent intent = new Intent(Constants.ACTION_LED_HIDE); + intent.putExtra(Constants.TARGET, ledTarget.toString()); sendBroadcast(intent); } public void notificationWlanOff() { - sendBroadcast(new Intent(ACTION_WLAN_OFF)); + sendBroadcast(new Intent(Constants.ACTION_WLAN_OFF)); } public void notificationWlanAp() { - sendBroadcast(new Intent(ACTION_WLAN_AP)); + sendBroadcast(new Intent(Constants.ACTION_WLAN_AP)); } public void notificationWlanCl() { - sendBroadcast(new Intent(ACTION_WLAN_CL)); + sendBroadcast(new Intent(Constants.ACTION_WLAN_CL)); } public void notificationDatabaseUpdate(@NonNull String[] targets) { - Intent intent = new Intent(ACTION_DATABASE_UPDATE); - intent.putExtra(TARGETS, targets); + Intent intent = new Intent(Constants.ACTION_DATABASE_UPDATE); + intent.putExtra(Constants.TARGETS, targets); + sendBroadcast(intent); + } + + public void notificationOledImageShow(int id) { + BitmapFactory.Options options = new BitmapFactory.Options(); + options.inScaled = false; + Bitmap bitmap = BitmapFactory + .decodeResource(getResources(), id, options); + + notificationOledImageShow(bitmap); + } + + public void notificationOledDisplaySet(Display display) { + if (display == null) { + display = Display.PLUGIN; + } + Intent intent = new Intent(Constants.ACTION_OLED_DISPLAY_SET); + intent.putExtra(Constants.DISPLAY, display.toString()); sendBroadcast(intent); } + public void notificationOledImageShow(Bitmap bitmap) { + Intent intent = new Intent(Constants.ACTION_OLED_IMAGE_SHOW); + intent.putExtra(Constants.BITMAP, bitmap); + sendBroadcast(intent); + } + + public void notificationOledImageBlink(int id, int period) { + if (period < 250) { + period = 250; + } + if (period > 2000) { + period = 2000; + } + + BitmapFactory.Options options = new BitmapFactory.Options(); + options.inScaled = false; + Bitmap bitmap = BitmapFactory + .decodeResource(getResources(), id, options); + + notificationOledImageBlink(bitmap, period); + } + + public void notificationOledImageBlink(Bitmap bitmap, int period) { + if (period < 250) { + period = 250; + } + if (period > 2000) { + period = 2000; + } + + Intent intent = new Intent(Constants.ACTION_OLED_IMAGE_BLINK); + intent.putExtra(Constants.BITMAP, bitmap); + intent.putExtra(Constants.PERIOD, period); + sendBroadcast(intent); + } + + public void notificationOledTextShow(String middle, String bottom) { + Intent intent = new Intent(Constants.ACTION_OLED_TEXT_SHOW); + intent.putExtra(Constants.TEXT_MIDDLE, middle); + intent.putExtra(Constants.TEXT_BOTTOM, bottom); + sendBroadcast(intent); + } + + public void notificationOledHide() { + sendBroadcast(new Intent(Constants.ACTION_OLED_HIDE)); + } + /** * Notifying Completion of Plug-in when the plug-in ends normally */ public void notificationSuccess() { - Intent intent = new Intent(ACTION_FINISH_PLUGIN); - intent.putExtra(PACKAGE_NAME, getPackageName()); - intent.putExtra(EXIT_STATUS, ExitStatus.SUCCESS.toString()); + Intent intent = new Intent(Constants.ACTION_FINISH_PLUGIN); + intent.putExtra(Constants.PACKAGE_NAME, getPackageName()); + intent.putExtra(Constants.EXIT_STATUS, ExitStatus.SUCCESS.toString()); sendBroadcast(intent); + finishAndRemoveTask(); } @@ -317,11 +372,12 @@ public void notificationSuccess() { * @param message error message */ public void notificationError(String message) { - Intent intent = new Intent(ACTION_FINISH_PLUGIN); - intent.putExtra(PACKAGE_NAME, getPackageName()); - intent.putExtra(EXIT_STATUS, ExitStatus.FAILURE.toString()); - intent.putExtra(MESSAGE, message); + Intent intent = new Intent(Constants.ACTION_FINISH_PLUGIN); + intent.putExtra(Constants.PACKAGE_NAME, getPackageName()); + intent.putExtra(Constants.EXIT_STATUS, ExitStatus.FAILURE.toString()); + intent.putExtra(Constants.MESSAGE, message); sendBroadcast(intent); + finishAndRemoveTask(); } @@ -329,6 +385,28 @@ public void notificationError(String message) { * Notifying Occurrences of Errors */ public void notificationErrorOccured() { - sendBroadcast(new Intent(ACTION_ERROR_OCCURED)); + sendBroadcast(new Intent(Constants.ACTION_ERROR_OCCURED)); + } + + public boolean isZ1() { + if (Build.MODEL.equals(Constants.MODEL_Z1)) { + return true; + } + + return false; + } + + public int getReceptorVersion() { + try { + PackageInfo packageInfo = getPackageManager() + .getPackageInfo(Constants.RECEPTOR, PackageManager.GET_META_DATA); + if (packageInfo != null) { + return packageInfo.versionCode; + } + } catch (NameNotFoundException e) { + e.printStackTrace(); + } + + return 0; } } diff --git a/pluginlibrary/src/main/java/com/theta360/pluginlibrary/callback/KeyCallback.java b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/callback/KeyCallback.java old mode 100755 new mode 100644 diff --git a/pluginlibrary/src/main/java/com/theta360/pluginlibrary/callback/TakePictureCallback.java b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/callback/TakePictureCallback.java old mode 100755 new mode 100644 diff --git a/pluginlibrary/src/main/java/com/theta360/pluginlibrary/receiver/KeyReceiver.java b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/receiver/KeyReceiver.java old mode 100755 new mode 100644 index a1e596b..c03d8de --- a/pluginlibrary/src/main/java/com/theta360/pluginlibrary/receiver/KeyReceiver.java +++ b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/receiver/KeyReceiver.java @@ -29,6 +29,7 @@ public class KeyReceiver extends BroadcastReceiver { public static final int KEYCODE_CAMERA = 27; public static final int KEYCODE_MEDIA_RECORD = 130; public static final int KEYCODE_WLAN_ON_OFF = 284; + public static final int KEYCODE_FUNCTION = 119; public static final String ACTION_KEY_DOWN = "com.theta360.plugin.ACTION_KEY_DOWN"; public static final String ACTION_KEY_UP = "com.theta360.plugin.ACTION_KEY_UP"; diff --git a/pluginlibrary/src/main/java/com/theta360/pluginlibrary/values/Display.java b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/values/Display.java new file mode 100644 index 0000000..6afae3d --- /dev/null +++ b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/values/Display.java @@ -0,0 +1,20 @@ +package com.theta360.pluginlibrary.values; + +/** + * Display + */ +public enum Display { + PLUGIN("plug-in"), + BASIC("basic"),; + + private final String mDisplay; + + Display(final String display) { + this.mDisplay = display; + } + + @Override + public String toString() { + return this.mDisplay; + } +} diff --git a/pluginlibrary/src/main/java/com/theta360/pluginlibrary/values/ExitStatus.java b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/values/ExitStatus.java old mode 100755 new mode 100644 diff --git a/pluginlibrary/src/main/java/com/theta360/pluginlibrary/values/LedColor.java b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/values/LedColor.java old mode 100755 new mode 100644 diff --git a/pluginlibrary/src/main/java/com/theta360/pluginlibrary/values/LedTarget.java b/pluginlibrary/src/main/java/com/theta360/pluginlibrary/values/LedTarget.java old mode 100755 new mode 100644 diff --git a/pluginlibrary/src/main/res/values/strings.xml b/pluginlibrary/src/main/res/values/strings.xml old mode 100755 new mode 100644 diff --git a/pluginlibrary/src/test/java/com/theta360/pluginlibrary/ExampleUnitTest.java b/pluginlibrary/src/test/java/com/theta360/pluginlibrary/ExampleUnitTest.java old mode 100755 new mode 100644