This plugin resolves Android dependencies via Gradle.
Import file UnityGradlePlugin.unitypackage
After importing open scene Example/Example
, you will see the same instruction there:
-
Make sure you have
ANDROID_HOME
enviroment variable which points to Android SDK directory -
Open file
/Plugins/Gradle/build.gradle
-
Add your dependencies into this section:
dependencies { // TODO replace lines below by your dependencies export 'com.shamanland:xdroid-toaster:0.3.0' // export 'com.google.firebase:firebase-core:10.0.0' }
-
Window -> Gradle -> Resolve
-
Discover new files under directory
/Plugins/Android/
-
Write your wrappers around Java classes like
/Example/Toaster.cs
-
Build project for Android
NOTE: this example was created and tested on Unity 5.5
Read here how to set up environment variables.
Copyright 2016 ShamanLand.Com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.