Skip to content

Update engine artifacts for Android #33059

@blasten

Description

@blasten

These are the current Engine artifacts for Android:

├── android-arm
│   └── flutter.jar
├── android-arm-profile
│   ├── darwin-x64
│   │   └── gen_snapshot
│   └── flutter.jar
├── android-arm-release
│   ├── darwin-x64
│   │   └── gen_snapshot
│   └── flutter.jar
├── android-arm64
│   └── flutter.jar
├── android-arm64-profile
│   ├── darwin-x64
│   │   └── gen_snapshot
│   └── flutter.jar
├── android-arm64-release
│   ├── darwin-x64
│   │   └── gen_snapshot
│   └── flutter.jar
├── android-x64
│   ├── flutter.jar
│   └── libflutter.so
├── android-x86
│   ├── flutter.jar
│   └── libflutter.so

Once Flutter starts generating 32 and 64 bits in app bundles, these artifacts are better structured this way:

├── android
│   └── flutter.jar    // <-- io.flutter .class
├── android-arm-release
│   ├── darwin-x64
│   │   └── gen_snapshot
│   └── libflutter.so
├── android-arm64
│   └── libflutter.so
├── android-arm64-profile
│   ├── darwin-x64
│   │   └── gen_snapshot
│   └── libflutter.so
├── android-arm64-release
│   ├── darwin-x64
│   │   └── gen_snapshot
│   └── libflutter.so
├── android-x64
│   └── libflutter.so
├── android-x86
│   └── libflutter.so

Note that libflutter.so is already outside flutter.jar in x64 and x86.

This change will:

  • Reduce the size of the artifacts downloaded from Google CDN.
  • Simplify the Gradle build script and potentially make the build faster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallyt: gradle"flutter build" and "flutter run" on Android

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions