Skip to content

Commit

Permalink
加权限管理
Browse files Browse the repository at this point in the history
  • Loading branch information
liyaqing committed Nov 9, 2017
1 parent 77802e6 commit a465be8
Show file tree
Hide file tree
Showing 6 changed files with 291 additions and 25 deletions.
12 changes: 12 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,18 @@ android {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug{
//是否启动zipAlign
zipAlignEnabled true
//是否移除无用的resource文件
shrinkResources false
}
release {
minifyEnabled false
//是否启动zipAlign
zipAlignEnabled true
//是否移除无用的resource文件
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand All @@ -27,4 +37,6 @@ dependencies {
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
testCompile 'junit:junit:4.12'
compile project(':easeui')
// compile 'com.github.isqing:HxTest:1.0'
compile 'pub.devrel:easypermissions:0.4.2'
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ buildscript {
allprojects {
repositories {
jcenter()

maven { url 'https://jitpack.io' }
}
}

Expand Down
5 changes: 5 additions & 0 deletions easeui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ android {
buildTypes {
release {
minifyEnabled false
//是否启动zipAlign
zipAlignEnabled true
//是否移除无用的resource文件
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand Down Expand Up @@ -41,4 +45,5 @@ dependencies {
testCompile 'junit:junit:4.12'

compile 'com.android.support:support-core-utils:24.2.1'
compile 'pub.devrel:easypermissions:0.4.2'
}
83 changes: 83 additions & 0 deletions easeui/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,86 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}


-keepattributes Signature
# Retain declared checked exceptions for use by a Proxy instance.
-keepattributes Exceptions
#保留support库
-keep class android.support.** {
*;
}

##2D地图
#-keep class com.amap.api.maps2d.*{*;}
#-keep class com.amap.api.mapcore2d.*{*;}
#-keep class com.amap.api.interfaces.*{*;}
#-keep class com.autonavi.amap.mapcore2d.*{*;}
#
#
##定位
#-keep class com.amap.api.location.*{*;}
#-keep class com.amap.api.fence.*{*;}
#-keep class com.autonavi.aps.amapapi.model.*{*;}
#-keep class com.loc.*{*;}


#定位
-keep class com.amap.api.location.**{*;}
-keep class com.amap.api.fence.**{*;}
-keep class com.autonavi.aps.amapapi.model.**{*;}
#2D地图
-keep class com.amap.api.maps2d.**{*;}
-keep class com.amap.api.mapcore2d.**{*;}

# 搜索
-keep class com.amap.api.services.**{*;}
-dontwarn com.amap.**
-dontwarn com.amap.api.**
# -dontwarn com.github.lzyzsd.jsbridge.**{*;}
# -dontwarn comg.amap.api.mapcore2d.MapMessage
# -keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
# }
# -keep class com.hyphenate.** {*;}
# -dontwarn com.hyphenate.**
# -keep class com.hyphenate.easeui.utils.EaseSmileUtils {*;}

# -dontwarn com.squareup.okhttp3.**
# -keep class com.squareup.okhttp3.** { *;}
# -dontwarn okio.**
#
-dontwarn com.parse.**
-keep class com.parse.** { *; }

#环信部分混淆规则代码
-dontwarn com.easemob.**
-keep class com.easemob.** {*;}
-keep class org.xmlpull.** {*;}
-keep class com.squareup.picasso.* {*;}
-keep class com.hyphenate.* {*;}
-keep class com.hyphenate.chat.** {*;}
-keep class org.jivesoftware.** {*;}
-keep class org.apache.** {*;}
#如果使用easeui库,需要这么写
-keep class com.hyphenate.easeui.utils.EaseSmileUtils {*;}
#2.0.9后加入语音通话功能,如需使用此功能的api,加入以下keep
-dontwarn ch.imvs.**
-dontwarn org.slf4j.**
-keep class org.ice4j.** {*;}
-keep class net.java.sip.** {*;}
-keep class org.webrtc.voiceengine.** {*;}
-keep class org.bitlet.** {*;}
-keep class org.slf4j.** {*;}
-keep class ch.imvs.** {*;}
-keep class com.easemob.** {*;}
#环信3.0
-keep class com.hyphenate.** {*;}
-dontwarn com.hyphenate.**
-keep class com.superrtc.** {*;}

-dontwarn android.webkit.WebView**
-keep public class android.webkit** { *; }

-dontwarn org.apache.http.conn.ssl.SSLSocketFactory**
-keep public class org.apache.http.conn.ssl** { *; }
Loading

0 comments on commit a465be8

Please sign in to comment.