Android studio 在android Studio中显示模糊android库(AAR)的API源
我目前正在从事一个android库项目,其软件包层次结构如下:Android studio 在android Studio中显示模糊android库(AAR)的API源,android-studio,proguard,android-library,aar,android-r8,Android Studio,Proguard,Android Library,Aar,Android R8,我目前正在从事一个android库项目,其软件包层次结构如下: com.example |_______ api (contains the public interface of the library) |_______ internal (contains the remaining internal classes) 不幸的是,我需要混淆内部类。这将生成以下proguard-rules.pro文件: # preserve the line number informat
com.example
|_______ api (contains the public interface of the library)
|_______ internal (contains the remaining internal classes)
不幸的是,我需要混淆内部类。这将生成以下proguard-rules.pro文件:
# preserve the line number information for stack traces and android studio integration
-keepattributes SourceFile,LineNumberTable
# hide the original source file name. (<--- This messes up android-studio integration)
-renamesourcefileattribute SourceFile
# Preserve information about throwing exceptions and deprecation of methods
-keepattributes Exceptions, Deprecated, Signature
# Preserve the original parameter names of kept methods
-keepparameternames
# Keeps the names of all public/protected classes/fields/methods in the api package
-keep public class com.example.api.* {
public protected *;
}
#为堆栈跟踪和android studio集成保留行号信息
-keepattributes源文件,LineNumberTable
#隐藏原始源文件名。(