Skip to content

Commit

Permalink
Merge pull request nickbutcher#249 from wojtek-kalicinski/master
Browse files Browse the repository at this point in the history
ProGuard rules cleanup
  • Loading branch information
nickbutcher authored Feb 14, 2018
2 parents a24f178 + 35776d2 commit a85def4
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
#
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

-dontobfuscate #STOPSHIP remove this
-dontwarn retrofit2.**
-dontwarn rx.**
-dontwarn okhttp3.**
-dontwarn okio.**
##
## Copyright 2016 Google Inc.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##

# For stack traces
-keepattributes SourceFile, LineNumberTable

# Get rid of package names, makes file smaller
-repackageclasses

# Required for Retrofit/OkHttp
-dontwarn javax.annotation.**
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-keepattributes *Annotation*, Signature, Exceptions

# This optimization conflicts with how Retrofit uses proxy objects without concrete implementations
-optimizations !method/removal/parameter

# A resource is loaded with a relative path so the package of this class must be preserved.
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase

-keep class io.plaidapp.data.api.dribbble.model.** { *; }
# Required for GSON parsing of data coming from network requests to models
-keep class io.plaidapp.data.api.dribbble.model.** { *; }
-keep class io.plaidapp.data.api.designernews.model.** { *; }
-keep class io.plaidapp.data.api.producthunt.model.** { *; }
-keep class io.plaidapp.ui.transitions.** { *; }
-keep class android.support.v7.widget.LinearLayoutManager {
public protected *;
}
-keep public class * extends com.bumptech.glide.module.AppGlideModule
-keep class com.bumptech.glide.GeneratedAppGlideModuleImpl
-keep class in.uncod.android.bypass.** { *; }
-keep class retrofit2.** { *; }

-keepattributes *Annotation*,Signature,Exceptions

-keepclasseswithmembers class * {
@retrofit.http.* <methods>;
}
# Required for classes created and used from JNI code (on C/C++ side)
-keep, includedescriptorclasses class in.uncod.android.bypass.Document { *; }
-keep, includedescriptorclasses class in.uncod.android.bypass.Element { *; }

# A resource is loaded with a relative path so the package of this class must be preserved.
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-keepnames class org.jsoup.nodes.Entities


# This optimization conflicts with how Retrofit uses proxy objects without concrete implementations
-optimizations !method/removal/parameter

0 comments on commit a85def4

Please sign in to comment.