Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add experimental Unity 6000 implementation for Android. #966

Merged

Conversation

timbotimbo
Copy link
Collaborator

This PR merges into the branch experimental/unity_6000 to allow people to test this without affecting the main plugin in master.

Description

Unity 2023.3 turned into 6000 preview, which will eventually become the next LTS version.
For ios and web you will likely be able to build using the existing 2022.x plugin.
However Android had some breaking changes in Unity 2023.1.

This PR is a base implementation for supporting Unity 6000 on Android.
For now this is in a separate branch from master for testing.

Fixed changes in the Unity 6000 android export

  • Unity 2023+ makes the UnityPlayer class abstract and exposes UnityPlayerForServiceOrActivity instead.
    UnityPlayer no longer extends FrameLayout which breaks some overrides.
  • The exported UnityLibrary/build.gradle now imports a gradle file from a .../shared folder.
  • Gradle versions are updated to 8.x
  • Java is updated to 17

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@timbotimbo timbotimbo merged commit aa8875d into juicycleff:experimental/unity_6000 Jul 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant