下一代Android渠道打包工具
2015-12-16 11:49
323 查看
下一代Android渠道打包工具 https://github.com/mcxiaoke/packer-ng-plugin
另一个地址 http://www.open-open.com/lib/view/open1440248204395.html
配置完成后 配合友盟使用即可
在友盟中
如不想在manifest里配置友盟的channel,
可在Activity中配置:只需在程序启动时的Activity中调用此接口:
另一个地址 http://www.open-open.com/lib/view/open1440248204395.html
apply plugin: 'com.android.application' apply plugin: 'packer' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "com.weidingqiang.customnetroid" minSdkVersion 17 targetSdkVersion 22 versionCode 1 versionName "1.0" } // buildTypes { // release { // minifyEnabled false // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' // } // } signingConfigs { release { storeFile file("key.jks") storePassword "123456" keyAlias "hello" keyPassword "123456" } } buildTypes { release { signingConfig signingConfigs.release minifyEnabled false } beta { signingConfig signingConfigs.release minifyEnabled false debuggable true } } } packer { // 指定渠道打包输出目录 // archiveOutput = file(new File(project.rootProject.buildDir.path, "archives")) // 指定渠道打包输出文件名格式 archiveNameFormat = '${flavorName}-v${versionName}-${versionCode}-${buildTime}' //appPkg = '' // 指定渠道打包需要修改的AndroidManifest文件项 //manifestMatcher = ['UMENG_CHANNEL','Google_Play'] } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.duowan.android.netroid:netroid:1.2.1' compile 'com.mcxiaoke.gradle:packer-helper:1.0.2' }
配置完成后 配合友盟使用即可
在友盟中
如不想在manifest里配置友盟的channel,
可在Activity中配置:只需在程序启动时的Activity中调用此接口:
AnalyticsConfig.setChannel(String channel)
相关文章推荐
- (android:windowIsTranslucent)影响(android:windowAnimationStyle)Activity切换动画无效
- 【Android图片加载框架】制作自己的图片加载框架(一)
- 收集android上开源的酷炫的交互动画和视觉效果:Interactive-animation
- Android获取存储卡路径的方式
- Android编程中出现The connection to adb is down问题的解决方法
- android 设置边框只显示部分线条
- 《Android群英传》读书笔记(4)第五章:Android Scroll分析
- LayoutInflater和findViewById的区别
- android中 menu的属性详细解释
- 丢失Android系统库或者Conversion to Dalvik format failed with error 1错误的解决方法
- Android-图片存入系统相册更新显示
- Android WebView中获取网页的title (包括调用goback)
- Android Studio系列教程六--Gradle多渠道打包
- Android编程之退出整个应用程序的方法
- android 优化显示图片有效避免oom
- handler机制
- Android学习路线
- 对属性的保护---- SEAndroid in Android5.x
- Android录音MediaRecord
- Android的ViewFlipper与GestureDetector