Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ body:
id: unity_version
attributes:
label: Unity Version
placeholder: 6000.0.33f1
placeholder: 6000.0.58f2
validations:
required: true

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/build-install-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ body:
id: unity_version
attributes:
label: Unity Version
placeholder: 6000.0.33f1
placeholder: 6000.0.58f2
validations:
required: true

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/support.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ body:
id: unity_version
attributes:
label: Unity Version
placeholder: 6000.0.33f1
placeholder: 6000.0.58f2
validations:
required: true

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ jobs:
os:
- ubuntu-24.04
unityVersion:
- 6000.0.33f1
- 2022.3.55f1
- 6000.0.33f1 # FIXME: use >= 6000.0.58f2
- 2022.3.55f1 # FIXME: use >= 2022.3.62f2
steps:
- name: Install UnityEditor
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ jobs:
os:
- macos-13
unity:
- { version: "6000.0.33f1", changeset: "433b0a79340b" }
- { version: "2022.3.55f1", changeset: "9f374180d209" }
- { version: "6000.0.33f1", changeset: "433b0a79340b" } # FIXME: use >= 6000.0.58f2
- { version: "2022.3.55f1", changeset: "9f374180d209" } # FIXME: use >= 2022.3.62f2
steps:
- name: Install UnityEditor
run: |
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ jobs:
- name: Install UnityEditor
if: ${{ env.BUILD_UNITYPACKAGE == '1' }}
run: |
# FIXME: use >= 6000.0.58f2
sudo docker cp $(docker create --rm unityci/editor:6000.0.33f1-base-3):/opt/unity /opt/unity
sudo chown -R $(id -u):$(id -g) /opt/unity

Expand Down Expand Up @@ -291,6 +292,17 @@ jobs:
run: |
rm MediaPipeUnityPlugin-all.zip

# NOTE: a workaround to keep using Unity 6000.0.33f1
- name: Patch dependencies
run: |
echo "$(jq '.dependencies["com.unity.test-framework"] = "1.4.5"' Packages/manifest.json)" > Packages/manifest.json
echo "$(jq '
.dependencies["com.unity.test-framework"].version = "1.4.5" |
.dependencies["com.unity.test-framework"].source = "registry" |
.dependencies["com.unity.test-framework"].url = "https://packages.unity.com"
' Packages/packages-lock.json)" > Packages/packages-lock.json


# NOTE: this step will overwrite AppSettings.asset
- name: Export unitypackage
if: ${{ env.BUILD_UNITYPACKAGE == '1' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ jobs:
os:
- windows-2022
unity:
- { version: "6000.0.33f1", changeset: "433b0a79340b" }
- { version: "2022.3.55f1", changeset: "9f374180d209" }
- { version: "6000.0.33f1", changeset: "433b0a79340b" } # FIXME: use >= 6000.0.58f2
- { version: "2022.3.55f1", changeset: "9f374180d209" } # FIXME: use >= 2022.3.62f2
steps:
- name: Install UnityHub
uses: crazy-max/ghaction-chocolatey@v3
Expand Down
81 changes: 77 additions & 4 deletions Assets/Plugins/Android/mainTemplate.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,83 @@ android {
}**PACKAGING**

// Include libc++_shared.so
task copyLibcppShared(type: Copy) {
def ndkDir = android.ndkDirectory
from("$ndkDir/sources/cxx-stl/llvm-libc++/libs") { include '**/libc++_shared.so' }
into("$projectDir/src/main/jniLibs")
task copyLibcppShared {
doLast {
def ndkDir = android.ndkDirectory
def abiFilters = android.defaultConfig.ndk.abiFilters
def destDir = file("$projectDir/src/main/jniLibs")

// Mapping from ABI to architecture triple (for NDK 23+)
def abiToTriple = [
'arm64-v8a': 'aarch64-linux-android',
'armeabi-v7a': 'arm-linux-androideabi',
'x86': 'i686-linux-android',
'x86_64': 'x86_64-linux-android',
'riscv64': 'riscv64-linux-android'
]

// Find the prebuilt directory (usually there's only one)
def prebuiltDir = null
def prebuiltBase = file("$ndkDir/toolchains/llvm/prebuilt")
if (prebuiltBase.exists()) {
def prebuiltDirs = prebuiltBase.listFiles()?.findAll { it.isDirectory() }
if (prebuiltDirs && prebuiltDirs.size() > 0) {
prebuiltDir = prebuiltDirs[0]
}
}

abiFilters.each { abi ->
def copied = false

// Try NDK 23+ path first
if (prebuiltDir != null) {
def triple = abiToTriple[abi]
if (triple != null) {
def libcppPath = file("$prebuiltDir/sysroot/usr/lib/$triple/libc++_shared.so")
if (libcppPath.exists()) {
def destAbiDir = file("$destDir/$abi")
copy {
from libcppPath
into destAbiDir
}
copied = true
}
}
}

// Fallback to old NDK path (NDK 22 and earlier)
if (!copied) {
def libcppPath = file("$ndkDir/sources/cxx-stl/llvm-libc++/libs/$abi/libc++_shared.so")
if (libcppPath.exists()) {
def destAbiDir = file("$destDir/$abi")
copy {
from libcppPath
into destAbiDir
}
copied = true
}
}

if (!copied) {
logger.warn("Could not find libc++_shared.so for $abi in NDK")
}
}
}
}

task cleanCopyLibcppShared {
doLast {
def destDir = file("$projectDir/src/main/jniLibs")
def abiFilters = android.defaultConfig.ndk.abiFilters

abiFilters.each { abi ->
def libcppFile = file("$destDir/$abi/libc++_shared.so")
if (libcppFile.exists()) {
libcppFile.delete()
println "Deleted libc++_shared.so for $abi"
}
}
}
}
clean.dependsOn 'cleanCopyLibcppShared'

Expand Down
22 changes: 8 additions & 14 deletions Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
{
"dependencies": {
"com.unity.2d.animation": "10.1.4",
"com.unity.2d.pixel-perfect": "5.0.3",
"com.unity.2d.psdimporter": "9.0.3",
"com.unity.2d.sprite": "1.0.0",
"com.unity.2d.spriteshape": "10.0.7",
"com.unity.2d.tilemap": "1.0.0",
"com.unity.ai.navigation": "2.0.5",
"com.unity.collab-proxy": "2.6.0",
"com.unity.ide.rider": "3.0.31",
"com.unity.ide.visualstudio": "2.0.22",
"com.unity.ai.navigation": "2.0.9",
"com.unity.collab-proxy": "2.9.3",
"com.unity.ide.rider": "3.0.38",
"com.unity.ide.visualstudio": "2.0.23",
"com.unity.mathematics": "1.3.2",
"com.unity.memoryprofiler": "1.1.1",
"com.unity.memoryprofiler": "1.1.8",
"com.unity.multiplayer.center": "1.0.0",
"com.unity.settings-manager": "2.0.1",
"com.unity.test-framework": "1.4.5",
"com.unity.settings-manager": "2.1.0",
"com.unity.test-framework": "1.5.1",
"com.unity.testtools.codecoverage": "1.2.6",
"com.unity.timeline": "1.8.7",
"com.unity.timeline": "1.8.9",
"com.unity.toolchain.linux-x86_64": "2.0.10",
"com.unity.toolchain.macos-x86_64-linux-x86_64": "2.0.10",
"com.unity.ugui": "2.0.0",
Expand Down
114 changes: 27 additions & 87 deletions Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,77 +9,8 @@
"com.unity.test-framework": "1.0.0"
}
},
"com.unity.2d.animation": {
"version": "10.1.4",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.2d.common": "9.0.7",
"com.unity.2d.sprite": "1.0.0",
"com.unity.collections": "1.2.4",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.uielements": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.2d.common": {
"version": "9.0.7",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.burst": "1.8.4",
"com.unity.2d.sprite": "1.0.0",
"com.unity.mathematics": "1.1.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.uielements": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.2d.pixel-perfect": {
"version": "5.0.3",
"depth": 0,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.2d.psdimporter": {
"version": "9.0.3",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.2d.common": "9.0.4",
"com.unity.2d.sprite": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.2d.sprite": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.2d.spriteshape": {
"version": "10.0.7",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.2d.common": "9.0.7",
"com.unity.mathematics": "1.1.0",
"com.unity.modules.physics2d": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.2d.tilemap": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.tilemap": "1.0.0",
"com.unity.modules.uielements": "1.0.0"
}
},
"com.unity.ai.navigation": {
"version": "2.0.5",
"version": "2.0.9",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -88,8 +19,8 @@
"url": "https://packages.unity.com"
},
"com.unity.burst": {
"version": "1.8.18",
"depth": 2,
"version": "1.8.24",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.mathematics": "1.2.1",
Expand All @@ -98,7 +29,7 @@
"url": "https://packages.unity.com"
},
"com.unity.collab-proxy": {
"version": "2.6.0",
"version": "2.9.3",
"depth": 0,
"source": "registry",
"dependencies": {},
Expand Down Expand Up @@ -126,12 +57,11 @@
"com.unity.ext.nunit": {
"version": "2.0.5",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
"source": "builtin",
"dependencies": {}
},
"com.unity.ide.rider": {
"version": "3.0.31",
"version": "3.0.38",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -140,7 +70,7 @@
"url": "https://packages.unity.com"
},
"com.unity.ide.visualstudio": {
"version": "2.0.22",
"version": "2.0.23",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -156,10 +86,14 @@
"url": "https://packages.unity.com"
},
"com.unity.memoryprofiler": {
"version": "1.1.1",
"version": "1.1.8",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.burst": "1.8.0",
"com.unity.collections": "1.2.3",
"com.unity.mathematics": "1.2.1",
"com.unity.profiling.core": "1.0.0",
"com.unity.editorcoroutines": "1.0.0"
},
"url": "https://packages.unity.com"
Expand All @@ -179,8 +113,15 @@
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.profiling.core": {
"version": "1.0.2",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.settings-manager": {
"version": "2.0.1",
"version": "2.1.0",
"depth": 0,
"source": "registry",
"dependencies": {},
Expand All @@ -203,22 +144,21 @@
"url": "https://packages.unity.com"
},
"com.unity.test-framework": {
"version": "1.4.5",
"version": "1.5.1",
"depth": 0,
"source": "registry",
"source": "builtin",
"dependencies": {
"com.unity.ext.nunit": "2.0.3",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
},
"url": "https://packages.unity.com"
}
},
"com.unity.test-framework.performance": {
"version": "3.0.3",
"version": "3.1.0",
"depth": 2,
"source": "registry",
"dependencies": {
"com.unity.test-framework": "1.1.31",
"com.unity.test-framework": "1.1.33",
"com.unity.modules.jsonserialize": "1.0.0"
},
"url": "https://packages.unity.com"
Expand All @@ -234,7 +174,7 @@
"url": "https://packages.unity.com"
},
"com.unity.timeline": {
"version": "1.8.7",
"version": "1.8.9",
"depth": 0,
"source": "registry",
"dependencies": {
Expand Down
Loading