forked from nickbutcher/plaid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nickbutcher#249 from wojtek-kalicinski/master
ProGuard rules cleanup
- Loading branch information
Showing
1 changed file
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |