Android:什么是ProGuard,我什么时候需要使用它? [英] Android: What is ProGuard and when do i need to use it?

查看:150
本文介绍了Android:什么是ProGuard,我什么时候需要使用它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个新闻应用程序,它使用JSON从新闻网站获取内容,该应用程序具有GCM服务(推送通知),因此我已声明我的 SENDER-ID MainActivity 中,并且没有用户帐户。我认为这里唯一的敏感信息是 SENDER-ID

所以,究竟是什么 ProGuard ?我是否需要在我的应用中使用它?



注意:我已阅读关于 ProGuard 但我不明白何时使用它)。

解决方案

你的apk,优化你的代码和模糊处理(使代码不清楚,这样拥有你的APK的人不能轻松地反编译你的APK并阅读你的代码的内容。)

不是必须使用ProGuard,但它肯定可以帮助你,有好几个专业人士可以使用它,而你需要启用它只是取消一条线的注释并且你都准备好了。



这是一篇很好的文章

I've built a news app that gets its contents from the news website using JSON, the app has GCM service (Push Notifications) so i have declared my SENDER-ID in the MainActivity and there is no user accounts. I think the only sensitive info here is the SENDER-ID.

So what exactly is ProGuard ? and do i need to use it in my app ?

(NOTE: I have read the documentations about ProGuard but i didn't quite understand when to use it).

解决方案

A tool which reduces size of your apk, optimze your code and obfuscates(makes code unclear, so that someone who has your APK can not easily decompile your APK and read the content of your code.

It's not a must to use ProGuard, but it surely helps you, there are several Pros to using it, and all you need to enable it is just to uncomment a single line and you are all set to go.

This is one good article on it

这篇关于Android:什么是ProGuard,我什么时候需要使用它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆