flutter_walle_plugin 1.0.3
flutter_walle_plugin: ^1.0.3

Flutter Android iOS

A new flutter plugin project.

flutter_walle_plugin #

美团walle 渠道包打包工具 flutter插件, 支持获取channel 、hannelInfo,并提供了walle cli 打包快捷工具 #

使用本插件前应看一下walle 开发文档 https://github.com/Meituan-Dianping/walle #

项目内使用 #

   xxx.dart


   import 'package:flutter_walle_plugin/flutter_walle_plugin.dart';

   try {
    String channel = await FlutterWallePlugin.getWalleChannel();
    } on PlatformException {
      
    }


    try {
    String channel = await FlutterWallePlugin.getWalleChannelInfo();
    } on PlatformException {
      
    }

快捷打包apk #

channel、channelConfig.json文件需要放在项目根目录,配置信息实例如下: 渠道配置文件示例 渠道&额外信息配置文件示例

  setChannel        编译apk并写入渠道号 flutter pub run flutter_walle_plugin setChannel flutter build apk

  setInfo           编译apk并写入渠道信息 flutter pub run flutter_walle_plugin setInfo flutter build apk

  getInfo           查看指定apk文件渠道信息 flutter pub run flutter_walle_plugin getInfo /Users/hjc1/Documents/flutter/money_answer/channelApks/app-release_huawei.apk