Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Nested android:label is not updated in AndroidManifest.xml #34

Open
alireza-mpr opened this issue May 3, 2020 · 0 comments
Open

Nested android:label is not updated in AndroidManifest.xml #34

alireza-mpr opened this issue May 3, 2020 · 0 comments

Comments

@alireza-mpr
Copy link

alireza-mpr commented May 3, 2020

So here is my AndroidManifest.xml:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.someapp">

    <uses-permission android:name="android.permission.INTERNET" />

    <application
      android:name=".MainApplication"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:allowBackup="false"
      android:theme="@style/AppTheme">
      <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
        android:windowSoftInputMode="adjustResize">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
      </activity>
      <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
    </application>

</manifest>

As you can see there are two elements having android:label: <application> and <activity>.
The task fails to update the second one which affects the app name on phone screen.
The agent I run the build is:

pool:
  vmImage: 'macOS-10.14'

PS: I took a look at the code. This is where additional checks are needed to be added:

let applicationNode: sam.library.XMLList = xml.get("application");

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant