Flutter doesn't honor archivesBaseName
- Dominant language
- Dart
- Stars
- 179k
- Forks
- 31.1k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
When using `archivesBaseName` with app/build.gradle,
Run `flutter build apk --release`
### Expected results
Expect to find `MyApp***-v0.0.1-release.apk` at `build/app/outputs/flutter-apk/` instead of `app-release.apk`
### Actual results
Produces two identical apks
```console
Running Gradle task 'assembleRelease'... 20.8s
✓ Built build\app\outputs\flutter-apk\app-release.apk (20.9MB)
```
After that
```console
$ find . -name "*.apk" -exec sha256sum {} \;
16cda043ff14797af902b07060f7fdc375f44e5580ca95d4dc55ad4e9658c7f5 *./build/app/outputs/apk/release/MyApp-v0.0.1-release.apk
16cda043ff14797af902b07060f7fdc375f44e5580ca95d4dc55ad4e9658c7f5 *./build/app/outputs/flutter-apk/app-release.apk
```
### Code sample
Code sample
```gradle
android {
namespace = "com.example.myapp"
archivesBaseName = "MyApp-v${flutter.versionName}"
```
### Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
### Logs
Logs
```console
[Paste your logs here]
```
### Flutter Doctor output
Doctor output
```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.5, on Microsoft Windows [Version 10.0.22631.4460], locale en-US)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.11.5)
[✓] Android Studio (version 2024.2)
[✓] VS Code, 64-bit edition (version 1.94.2)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!
```
Contributor guide
Assessment
This issue has not been assessed yet.