Skip to content

ramanveerji/flutter-libs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

flutter-libs

This repository allows building native Flutter shared libraries (libflutter.so) for Android (arm64-v8a and armeabi-v7a) for specific Flutter SDK versions or Dart SDK versions directly via GitHub Actions.

How to use this repo?

1. Enabling Workflows (in Forked Repositories)

  1. Fork this repository.
  2. Go to Settings in your forked repo.
  3. Select Actions -> General on the left side pane.
  4. Under Workflow permissions, select Read and write permissions and save.

2. Generating Flutter Libs

  1. Go to the Actions tab in your repository.
  2. Select the Flutter Build workflow on the left sidebar.
  3. Click the Run workflow dropdown button.
  4. Enter your target version:
    • flutter_version: Enter a Flutter version (e.g. 3.27.1).
    • dart_version: Enter a Dart SDK version (e.g. 3.5.4 or 3.10.8) to automatically look up the corresponding Flutter version.
  5. Select target architecture(s):
    • build_arm64: Build for 64-bit ARM (arm64-v8a) (enabled by default).
    • build_armv7: Build for 32-bit ARM (armeabi-v7a) (disabled by default).
  6. Click Run workflow.
  7. The workflow will build libflutter.so and publish the zip binaries to Releases.

Finding the correct Flutter version from Dart version manually

  1. To find the correct Flutter version manually, visit the Flutter Release Archive.
  2. Find the Dart version for which you want to build Flutter libs.
  3. Locate the corresponding Flutter version in the same row.
  4. Enter that Flutter version into the flutter_version workflow prompt.

Notes

  1. There are 2 workflows present in this repository:
    • Flutter Build: Builds native libraries and publishes them to GitHub Releases.
    • GitHub Cleanup: Cleans up older action run logs periodically to keep the repository history clean while preserving all generated releases.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors