You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/09/23 11:34:34 UTC

[jira] [Commented] (CB-6511) When display name is 16-bit based language, Android platform can't create Activty class when adding support

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

ASF GitHub Bot commented on CB-6511:
------------------------------------

GitHub user vladimir-kotikov opened a pull request:

    https://github.com/apache/cordova-android/pull/124

    CB-6511 Fixes build for android when app name contains unicode characters

    Fix for issue: https://issues.apache.org/jira/browse/CB-6511
    Use hardcoded Activity/class name to avoid problems with unicode names. Future improvement - use additional option for cli to specify custom activity/class name (https://issues.apache.org/jira/browse/CB-7231)
    
    More info in threads: http://callback.markmail.org/thread/o7w52dbpiikcivwp and http://callback.markmail.org/thread/2iaojpftpggrmcj6

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-android CB-6511

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-android/pull/124.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #124
    
----
commit 2a5050a1cc0de99b87b68553ebc6619ca315c64c
Author: Vladimir Kotikov <v-...@microsoft.com>
Date:   2014-09-23T09:21:17Z

    CB-6511 Fixes build for android when app name contains unicode characters.

----


> When display name is 16-bit based language, Android platform can't create Activty class when adding support
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CB-6511
>                 URL: https://issues.apache.org/jira/browse/CB-6511
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.3.0, 3.4.0
>            Reporter: Victor Adrian Sosa Herrera
>
> Adding android support when the Display name of the Cordova application has a value based on 16-bit language (like Japanese) makes that the Activity class (based on that value) isn't created correctly. Instead, the class is generated as a file named ".java" and the Java class declaration is "public class  extends CordovaActivity".
> To reproduce the error:
> 1. Change the text file encoding of container to UTF-8
> 2. Create a cordova project and enter a project name with ASCII characters and display name with G11N characters (like Japanese)
> 3. Once the project is created, add android support.
> 4. Go to <project>/platforms/android/src/<your package> and verify you have a file named ".java". If you are in Linux, it is a hidden file



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