Skip to content

Commit 04daedb

Browse files
committed
update changelogs
1 parent a0eb53d commit 04daedb

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#### 🚀 Features
33

44
- VisionOS support (PR: #299)
5-
- Upgrade LlamaLib to v1.2.4 (llama.cpp b4969) (PR: #325)
65
- Add support for Gemma 3 and Phi 4 models (PR: #327)
6+
- Fix Android support for older devices (use ARMv8-A instead of ARMv8.4-A) (PR: #325)
7+
- Upgrade LlamaLib to v1.2.4 (llama.cpp b4969) (PR: #325)
78
- Default number of predicted tokens (num_predict) to infinity (-1) (PR: #328)
89

910

CHANGELOG.release.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### 🚀 Features
22

33
- VisionOS support (PR: #299)
4-
- Upgrade LlamaLib to v1.2.4 (llama.cpp b4969) (PR: #325)
54
- Add support for Gemma 3 and Phi 4 models (PR: #327)
5+
- Fix Android support for older devices (use ARMv8-A instead of ARMv8.4-A) (PR: #325)
6+
- Upgrade LlamaLib to v1.2.4 (llama.cpp b4969) (PR: #325)
67
- Default number of predicted tokens (num_predict) to infinity (-1) (PR: #328)
7-

Runtime/LLMBuilder.cs

+11-8
Original file line numberDiff line numberDiff line change
@@ -215,17 +215,20 @@ public static void BuildLibraryPlatforms(BuildTarget buildTarget)
215215

216216
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths, bool didDomainReload)
217217
{
218-
string pathToPlugin = Path.Combine("Assets", PluginLibraryDir(BuildTarget.VisionOS.ToString(), true), "libundreamai_visionos.a");
219-
for (int i = 0; i < movedAssets.Length; i++)
218+
foreach (BuildTarget buildTarget in new BuildTarget[]{BuildTarget.iOS, BuildTarget.VisionOS})
220219
{
221-
if (movedAssets[i] == pathToPlugin)
220+
string pathToPlugin = Path.Combine("Assets", PluginLibraryDir(buildTarget.ToString(), true), $"libundreamai_{buildTarget.ToString().ToLower()}.a");
221+
for (int i = 0; i < movedAssets.Length; i++)
222222
{
223-
var importer = AssetImporter.GetAtPath(pathToPlugin) as PluginImporter;
224-
if (importer != null && importer.isNativePlugin)
223+
if (movedAssets[i] == pathToPlugin)
225224
{
226-
importer.SetCompatibleWithPlatform(BuildTarget.VisionOS, true);
227-
importer.SetPlatformData(BuildTarget.VisionOS, "CPU", "ARM64");
228-
AssetDatabase.ImportAsset(pathToPlugin);
225+
var importer = AssetImporter.GetAtPath(pathToPlugin) as PluginImporter;
226+
if (importer != null && importer.isNativePlugin)
227+
{
228+
importer.SetCompatibleWithPlatform(buildTarget, true);
229+
importer.SetPlatformData(buildTarget, "CPU", "ARM64");
230+
AssetDatabase.ImportAsset(pathToPlugin);
231+
}
229232
}
230233
}
231234
}

0 commit comments

Comments
 (0)