leanflutter / flutter_distributor

An all-in-one Flutter application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.
https://distributor.leanflutter.dev/
MIT License
812 stars 114 forks source link

fix build_args map entries value may null #64

Closed laiiihz closed 2 years ago

laiiihz commented 2 years ago

this distribute_options.yaml

...
  - name: android
    jobs:    
      - name: arm
        package:
          platform: android
          target: apk
          build_args:
            flavor: arm
            obfuscate:
            split-debug-info: .
...

will cause type 'Null' is not a subtype of type 'String' issue

type 'Null' is not a subtype of type 'String'
#0      AppBuilder.build (package:flutter_app_builder/src/app_builder.dart:38:37)
#1      FlutterAppBuilder.build (package:flutter_app_builder/src/flutter_app_builder.dart:42:26)
#2      FlutterDistributor.package (package:flutter_distributor/src/flutter_distributor.dart:145:40)
#3      FlutterDistributor.release (package:flutter_distributor/src/flutter_distributor.dart:302:49)
lijy91 commented 2 years ago

LGTM