/UnityAndroidToasty

Sample to solve Android dependent library by gradle.

Primary LanguageKotlinMIT LicenseMIT

UnityAndroidToasty

Sample to solve Android dependent library by gradle.

Requirements

  • Unity2021.3.4f1
    • Android Build Support Module
  • Android Studio Chipmunk

How to build

  1. copy classes.jar in Unity Editor to ToastyWrapper/unity/libs/

  2. copy UnityPlayerActivity.java in Unity Editor to ToastyWrapper/unity/src/main/com/unity3d/player/
    see also https://docs.unity3d.com/Manual/AndroidUnityPlayerActivity.html

  3. build android library

     $ cd ToastyWrapper
     $ ./gradlew clean build
    
  4. publish android library to m2repository

     $ ./gradlew publish
    
  5. build app with unity