草庐IT

proguard-rules

全部标签

android - Android 上的 Firebase 需要什么 ProGuard 配置?

使用Firebase时适用于Android应用程序的SDK,我不断收到此类警告和错误(在Eclipse中):Warning...can'tfindreferencedclass...Warning:therewere...unresolvedreferencestoclassesorinterfaces...Youmayneedtospecifyadditionallibraryjars(using'-libraryjars')...很遗憾,Firebase没有任何关于其与ProGuard一起使用的官方文档。在使用ProGuard进行混淆时,我的应用需要哪些指令才能使用Firebase

android - 使用 proguard 删除日志调用

我正在尝试使用proguard来删除我的所有日​​志:我在proguard-project.txt中输入了以下行:-assumenosideeffectsclassandroid.util.Log{*;}我的project.properties看起来像这样:proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt尽管如此,日志继续显示在我的应用程序中。我到底做错了什么? 最佳答案 您不应该指定“*”通配符,因为它包括像“Ob

android - 使用 proguard 删除日志调用

我正在尝试使用proguard来删除我的所有日​​志:我在proguard-project.txt中输入了以下行:-assumenosideeffectsclassandroid.util.Log{*;}我的project.properties看起来像这样:proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt尽管如此,日志继续显示在我的应用程序中。我到底做错了什么? 最佳答案 您不应该指定“*”通配符,因为它包括像“Ob

android - 使用 Proguard 编译给出 SimException : "local variable type mismatch"

当我在启用Proguard的情况下编译我的Android应用程序时,我收到以下错误:-dex:[echo]Convertingcompiledfilesandexternallibrariesinto/home/ka/dev/workspace/ImPress/build/classes.dex...[apply][apply]UNEXPECTEDTOP-LEVELEXCEPTION:[apply]com.android.dx.cf.code.SimException:localvariabletypemismatch:attempttosetoraccessavalueoftypej

android - 使用 Proguard 编译给出 SimException : "local variable type mismatch"

当我在启用Proguard的情况下编译我的Android应用程序时,我收到以下错误:-dex:[echo]Convertingcompiledfilesandexternallibrariesinto/home/ka/dev/workspace/ImPress/build/classes.dex...[apply][apply]UNEXPECTEDTOP-LEVELEXCEPTION:[apply]com.android.dx.cf.code.SimException:localvariabletypemismatch:attempttosetoraccessavalueoftypej

android - Proguard 问题 "Warning:Ignoring InnerClasses attribute for an anonymous inner class"

我不知道该如何描述这个问题。我搜索了很多,但没有找到任何解决方案。这个解决方案也没有帮助我-keepattributesEnclosingMethod:dependencies{compileproject(':libraries:material-drawer')compilefileTree(dir:'libs',include:['*.jar'])testCompile'junit:junit:4.12'compile'com.android.support:appcompat-v7:23.2.0'compile'com.android.support:recyclerview-

android - Proguard 问题 "Warning:Ignoring InnerClasses attribute for an anonymous inner class"

我不知道该如何描述这个问题。我搜索了很多,但没有找到任何解决方案。这个解决方案也没有帮助我-keepattributesEnclosingMethod:dependencies{compileproject(':libraries:material-drawer')compilefileTree(dir:'libs',include:['*.jar'])testCompile'junit:junit:4.12'compile'com.android.support:appcompat-v7:23.2.0'compile'com.android.support:recyclerview-

elform 动态 rules

一.使用v-for渲染时前端由于某些需求场景需要,部分表单的渲染是通过v-for循环渲染显示,此时如何实现表单验证呢?如下,点击第一行的+号可以动态的增加更多行表单,不同于单一固定的表单行[参见下文一般情况下],我们可以通过固定的prop绑定来验证,多行动态时,则无法使用原有方案进行验证!!! 页面代码实现如下:注意:此处的el-form-item管理着三个表单元件!!提示时只使用一个el-form-item携带的提示框!!!不良事件提醒{if(!item.adverseEventCrf||item.adverseEventCrf.length===0){callback('请选择CRF模板'

克拉默法则证明(Cramer‘s Rule)

若n个方程n个未知量构成的非齐次线性方程组:{a11x1+a12x2+...+a1nxn=b1a21x1+a22x2+...+a2nxn=b2......an1x1+an2x2+...+annxn=bn\begin{equation*}\begin{cases}a_{11}x_{1}+a_{12}x_{2}+...+a_{1n}x_{n}=b_1\\a_{21}x_{1}+a_{22}x_{2}+...+a_{2n}x_{n}=b_2\\......\\a_{n1}x_{1}+a_{n2}x_{2}+...+a_{nn}x_{n}=b_n\end{cases}\end{equation*}⎩⎨

使用Retrofit2和rxjava使用Proguard时出错

当我禁用Proguard时,它正常起作用,但是当启用Proguard时,它将引发一个例外:java.lang.IllegalStateException:FatalExceptionthrownonScheduler.Workerthread.这是我的代码:privatefungetData(email:String){mSubscriptions!!.add(NetworkUtil.retrofit.getProfile(email).observeOn(AndroidSchedulers.mainThread()).subscribeOn(Schedulers.io()).subscrib