Adds Wifi Direct capability to Android Unity3d builds
Provides a C# wrapper around the Wifi-Buddy project
Copy the Unity3d/Plugins folder into your Assets folder, and create a class that inherits from WifiDirectBase.cs
Look at the Unity3d/Documentation/html for Doxygen files with descriptions on what to inherit
- Directory ./Android is already a Android Studio Gradle project, just import it into Android Studio
- Use the build button in the Android Studio menu bar (the gradle file has been pre-configured)
- Go into the "app-debug.aar" file in the app/build/outputs/aar/ folder
- Open the aar with 7zip and delete the "res" folder
- Inside the aar delete the 'R.txt' file
- Open "lib" folder in the aar and delete "unity.jar"
- Copy the android-support-v4.jar file from the Android SDK install location into "libs" inside the aar
- Copy the .aar into (your Unity3d project)/Assets/Plugins/Android and rename it "UnityWifiDirect.aar", and make sure WifiDirectBase.cs is inside Assets/Plugins
- Folow the instructions in the "Using the Library" section above