From 6cce5e7a68a73a81b807c77d2e0bd8890db77e53 Mon Sep 17 00:00:00 2001 From: luohaijiang Date: Wed, 13 Jan 2016 11:32:54 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=8E=A8=E5=B9=BF=E5=91=98=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E-android?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/Android.md | 0 ...275\277\347\224\250\350\257\264\346\230\216.md" | 31 ++++++++-------------- 2 files changed, 11 insertions(+), 20 deletions(-) delete mode 100644 doc/Android.md diff --git a/doc/Android.md b/doc/Android.md deleted file mode 100644 index e69de29..0000000 diff --git "a/doc/\346\216\250\345\271\277\345\221\230\351\241\271\347\233\256Sdk for android\344\275\277\347\224\250\350\257\264\346\230\216.md" "b/doc/\346\216\250\345\271\277\345\221\230\351\241\271\347\233\256Sdk for android\344\275\277\347\224\250\350\257\264\346\230\216.md" index 027839d..b7731c0 100644 --- "a/doc/\346\216\250\345\271\277\345\221\230\351\241\271\347\233\256Sdk for android\344\275\277\347\224\250\350\257\264\346\230\216.md" +++ "b/doc/\346\216\250\345\271\277\345\221\230\351\241\271\347\233\256Sdk for android\344\275\277\347\224\250\350\257\264\346\230\216.md" @@ -21,32 +21,23 @@ Help==>About Eclips #### 1、 修改AndroidManifest.xml文件 首先添加必要的权限,如下所示: - - - + + + 其次注册相应的Activity,具体如下: - - + + ## 第二章 常见问题 ### 问题1: 如何避免混淆对SDK的影响? 解答:有些开发者对接入了SDK的程序进行混淆时,有可能会覆盖某些java 类,导致SDK无法正常工作,解决方法如下: ? 请开发者在混淆配置文件proguard.cfg或proguard-project.txt的最后加上 - - -libraryjars D:\workspace\spreader\PromoterSdk\libs\gson-2.2.4.jar - -libraryjars D:\workspace\spreader\PromoterSdk\libs\library.jar - -keepclassmembers class * extends android.app.Activity { - public void *(android.view.View); - } - -keep public class * extends android.app.Activity - -keep public class com.gumptech.promoter.Entrance - - -keep public class com.gumptech.promoter.Entrance { *;} - -keep public class com.gumptech.promoter.view.ProgressBar { *;} + -keep public class com.gumptech.promoter.Entrance { *;} + -keep public class com.gumptech.promoter.view.ProgressBar { *;} 使得混淆的时候不会影响SDK的命名空间。 -- 2.0.0