• Daco Harkes's avatar
    Native assets support for Android (#135148) · 6ad75553
    Daco Harkes authored
    Support for FFI calls with `@Native external` functions through Native assets on Android. This enables bundling native code without any build-system boilerplate code.
    
    For more info see:
    
    * https://github.com/flutter/flutter/issues/129757
    
    ### Implementation details for Android.
    
    Mainly follows the design of the previous PRs.
    
    For Android, we detect the compilers inside the NDK inside SDK.
    
    And bundling of the assets is done by the flutter.groovy file.
    
    The `minSdkVersion` is propagated from the flutter.groovy file as well.
    
    The NDK is not part of `flutter doctor`, and users can omit it if no native assets have to be build.
    However, if any native assets must be built, flutter throws a tool exit if the NDK is not installed.
    
    Add 2 app is not part of this PR yet, instead `flutter build aar` will tool exit if there are any native assets.
    6ad75553
Name
Last commit
Last update
..
bin Loading commit data...
doc Loading commit data...
gradle Loading commit data...
ide_templates/intellij Loading commit data...
lib Loading commit data...
static Loading commit data...
templates Loading commit data...
test Loading commit data...
tool Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
dart_test.yaml Loading commit data...
pubspec.yaml Loading commit data...