Skip to content

Commit

Permalink
refactor: rename AlgoSdk to Algorand.Unity (#167)
Browse files Browse the repository at this point in the history
* refactor: rename `AlgoSdk` -> `Algorand.Unity`

This is to make the namespaces similar to the .NET SDK namespaces

BREAKING CHANGE: All `AlgoSdk` namespaces are now renamed to `Algorand.Unity`. A simple find and
replace should fix it.
  • Loading branch information
jasonboukheir committed Nov 23, 2022
1 parent 6c6c0a4 commit d135635
Show file tree
Hide file tree
Showing 1,899 changed files with 5,851 additions and 5,601 deletions.
69 changes: 16 additions & 53 deletions .docfx/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
"src": [
{
"src": "..",
"files": [
"Runtime/**/*.cs",
"Editor/**/*.cs"
],
"exclude": [
"**/Libraries/**",
"**/Plugins/**"
]
"files": ["Runtime/**/*.cs", "Editor/**/*.cs"],
"exclude": ["**/Libraries/**", "**/Plugins/**"]
}
],
"filter": "filter.yml",
Expand All @@ -33,86 +27,59 @@
},
"content": [
{
"files": [
"toc.yml",
"index.md",
"../README.md"
]
"files": ["toc.yml", "index.md", "../README.md"]
},
{
"src": "manual",
"files": [
"toc.yml"
],
"files": ["toc.yml"],
"dest": "manual"
},
{
"src": "changelog",
"files": [
"toc.yml"
],
"files": ["toc.yml"],
"dest": "changelog"
},
{
"src": "..",
"files": [
"CHANGELOG.md"
],
"files": ["CHANGELOG.md"],
"dest": "changelog"
},
{
"src": "license",
"files": [
"toc.yml"
],
"files": ["toc.yml"],
"dest": "license"
},
{
"src": "..",
"files": [
"LICENSE.md",
"Third Party Notices.md"
],
"files": ["LICENSE.md", "Third Party Notices.md"],
"dest": "license"
},
{
"src": "api",
"files": [
"*.yml"
],
"files": ["*.yml"],
"dest": "api"
},
{
"src": "../Documentation~",
"files": [
"**/*.md"
],
"exclude": [
"TableOfContents.md"
],
"files": ["**/*.md"],
"exclude": ["TableOfContents.md"],
"dest": "manual"
}
],
"dest": "../_site",
"overwrite": [
{
"src": "..",
"files": [
"*/CareBoo.AlgoSdk*/**/*.md"
]
"files": ["*/Algorand.Unity*/**/*.md"]
}
],
"resource": [
{
"files": [
"resources/**/*"
]
"files": ["resources/**/*"]
},
{
"src": "../Documentation~",
"files": [
"images/**/*"
],
"files": ["images/**/*"],
"dest": "resources"
}
],
Expand All @@ -125,11 +92,7 @@
}
}
},
"xref": [
"https://normanderwan.github.io/UnityXrefMaps/xrefmap.yml"
],
"xrefService": [
"https://xref.docs.microsoft.com/query?uid={uid}"
]
"xref": ["https://normanderwan.github.io/UnityXrefMaps/xrefmap.yml"],
"xrefService": ["https://xref.docs.microsoft.com/query?uid={uid}"]
}
}
4 changes: 2 additions & 2 deletions .docfx/filter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiRules:
- include:
uidRegex: ^AlgoSdk\b.*$
uidRegex: ^Algorand.Unity\b.*$
type: Namespace
- exclude:
uidRegex: ^System\.Object\..*$
Expand All @@ -9,7 +9,7 @@ apiRules:
uidRegex: ^System\.ValueType\..*$
type: Method
- exclude:
uidRegex: ^(?!AlgoSdk\b).*$
uidRegex: ^(?!Algorand.Unity\b).*$
- exclude:
hasAttribute:
uid: System.ObsoleteAttribute
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,26 @@ jobs:

- uses: actions/cache@v2
with:
path: Unity.AlgoSdk.AssetStore/Library
key: Library-build_unitypackage-Unity.AlgoSdk.AssetStore-StandaloneLinux64
path: Algorand.Unity.AssetStore/Library
key: Library-build_unitypackage-Algorand.Unity.AssetStore-StandaloneLinux64
restore-keys: |
Library-build_unitypackage-Unity.AlgoSdk.AssetStore-
Library-build_unitypackage-Algorand.Unity.AssetStore-
- name: Package unitypackage
uses: game-ci/unity-builder@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE_2020 }}
with:
targetPlatform: StandaloneLinux64
projectPath: Unity.AlgoSdk.AssetStore
projectPath: Algorand.Unity.AssetStore
buildMethod: UnityPackage.Build
versioning: None
allowDirtyBuild: true

- name: Move unitypackage to dist folder
run: |
mkdir dist
mv Unity.AlgoSdk.AssetStore/unity-algorand-sdk.unitypackage dist/unity-algorand-sdk-${{ needs.release.outputs.version }}.unitypackage
mv Algorand.Unity.AssetStore/unity-algorand-sdk.unitypackage dist/unity-algorand-sdk-${{ needs.release.outputs.version }}.unitypackage
- name: Upload dist
uses: actions/upload-artifact@v2
Expand Down
23 changes: 4 additions & 19 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
# - webgl

steps:
- name: Checkout AlgoSdk
- name: Checkout Algorand.Unity
uses: actions/checkout@v2
with:
lfs: true
Expand All @@ -54,17 +54,17 @@ jobs:
- name: Cache Library
uses: actions/cache@v2.1.1
with:
path: Unity.AlgoSdk.Package/Library
path: Algorand.Unity.Package/Library
key: Library-${{ matrix.unityVersion }}-${{ matrix.targetPlatform }}-${{ steps.get-date.outputs.date }}
restore-keys: |
Library-${{ matrix.unityVersion }}-${{ matrix.targetPlatform }}-
Library-${{ matrix.unityVersion }}-
- run: echo "::set-output name=result::+CareBoo.AlgoSdk*,-CareBoo.AlgoSdk*.Tests,-CareBoo.AlgoSdk*.Samples*"
- run: echo "::set-output name=result::+Algorand.Unity*,-Algorand.Unity*.Tests,-Algorand.Unity*.Samples*"
id: assemblyFilters
- uses: game-ci/unity-test-runner@v2
id: tests
with:
projectPath: ./Unity.AlgoSdk.Package
projectPath: ./Algorand.Unity.Package
artifactsPath: TestResults
customParameters: -batchMode -burst-disable-compilation -enableCodeCoverage -coverageOptions generateAdditionalMetrics;enableCyclomaticComplexity;assemblyFilters:${{ steps.assemblyFilters.outputs.result }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -76,18 +76,3 @@ jobs:
with:
name: Unity ${{ matrix.unityVersion }} ${{ matrix.targetPlatform }} Test Results
path: ${{ steps.tests.outputs.artifactsPath }}
- name: Upload Code Coverage Artifacts
uses: actions/upload-artifact@v1
with:
name: Unity ${{ matrix.unityVersion }} ${{ matrix.targetPlatform }} Code Coverage
path: Unity.AlgoSdk.Package/CodeCoverage
- name: Upload PlayMode Test Coverage Report
uses: codecov/codecov-action@v1
with:
flags: unittests
file: Unity.AlgoSdk.Package/CodeCoverage/workspace-opencov/PlayMode/TestCoverageResults_0000.xml
- name: Upload EditMode Test Coverage Report
uses: codecov/codecov-action@v1
with:
flags: unittests
file: Unity.AlgoSdk.Package/CodeCoverage/workspace-opencov/EditMode/TestCoverageResults_0000.xml
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dist/**
*.code-workspace
Documentation~/**/*.meta
scripts/**
Unity.AlgoSdk*/**
Algorand.Unity*/**
.czrc
.editorconfig
.gitattributes
Expand Down
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"files.exclude": {
"Unity.AlgoSdk.AssetStore": true,
"Unity.AlgoSdk.Package": true
"Algorand.Unity.AssetStore": true,
"Algorand.Unity.Package": true
}
}
Loading

0 comments on commit d135635

Please sign in to comment.