Skip to content

Commit 3c6c575

Browse files
authored
Next 0.1.19 (#31)
* update to 0.1.17 net api * updated to 0.1.18 * updatedto 0.1.19 * remove restrictions for namespaces
1 parent 8ff20c1 commit 3c6c575

File tree

6 files changed

+19
-6
lines changed

6 files changed

+19
-6
lines changed

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set AJUNA_ROOT=D:\Ajuna.SDK
1717
set LOCAL_NUGET_ROOT=D:\NuGet
1818
set LOCAL_NUGET_CACHE=%SYSTEMDRIVE%\Users\%USERNAME%\.nuget\packages
1919
set LOCAL_NUGET_BINARY=nuget.exe
20-
set AJUNA_VERSION=0.1.6
20+
set AJUNA_VERSION=0.1.19
2121
2222
cd %AJUNA_ROOT%
2323
dotnet build --configuration Release

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Using a terminal of your choice, create a new directory for your project and exe
5454
```sh
5555
dotnet new sln
5656
dotnet new ajuna \
57-
--sdk_version 0.1.18 \
57+
--sdk_version 0.1.19 \
5858
--rest_service AjunaExample.RestService \
5959
--net_api AjunaExample.NetApi \
6060
--rest_client AjunaExample.RestClient \

Tools/Ajuna.DotNet.Template/templates/Ajuna/.template.config/template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"symbols": {
1313
"sdk_version": {
1414
"datatype": "string",
15-
"defaultValue": "0.1.18",
15+
"defaultValue": "0.1.19",
1616
"description": "Uses the given Ajuna SDK version.",
1717
"replaces": "AJUNA_SDK_VERSION",
1818
"type": "parameter"

Tools/Ajuna.DotNet/Service/Generators/Base/SolutionGeneratorBase.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,19 @@ public void Generate(MetaData metadata)
130130
break;
131131
}
132132
case TypeDefEnum.BitSequence:
133+
{
134+
var type = nodeType as NodeTypeBitSequence;
135+
if (typeDict.TryGetValue(type.TypeIdStore, out (string, List<string>) fullItemStore)
136+
&& typeDict.TryGetValue(type.TypeIdOrder, out (string, List<string>) fullItemOrder))
137+
{
138+
string typeName = $"BaseBitSeq<{fullItemStore.Item1},{fullItemOrder.Item1}>";
139+
var list = new List<string>();
140+
list.AddRange(fullItemStore.Item2);
141+
list.AddRange(fullItemOrder.Item2);
142+
typeDict.Add(type.Id, (typeName, list));
143+
}
144+
break;
145+
}
133146
default:
134147
throw new NotImplementedException($"Unimplemented enumeration of node type {nodeType.TypeDef}");
135148
}

Tools/Ajuna.DotNet/Service/Node/Base/TypeBuilderBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public TypeBuilderBase(string projectName, uint id, NodeType typeDef, Dictionary
1212
: base(projectName, id, typeDict)
1313
{
1414
TypeDef = typeDef;
15-
NamespaceName = typeDef.Path != null && typeDef.Path[0].Contains("_")
15+
NamespaceName = typeDef.Path != null && typeDef.Path.Length > 1
1616
? $"{ProjectName}.Generated.Model.{typeDef.Path[0].MakeMethod()}"
1717
: $"{ProjectName}.Generated.Model.Base";
1818
}

Version.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<!-- Configuration -->
55
<VersionMajor>0</VersionMajor>
66
<VersionMinor>1</VersionMinor>
7-
<VersionPatch>18</VersionPatch>
7+
<VersionPatch>19</VersionPatch>
88
<AssemblyVersion>$(VersionMajor).$(VersionMinor).$(VersionPatch)</AssemblyVersion>
9-
<AjunaPackageVersion>0.1.18</AjunaPackageVersion>
9+
<AjunaPackageVersion>0.1.19</AjunaPackageVersion>
1010

1111
<!-- Variables -->
1212
<AjunaVersion>$(AssemblyVersion)</AjunaVersion>

0 commit comments

Comments
 (0)