Skip to content

Commit 5c875e6

Browse files
authored
Update README.md
1 parent ccb4745 commit 5c875e6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,39 @@
3131

3232
## <a id="add-sdk-to-project"> 📲 Adding the SDK to your project
3333

34+
**Using unitypackage:**
3435
1. Clone / download this repository.
3536
2. [Import](https://docs.unity3d.com/Manual/AssetPackages.html) the appsflyer-unity-plugin-*.unitypackage into your Unity project.
3637
3. Go to Assets >> Import Package >> Custom Package.
3738
4. Select the appsflyer-unity-plugin-*.unitypackage file.
3839

3940
> **Note:** The plugin uses the [The External Dependency Manager for Unity](https://github.com/googlesamples/unity-jar-resolver) (EDM4U) (formerly Play Services Resolver / Jar Resolver). If you do not want to use EDM4U see the [Installation guide](/docs/Installation.md) for more details.
4041
42+
**Using Unity Package Manager:**
43+
1. Go to your packages folder, and open `manifest.json`
44+
2. Add Google game package registery fpr the external dependency Manager.
45+
```
46+
"scopedRegistries": [
47+
{
48+
"name": "Game Package Registry by Google",
49+
"url": "https://unityregistry-pa.googleapis.com",
50+
"scopes": [
51+
"com.google"
52+
]
53+
}
54+
]
55+
```
56+
57+
4. Add appsflyer-unity-plugin in the dependency :
58+
Add this line for the regular mode
59+
```
60+
"appsflyer-unity-plugin": "https://github.com/AppsFlyerSDK/appsflyer-unity-plugin.git#upm"
61+
```
62+
Or this line for Strict mode :
63+
```
64+
"appsflyer-unity-plugin": "https://github.com/AppsFlyerSDK/appsflyer-unity-plugin.git#Strict-upm"
65+
```
66+
4167

4268
## <a id="init-sdk"> 🚀 Initializing the SDK
4369

0 commit comments

Comments
 (0)