UNPKG

react-native-android-update

Version:

A React Native module to update android apk. Supports progress notification.

352 lines (348 loc) 23.4 kB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Lint Report</title> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto" /> <link rel="stylesheet" type="text/css" href="lint-results_files/hololike.css" /> <script language="javascript" type="text/javascript"> <!-- function reveal(id) { if (document.getElementById) { document.getElementById(id).style.display = 'block'; document.getElementById(id+'Link').style.display = 'none'; } } //--> </script> </head> <body> <h1>Lint Report</h1> <div class="titleSeparator"></div> Check performed at Tue Nov 01 20:31:51 CST 2016.<br/> 1 errors and 4 warnings found:<br/><br/> <table class="overview"> <tr><td></td><td class="categoryColumn"><a href="#Correctness">Correctness</a> </td></tr> <tr> <td class="countColumn">1</td><td class="issueColumn"><img border="0" align="top" src="lint-results_files/lint-error.png" alt="Error" /> <a href="#InvalidPackage">InvalidPackage: Package not included in Android</a> </td></tr> <tr> <td class="countColumn">4</td><td class="issueColumn"><img border="0" align="top" src="lint-results_files/lint-warning.png" alt="Warning" /> <a href="#GradleOverrides">GradleOverrides: Value overridden by Gradle build script</a> </td></tr> <tr><td></td><td class="categoryColumn"><a href="#MissingIssues">Disabled Checks (11)</a> </td></tr></table> <br/> <a name="Correctness"></a> <div class="category"><a href="#" title="Return to top">Correctness</a><div class="categorySeparator"></div> </div> <a name="InvalidPackage"></a> <div class="issue"> <div class="id"><a href="#" title="Return to top">InvalidPackage: Package not included in Android</a><div class="issueSeparator"></div> </div> <div class="warningslist"> <span class="location"><a href="file:/C:/Users/wwm/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.6.0/98476622f10715998eacf9240d6b479f12c66143/okio-1.6.0.jar">C:\Users\wwm\.gradle\caches\modules-2\files-2.1\com.squareup.okio\okio\1.6.0\98476622f10715998eacf9240d6b479f12c66143\okio-1.6.0.jar</a></span>: <span class="message">Invalid package reference in library; not included in Android: <code>java.nio.file</code>. Referenced from <code>okio.Okio</code>.</span><br /> </div> <div class="metadata">Priority: 6 / 10<br/> Category: Correctness</div> Severity: <span class="error">Error</span><div class="summary"> Explanation: Package not included in Android.</div> <div class="explanation"> This check scans through libraries looking for calls to APIs that are not included in Android.<br/> <br/> When you create Android projects, the classpath is set up such that you can only access classes in the API packages that are included in Android. However, if you add other projects to your libs/ folder, there is no guarantee that those .jar files were built with an Android specific classpath, and in particular, they could be accessing unsupported APIs such as java.applet.<br/> <br/> This check scans through library jars and looks for references to API packages that are not included in Android and flags these. This is only an error if your code calls one of the library classes which wind up referencing the unsupported package. </div> <br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "InvalidPackage" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="GradleOverrides"></a> <div class="issue"> <div class="id"><a href="#" title="Return to top">GradleOverrides: Value overridden by Gradle build script</a><div class="issueSeparator"></div> </div> <div class="warningslist"> <span class="location"><a href="../../src/main/AndroidManifest.xml">../../src/main/AndroidManifest.xml</a>:5</span>: <span class="message">This <code>versionCode</code> value (<code>1</code>) is not used; it is always overridden by the value specified in the Gradle build script (<code>2</code>)</span><br /><pre class="errorlines"> <span class="lineno"> 2</span> &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" <span class="lineno"> 3</span> xmlns:tools="http://schemas.android.com/tools" <span class="lineno"> 4</span> package="om.smn.update" <span class="lineno"> 5</span> <span class="errorspan">android:versionCode="1"</span> <span class="lineno"> 6</span> android:versionName="1.0"> <span class="lineno"> 7</span> </pre> <span class="location"><a href="../../src/main/AndroidManifest.xml">../../src/main/AndroidManifest.xml</a>:6</span>: <span class="message">This <code>versionName</code> value (<code>1.0</code>) is not used; it is always overridden by the value specified in the Gradle build script (<code>1.1</code>)</span><br /><pre class="errorlines"> <span class="lineno"> 3</span> xmlns:tools="http://schemas.android.com/tools" <span class="lineno"> 4</span> package="om.smn.update" <span class="lineno"> 5</span> android:versionCode="1" <span class="lineno"> 6</span> <span class="errorspan">android:versionName="1.0"></span> <span class="lineno"> 7</span> <span class="lineno"> 8</span> &lt;uses-permission android:name="android.permission.INTERNET" /> </pre> <span class="location"><a href="../../src/main/AndroidManifest.xml">../../src/main/AndroidManifest.xml</a>:16</span>: <span class="message">This <code>minSdkVersion</code> value (<code>16</code>) is not used; it is always overridden by the value specified in the Gradle build script (<code>16</code>)</span><br /><pre class="errorlines"> <span class="lineno"> 13</span> &lt;uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> <span class="lineno"> 14</span> <span class="lineno"> 15</span> &lt;uses-sdk <span class="lineno"> 16</span> <span class="errorspan">android:minSdkVersion="16"</span> <span class="lineno"> 17</span> android:targetSdkVersion="23" /> <span class="lineno"> 18</span> </pre> <span class="location"><a href="../../src/main/AndroidManifest.xml">../../src/main/AndroidManifest.xml</a>:17</span>: <span class="message">This <code>targetSdkVersion</code> value (<code>23</code>) is not used; it is always overridden by the value specified in the Gradle build script (<code>23</code>)</span><br /><pre class="errorlines"> <span class="lineno"> 14</span> <span class="lineno"> 15</span> &lt;uses-sdk <span class="lineno"> 16</span> android:minSdkVersion="16" <span class="lineno"> 17</span> <span class="errorspan">android:targetSdkVersion="23" /></span> <span class="lineno"> 18</span> <span class="lineno"> 19</span> &lt;/manifest> </pre> </div> <div class="metadata">Priority: 4 / 10<br/> Category: Correctness</div> Severity: <span class="warning">Warning</span><div class="summary"> Explanation: Value overridden by Gradle build script.</div> <div class="explanation"> The value of (for example) <code>minSdkVersion</code> is only used if it is not specified in the <code>build.gradle</code> build scripts. When specified in the Gradle build scripts, the manifest value is ignored and can be misleading, so should be removed to avoid ambiguity. </div> <br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "GradleOverrides" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="MissingIssues"></a> <div class="category">Disabled Checks<div class="categorySeparator"></div> </div> The following issues were not run by lint, either because the check is not enabled by default, or because it was disabled with a command line flag or via one or more lint.xml configuration files in the project directories. <br/><br/> <a name="BackButton"></a> <div class="issue"> <div class="id">BackButton<div class="issueSeparator"></div> </div> <div class="metadata">Disabled By: Default<br/> Priority: 6 / 10<br/> Category: Usability</div> Severity: <span class="warning">Warning</span><div class="summary"> Explanation: Back button.</div> <div class="explanation"> According to the Android Design Guide,<br/> <br/> "Other platforms use an explicit back button with label to allow the user to navigate up the application's hierarchy. Instead, Android uses the main action bar's app icon for hierarchical navigation and the navigation bar's back button for temporal navigation."<br/> This check is not very sophisticated (it just looks for buttons with the label "Back"), so it is disabled by default to not trigger on common scenarios like pairs of Back/Next buttons to paginate through screens. </div> <br/><div class="moreinfo">More info: <a href="http://developer.android.com/design/patterns/pure-android.html">http://developer.android.com/design/patterns/pure-android.html</a> </div><br/>To suppress this error, use the issue id "BackButton" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="EasterEgg"></a> <div class="issue"> <div class="id">EasterEgg<div class="issueSeparator"></div> </div> <div class="metadata">Disabled By: Default<br/> Priority: 6 / 10<br/> Category: Security</div> Severity: <span class="warning">Warning</span><div class="summary"> Explanation: Code contains easter egg.</div> <div class="explanation"> An "easter egg" is code deliberately hidden in the code, both from potential users and even from other developers. This lint check looks for code which looks like it may be hidden from sight. </div> <br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "EasterEgg" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="FieldGetter"></a> <div class="issue"> <div class="id">FieldGetter<div class="issueSeparator"></div> </div> <div class="metadata">Disabled By: Default<br/> Priority: 4 / 10<br/> Category: Performance</div> Severity: <span class="warning">Warning</span><div class="summary"> Explanation: Using getter instead of field.</div> <div class="explanation"> Accessing a field within the class that defines a getter for that field is at least 3 times faster than calling the getter. For simple getters that do nothing other than return the field, you might want to just reference the local field directly instead.<br/> <br/> <b>NOTE</b>: As of Android 2.3 (Gingerbread), this optimization is performed automatically by Dalvik, so there is no need to change your code; this is only relevant if you are targeting older versions of Android. </div> <br/><div class="moreinfo">More info: <a href="http://developer.android.com/guide/practices/design/performance.html#internal_get_set">http://developer.android.com/guide/practices/design/performance.html#internal_get_set</a> </div><br/>To suppress this error, use the issue id "FieldGetter" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="IconExpectedSize"></a> <div class="issue"> <div class="id">IconExpectedSize<div class="issueSeparator"></div> </div> <div class="metadata">Disabled By: Default<br/> Priority: 5 / 10<br/> Category: Usability:Icons</div> Severity: <span class="warning">Warning</span><div class="summary"> Explanation: Icon has incorrect size.</div> <div class="explanation"> There are predefined sizes (for each density) for launcher icons. You should follow these conventions to make sure your icons fit in with the overall look of the platform. </div> <br/><div class="moreinfo">More info: <a href="http://developer.android.com/design/style/iconography.html">http://developer.android.com/design/style/iconography.html</a> </div><br/>To suppress this error, use the issue id "IconExpectedSize" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="LogConditional"></a> <div class="issue"> <div class="id">LogConditional<div class="issueSeparator"></div> </div> <div class="metadata">Disabled By: Default<br/> Priority: 5 / 10<br/> Category: Performance</div> Severity: <span class="warning">Warning</span><div class="summary"> Explanation: Unconditional Logging Calls.</div> <div class="explanation"> The BuildConfig class (available in Tools 17) provides a constant, "DEBUG", which indicates whether the code is being built in release mode or in debug mode. In release mode, you typically want to strip out all the logging calls. Since the compiler will automatically remove all code which is inside a "if (false)" check, surrounding your logging calls with a check for BuildConfig.DEBUG is a good idea.<br/> <br/> If you <b>really</b> intend for the logging to be present in release mode, you can suppress this warning with a @SuppressLint annotation for the intentional logging calls. </div> <br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "LogConditional" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="NegativeMargin"></a> <div class="issue"> <div class="id">NegativeMargin<div class="issueSeparator"></div> </div> <div class="metadata">Disabled By: Default<br/> Priority: 4 / 10<br/> Category: Usability</div> Severity: <span class="warning">Warning</span><div class="summary"> Explanation: Negative Margins.</div> <div class="explanation"> Margin values should be positive. Negative values are generally a sign that you are making assumptions about views surrounding the current one, or may be tempted to turn off child clipping to allow a view to escape its parent. Turning off child clipping to do this not only leads to poor graphical performance, it also results in wrong touch event handling since touch events are based strictly on a chain of parent-rect hit tests. Finally, making assumptions about the size of strings can lead to localization problems. </div> <br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "NegativeMargin" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="NewerVersionAvailable"></a> <div class="issue"> <div class="id">NewerVersionAvailable<div class="issueSeparator"></div> </div> <div class="metadata">Note: This issue has an associated quickfix operation in Android Studio/IntelliJ&nbsp;<img alt="Fix" border="0" align="top" src="lint-results_files/lint-run.png" /> <br> Disabled By: Default<br/> Priority: 4 / 10<br/> Category: Correctness</div> Severity: <span class="warning">Warning</span><div class="summary"> Explanation: Newer Library Versions Available.</div> <div class="explanation"> This detector checks with a central repository to see if there are newer versions available for the dependencies used by this project.<br/> This is similar to the <code>GradleDependency</code> check, which checks for newer versions available in the Android SDK tools and libraries, but this works with any MavenCentral dependency, and connects to the library every time, which makes it more flexible but also <b>much</b> slower. </div> <br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "NewerVersionAvailable" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="SelectableText"></a> <div class="issue"> <div class="id">SelectableText<div class="issueSeparator"></div> </div> <div class="metadata">Note: This issue has an associated quickfix operation in Android Studio/IntelliJ&nbsp;<img alt="Fix" border="0" align="top" src="lint-results_files/lint-run.png" /> <br> Disabled By: Default<br/> Priority: 7 / 10<br/> Category: Usability</div> Severity: <span class="warning">Warning</span><div class="summary"> Explanation: Dynamic text should probably be selectable.</div> <div class="explanation"> If a <code>&lt;TextView></code> is used to display data, the user might want to copy that data and paste it elsewhere. To allow this, the <code>&lt;TextView></code> should specify <code>android:textIsSelectable="true"</code>.<br/> <br/> This lint check looks for TextViews which are likely to be displaying data: views whose text is set dynamically. This value will be ignored on platforms older than API 11, so it is okay to set it regardless of your <code>minSdkVersion</code>. </div> <br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "SelectableText" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="StopShip"></a> <div class="issue"> <div class="id">StopShip<div class="issueSeparator"></div> </div> <div class="metadata">Note: This issue has an associated quickfix operation in Android Studio/IntelliJ&nbsp;<img alt="Fix" border="0" align="top" src="lint-results_files/lint-run.png" /> <br> Disabled By: Default<br/> Priority: 10 / 10<br/> Category: Correctness</div> Severity: <span class="warning">Warning</span><div class="summary"> Explanation: Code contains <code>STOPSHIP</code> marker.</div> <div class="explanation"> Using the comment <code>// STOPSHIP</code> can be used to flag code that is incomplete but checked in. This comment marker can be used to indicate that the code should not be shipped until the issue is addressed, and lint will look for these. </div> <br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "StopShip" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="TypographyQuotes"></a> <div class="issue"> <div class="id">TypographyQuotes<div class="issueSeparator"></div> </div> <div class="metadata">Note: This issue has an associated quickfix operation in Eclipse/ADT & Android Studio/IntelliJ&nbsp;<img alt="Fix" border="0" align="top" src="lint-results_files/lint-run.png" /> <br> Disabled By: Default<br/> Priority: 5 / 10<br/> Category: Usability:Typography</div> Severity: <span class="warning">Warning</span><div class="summary"> Explanation: Straight quotes can be replaced with curvy quotes.</div> <div class="explanation"> Straight single quotes and double quotes, when used as a pair, can be replaced by "curvy quotes" (or directional quotes). This can make the text more readable.<br/> <br/> Note that you should never use grave accents and apostrophes to quote, `like this'.<br/> <br/> (Also note that you should not use curvy quotes for code fragments.) </div> <br/><div class="moreinfo">More info: <a href="http://en.wikipedia.org/wiki/Quotation_mark">http://en.wikipedia.org/wiki/Quotation_mark</a> </div><br/>To suppress this error, use the issue id "TypographyQuotes" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="UnusedIds"></a> <div class="issue"> <div class="id">UnusedIds<div class="issueSeparator"></div> </div> <div class="metadata">Disabled By: Default<br/> Priority: 1 / 10<br/> Category: Performance</div> Severity: <span class="warning">Warning</span><div class="summary"> Explanation: Unused id.</div> <div class="explanation"> This resource id definition appears not to be needed since it is not referenced from anywhere. Having id definitions, even if unused, is not necessarily a bad idea since they make working on layouts and menus easier, so there is not a strong reason to delete these. </div> <br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "UnusedIds" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/> </div> <a name="SuppressInfo"></a> <div class="category">Suppressing Warnings and Errors<div class="categorySeparator"></div> </div> Lint errors can be suppressed in a variety of ways:<br/> <br/> 1. With a <code>@SuppressLint</code> annotation in the Java code<br/> 2. With a <code>tools:ignore</code> attribute in the XML file<br/> 3. With ignore flags specified in the <code>build.gradle</code> file, as explained below<br/> 4. With a <code>lint.xml</code> configuration file in the project<br/> 5. With a <code>lint.xml</code> configuration file passed to lint via the --config flag<br/> 6. With the --ignore flag passed to lint.<br/> <br/> To suppress a lint warning with an annotation, add a <code>@SuppressLint("id")</code> annotation on the class, method or variable declaration closest to the warning instance you want to disable. The id can be one or more issue id's, such as <code>"UnusedResources"</code> or <code>{"UnusedResources","UnusedIds"}</code>, or it can be <code>"all"</code> to suppress all lint warnings in the given scope.<br/> <br/> To suppress a lint warning in an XML file, add a <code>tools:ignore="id"</code> attribute on the element containing the error, or one of its surrounding elements. You also need to define the namespace for the tools prefix on the root element in your document, next to the <code>xmlns:android</code> declaration:<br/> <code>xmlns:tools="http://schemas.android.com/tools"</code><br/> <br/> To suppress a lint warning in a <code>build.gradle</code> file, add a section like this:<br/> <br/> android {<br/> &nbsp;&nbsp;&nbsp;&nbsp;lintOptions {<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;disable 'TypographyFractions','TypographyQuotes'<br/> &nbsp;&nbsp;&nbsp;&nbsp;}<br/> }<br/> <br/> Here we specify a comma separated list of issue id's after the disable command. You can also use <code>warning</code> or <code>error</code> instead of <code>disable</code> to change the severity of issues.<br/> <br/> To suppress lint warnings with a configuration XML file, create a file named <code>lint.xml</code> and place it at the root directory of the project in which it applies.<br/> <br/> The format of the <code>lint.xml</code> file is something like the following:<br/> <br/> &lt;?xml version="1.0" encoding="UTF-8"?><br/> &lt;lint><br/> &nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Disable this given check in this project --><br/> &nbsp;&nbsp;&nbsp;&nbsp;&lt;issue id="IconMissingDensityFolder" severity="ignore" /><br/> <br/> &nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Ignore the ObsoleteLayoutParam issue in the given files --><br/> &nbsp;&nbsp;&nbsp;&nbsp;&lt;issue id="ObsoleteLayoutParam"><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ignore path="res/layout/activation.xml" /><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ignore path="res/layout-xlarge/activation.xml" /><br/> &nbsp;&nbsp;&nbsp;&nbsp;&lt;/issue><br/> <br/> &nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Ignore the UselessLeaf issue in the given file --><br/> &nbsp;&nbsp;&nbsp;&nbsp;&lt;issue id="UselessLeaf"><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ignore path="res/layout/main.xml" /><br/> &nbsp;&nbsp;&nbsp;&nbsp;&lt;/issue><br/> <br/> &nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Change the severity of hardcoded strings to "error" --><br/> &nbsp;&nbsp;&nbsp;&nbsp;&lt;issue id="HardcodedText" severity="error" /><br/> &lt;/lint><br/> <br/> To suppress lint checks from the command line, pass the --ignore flag with a comma separated list of ids to be suppressed, such as:<br/> <code>$ lint --ignore UnusedResources,UselessLeaf /my/project/path</code><br/> <br/> For more information, see <a href="http://tools.android.com/tips/lint/suppressing-lint-warnings">http://tools.android.com/tips/lint/suppressing-lint-warnings</a><br/> </body> </html>