ApkMultiChannel Plugin
???????? Android ?????? Android Studio / IDEA ???
- ??v2???jarsigner ? apksigner
- ??2????????
- ?? AndroidManifest.xml ? meta-data (name ? UMENG_CHANNEL) ? value ????????????????
- ????????? apk ? META-INF ??????????????c_???
- packer-ng-plugin????? apk ????????????????
??
- ?? Android Studio: ??
Setting/Preferences -> Plugins -> Browse repositories
????ApkMultiChannel
????
??
- ?? ApkMultiChannelPlugin.jar ??
Setting/Preferences -> Plugins -> Install plugin from disk
??ApkMultiChannelPlugin.jar
????
????
1. ?? apk
???? apk ??????? Build MultiChannel
2. ??
???????????????
?????
Key Store Path: ???????
Key Store Password: ???????
Key Alias: ????
Key Password: ????
Zipalign Path: zipalign ?????????? apk?zipalign ???????????????????????????????????????????? RAM ???
Signer Version: ???????apksigner ? jarsigner
Build Type: ????
Channels: ??????????????? >
????????????????????
3. ????
??????? OK ????????????????????apk???????channels???
??
?????????????????????? channels.properties?
??????? channels.properties ???????????? >
???????????? >
?????????????????#?
?????????????????? channels.properties ???????? Build > Channel Setting
??????? ?????????? OK ????????????????????
Build Type ??
update AndroidManifest.xml
????? AndroidManifest.xml ??? temp ????????????????? meta-data???1? apk ? channels ??????? META-INF ?????????? ???? AndroidManifest.xml????????
add channel file to META-INF
??1? apk???????????????????????? jarsigner ??????????apksigner ????????? META-INF ???????? ????? ChannelHelper
write zip comment
?????? apk ? comment ???? SIGN ????????????????????????? v2 ?????? v2????1???????? apk ? temp ????????? v1? ?????????? v2 ???????? ZIP End of Central Directory
?????????? ZIP End of Central Directory
??? v2 ???comment ?????? ????? ZipCommentHelper
???????
- ???????????? apk ?????????
- buildType ???????????????? Walle
?????????? Issues ???
????
- ntop001/AXMLEditor
- Bilibili/apk-channelization
- ??Android?????—?????
- apksigner
- packer-ng-plugin
- ?????Android???????Walle
- apksig
License
GPL-3.0