# flutter_walle_plugin **Repository Path**: philos/flutter_walle_plugin ## Basic Information - **Project Name**: flutter_walle_plugin - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-23 - **Last Updated**: 2021-06-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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文件需要放在项目根目录,配置信息实例如下: [渠道配置文件示例](https://github.com/Meituan-Dianping/walle/blob/master/app/channel) [渠道&额外信息配置文件示例](https://github.com/Meituan-Dianping/walle/blob/master/app/config.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 ```