Skip to content

Commit 0647367

Browse files
committed
Minor updates
1 parent 631a675 commit 0647367

File tree

8 files changed

+22
-27
lines changed

8 files changed

+22
-27
lines changed

Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## 0.0.15
2-
*INCOMPLETE*
2+
+ Minor stability improvements.
33

44
## 0.0.14
55
+ Fixed Apple App Store app rejections due to missing Bundle Version key in Function.framework.

Packages/ai.fxn.fxn3d/Editor/Build/WebGLBuildHandler.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ internal sealed class WebGLBuildHandler : BuildHandler {
1919
@"-Wl,--export=__stack_pointer",
2020
@"-Wl,-uFXN_WEBGL_INIT",
2121
@"-lembind",
22-
//@"-sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE=_emval_get_global,_emval_new_cstring,__emval_get_property",
23-
//@"-sEXPORTED_FUNCTIONS=__emval_get_global,__emval_new_cstring,__emval_get_property",
2422
@"-sALLOW_TABLE_GROWTH=1",
2523
@"-sSTACK_OVERFLOW_CHECK=2",
2624
$"--embed-file {FxncPath}@libFunction.so",

Packages/ai.fxn.fxn3d/Editor/FunctionInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using static Function.Function;
99

1010
// Metadata
11-
[assembly: AssemblyCompany(@"NatML Inc")]
11+
[assembly: AssemblyCompany(@"NatML Inc.")]
1212
[assembly: AssemblyTitle(@"Function.Editor")]
1313
[assembly: AssemblyVersion(Version)]
1414
[assembly: AssemblyCopyright(@"Copyright © 2024 NatML Inc. All Rights Reserved.")]

Packages/ai.fxn.fxn3d/Editor/FunctionSettingsProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal static class FunctionSettingsProvider {
1717
EditorGUILayout.LabelField(@"Function Account", EditorStyles.boldLabel);
1818
FunctionProjectSettings.instance.AccessKey = EditorGUILayout.TextField(@"Access Key", FunctionProjectSettings.instance.AccessKey);
1919
},
20-
keywords = new HashSet<string>(new[] { @"Function", @"NatML", @"NatCorder", @"NatDevice", @"NatShare", @"Hub" }),
20+
keywords = new HashSet<string>(new[] { @"Function", @"NatML" }),
2121
};
2222
}
2323
}

Packages/ai.fxn.fxn3d/Runtime/Internal/Function.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -275,25 +275,5 @@ out IntPtr stream
275275
[DllImport(Assembly, EntryPoint = @"FXNGetVersion")]
276276
public static extern IntPtr GetVersion ();
277277
#endregion
278-
279-
280-
#region --Utility--
281-
282-
public static Status Throw (this Status status) {
283-
switch (status) {
284-
case Status.Ok: return status;
285-
case Status.InvalidArgument: throw new ArgumentException();
286-
case Status.InvalidOperation: throw new InvalidOperationException();
287-
case Status.NotImplemented: throw new NotImplementedException();
288-
default: throw new InvalidOperationException();
289-
}
290-
}
291-
#endregion
292278
}
293-
294-
/// <summary>
295-
/// Prevent code stripping.
296-
/// </summary>
297-
[AttributeUsage(AttributeTargets.All, Inherited = true, AllowMultiple = false)]
298-
internal sealed class PreserveAttribute : Attribute { }
299279
}

Packages/ai.fxn.fxn3d/Runtime/Internal/FunctionInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using static Function.Function;
99

1010
// Metadata
11-
[assembly: AssemblyCompany(@"NatML Inc")]
11+
[assembly: AssemblyCompany(@"NatML Inc.")]
1212
[assembly: AssemblyTitle(@"Function.Runtime")]
1313
[assembly: AssemblyVersion(Version)]
1414
[assembly: AssemblyCopyright(@"Copyright © 2024 NatML Inc. All Rights Reserved.")]

Packages/ai.fxn.fxn3d/Runtime/Internal/FunctionUtils.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,23 @@ namespace Function.Internal {
1111
using System.IO;
1212
using System.Runtime.CompilerServices;
1313
using System.Text;
14+
using Status = Internal.Function.Status;
1415

1516
/// <summary>
1617
/// Helpful extension methods.
1718
/// </summary>
1819
internal static class FunctionUtils {
1920

21+
public static Status Throw (this Status status) {
22+
switch (status) {
23+
case Status.Ok: return status;
24+
case Status.InvalidArgument: throw new ArgumentException();
25+
case Status.InvalidOperation: throw new InvalidOperationException();
26+
case Status.NotImplemented: throw new NotImplementedException();
27+
default: throw new InvalidOperationException();
28+
}
29+
}
30+
2031
[MethodImpl(MethodImplOptions.AggressiveInlining)]
2132
public static Stream ToStream (this string data) {
2233
var buffer = Encoding.UTF8.GetBytes(data);
@@ -52,4 +63,10 @@ public static unsafe T[] ToArray<T> (this MemoryStream stream) where T : unmanag
5263
return data;
5364
}
5465
}
66+
67+
/// <summary>
68+
/// Prevent code stripping.
69+
/// </summary>
70+
[AttributeUsage(AttributeTargets.All, Inherited = true, AllowMultiple = false)]
71+
internal sealed class PreserveAttribute : Attribute { }
5572
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Add the following items to your Unity project's `Packages/manifest.json`:
1818
}
1919
],
2020
"dependencies": {
21-
"ai.fxn.fxn3d": "0.0.14"
21+
"ai.fxn.fxn3d": "0.0.15"
2222
}
2323
}
2424
```

0 commit comments

Comments
 (0)