-
Notifications
You must be signed in to change notification settings - Fork 1
Integrating the plugin
Following this simple steps, you can integrate the created plugin to Unity project.
First of all, we need a Unity project.
At the ‘Build Settings’, switch to Android Platform and click to ‘Player Setting…’.

Change the “Minimum API Level” and the “Bundle Identifier”. Use the same values specified before in the library.

In the Publishing Settings, specify the same Keystore, alias and pasword used to sign the wearable app.

Copy the files located in “Plugins Files.zip\Unity Assets” to the Assets of the Unity project.

Open the folder Plugins/Android in the project Assets.
Delete the file “copy_here_your_android_plugin.jar”.
Copy your library created before to this directory.

Open the folder Plugins/Android/res/raw in the project Assets. Delete the file “copy_here_your_wearable_app.apk”. Copy your wearable app created before to this directory.

In the ‘Plugins/Android/AndroidManifes.xml’ and ‘Plugins/Android/res/xml/wearable_app_desc.xml’, change '*your.package.name*' to the package name.

Until now, you have created and integrated the plugin to the Unity project.
You can continue to the next step, Using the plugin