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 17
Using of JAR dependencies
Roman Savin edited this page Jul 22, 2015
·
9 revisions
Download the latest JAR of OPFPush and the latest JAR of OPFUtils or grab it via Gradle:
compile 'org.onepf:opfpush:0.3.1'
compile 'org.onepf:opfutils:0.1.24'
or Maven
<dependency>
<groupId>org.onepf</groupId>
<artifactId>opfpush</artifactId>
<version>0.3.1</version>
</dependency>
<dependency>
<groupId>org.onepf</groupId>
<artifactId>opfutils</artifactId>
<version>0.1.24</version>
</dependency>
If you use JAR dependencies add to your AndroidManifest.xml file the following permissions:
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
and the following receivers:
<receiver android:name="org.onepf.opfpush.BootCompleteReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<receiver android:name="org.onepf.opfpush.PackageChangeReceiver">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<receiver android:name="org.onepf.opfpush.RetryBroadcastReceiver"/>