You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/health/_includes/add-apm.mdx
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,3 +47,17 @@ We suggest you use the locations directly in your builds rather than copying the
47
47
apm project config set com.distriqt.Health
48
48
```
49
49
50
+
51
+
#### Google Fitness
52
+
53
+
If you are using Google Fitness, you will need to install the `com.distriqt.Health-Fitness` variant of the extension. This will ensure that the required dependencies for Google Fitness are installed.
54
+
55
+
The default `com.distriqt.Health` variant does not include the Google Fitness dependencies.
56
+
57
+
```
58
+
apm install com.distriqt.Health-Fitness
59
+
```
60
+
61
+
:::caution
62
+
You must only install one of the variants, either `com.distriqt.Health` or `com.distriqt.Health-Fitness`, not both.
Copy file name to clipboardExpand all lines: docs/health/add-the-plugin.mdx
+29-15Lines changed: 29 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,21 @@ sidebar_label: Unity
5
5
6
6
First step is always to add the plugin to your development environment.
7
7
8
+
## Add the Plugin
8
9
9
-
## Asset Store
10
+
###Asset Store
10
11
11
12
Open the Asset Store in your browser and add the plugin to your assets.
12
13
13
-
Open the Package Manager (Window > Package Manager) in the Unity Editor and select the "My Assets" section. Select the plugin, and click Import in the bottom right.
14
+
Open the Package Manager (`Window / Package Manager`) in the Unity Editor and select the *"My Assets"* section.
14
15
16
+
Select the plugin, and click *Import* in the bottom right.
15
17
16
-
## Manual Installation
17
18
18
-
In unity you import the package by selecting `Assets / Import Package / Custom Package ...` and then browsing to the unity plugin package file: `com.distriqt.Health.unitypackage`.
19
+
### Manual Installation
20
+
21
+
In unity you import a custom package by selecting `Assets / Import Package / Custom Package...`
22
+
and then browsing to the unity plugin package file: `com.distriqt.Health.unitypackage`.
19
23
20
24

21
25
@@ -27,20 +31,23 @@ You can manually download the extension from our repository:
27
31
28
32
## Import the Plugin
29
33
30
-
31
-
This will present the import dialog and display all the files for the plugin, make sure all the files are selected.
34
+
This will present the import dialog and display all the files for the plugin,
35
+
make sure all the files are selected and click **Import**.
32
36
33
37
The plugin will be added to your project and you can now use the plugins functionality in your application.
34
38
35
39
36
40
41
+
## Android Dependencies
37
42
38
-
## Resolve Android Dependencies
39
-
40
-
This plugin depends on some common Android libraries, particularly the Google Play Core Library, which enables in-app reviews.
43
+
This plugin depends on some common Android libraries, which are defined within the plugin.
41
44
42
45
You can get these dependencies using one of the following methods.
43
46
47
+
:::note
48
+
Make sure you select the Android platform in the build profiles / settings before you do this.
49
+
:::
50
+
44
51
45
52
### Unity Jar Resolver
46
53
@@ -49,14 +56,13 @@ This is the suggested method.
49
56
Use the *Unity Jar Resolver* plugin to download and manage the Android dependencies.
50
57
51
58
52
-
53
59
#### Importing
54
60
55
61
> If you already use the *Unity Jar Resolver* in your project you can skip this step.
56
62
57
63
- Download the latest version of the [*Unity Jar Resolver*](https://github.com/googlesamples/unity-jar-resolver/releases)
- In the *Import Unity Package* window, click Import
65
+
- In the *Import Unity Package* window, click **Import**
60
66
61
67
62
68
#### Resolving
@@ -73,21 +79,29 @@ More information on the *Unity Jar Resolver* can be found [here](https://github.
73
79
74
80
75
81
76
-
### Custom Gradle Health
82
+
### Custom Gradle Template
77
83
78
84
Unity's in-built gradle build support and exporting to android studio does not support per plugin gradle script. Therefore, this plugin cannot add the dependencies by itself.
79
85
80
-
The `mainHealth.gradle` is generated when you enable the **Custom Gradle Health** property on the Player window.
86
+
The `mainTemplate.gradle` is generated when you enable the **Custom Gradle Template** property on the Player window.
81
87
82
88
The `build.gradle` exists in generated Gradle project when you enable the **Export Project** property on the Player window and Build the project.
83
89
84
-
Update the `dependencies` section in your `mainHealth.gradle` or `build.gradle` as below:
90
+
Update the `dependencies` section in your `mainTemplate.gradle` or `build.gradle` as below:
0 commit comments