Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.
Roman Zhilich edited this page Jun 17, 2015 · 14 revisions

#Introduction to OPFIab OPFIab is Android library which provides easy way to integrate in-app billing, developed with following goals in mind:

  • Multiple billing providers (Appstores) support.
  • Extensible modular architecture.
  • Flexible API.

Setup

Dependencies:

If for some reason you don't want to use AAR it's possible to hook up OPFIab as jar.

Add following to you AndroidManifest.xml

    <application>
        <activity
            android:name="org.onepf.opfiab.android.OPFIabActivity"
            android:configChanges="fontScale|keyboard|keyboardHidden|layoutDirection|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
            android:launchMode="singleTask"
            android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
    </application>

To add support for specific billing provider check out corresponding wiki page.

Supported Billing Providers

Usage

Be sure to check out our usage guide:

Enable logging:

OPFLog.setEnabled(BuildConfig.DEBUG, true);

ProGuard

-keepclassmembers class ** {
    public void onEvent*(**);
}