Page History
...
- Copy the mobilePay-release-X.X.X.aar file to the /libs directory of the app module.
Add to module's build.gradle.
Code Block language actionscript3 repositories { flatDir { dirs 'libs' } } dependencies { compile 'io.card:android-sdk:5.0.0' compile(name: 'mobilePay-release-X.X.X', ext: 'aar') }
- Make following changes in AndroidManifect.xml:
3.1. First you need to make sure that the minimum SDK version is 15 or higher. There should be an element like this inside the <manifest> element:
Code Block | ||
---|---|---|
| ||
<uses-sdk android:minSdkVersion="15"/> |
3.2. The following permissions must also be present inside the <manifest> element:
Code Block | ||
---|---|---|
| ||
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.VIBRATE" /> <uses-feature android:name="android.hardware.camera" android:required="false" /> <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" /> <uses-feature android:name="android.hardware.camera.flash" android:required="false" /> |
3.3. Add an activity to the <application> element:
Code Block | ||
---|---|---|
| ||
<activity android:name="ru.assisttech.sdk.processor.WebViewActivity" android:configChanges="keyboardHidden|orientation|screenSize"> </activity> <activity android:name="io.card.payment.CardIOActivity" android:configChanges="keyboardHidden|orientation" /> <activity android:name="io.card.payment.DataEntryActivity" /> |
3.4. Before releasing the app, you need to add to the proguard configuration file:
Code Block | ||
---|---|---|
| ||
``` -keep class io.card.** -keepclassmembers class io.card.** { *; } -keep class ru.assisttech.sdk.** -keepclassmembers class ru.assisttech.sdk.** { *; } ``` |