You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The generated AndroidManfiest.xml has one less space for the indentation of the <application opening tag, whereas the </application> closing tag has the proper four spaces.
Steps To Reproduce
very_good create flutter_app my_app
cd my_app/android/src/main/
cat AndroidManfiest.xml
3rd line is the opening tag
Expected Behavior
Both the opening and the closing tag would have four spaces of indentation
Exhibit
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.verygoodcore.my_app">
<application
android:label="${appName}"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTask"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
</manifest>
Additional Context
I'll try to craft a PR.
The text was updated successfully, but these errors were encountered:
alestiago
added
refactor
A code change that neither fixes a bug nor add a feature
style
Changes that do not affect the meaning of the code
and removed
bug
Something isn't working as expected
refactor
A code change that neither fixes a bug nor add a feature
labels
Jun 14, 2024
alestiago
changed the title
fix: AndroidManifest.xml's '<application' opening tag is indented by 3 spaces instead of 4
style: AndroidManifest.xml's '<application' opening tag is indented by 3 spaces instead of 4
Jun 14, 2024
The Flame Game and Flutter Plugin creation is affected as well, plus the Wear app creation had a different similar (one space missing) indentation for the com.google.android.wearable.standalonemeta-data tag, the PR addresses those.
Description
The generated AndroidManfiest.xml has one less space for the indentation of the
<application
opening tag, whereas the</application>
closing tag has the proper four spaces.Steps To Reproduce
very_good create flutter_app my_app
cd my_app/android/src/main/
cat AndroidManfiest.xml
Expected Behavior
Both the opening and the closing tag would have four spaces of indentation
Exhibit
Additional Context
I'll try to craft a PR.
The text was updated successfully, but these errors were encountered: