Skip to content

Revert file naming convention of .aar files to support fuzzy matching in build.gradle #111643

@JunhuaLin

Description

@JunhuaLin

Q1:On the master channel flutter build aar --no-debug --no-profile will result in also creating modules for debug and profile.
see: #108000

Q2:the dependencies version format does not work on 3.1.0~3.3.2

Steps to Reproduce:

1.flutter checkout master
2.flutter create -t module module_test
3.flutter build aar --no-debug --no-profile --build-number 1.0.0

Expected results:

On stable the following files are created: on 3.0.5

Logs
build/host/outputs/repo/com/example/
└── module_test
    └── flutter_release
        ├── 1.0
        │   ├── flutter_release-1.0.aar
        │   ├── flutter_release-1.0.aar.md5
        │   ├── flutter_release-1.0.aar.sha1
        │   ├── flutter_release-1.0.pom
        │   ├── flutter_release-1.0.pom.md5
        │   └── flutter_release-1.0.pom.sha1
        ├── maven-metadata.xml
        ├── maven-metadata.xml.md5
        └── maven-metadata.xml.sha1


implementation 'com.example.module_test:flutter_release:1.0.0'

Actual results:

On master these files are created: on 3.1.0~3.3.2

Logs
build/host/outputs/repo/com/example/
└── module_test
    ├── flutter
    │   ├── 1.0
    │   │   ├── flutter-1.0-debug.aar
    │   │   ├── flutter-1.0-debug.aar.md5
    │   │   ├── flutter-1.0-debug.aar.sha1
    │   │   ├── flutter-1.0-debug.aar.sha256
    │   │   ├── flutter-1.0-debug.aar.sha512
    │   │   ├── flutter-1.0-profile.aar
    │   │   ├── flutter-1.0-profile.aar.md5
    │   │   ├── flutter-1.0-profile.aar.sha1
    │   │   ├── flutter-1.0-profile.aar.sha256
    │   │   ├── flutter-1.0-profile.aar.sha512
    │   │   ├── flutter-1.0-release.aar
    │   │   ├── flutter-1.0-release.aar.md5
    │   │   ├── flutter-1.0-release.aar.sha1
    │   │   ├── flutter-1.0-release.aar.sha256
    │   │   ├── flutter-1.0-release.aar.sha512
    │   │   ├── flutter-1.0.module
    │   │   ├── flutter-1.0.module.md5
    │   │   ├── flutter-1.0.module.sha1
    │   │   ├── flutter-1.0.module.sha256
    │   │   ├── flutter-1.0.module.sha512
    │   │   ├── flutter-1.0.pom
    │   │   ├── flutter-1.0.pom.md5
    │   │   ├── flutter-1.0.pom.sha1
    │   │   ├── flutter-1.0.pom.sha256
    │   │   └── flutter-1.0.pom.sha512
    │   ├── maven-metadata.xml
    │   ├── maven-metadata.xml.md5
    │   ├── maven-metadata.xml.sha1
    │   ├── maven-metadata.xml.sha256
    │   └── maven-metadata.xml.sha512
    ├── flutter_debug
    │   ├── 1.0
    │   │   ├── flutter_debug-1.0.aar
    │   │   ├── flutter_debug-1.0.aar.md5
    │   │   ├── flutter_debug-1.0.aar.sha1
    │   │   ├── flutter_debug-1.0.aar.sha256
    │   │   ├── flutter_debug-1.0.aar.sha512
    │   │   ├── flutter_debug-1.0.module
    │   │   ├── flutter_debug-1.0.module.md5
    │   │   ├── flutter_debug-1.0.module.sha1
    │   │   ├── flutter_debug-1.0.module.sha256
    │   │   ├── flutter_debug-1.0.module.sha512
    │   │   ├── flutter_debug-1.0.pom
    │   │   ├── flutter_debug-1.0.pom.md5
    │   │   ├── flutter_debug-1.0.pom.sha1
    │   │   ├── flutter_debug-1.0.pom.sha256
    │   │   └── flutter_debug-1.0.pom.sha512
    │   ├── maven-metadata.xml
    │   ├── maven-metadata.xml.md5
    │   ├── maven-metadata.xml.sha1
    │   ├── maven-metadata.xml.sha256
    │   └── maven-metadata.xml.sha512
    ├── flutter_profile
    │   ├── 1.0
    │   │   ├── flutter_profile-1.0.aar
    │   │   ├── flutter_profile-1.0.aar.md5
    │   │   ├── flutter_profile-1.0.aar.sha1
    │   │   ├── flutter_profile-1.0.aar.sha256
    │   │   ├── flutter_profile-1.0.aar.sha512
    │   │   ├── flutter_profile-1.0.module
    │   │   ├── flutter_profile-1.0.module.md5
    │   │   ├── flutter_profile-1.0.module.sha1
    │   │   ├── flutter_profile-1.0.module.sha256
    │   │   ├── flutter_profile-1.0.module.sha512
    │   │   ├── flutter_profile-1.0.pom
    │   │   ├── flutter_profile-1.0.pom.md5
    │   │   ├── flutter_profile-1.0.pom.sha1
    │   │   ├── flutter_profile-1.0.pom.sha256
    │   │   └── flutter_profile-1.0.pom.sha512
    │   ├── maven-metadata.xml
    │   ├── maven-metadata.xml.md5
    │   ├── maven-metadata.xml.sha1
    │   ├── maven-metadata.xml.sha256
    │   └── maven-metadata.xml.sha512
    └── flutter_release
        ├── 1.0
        │   ├── flutter_release-1.0.aar
        │   ├── flutter_release-1.0.aar.md5
        │   ├── flutter_release-1.0.aar.sha1
        │   ├── flutter_release-1.0.aar.sha256
        │   ├── flutter_release-1.0.aar.sha512
        │   ├── flutter_release-1.0.module
        │   ├── flutter_release-1.0.module.md5
        │   ├── flutter_release-1.0.module.sha1
        │   ├── flutter_release-1.0.module.sha256
        │   ├── flutter_release-1.0.module.sha512
        │   ├── flutter_release-1.0.pom
        │   ├── flutter_release-1.0.pom.md5
        │   ├── flutter_release-1.0.pom.sha1
        │   ├── flutter_release-1.0.pom.sha256
        │   └── flutter_release-1.0.pom.sha512
        ├── maven-metadata.xml
        ├── maven-metadata.xml.md5
        ├── maven-metadata.xml.sha1
        ├── maven-metadata.xml.sha256
        └── maven-metadata.xml.sha512


implementation 'com.example.module_test:flutter:1.0.0:release'

The following methods will not work

implementation 'com.example.module_test:flutter:1.0.+:release'
implementation 'com.example.module_test:flutter:1.+:release'
implementation 'com.example.module_test:flutter:1.0.0-SNAPSHOT:release'

I want the implementation to support fuzzy matching. for example:

implementation 'com.example.module_test:flutter_release:1.0.+'
implementation 'com.example.module_test:flutter_release:1.+'
implementation 'com.example.module_test:flutter_release:1.0.0-SNAPSHOT'

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: existing-appsIntegration with existing apps via the add-to-app flowc: regressionIt was better in the past than it is nowfound in release: 3.3Found to occur in 3.3found in release: 3.4Found to occur in 3.4has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions