Meituan-Dianping/walle

Name: walle

Owner: ????

Description: Android Signature V2 Scheme??????????????

Created: 2017-01-10 03:39:25.0

Updated: 2018-01-18 12:28:38.0

Pushed: 2018-01-12 08:07:55.0

Homepage: null

Size: 2064

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Walle

Release Version Build Status PRs Welcome License

Walle?????Android Signature V2 Scheme??????????????

?????Apk??APK Signature Block??????????????????????????????????????????????????HTTP????????????Apk????????

Quick Start

???????????????2??????

Gradle??????
??build.gradle

????????? build.gradle ?????Walle Gradle?????? ???

dscript {
dependencies {
    classpath 'com.meituan.android.walle:plugin:1.1.6'
}

????App? build.gradle ???apply?????????????????AAR

y plugin: 'walle'

ndencies {
compile 'com.meituan.android.walle:library:1.1.6'

????
e {
// ??????????
apkOutputFolder = new File("${project.buildDir}/outputs/channels");
// ??????APK?????
apkFileNameFormat = '${appName}-${packageName}-${channel}-${buildType}-v${versionName}-${versionCode}-${buildTime}.apk';
// ??????
channelFile = new File("${project.getProjectDir()}/channel")

????????

????????

?????????????????????

ng channel = WalleChannelReader.getChannel(this.getApplicationContext());
???????

??????????assemble${variantName}Channels?????????????????? build/outputs/apk/??????walle????apkOutputFolder?????????

?????

???? ??????

channelFile??????????????????????????walle?????configFile

e {
// ??&??????????channelFile??
configFile = new File("${project.getProjectDir()}/config.json")

configFile????????????????????
??????json????????channel???????????????????????&?????????? ?

???

???????????????

nelInfo channelInfo= WalleChannelReader.getChannelInfo(this.getApplicationContext());
channelInfo != null) {
tring channel = channelInfo.getChannel();
ap<String, String> extraInfo = channelInfo.getExtraInfo();

????????key??
ng value = WalleChannelReader.get(context, "buildtime");
????????

??????channelFile/configFile?????????????????????????????????

????-P????????channelFile/configFile???????????????? -PchannelList,-PchannelFile, -PconfigFile?????????

?????????

??????????????????????????????Walle CLI ????

??????

??????????????????????APK Signing Block?????????????????

????????????

Q&A
????

????????????????????Android???????????????

????
????
????
??
License
Copyright 2017 Meituan-Dianping

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.