[ 
https://issues.apache.org/jira/browse/CB-7683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Frederico Costa Galvão updated CB-7683:
---------------------------------------
    Description: 
The new strings added to *./platforms/android/res/values/strings.xml* exist 
correctly on a newly created project, but don't in an upgraded project.

After upgrading my project from 3.5.0 to 3.6.3:

{code:xml}
<string name="app_name">Bacon</string>
{code}

Expected:

{code:xml}
<string name="app_name">Bacon</string>
<string name="launcher_name">@string/app_name</string>
<string name="activity_name">@string/launcher_name</string>
{code}

Also, in AndroidManifest.xml I expected
{code:xml}
<activity android:label="@string/app_name"></actitivy>
<intent-filter></intent-filter>
{code}

to become the following (it didn't), after the upgrade:
{code:xml}
<activity android:label="@string/activity_name"></activity>
<intent-filter android:label="@string/launcher_name"></intent-filter>
{code}

I don't quite know how or wether the project actually needs those strings or if 
they can infer them from the *app_name* string somewhere else, but it's 
nonetheless a bug, considering the upgrade process should take a project up to 
par with a newly created one.

  was:
The new strings added to *./platforms/android/res/values/strings.xml* exist 
correctly on a newly created project, but don't in an upgraded project.

After upgrading my project from 3.5.x to 3.6.3:

{code:xml}
<string name="app_name">Bacon</string>
{code}

Expected:

{code:xml}
<string name="app_name">Bacon</string>
<string name="launcher_name">@string/app_name</string>
<string name="activity_name">@string/launcher_name</string>
{code}

Also, in AndroidManifest.xml I expected
{code:xml}
<activity android:label="@string/app_name"></actitivy>
<intent-filter></intent-filter>
{code}

to become the following (it didn't), after the upgrade:
{code:xml}
<activity android:label="@string/activity_name"></activity>
<intent-filter android:label="@string/launcher_name"></intent-filter>
{code}

I don't quite know how or wether the project actually needs those strings or if 
they can infer them from the *app_name* string somewhere else, but it's 
nonetheless a bug, considering the upgrade process should take a project up to 
par with a newly created one.


> Android strings aren't added in upgrade process to 3.6.3
> --------------------------------------------------------
>
>                 Key: CB-7683
>                 URL: https://issues.apache.org/jira/browse/CB-7683
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CLI
>    Affects Versions: 3.6.3
>         Environment: {Xubuntu 13.10 x86_64} {node -v = v0.10.25} {npm -v = 
> 2.0.2} {cordova -v = 3.6.3-0.2.13}
>            Reporter: Frederico Costa Galvão
>            Priority: Minor
>
> The new strings added to *./platforms/android/res/values/strings.xml* exist 
> correctly on a newly created project, but don't in an upgraded project.
> After upgrading my project from 3.5.0 to 3.6.3:
> {code:xml}
> <string name="app_name">Bacon</string>
> {code}
> Expected:
> {code:xml}
> <string name="app_name">Bacon</string>
> <string name="launcher_name">@string/app_name</string>
> <string name="activity_name">@string/launcher_name</string>
> {code}
> Also, in AndroidManifest.xml I expected
> {code:xml}
> <activity android:label="@string/app_name"></actitivy>
> <intent-filter></intent-filter>
> {code}
> to become the following (it didn't), after the upgrade:
> {code:xml}
> <activity android:label="@string/activity_name"></activity>
> <intent-filter android:label="@string/launcher_name"></intent-filter>
> {code}
> I don't quite know how or wether the project actually needs those strings or 
> if they can infer them from the *app_name* string somewhere else, but it's 
> nonetheless a bug, considering the upgrade process should take a project up 
> to par with a newly created one.



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

Reply via email to