Showing posts with label library. Show all posts
Showing posts with label library. Show all posts

UpdateCheckerLib ProGuard rules

UpdateCheckerLib – is a simple and compact Android check update library that crawls the latest version of the app on the market.

ProGuard rules for UpdateCheckerLib

Add the following lines to your ProGuard configuration proguard.cfg file in project.

############################### UpdateCheckerLib ###############################
-keep class org.jsoup.**

For more information about UpdateCheckerLib please see the website.

YoutubeTV ProGuard rules

YoutubeTV – is an YouTube embedded player library for Android TV.

ProGuard rules for YoutubeTV

Add the following lines to your ProGuard configuration proguard.cfg file in project.

################################## YoutubeTV ###################################
-keep class fr.bmartel.youtubetv.JavascriptInterface { *; }

-keepclassmembers,allowobfuscation class fr.bmartel.youtubetv.JavascriptInterface.** {
    <methods>;
}

For more information about YoutubeTV please see the website.

SyncMarket ProGuard rules

SyncMarket – is a library that manages your application's version update or get your Google Play information more simply.

ProGuard rules for SyncMarket

Add the following lines to your ProGuard configuration proguard.cfg file in project.

################################## SyncMarket ##################################
-keep public class org.jsoup.** {
 public *;
}

For more information about SyncMarket please see the website.

GPVersionChecker ProGuard rules

GPVersionChecker – is an Android library for checking the current uploaded version on the Google Play.

ProGuard rules for GPVersionChecker

Add the following lines to your ProGuard configuration proguard.cfg file in project.

############################### GPVersionChecker ###############################
-keep public class org.jsoup.** {
public *;
}

For more information about GPVersionChecker please see the website.

Welcome ProGuard rules

Welcome – is a library that provides easy to use and customizable welcome screen for Android applications.

ProGuard rules for Welcome

All unused classes and methods removed in the shrinking phase. ProGuard obfuscates classes, fields, and methods with short names. To fix errors specify the next rules in configuration file.

AboutLibraries ProGuard rules

AboutLibraries – is a library that allows to easily create an used open source libraries fragment/activity within your Android application.

ProGuard rules for AboutLibraries

ProGuard's shrinking step removes unused classes, fields, methods and attributes . Remaining classes, fields, and methods after obfuscation step will be with short names. Use the following rules in your proguard-rules.pro configuration file.

BRVAH ProGuard rules

BRVAH or BaseRecyclerViewAdapterHelper – is a powerful and flexible RecyclerAdapter.

ProGuard rules for BRVAH

ProGuard removes unused classes, attributes, and it optimizes and obfuscates the rest your program code. ProGuard writes out class files named 'a.class', 'b.class', etc. in the obfuscation phase. Specify the following ProGuard-style specification for your proguard-rules.pro file.

ObservableCache ProGuard rules

ObservableCache – is an Android library for caching Observables during orientation change.

Library allows to cache Observable in global singleton map and retrieve same Observable after view is recreated.

ProGuard rules for ObservableCache

ProGuard obfuscates class names and may shrink classes, which are not used. ProGuard obfuscates classes, fields, and methods with short names. Use the next rules in configuration file to fix errors.

Pugnotification ProGuard rules

Pugnotification – is a powerful library for creating notifications in Android platform.

ProGuard rules for Pugnotification

Add the following lines to your ProGuard configuration proguard.cfg file in project if you use the Picasso to manage the download of the image.

# Pugnotification
-dontwarn com.squareup.okhttp.**

For more information about Pugnotification please see the website.

Related ProGuard rules

AndroidBaseUtils ProGuard rules

AndroidBaseUtils – a library that provides Context free and basic utils to build Android project conveniently.

ProGuard rules for AndroidBaseUtils

Add the following lines to your ProGuard configuration proguard.cfg file in project.

# AndroidBaseUtils
-keep class com.thefinestartist.annotations.** { *; }
-keep class **$$ExtraBinder { *; }
-keepclasseswithmembernames class * {
    @com.thefinestartist.annotations.Extra ;
}

For more information about AndroidBaseUtils please see the website.

EasyAdapter ProGuard rules

EasyAdapter – is an Android library provides an easier way of linking ListView and RecyclerView with the underlying data for that view without having to implement your own Adapter.

ProGuard rules for EasyAdapter

Add the following lines to your ProGuard configuration proguard.cfg file in project.

# EasyAdapter 
-keepattributes *Annotation*
-keepclassmembers class * extends uk.co.ribot.easyadapter.ItemViewHolder {
    public (...);
 }

For more information about EasyAdapter please see the website.

Android OAuth Client ProGuard rules

Android OAuth Client – is a library that helps to easily add an OAuth flow to an existing Android application.

It automatically shows a customizable Android dialog with WebView to guide the user to eventually grant you an access token.

ProGuard rules for Android OAuth Client

Add the following lines to your ProGuard configuration proguard.cfg file in project.

# Android OAuth Client
# Needed to keep generic types and @Key annotations accessed via reflection
-keepattributes Signature,RuntimeVisibleAnnotations,AnnotationDefault

-keepclasseswithmembers class * {
  @com.google.api.client.util.Key ;
}

-keepclasseswithmembers class * {
  @com.google.api.client.util.Value ;
}

-keepnames class com.google.api.client.http.HttpTransport

# Needed by google-http-client-android when linking against an older platform version
-dontwarn com.google.api.client.extensions.android.**

# Needed by google-api-client-android when linking against an older platform version
-dontwarn com.google.api.client.googleapis.extensions.android.**

# Do not obfuscate but allow shrinking of android-oauth-client
-keepnames class com.wuman.android.auth.** { *; }

For more information about Android OAuth Client please see the website.

AsyncService ProGuard rules

AsyncService – a library that manages threading and caching transparently in your Android application.

Alternative to AsyncTasks, Loaders, or more advanced libs like RxJava, Robospice, and Groundy but AsyncService focuses on keeping your code short and simple.


ProGuard rules for AsyncService

Add the following lines to your ProGuard configuration proguard.cfg file in project.

# AsyncService 
-keep @com.joanzapata.android.asyncservice.api.annotation.AsyncService class *
-keep class **Injector
-keepnames class **Injector
-keepnames class * {
    @com.joanzapata.android.asyncservice.api.annotation.InjectService *;
}
-keepnames class * {
    @com.joanzapata.android.asyncservice.api.annotation.OnMessage *;
}
-keep class com.esotericsoftware.kryo.** {*;}

For more information about AsyncService please see the website.

Open In-App Billing ProGuard rules

Open In-App Billing – is an open source library which provides an easy way for the developers to develop their apps/games in a way that one APK will work in all the stores and automatically use the right in-app purchase API under each store.

Open In-App Billing for Google Play, SlideMe, Amazon Store, Nokia Store, Samsung Apps, Yandex.Store, Appland, Aptoide, AppMall and Fortumo.

ProGuard rules for Open In-App Billing

Add the following lines to your ProGuard configuration proguard.cfg file in project.

# Open In-App Billing 
# GOOGLE
-keep class com.android.vending.billing.**

# AMAZON
-dontwarn com.amazon.**
-keep class com.amazon.** {*;}
-keepattributes *Annotation*
-dontoptimize

# SAMSUNG
-keep class com.sec.android.iap.**

# NOKIA
-keep class com.nokia.payment.iap.aidl.**

#FORTUMO
-keep class mp.** { *; }

For more information about library please see Open In-App Billing website.

AppIntro ProGuard rules

AppIntro – Android Library that helps you make a cool intro for your app, like the ones in Google apps.

ProGuard rules for AppIntro

ProGuard obfuscates method names and may remove methods, which are not invoked. ProGuard writes out class files named 'a.class', 'b.class', etc. in the obfuscation step.

gdx-pay ProGuard rules

gdx-pay – libGDX extension with cross-platform API for InApp purchasing.

ProGuard rules for gdx-pay

Add the following lines to your ProGuard configuration proguard.cfg file in project.

-keep class com.android.vending.billing.**
-keep class com.amazon.** {*;}
-keep class com.sec.android.iap.**
-keep class com.nokia.payment.iap.aidl.**
-dontwarn org.onepf.oms.appstore.FortumoBillingService

You may use more efficient ProGuard configuration rules.

-keep class com.android.vending.billing.**
-keep class com.amazon.** {*;}
-keep class com.sec.android.iap.**
-keep class com.nokia.payment.iap.aidl.**
-keep class org.onepf.oms.appstore.**
-dontwarn org.onepf.oms.appstore.**

-keep public class com.badlogic.gdx.Gdx {
  public protected *;
}

-keep public class com.badlogic.gdx.Application {
  public protected *;
}

-keep public class com.badlogic.gdx.pay.android.IAP {
  public protected *;
}

-keep public class com.badlogic.gdx.backends.android.AndroidEventListener {
  public protected *;
}

-keep public class com.badlogic.gdx.backends.android.AndroidApplication {
  public protected *;
}

-keep public class com.badlogic.gdx.pay.android.openiab.PurchaseManagerAndroidOpenIAB {
  public protected *;
}

-keep public class com.badlogic.gdx.pay.android.googleplay.AndroidGooglePlayPurchaseManager {
  public protected *;
}.

If this configuration still doesn't work, you can use the following:

-keep class com.badlogic.** {*;}

For more information about gdx-pay please see the website.

card.io Android SDK ProGuard rules

card.io – library that provides fast, easy credit card scanning in mobile apps.

ProGuard rules for card.io

Unused classes, attributes, fields and methods will be removed by ProGuard's optimization phase. ProGuard obfuscates the remaining classes, fields, and methods with short names. You have to specify the following rules in your ProGuard configuration file.

Google Play Services ProGuard rules

Google Play Services - proprietary background service and API package for Android devices to simplify Android development, grow user base and monetize effectively.

ProGuard rules for Google Play Services

Add the following lines to your ProGuard configuration proguard.cfg file in project.

-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
    public static final *** NULL;
}

-keepnames class * implements android.os.Parcelable
-keepclassmembers class * implements android.os.Parcelable {
  public static final *** CREATOR;
}

-keep @interface android.support.annotation.Keep
-keep @android.support.annotation.Keep class *
-keepclasseswithmembers class * {
  @android.support.annotation.Keep ;
}
-keepclasseswithmembers class * {
  @android.support.annotation.Keep ;
}

-keep @interface com.google.android.gms.common.annotation.KeepName
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
  @com.google.android.gms.common.annotation.KeepName *;
}

-keep @interface com.google.android.gms.common.util.DynamiteApi
-keep public @com.google.android.gms.common.util.DynamiteApi class * {
  public ;
  public ;
}

-dontwarn android.security.NetworkSecurityPolicy

For more information about Google Play Services please see the website.

Guava ProGuard rules

Guava - set of core libraries that includes new collection types (such as multimap and multiset), immutable collections, a graph library, functional types, an in-memory cache, and APIs/utilities for concurrency, I/O, hashing, primitives, reflection, string processing and much more.

ProGuard rules for Guava

ProGuard will try to remove all dead code. After ProGuard shrinks and obfuscates code, short names like 'a', 'b', etc. are used as obfuscated names. You have to set up a ProGuard configuration in your proguard-rules.pro file.

Static Gson ProGuard rules

Popular ProGuard rules