@@ -12,36 +12,32 @@ Setup your project using the [Get API Key guide](/api-key).
1212
1313## Installation
1414
15+ ### Add Repositories
1516Add the following repositories to your ` settings.gradle ` file's repositories block or at the end of settings.gradle:
1617
1718``` groovy
1819dependencyResolutionManagement {
1920 repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
2021 String flutterStorageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "https://storage.googleapis.com"
21- String reclaimStorageUrl = System.env.RECLAIM_STORAGE_BASE_URL ?: "https://reclaim-inapp-sdk.s3.ap-south-1.amazonaws.com/android/0.3.0/ repo"
22+ String reclaimStorageUrl = System.env.RECLAIM_STORAGE_BASE_URL ?: "https://reclaim-inapp-sdk.s3.ap-south-1.amazonaws.com/android/repo"
2223 repositories {
2324 google()
2425 mavenCentral()
25- maven {
26- url "$reclaimStorageUrl"
27- }
28- maven {
29- url "$flutterStorageUrl/download.flutter.io"
30- }
26+ maven { url "$reclaimStorageUrl" }
27+ maven { url "$flutterStorageUrl/download.flutter.io" }
3128 }
3229}
3330```
3431
35- You can replace the version mentioned in the url of ` reclaimStorageUrl ` with the version of SDK you're using. Latest is ` 0.3.0 ` .
36-
3732Some projects may require you to add the repositories to the root ` build.gradle ` file or your app-level ` build.gradle ` file's allprojects section.
3833
3934Next, add the following to your app level ` build.gradle ` file:
4035
4136``` groovy
42- implementation "org.reclaimprotocol:inapp_sdk:0.3 .0"
37+ implementation "org.reclaimprotocol:inapp_sdk:0.21 .0"
4338```
4439
40+ ### Configure AndroidManifest.xml
4541Add the following to your app level ` AndroidManifest.xml ` file under the ` <application> ` tag:
4642
4743``` xml
@@ -58,3 +54,22 @@ Add the following to your app level `AndroidManifest.xml` file under the `<appli
5854 android : value =" <YOUR_RECLAIM_APP_SECRET>" />
5955```
6056
57+ ### Add Permissions
58+
59+ Required permission in ` AndroidManifest.xml ` :
60+
61+ ``` xml
62+ <uses-permission android : name =" android.permission.INTERNET" />
63+ ```
64+
65+ Optional permissions (requested by specific providers at runtime):
66+
67+ ``` xml
68+ <uses-feature android : name =" android.hardware.camera" android : required =" false" />
69+ <uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION" />
70+ <uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION" />
71+ <uses-permission android : name =" android.permission.RECORD_AUDIO" />
72+ <uses-permission android : name =" android.permission.CAMERA" />
73+ <uses-permission android : name =" android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
74+ ```
75+
0 commit comments