This repository has been archived by the owner on Apr 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Home
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.
Dependencies:
-
EventBus
- Gradle:
compile 'de.greenrobot:eventbus:2.4.0'
- Download
- Gradle:
-
OPFUtils
- Gradle:
compile 'org.onepf:opfutils:x.x.x'
- Download
- Gradle:
- OPFIab
- Gradle:
compile 'org.onepf:opfiab:x.x.x@aar
- Download
- Gradle:
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.
Be sure to check out our usage guide:
Enable logging:
OPFLog.setEnabled(BuildConfig.DEBUG, true);
-keepclassmembers class ** {
public void onEvent*(**);
}