cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8864) Add lintOptions (checkReleaseBuilds OR abortOnError) to the build.gradle script for the default cordova-android project
Date Tue, 12 Jan 2016 18:40:40 GMT

    [ https://issues.apache.org/jira/browse/CB-8864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15094447#comment-15094447
] 

ASF subversion and git services commented on CB-8864:
-----------------------------------------------------

Commit 11760afddd1fb77dde0b0b59a398b659319d8478 in cordova-android's branch refs/heads/master
from [~bowserj]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=11760af ]

CB-8864: Fixing this to mitigate CB-8685 and CB-10104


> Add lintOptions (checkReleaseBuilds OR abortOnError) to the build.gradle script for the
default cordova-android project
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-8864
>                 URL: https://issues.apache.org/jira/browse/CB-8864
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 4.0.0
>         Environment: Mac OS X 10.10.3; cordova-cli@4.3.0; cordova-android@4.0.0; Android
Studio
>            Reporter: Kelvin Dart
>            Priority: Minor
>              Labels: android, android-studio, gradle
>
> Please can you add in the following to the build.gradle script for the android module
in the cordova-android project:
> {code}
> ...
> android {
>     lintOptions {
>         checkReleaseBuilds false
>     }
> }
> ...
> {code}
> Or:
> {code}
> ...
> android {
>     lintOptions {
>         abortOnError false
>     }
> }
> ...
> {code}
> The former has the advantage that all lint errors will display for debug purposes should
you need to review them.
> The issue occurred when using the plugin com.phonegap.plugins.barcodescanner and creating
a signed APK in Android Studio - this plugin uses translations and because the strings.xml
contains additional items which are not present in the plugin's translation XML files, Lint/Android
Studio throws a wobbly and does not export the APK because of an error.
> It could be argued that the plugin should alter their XML translations and include the
MissingTranslations attribute, but there are over 30 files and this fix seemed to quickly
resolve the issue instead of editing each one manually.
> See: [http://stackoverflow.com/questions/27472282/how-to-sign-apk-on-android-studio-even-with-non-translated-strings]
for more info.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message