Closed c0bra closed 3 months ago
On a similar note, mine was:
<application
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:label="example">
And was changed to:
<application
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:label="new_name"
Which is missing the ending bracket >
Worked for me. If the AndroidManifest.xml is formatted like this
<application
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:label="app_name"
android:requestLegacyExternalStorage="true"
android:usesCleartextTraffic="true">
It should work. So the android:label part needs to be on a separate line.
So the android:label part needs to be on a separate line.
I would figure this tool would be able to handle newlines in its matching logic.
Any indication of if or when this might get addressed?
This is a severe issue for us, due to other command line utilities formatting the XML after editing such that it's not possible to guarantee the attribute for android:label is separate from everything else on its own line.
I'm now having to look for an alternative Flutter package that provides the same features as this one, but without this issue.
Hi guys, I understand the case we need to change the logic for android renaming with regular expression this week I will be working on that and fix this issue thank you for put this out
I will keep you updated
it should be solved with the latest stable versions 3.0.1
or 3.0.2
, please feel free to open again if the error appears in the latest stable version
Running rename with
--appname AppName
flag removed this line:<application android:label="AppName" android:name="${applicationName}" android:icon="@mipmap/ic_launcher">
and added this line:
android:label="AppName"
which is invalid XML and breaks the build;