add proguard
This commit is contained in:
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -4,7 +4,7 @@
|
||||
<asm skipDebug="false" skipFrames="false" skipCode="false" expandFrames="false" />
|
||||
<groovy codeStyle="LEGACY" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="JDK" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -39,13 +39,13 @@ android {
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
signingConfig signingConfigs.release
|
||||
debuggable = true
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
release {
|
||||
minifyEnabled false
|
||||
zipAlignEnabled false
|
||||
shrinkResources false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
shrinkResources true
|
||||
signingConfig signingConfigs.release
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
|
||||
27
app/proguard-rules.pro
vendored
27
app/proguard-rules.pro
vendored
@@ -156,6 +156,27 @@
|
||||
public static *** w(...);
|
||||
}
|
||||
|
||||
#kotlin
|
||||
-keep class kotlin.* { *; }
|
||||
-keepclassmembernames class kotlinx.*{
|
||||
volatile <fields>;
|
||||
}
|
||||
-keep class kotlin.Metadata { *; }
|
||||
-dontwarn kotlin.*
|
||||
-dontwarn kotlin.**
|
||||
-keepclassmembers class **$WhenMappings {
|
||||
<fields>;
|
||||
}
|
||||
-keepclassmembers class kotlin.Metadata {
|
||||
public <methods>;
|
||||
}
|
||||
-assumenosideeffects class kotlin.jvm.internal.Intrinsics {
|
||||
static void checkParameterIsNotNull(java.lang.Object, java.lang.String);
|
||||
}
|
||||
-keepclassmembers class kotlin.Metadata { *; }
|
||||
-keep @kotlin.Metadata class *
|
||||
-keepclasseswithmembers @kotlin.Metadata class * { *; }
|
||||
|
||||
#----------------------------------------第三方库----------------------------------------------
|
||||
#-----高德地图-----
|
||||
#3D 地图 V5.0.0之后:
|
||||
@@ -225,6 +246,10 @@
|
||||
#-----Okio-----
|
||||
# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
|
||||
-dontwarn org.codehaus.mojo.animal_sniffer.*
|
||||
-dontwarn com.squareup.**
|
||||
-dontwarn okio.**
|
||||
-keep public class org.codehaus.* { *; }
|
||||
-keep public class java.nio.* { *; }
|
||||
|
||||
#-----OkHttp-----
|
||||
# JSR 305 annotations are for embedding nullability information.
|
||||
@@ -277,7 +302,7 @@
|
||||
}
|
||||
|
||||
#-----ZhiDaoService-----
|
||||
-keep class com.zhidao.auto.*{*;}
|
||||
-keep class com.zhidao.auto.platform.*{*;}
|
||||
-keep class com.zhidaohulian.*{*;}
|
||||
-keep class com.elegant.analytics.*{*;}
|
||||
-keep class com.zhidao.socketsdk.*{*;}
|
||||
|
||||
@@ -22,7 +22,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
#-----Foundation-Commons-----
|
||||
-keep class com.mogo.commons.data.BaseData.*{*;}
|
||||
3
foudations/mogo-commons/proguard-rules.pro
vendored
3
foudations/mogo-commons/proguard-rules.pro
vendored
@@ -19,3 +19,6 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----Foundation-Commons-----
|
||||
-keep class com.mogo.commons.data.BaseData.*{*;}
|
||||
@@ -3,7 +3,6 @@ package com.mogo.commons.network;
|
||||
import com.mogo.commons.data.BaseData;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
import com.mogo.utils.network.RequestOptions;
|
||||
import com.mogo.utils.network.utils.GsonUtil;
|
||||
import com.mogo.utils.network.utils.Util;
|
||||
|
||||
import io.reactivex.Observer;
|
||||
|
||||
@@ -59,9 +59,9 @@ MOGO_MODULE_MAIN_INDEPENDENT_VERSION = 1.2.1.17
|
||||
# 探路
|
||||
MOGO_MODULE_TANLU_VERSION=1.3.0.3-byd
|
||||
# 车聊聊
|
||||
CARCHATTING_VERSION=1.3.2
|
||||
CARCHATTING_VERSION=1.4.1
|
||||
# 车聊聊接口
|
||||
CARCHATTINGPROVIDER_VERSION=1.3.2
|
||||
CARCHATTINGPROVIDER_VERSION=1.3.4
|
||||
# 视频引导
|
||||
MOGO_MODULE_GUIDESHOW_VERSION=1.0.2-SNAPSHOT
|
||||
# 视频引导接口
|
||||
@@ -69,7 +69,7 @@ MOGO_MODULE_GUIDESHOW_PROVIDER_VERSION=1.0.2-SNAPSHOT
|
||||
# 在线车辆F
|
||||
MOGO_MODULE_ONLINECAR_VERSION=1.0.3.2
|
||||
# v2x
|
||||
MOGO_MODULE_V2X_VERSION=1.2.8
|
||||
MOGO_MODULE_V2X_VERSION=1.3.0
|
||||
# 推送
|
||||
MOGO_MODULE_PUSH_VERSION=1.1.5.6
|
||||
MOGO_MODULE_PUSH_BASE_VERSION=1.1.5.5
|
||||
|
||||
@@ -15,7 +15,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
#-----library-MapAMap-----
|
||||
-keep class com.mogo.map.impl.amap.hook.BnHooker.*{*;}
|
||||
3
libraries/map-amap/proguard-rules.pro
vendored
3
libraries/map-amap/proguard-rules.pro
vendored
@@ -19,3 +19,6 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----library-MapAMap-----
|
||||
-keep class com.mogo.map.impl.amap.hook.BnHooker.*{*;}
|
||||
@@ -15,7 +15,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
#-----library-MapApi----
|
||||
-keep class com.mogo.map.search.geo.MogoRegeocodeResult.*{*;}
|
||||
3
libraries/mogo-map-api/proguard-rules.pro
vendored
3
libraries/mogo-map-api/proguard-rules.pro
vendored
@@ -19,3 +19,6 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----library-MapApi----
|
||||
-keep class com.mogo.map.search.geo.MogoRegeocodeResult.*{*;}
|
||||
@@ -24,7 +24,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
#-----AppModule-----
|
||||
|
||||
@@ -3,7 +3,6 @@ apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'com.alibaba.arouter'
|
||||
apply plugin: 'android-aspectjx'
|
||||
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
||||
@@ -29,7 +28,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
@@ -51,7 +52,6 @@ dependencies {
|
||||
implementation rootProject.ext.dependencies.androidxconstraintlayout
|
||||
implementation rootProject.ext.dependencies.arouter
|
||||
kapt rootProject.ext.dependencies.aroutercompiler
|
||||
implementation rootProject.ext.dependencies.aspectj
|
||||
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
implementation rootProject.ext.dependencies.mogoutils
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
#-----AuthorizeModule-----
|
||||
-keep class com.mogo.module.authorize.module.bean.*{*;}
|
||||
@@ -19,3 +19,6 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----AuthorizeModule-----
|
||||
-keep class com.mogo.module.authorize.module.bean.*{*;}
|
||||
@@ -1,17 +0,0 @@
|
||||
package com.mogo.module.authorize.aspectj
|
||||
|
||||
import org.aspectj.lang.annotation.Aspect
|
||||
import org.aspectj.lang.annotation.Pointcut
|
||||
|
||||
@Aspect
|
||||
class VoiceForbiddenWhenAuthorize {
|
||||
|
||||
companion object{
|
||||
const val TAG = "VoiceForbiddenWhenAuthorize"
|
||||
}
|
||||
|
||||
@Pointcut()
|
||||
fun authorizeTrackPoint(){
|
||||
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
#-----CommonModule-----
|
||||
-keep class com.mogo.module.common.entity.*
|
||||
-keep class com.mogo.module.common.entity.*{*;}
|
||||
-keep class com.mogo.module.common.entity.MarkerResponse.*{*;}
|
||||
|
||||
@@ -19,3 +19,8 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----CommonModule-----
|
||||
-keep class com.mogo.module.common.entity.*
|
||||
-keep class com.mogo.module.common.entity.*{*;}
|
||||
-keep class com.mogo.module.common.entity.MarkerResponse.*{*;}
|
||||
|
||||
@@ -25,7 +25,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#-----EventPanel------
|
||||
-keep class com.zhidao.mogo.module.event.panel.bean.*{*;}
|
||||
-keep class com.zhidao.mogo.module.event.panel.dao.*{*;}
|
||||
@@ -18,4 +18,8 @@
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----EventPanel------
|
||||
-keep class com.zhidao.mogo.module.event.panel.bean.*{*;}
|
||||
-keep class com.zhidao.mogo.module.event.panel.dao.*{*;}
|
||||
@@ -22,7 +22,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
#-----ExtensionModule-----
|
||||
-keep class com.mogo.module.extensions.userinfo.UserInfoResponse.*{*;}
|
||||
@@ -19,3 +19,6 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----ExtensionModule-----
|
||||
-keep class com.mogo.module.extensions.userinfo.UserInfoResponse.*{*;}
|
||||
@@ -21,7 +21,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
#-----GPS-DEBUG-SIMULATOR-----
|
||||
-keep class com.mogo.module.gps.simulator.CationVo.*{*;}
|
||||
@@ -19,3 +19,6 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----GPS-DEBUG-SIMULATOR-----
|
||||
-keep class com.mogo.module.gps.simulator.CationVo.*{*;}
|
||||
|
||||
@@ -28,7 +28,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
#-----MainModule-----
|
||||
-keep class com.mogo.module.main.cards.CardIntroduceConfig.*{*;}
|
||||
3
modules/mogo-module-main/proguard-rules.pro
vendored
3
modules/mogo-module-main/proguard-rules.pro
vendored
@@ -19,3 +19,6 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----MainModule-----
|
||||
-keep class com.mogo.module.main.cards.CardIntroduceConfig.*{*;}
|
||||
@@ -22,7 +22,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#-----MediaModule-----
|
||||
-dontwarn com.mogo.module.media.**
|
||||
-keep class com.mogo.module.media.listener.* { *; }
|
||||
-keep class com.mogo.module.media.model.* { *; }
|
||||
-keep class com.mogo.module.media.view.* { *; }
|
||||
-keep class com.mogo.module.media.widget.* { *; }
|
||||
-keep class com.mogo.module.media.api.* { *; }
|
||||
-keep class com.mogo.module.media.constants.* { *; }
|
||||
-keep class com.mogo.module.media.presenter.* { *; }
|
||||
-keep class com.mogo.module.media.receiver.* { *; }
|
||||
18
modules/mogo-module-media/proguard-rules.pro
vendored
18
modules/mogo-module-media/proguard-rules.pro
vendored
@@ -19,12 +19,14 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----MediaModule-----
|
||||
-dontwarn com.mogo.module.media.**
|
||||
-keep class com.mogo.module.media.listener.** { *; }
|
||||
-keep class com.mogo.module.media.model.** { *; }
|
||||
-keep class com.mogo.module.media.view.** { *; }
|
||||
-keep class com.mogo.module.media.widget.** { *; }
|
||||
-keep class com.mogo.module.media.api.** { *; }
|
||||
-keep class com.mogo.module.media.constants.** { *; }
|
||||
-keep class com.mogo.module.media.presenter.** { *; }
|
||||
-keep class com.mogo.module.media.receiver.** { *; }
|
||||
-keep class com.mogo.module.media.listener.* { *; }
|
||||
-keep class com.mogo.module.media.model.* { *; }
|
||||
-keep class com.mogo.module.media.view.* { *; }
|
||||
-keep class com.mogo.module.media.widget.* { *; }
|
||||
-keep class com.mogo.module.media.api.* { *; }
|
||||
-keep class com.mogo.module.media.constants.* { *; }
|
||||
-keep class com.mogo.module.media.presenter.* { *; }
|
||||
-keep class com.mogo.module.media.receiver.* { *; }
|
||||
@@ -29,7 +29,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
#-----SearchModule-----
|
||||
-keep class com.mogo.module.navi.bean.*{*;}
|
||||
-keep class com.mogo.module.navi.dao.*{*;}
|
||||
-keep class com.mogo.module.navi.database.*{*;}
|
||||
@@ -19,3 +19,8 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----SearchModule-----
|
||||
-keep class com.mogo.module.navi.bean.*{*;}
|
||||
-keep class com.mogo.module.navi.dao.*{*;}
|
||||
-keep class com.mogo.module.navi.database.*{*;}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'com.alibaba.arouter'
|
||||
|
||||
android {
|
||||
@@ -24,7 +25,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
#-----ServiceModule-----
|
||||
-keep class com.mogo.module.service.carinfo.CarStateInfo.*{*;}
|
||||
-keep class com.mogo.module.service.network.RefreshBody.*{*;}
|
||||
-keep class com.mogo.module.service.network.bean.DemoUserInfoEntity.*{*;}
|
||||
@@ -19,3 +19,8 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----ServiceModule-----
|
||||
-keep class com.mogo.module.service.carinfo.CarStateInfo.*{*;}
|
||||
-keep class com.mogo.module.service.network.RefreshBody.*{*;}
|
||||
-keep class com.mogo.module.service.network.bean.DemoUserInfoEntity.*{*;}
|
||||
@@ -24,7 +24,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
zipAlignEnabled true
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
#-----ShareModule-----
|
||||
-keep class com.mogo.module.share.bean.*{*;}
|
||||
3
modules/mogo-module-share/proguard-rules.pro
vendored
3
modules/mogo-module-share/proguard-rules.pro
vendored
@@ -19,3 +19,6 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#-----ShareModule-----
|
||||
-keep class com.mogo.module.share.bean.*{*;}
|
||||
Reference in New Issue
Block a user