├── Shared.Editor ├── Hierarchy.meta ├── Hierarchy │ ├── HierarchyHeader.cs.meta │ ├── HierarchyItem.cs.meta │ ├── HierarchyItemDrawer.cs.meta │ ├── HierarchyItem.cs │ ├── HierarchyItemDrawer.cs │ └── HierarchyHeader.cs ├── UniGame.Shared.Editor.asmdef.meta └── UniGame.Shared.Editor.asmdef ├── UniGame.Zip ├── com.unity.sharp-zip-lib │ ├── Documentation~ │ │ ├── TableOfContents.md │ │ ├── images │ │ │ └── PackageManager.png │ │ ├── Installation.md │ │ └── index.md │ ├── Runtime │ │ ├── Unity.SharpZipLib.dll │ │ ├── Utils.meta │ │ ├── Utils │ │ │ ├── Unity.SharpZipLib.Utils.asmdef.meta │ │ │ ├── ZipUtility.cs.meta │ │ │ ├── Unity.SharpZipLib.Utils.asmdef │ │ │ └── ZipUtility.cs │ │ └── Unity.SharpZipLib.dll.meta │ ├── LICENSE.md.meta │ ├── README.md.meta │ ├── CHANGELOG.md.meta │ ├── package.json.meta │ ├── Editor.meta │ ├── Runtime.meta │ ├── Tests.meta │ ├── Third Party Notices.md.meta │ ├── Tests │ │ ├── Editor.meta │ │ ├── Runtime.meta │ │ ├── Runtime │ │ │ ├── Src.meta │ │ │ ├── Src │ │ │ │ ├── BZip2.meta │ │ │ │ ├── Base.meta │ │ │ │ ├── Core.meta │ │ │ │ ├── GZip.meta │ │ │ │ ├── Lzw.meta │ │ │ │ ├── Checksum.meta │ │ │ │ ├── TestSupport.meta │ │ │ │ ├── Lzw │ │ │ │ │ ├── LzwTests.cs.meta │ │ │ │ │ └── LzwTests.cs │ │ │ │ ├── BZip2 │ │ │ │ │ ├── Bzip2Tests.cs.meta │ │ │ │ │ └── Bzip2Tests.cs │ │ │ │ ├── Core │ │ │ │ │ ├── CoreTests.cs.meta │ │ │ │ │ └── CoreTests.cs │ │ │ │ ├── GZip │ │ │ │ │ ├── GZipTests.cs.meta │ │ │ │ │ └── GZipTests.cs │ │ │ │ ├── TestSupport │ │ │ │ │ ├── Utils.cs.meta │ │ │ │ │ ├── RingBuffer.cs.meta │ │ │ │ │ ├── SevenZip.cs.meta │ │ │ │ │ ├── Streams.cs.meta │ │ │ │ │ ├── ThreadEx.cs.meta │ │ │ │ │ ├── ZipTesting.cs.meta │ │ │ │ │ ├── StringTesting.cs.meta │ │ │ │ │ ├── PerformanceTesting.cs.meta │ │ │ │ │ ├── ThreadEx.cs │ │ │ │ │ ├── ZipTesting.cs │ │ │ │ │ ├── StringTesting.cs │ │ │ │ │ ├── SevenZip.cs │ │ │ │ │ ├── Utils.cs │ │ │ │ │ ├── PerformanceTesting.cs │ │ │ │ │ ├── RingBuffer.cs │ │ │ │ │ └── Streams.cs │ │ │ │ ├── Checksum │ │ │ │ │ ├── ChecksumTests.cs.meta │ │ │ │ │ └── ChecksumTests.cs │ │ │ │ └── Base │ │ │ │ │ ├── InflaterDeflaterTests.cs.meta │ │ │ │ │ └── InflaterDeflaterTests.cs │ │ │ ├── Unity.SharpZipLib.Tests.asmdef.meta │ │ │ ├── ZipUtilityTests.cs.meta │ │ │ ├── Unity.SharpZipLib.Tests.asmdef │ │ │ └── ZipUtilityTests.cs │ │ └── Editor │ │ │ ├── Unity.SharpZipLib.EditorTests.asmdef.meta │ │ │ ├── ZipUtilityEditorTests.cs.meta │ │ │ ├── Unity.SharpZipLib.EditorTests.asmdef │ │ │ └── ZipUtilityEditorTests.cs │ ├── Editor │ │ ├── Analytics.meta │ │ ├── Unity.SharpZipLib.Editor.asmdef.meta │ │ ├── Analytics │ │ │ ├── AnalyticsEvent.cs.meta │ │ │ ├── AnalyticsSender.cs.meta │ │ │ ├── SharpZipLibAnalytics.cs.meta │ │ │ ├── SharpZipLibAnalytics.cs │ │ │ ├── AnalyticsEvent.cs │ │ │ └── AnalyticsSender.cs │ │ └── Unity.SharpZipLib.Editor.asmdef │ ├── LICENSE.md │ ├── package.json │ ├── Third Party Notices.md │ ├── .signature │ ├── CHANGELOG.md │ └── README.md ├── README.md.meta ├── package.json.meta ├── com.unity.sharp-zip-lib.meta ├── Documentation~ │ └── index.md ├── package.json └── README.md ├── LICENSE.meta ├── README.md.meta ├── package.json.meta ├── FluentFTP.meta ├── kd.tree.meta ├── Shared.Editor.meta ├── UniGame.GameDB.meta ├── UniGame.GitTools ├── package.json.meta ├── Runtime.meta ├── Runtime │ ├── unigame.gittools.runtime.asmdef.meta │ ├── GitCommands.cs.meta │ ├── unigame.gittools.runtime.asmdef │ └── GitCommands.cs └── package.json ├── UniGame.Zip.meta ├── UniGame.CoreModules.meta ├── UniGame.GitTools.meta ├── UniGame.MultiScenes.meta ├── UniGame.UniBuild.meta ├── UniGame.UnityFigma.meta ├── UniGame.ViewSystem.meta ├── UniGame.Localization.meta ├── UniGame.UniBuildCommands.meta ├── UniGame.NodeGraphProcessor.meta ├── UniGame.UnityFigma ├── Editor.meta └── Editor │ ├── Assets.meta │ ├── FlowGenerator.meta │ ├── unigame.viewsystem.figma.asmdef.meta │ ├── FlowGenerator │ ├── ViewPostBuildFigmaFlowCommands.cs.meta │ ├── ViewSystemFigmaFlowGenerator.cs.meta │ ├── ViewPostBuildFigmaFlowCommands.cs │ └── ViewSystemFigmaFlowGenerator.cs │ └── unigame.viewsystem.figma.asmdef ├── .gitignore ├── package.json ├── LICENSE ├── .gitmodules └── README.md /Shared.Editor/Hierarchy.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4cfc5b1d163c44f9ad115fe446784000 3 | timeCreated: 1660208862 -------------------------------------------------------------------------------- /Shared.Editor/Hierarchy/HierarchyHeader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7db9cf330a3447e3aee27545ce90cca4 3 | timeCreated: 1660208874 -------------------------------------------------------------------------------- /Shared.Editor/Hierarchy/HierarchyItem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17a11faa00ff420a871ef869fe7c0fd9 3 | timeCreated: 1660209159 -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Documentation~/TableOfContents.md: -------------------------------------------------------------------------------- 1 | * [SharpZipLib](index.md) 2 | * [Installation](Installation.md) 3 | -------------------------------------------------------------------------------- /Shared.Editor/Hierarchy/HierarchyItemDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa22599b9e2b48268064e57839422867 3 | timeCreated: 1660209127 -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Runtime/Unity.SharpZipLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UnioGame/UniModules/HEAD/UniGame.Zip/com.unity.sharp-zip-lib/Runtime/Unity.SharpZipLib.dll -------------------------------------------------------------------------------- /LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbee554bbecc74841bbea00a77b0d6fa 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe46d08f5ec1d5349a7be30852e7d532 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d21ebe8e1eb0df14db36042c10559ac1 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Documentation~/images/PackageManager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UnioGame/UniModules/HEAD/UniGame.Zip/com.unity.sharp-zip-lib/Documentation~/images/PackageManager.png -------------------------------------------------------------------------------- /UniGame.Zip/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebd0f2af46309474f9be214025fedac9 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /FluentFTP.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bbe33cf96ac62624ab48351b67ced86d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c068994375f6bcf4cb253b29356d8ce1 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /kd.tree.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41fd8319319900a4fb394c0a28c6e41b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Shared.Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9aeb0d1a8b438c4499cea3bf71d3cdba 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.GameDB.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc638b7eb49df4e4a84700604c39f2a5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.GitTools/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca11c5f23a62238408a295726cdc6213 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.Zip.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ec4529e832a4fb42a9c1c549129da7e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.CoreModules.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 240130549ec9f754eb7836c568470a55 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.GitTools.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84cc4278ff6f92344b54e19f3f878f1b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.MultiScenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 397d6c70341ffb64b840822b1c268cfe 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.UniBuild.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 409a031e54fe00a46a634b7d3af7405f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.UnityFigma.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 942edf48c14785041920a0f6be1f2508 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.ViewSystem.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 498843aa599ea7e46b693668dc049cdc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.GitTools/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8620edb16f97eb44e9ce0279b15936b3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Localization.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8280784d3a7729e4585b36ad07bd2d81 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.UniBuildCommands.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05b91e1dbe72eae4a81713511c345780 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.NodeGraphProcessor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 277705d61ce956e4aa3e2044553fe041 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.UnityFigma/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d1f5b008d2405745a1db21d2939af48 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/LICENSE.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23d8d677f83950e4ca5533f0a4057528 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e9a694629ff72d44a1543988c4efda1 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Shared.Editor/UniGame.Shared.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b290eec33b8b8c4789616329fc6f634 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.UnityFigma/Editor/Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65a9b3142183a1b498acb9b0452eb1aa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/CHANGELOG.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7235a352891f69c40a108e41c92f1e2b 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.UnityFigma/Editor/FlowGenerator.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac68e67b6e98eb64d94e69b57327c0d9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f3da8a3a3536984d8e503e3fa3b6930 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47f76c23b169cd04fb692cb25fc6a22e 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1fbb652667c53de46975c37617691236 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5936b3562629afd44a6584f0a51656ee 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47b9f46c629d7914c8b35bf8d0f67d8d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Third Party Notices.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03a5db56d69c0ed48b9bbfd4af3474f8 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.GitTools/Runtime/unigame.gittools.runtime.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c175a0edf4657d24888073552b03ae35 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.UnityFigma/Editor/unigame.viewsystem.figma.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76db8ce2cb6116c4d969893790ba4b6d 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Runtime/Utils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d12eb80569412fb42a7805918e17e44b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 060dcd339547d074e857fa38050881dd 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3968b4bc150b5c940945f44a7a397935 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Editor/Analytics.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5b075c453f21b549843f67266a48e08 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95063c31826850e4a8d6b9945851d5f5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/BZip2.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8b4348e89af9d5419896f0064511494 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/Base.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eaf89724253cd2044a62f09db95d248c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/Core.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f0ef56d0dce232418d832a055ebb113 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/GZip.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94d53356af920054294e29c3c59e2e30 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/Lzw.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab7a7e23f9a31e343af271691c447a62 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Editor/Unity.SharpZipLib.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e90d0e960fd91714aa15ad0ded4da90c 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/Checksum.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c54b504178cd34418205d496b99f83a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79ddc9e1e68cdf845a04c2ff22bc412e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Runtime/Utils/Unity.SharpZipLib.Utils.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c1b5e158961445498f8a66188fbb2e3 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Unity.SharpZipLib.Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e591a4f19516d3647aab748538901d02 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Editor/Unity.SharpZipLib.EditorTests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dabede6f7a4d62e49b277a20d979a894 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /UniGame.Zip/Documentation~/index.md: -------------------------------------------------------------------------------- 1 | # com.unity.sharp-zip-lib 2 | 3 | `com.unity.sharp-zip-lib` is a package that wraps [SharpZipLib](https://github.com/icsharpcode/SharpZipLib) to be used inside Unity, 4 | and provides various compression/extraction utility functions. 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /UniGame.GitTools/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.unigame.gittools", 3 | "author": "UniGame", 4 | "displayName": "UniGame Git Tools", 5 | "description": "Git Commands & Tools", 6 | "unity": "2019.1", 7 | "version": "2022.0.0", 8 | "keywords": [ 9 | "git" 10 | ], 11 | "dependencies": {} 12 | } -------------------------------------------------------------------------------- /UniGame.GitTools/Runtime/GitCommands.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ae416d2276fbcc4588f9bc33016a45c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Runtime/Utils/ZipUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2918e7f7fbe902e43a1a998cb57f83ce 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/Lzw/LzwTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e16fd4d4a916950469dd76ff67ef7310 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/ZipUtilityTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b647e8483f70adc40871c24f58be30d1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.UnityFigma/Editor/FlowGenerator/ViewPostBuildFigmaFlowCommands.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0927b4a4f75287428aff9c9a23e2b03 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.UnityFigma/Editor/FlowGenerator/ViewSystemFigmaFlowGenerator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a24660d313f411948b7bdd8a28f506fd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Editor/Analytics/AnalyticsEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03a65b0e176c4794b9d5c8dc0aba03f5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Editor/Analytics/AnalyticsSender.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40560d0ad3fe7a947a8f78c0b52d709b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Editor/ZipUtilityEditorTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 880be3ca91a7c834397689dbe7b2f1c0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/BZip2/Bzip2Tests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19790bbcb69a0f040af8f0a5fbd94f4e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/Core/CoreTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7bbcba444b6c3074facd0b2730207df1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/GZip/GZipTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 161ee16a152db3e41bab4c799fd5167f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/Utils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dcfb714c641b713459713bc2a2e8f7a6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Editor/Analytics/SharpZipLibAnalytics.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9642b7007ac7efd4d8a783c90bd6b952 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/Checksum/ChecksumTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f84b0254530884b43ba9c77518197eec 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/RingBuffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 525c4fe2fffb6ae4ca48bd82406dc7aa 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/SevenZip.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a863c4c02becd7249ab26e3be21b95ad 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/Streams.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 914750e1463c11a43abda86b7855c279 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/ThreadEx.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df6e8b2ac5093ad438697d855aebb97b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/ZipTesting.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f023a067f59bfc244b23ff9ad51c994b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/Base/InflaterDeflaterTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15794c89e2d6387419cecc5bc112efb4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/StringTesting.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62b9064ab4f3f34439d51bf914c27b93 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/PerformanceTesting.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51b2655896a91474382c9800884ed242 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Runtime/Utils/Unity.SharpZipLib.Utils.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Unity.SharpZipLib.Utils", 3 | "references": [], 4 | "includePlatforms": [], 5 | "excludePlatforms": [], 6 | "allowUnsafeCode": false, 7 | "overrideReferences": false, 8 | "precompiledReferences": [], 9 | "autoReferenced": true, 10 | "defineConstraints": [], 11 | "versionDefines": [] 12 | } -------------------------------------------------------------------------------- /UniGame.GitTools/Runtime/unigame.gittools.runtime.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "unigame.gittools.runtime", 3 | "references": [], 4 | "includePlatforms": [], 5 | "excludePlatforms": [], 6 | "allowUnsafeCode": false, 7 | "overrideReferences": false, 8 | "precompiledReferences": [], 9 | "autoReferenced": true, 10 | "defineConstraints": [], 11 | "versionDefines": [], 12 | "noEngineReferences": false 13 | } -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Editor/Unity.SharpZipLib.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Unity.SharpZipLib.Editor", 3 | "references": [], 4 | "includePlatforms": [ 5 | "Editor" 6 | ], 7 | "excludePlatforms": [], 8 | "allowUnsafeCode": false, 9 | "overrideReferences": false, 10 | "precompiledReferences": [], 11 | "autoReferenced": true, 12 | "defineConstraints": [], 13 | "versionDefines": [], 14 | "noEngineReferences": false 15 | } -------------------------------------------------------------------------------- /UniGame.Zip/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.unigame.zip", 3 | "author": "UniGame", 4 | "displayName": "Unity Tech SharpZipLib library for Unity", 5 | "unity": "2019.3", 6 | "version": "2022.0.0", 7 | "description": "A package that wraps SharpZipLib (https://github.com/icsharpcode/SharpZipLib) to be used inside Unity", 8 | "contributors": [ 9 | "Sindharta Tanuwijaya (https://github.com/sindharta)" 10 | ], 11 | "keywords": [ 12 | "zip" 13 | ] 14 | } -------------------------------------------------------------------------------- /Shared.Editor/Hierarchy/HierarchyItem.cs: -------------------------------------------------------------------------------- 1 | namespace UniGame.Shared.Editor.Hierarchy 2 | { 3 | using UnityEditor; 4 | using UnityEngine; 5 | 6 | public class HierarchyItem 7 | { 8 | public Rect Rect; 9 | public GameObject GameObject; 10 | 11 | public void Set(int id, Rect rect) 12 | { 13 | Rect = rect; 14 | 15 | var target = EditorUtility.InstanceIDToObject(id); 16 | GameObject = target as GameObject; 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/LICENSE.md: -------------------------------------------------------------------------------- 1 | SharpZipLib copyright © 2024 Unity Technologies ApS 2 | 3 | Licensed under the Unity Companion License for Unity-dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). 4 | 5 | Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. 6 | -------------------------------------------------------------------------------- /UniGame.UnityFigma/Editor/FlowGenerator/ViewPostBuildFigmaFlowCommands.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace UniGame.UnityFigma.Editor.FlowGenerator 4 | { 5 | using UniGame.UiSystem.UI.Editor.UiEdito; 6 | using UnityEngine; 7 | using UnityFigmaBridge.Editor.Settings; 8 | 9 | [CreateAssetMenu(menuName = "UniGame/Figma/Figma Post Build View Commands",fileName = "Post Build View Commands")] 10 | public class ViewPostBuildFigmaFlowCommands : PostBuildFigmaFlowCommandAsset 11 | { 12 | public override void Execute() 13 | { 14 | ViewAssembler.RefreshUiSettings(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/ThreadEx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading; 3 | using System.Reflection; 4 | public class ThreadEx 5 | { 6 | public static void Abort(Thread thread) 7 | { 8 | MethodInfo abort = null; 9 | foreach(MethodInfo m in thread.GetType().GetMethods(BindingFlags.NonPublic | BindingFlags.Instance)) 10 | { 11 | if (m.Name.Equals("AbortInternal") && m.GetParameters().Length == 0) abort = m; 12 | } 13 | if (abort == null) 14 | { 15 | throw new Exception("Failed to get Thread.Abort method"); 16 | } 17 | abort.Invoke(thread, new object[0]); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Documentation~/Installation.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | 3 | Follow the following steps to install `com.unity.sharp-zip-lib` package: 4 | 5 | 1. Make sure git is installed in the system. 6 | 1. Open [Package Manager Window](https://docs.unity3d.com/Manual/upm-ui.html) 7 | 1. Click the **+** button, and choose **Add package by name** 8 | > In Unity 2020.x or earlier, choose **Add package from git URL** 9 | 10 | ![](images/PackageManager.png) 11 | 12 | 1. Type in `com.unity.sharp-zip-lib` and click the **Add** button. 13 | We can also specify a particular version by appending `@`, for example: `com.unity.sharp-zip-lib@1.3.5-preview` 14 | 15 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Editor/Unity.SharpZipLib.EditorTests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Unity.SharpZipLib.EditorTests", 3 | "references": [ 4 | "UnityEngine.TestRunner", 5 | "UnityEditor.TestRunner", 6 | "Unity.SharpZipLib.Utils" 7 | ], 8 | "includePlatforms": [ 9 | "Editor" 10 | ], 11 | "excludePlatforms": [], 12 | "allowUnsafeCode": false, 13 | "overrideReferences": true, 14 | "precompiledReferences": [ 15 | "nunit.framework.dll" 16 | ], 17 | "autoReferenced": false, 18 | "defineConstraints": [ 19 | "UNITY_INCLUDE_TESTS" 20 | ], 21 | "versionDefines": [], 22 | "noEngineReferences": false 23 | } -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Unity.SharpZipLib.Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Unity.SharpZipLib.Tests", 3 | "references": [ 4 | "GUID:8c1b5e158961445498f8a66188fbb2e3" 5 | ], 6 | "includePlatforms": [], 7 | "excludePlatforms": [], 8 | "allowUnsafeCode": false, 9 | "overrideReferences": true, 10 | "precompiledReferences": [ 11 | "nunit.framework.dll", 12 | "Unity.SharpZipLib.dll" 13 | ], 14 | "autoReferenced": false, 15 | "defineConstraints": [ 16 | "UNITY_INCLUDE_TESTS" 17 | ], 18 | "versionDefines": [], 19 | "optionalUnityReferences": [ 20 | "TestAssemblies" 21 | ], 22 | "noEngineReferences": false 23 | } -------------------------------------------------------------------------------- /Shared.Editor/UniGame.Shared.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UniGame.Shared.Editor", 3 | "rootNamespace": "", 4 | "references": [ 5 | "GUID:479101ab42675254185bc92a2699743d", 6 | "GUID:f51ebe6a0ceec4240a699833d6309b23", 7 | "GUID:69448af7b92c7f342b298e06a37122aa", 8 | "GUID:593a5b492d29ac6448b1ebf7f035ef33", 9 | "GUID:9e24947de15b9834991c9d8411ea37cf", 10 | "GUID:84651a3751eca9349aac36a66bba901b" 11 | ], 12 | "includePlatforms": [ 13 | "Editor" 14 | ], 15 | "excludePlatforms": [], 16 | "allowUnsafeCode": false, 17 | "overrideReferences": false, 18 | "precompiledReferences": [], 19 | "autoReferenced": true, 20 | "defineConstraints": [], 21 | "versionDefines": [], 22 | "noEngineReferences": false 23 | } -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Runtime/Unity.SharpZipLib.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 636e562b9ad5598469ecb3279e60d55e 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 1 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /UniGame.UnityFigma/Editor/unigame.viewsystem.figma.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "unigame.viewsystem.figma", 3 | "rootNamespace": "", 4 | "references": [ 5 | "GUID:f84199c2820e64964a7bfb78d6fa52b8", 6 | "GUID:6afe2d33e248b49bb80adb70ef4940b1", 7 | "GUID:23d974ceb2c46cb44a17fcb2aa97b9ed", 8 | "GUID:6632c725b5599b14c865359e6ecc36f4", 9 | "GUID:8e4577c9194c10845984cf27eb974fd1", 10 | "GUID:0a6c1794e4ebd1a43b1a79f2d16f1cec" 11 | ], 12 | "includePlatforms": [ 13 | "Editor" 14 | ], 15 | "excludePlatforms": [], 16 | "allowUnsafeCode": false, 17 | "overrideReferences": false, 18 | "precompiledReferences": [], 19 | "autoReferenced": true, 20 | "defineConstraints": [ 21 | "ENABLE_UNIGAME_FIGMA" 22 | ], 23 | "versionDefines": [], 24 | "noEngineReferences": false 25 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # .gitignore 2 | 3 | # Unity 4 | /[Ll]ibrary/ 5 | /[Tt]emp/ 6 | /[Oo]bj/ 7 | /[Ll]og/ 8 | /[Ll]ogs/ 9 | /[Bb]uild/ 10 | /[Bb]uilds/ 11 | /Assets/AssetStoreTools* 12 | sysinfo.txt 13 | *.pidb.meta 14 | 15 | # VS/Rider/MD/Consulo 16 | ExportedObj/ 17 | .consulo/ 18 | .idea/ 19 | *.csproj 20 | *.unityproj 21 | *.sln 22 | *.suo 23 | *.tmp 24 | *.userprefs 25 | *.pidb 26 | *.booproj 27 | *.svd 28 | *.vs/ 29 | 30 | # Addressable Importer Module 31 | UnityAddressableImporter/CHANGELOG.md.meta 32 | UnityAddressableImporter/Editor.meta 33 | UnityAddressableImporter/LICENSE.md.meta 34 | UnityAddressableImporter/Media.meta 35 | UnityAddressableImporter/package.json.meta 36 | UnityAddressableImporter/README.md.meta 37 | UnityAddressableImporter/Runtime.meta 38 | UnityAddressableImporter/Tests.meta 39 | 40 | 41 | # Builds 42 | *.apk 43 | *.unitypackage 44 | *.app 45 | *.exe -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Editor/Analytics/SharpZipLibAnalytics.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | 3 | namespace Unity.SharpZipLib.Editor { 4 | internal static class SharpZipLibAnalytics { 5 | private class LoadEvent : AnalyticsEvent { 6 | internal override string eventName => "sharpziplib_load"; 7 | internal override int maxEventPerHour => 1; 8 | internal override int maxItems => 2; 9 | internal LoadEvent() : base(new AnalyticsEventData()) { 10 | } 11 | } 12 | 13 | //-------------------------------------------------------------------------------------------------------------------------------------------------------------- 14 | 15 | [InitializeOnLoadMethod] 16 | private static void OnLoad() { 17 | AnalyticsSender.SendEventInEditor(new LoadEvent()); 18 | } 19 | } 20 | 21 | } //end namespace -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Editor/Analytics/AnalyticsEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Unity.SharpZipLib.Editor { 4 | internal class AnalyticsEventData { 5 | public string actualPackageVersion; 6 | } 7 | 8 | internal abstract class AnalyticsEvent { 9 | 10 | internal abstract string eventName { get; } 11 | internal virtual int version => 1; 12 | internal virtual int maxEventPerHour => 10000; 13 | internal virtual int maxItems => 1000; 14 | 15 | // Minimum interval to send this event 16 | internal virtual TimeSpan minInterval => TimeSpan.Zero; 17 | 18 | internal readonly AnalyticsEventData parameters; 19 | 20 | internal AnalyticsEvent() { 21 | parameters = new AnalyticsEventData(); 22 | } 23 | 24 | internal AnalyticsEvent(AnalyticsEventData eventData) { 25 | parameters = eventData; 26 | } 27 | } 28 | 29 | } //end namespace -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.unigame.modules.assembles", 3 | "author": "UniGame", 4 | "displayName": "UniGame Modules Assembles", 5 | "description": "Collection of All base UnioGame Modules", 6 | "unity": "2022.1", 7 | "version": "2023.0.0", 8 | "keywords": [ 9 | "UniGame", 10 | "Modules", 11 | "Tools" 12 | ], 13 | "homepage": "https://github.com/UniGameTeam/UniModules#readme", 14 | "dependencies": { 15 | "com.unity.addressables": "1.21.17", 16 | "com.unity.editorcoroutines": "1.0.0", 17 | "com.unity.burst": "1.8.9", 18 | "com.unity.ugui": "1.0.0", 19 | "com.unity.textmeshpro": "2.1.6", 20 | "com.unity.timeline": "1.8.6", 21 | "com.unity.localization": "1.4.5", 22 | "com.unity.2d.psdimporter": "8.0.3", 23 | "com.unity.nuget.newtonsoft-json": "3.2.1" 24 | }, 25 | "repository": { 26 | "type": "git", 27 | "url": "https://github.com/UniGameTeam/UniModules.git" 28 | } 29 | } -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "displayName": "SharpZipLib", 3 | "name": "com.unity.sharp-zip-lib", 4 | "unity": "2018.4", 5 | "version": "1.3.7", 6 | "dependencies": {}, 7 | "description": "A package that wraps SharpZipLib (https://github.com/icsharpcode/SharpZipLib) to be used inside Unity", 8 | "contributors": [ 9 | "Sindharta Tanuwijaya (https://github.com/sindharta)" 10 | ], 11 | "_upm": { 12 | "changelog": "### Changed\n* Re-releasing 1.3.7-pre.1 (prerelease) as 1.3.7 (released)" 13 | }, 14 | "upmCi": { 15 | "footprint": "9f83f4b1ff1c78223174b1a815432e3cdfaa6ffe" 16 | }, 17 | "documentationUrl": "https://docs.unity3d.com/Packages/com.unity.sharp-zip-lib@1.3/manual/index.html", 18 | "repository": { 19 | "url": "https://github.com/Unity-Technologies/SharpZipLib.git", 20 | "type": "git", 21 | "revision": "3fa773d87a887b2712df7e69bb3a93e82372dc8a" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/ZipTesting.cs: -------------------------------------------------------------------------------- 1 | using Unity.SharpZipLib.Zip; 2 | using System.IO; 3 | namespace Unity.SharpZipLib.Tests.TestSupport 4 | { 5 | /// 6 | /// Provides support for testing in memory zip archives. 7 | /// 8 | internal static class ZipTesting 9 | { 10 | /// 11 | /// Tests the archive. 12 | /// 13 | /// The data. 14 | /// 15 | public static bool TestArchive(byte[] data) 16 | { 17 | return TestArchive(data, null); 18 | } 19 | /// 20 | /// Tests the archive. 21 | /// 22 | /// The data. 23 | /// The password. 24 | /// true if archive tests ok; false otherwise. 25 | public static bool TestArchive(byte[] data, string password) 26 | { 27 | using (MemoryStream ms = new MemoryStream(data)) 28 | using (ZipFile zipFile = new ZipFile(ms)) 29 | { 30 | zipFile.Password = password; 31 | return zipFile.TestArchive(true); 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 UniGame 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Editor/ZipUtilityEditorTests.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_2019_1_OR_NEWER 2 | 3 | using System.IO; 4 | using NUnit.Framework; 5 | using UnityEditor; 6 | 7 | namespace Unity.SharpZipLib.Utils.EditorTests { 8 | 9 | public class ZipUtilityEditorTests { 10 | [Test] 11 | public void CompressAndDecompress() { 12 | //Compress code 13 | string tempZipPath = FileUtil.GetUniqueTempPathInProject(); 14 | string runtimeSrcPath ="Packages/com.unity.sharp-zip-lib/Runtime"; 15 | ZipUtility.CompressFolderToZip(tempZipPath,null, runtimeSrcPath); 16 | Assert.True(File.Exists(tempZipPath)); 17 | 18 | //Uncompress 19 | string tempExtractPath = FileUtil.GetUniqueTempPathInProject(); 20 | Directory.CreateDirectory(tempExtractPath); 21 | ZipUtility.UncompressFromZip(tempZipPath, null, tempExtractPath); 22 | 23 | string[] extractedFiles = Directory.GetFiles(tempExtractPath); 24 | Assert.Greater(extractedFiles.Length,0); 25 | 26 | //Cleanup 27 | Directory.Delete(tempExtractPath,true); 28 | File.Delete(tempZipPath); 29 | } 30 | 31 | } 32 | 33 | } //end namepsace 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "UniGame.UniBuild"] 2 | path = UniGame.UniBuild 3 | url = https://github.com/UniGameTeam/UniBuild.git 4 | branch = master 5 | [submodule "UniGame.ViewSystem"] 6 | path = UniGame.ViewSystem 7 | url = https://github.com/UniGameTeam/UniGame.ViewSystem.git 8 | branch = master 9 | [submodule "UniGame.CoreModules"] 10 | path = UniGame.CoreModules 11 | url = https://github.com/UniGameTeam/CoreModules.git 12 | branch = main 13 | [submodule "UniGame.UniBuildCommands"] 14 | path = UniGame.UniBuildCommands 15 | url=https://github.com/UnioGame/UnioGame.UniBuildCommands.git 16 | branch = master 17 | [submodule "UniGame.Localization"] 18 | path = UniGame.Localization 19 | url=https://github.com/UnioGame/UniGame.Localization.git 20 | branch = main 21 | [submodule "UniGame.MultiScenes"] 22 | path = UniGame.MultiScenes 23 | url = https://github.com/UnioGame/MultiScenes.git 24 | branch = main 25 | [submodule "FluentFTP"] 26 | path = FluentFTP 27 | url = https://github.com/UnioGame/FluentFTP.git 28 | [submodule "UniGame.GameDB"] 29 | path = UniGame.GameDB 30 | url = https://github.com/UnioGame/UniGame.GameDB.git 31 | [submodule "kd.tree"] 32 | path = kd.tree 33 | url = https://github.com/UnioGame/kd.tree.git 34 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Third Party Notices.md: -------------------------------------------------------------------------------- 1 | This package contains third-party software components governed by the license(s) indicated below: 2 | --------- 3 | 4 | # SharpZipLib 5 | ``` 6 | Copyright © 2000-2018 SharpZipLib Contributors 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy of this 9 | software and associated documentation files (the "Software"), to deal in the Software 10 | without restriction, including without limitation the rights to use, copy, modify, merge, 11 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons 12 | to whom the Software is furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all copies or 15 | substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 18 | INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 19 | PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE 20 | FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 21 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22 | DEALINGS IN THE SOFTWARE. 23 | ``` -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/.signature: -------------------------------------------------------------------------------- 1 | { 2 | "timestamp": 1710994391, 3 | "signature": "isW2rm4hQs4rFFzp7jcpVF25InQqgF70inHsyBtXUdZwg3zkxNKKL3AJsLLtikG/BEPox4NcPFAD0FXuyVNDs6DHcMD69OfuWSljPNsrcjXPKzwIPd1Rj1j+mjVPCM6EPxk7wA9eL/3xSrYyyECn3wmGrMge078+EyfoZ7SrESynwO1g5Wq0wadExIePo4Hx2O3TVeHY6Pd6/4jlAgOglte36beo6JUNdA+e1jQLbhj2xpdjMRFMVKM+dXqOPuCyxemNu7TcYU32pi3eqw7VWioKsnR28WxIqMH2wZr03c/ImwhmAuqAw2m+Kic4xlGYM2GL1MUMuL6GIPEJzoDnvXNTdPEoWKyBFN3dKJo+3AIt1YlhmlfDp9MzX3DB72UtN//0maMKIiwRkGhO3SD3MmHvcMYj+2wk8m5RPf1CzeYZVSIdwJSBKYFjLU5fg9YuxNFAzYsNL88/y56DJlHeNVPNNU4B4fXQNwgNrNH4WAUdUDFlih9R8jyq/WyagYwx", 4 | "publicKey": "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQm9qQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FZOEFNSUlCaWdLQ0FZRUFzdUhXYUhsZ0I1cVF4ZEJjTlJKSAordHR4SmoxcVY1NTdvMlZaRE1XaXhYRVBkRTBEMVFkT1JIRXNSS1RscmplUXlERU83ZlNQS0ZwZ1A3MU5TTnJCCkFHM2NFSU45aHNQVDhOVmllZmdWem5QTkVMenFkVmdEbFhpb2VpUnV6OERKWFgvblpmU1JWKytwbk9ySTRibG4KS0twelJlNW14OTc1SjhxZ1FvRktKT0NNRlpHdkJMR2MxSzZZaEIzOHJFODZCZzgzbUovWjBEYkVmQjBxZm13cgo2ZDVFUXFsd0E5Y3JZT1YyV1VpWXprSnBLNmJZNzRZNmM1TmpBcEFKeGNiaTFOaDlRVEhUcU44N0ZtMDF0R1ZwCjVNd1pXSWZuYVRUemEvTGZLelR5U0pka0tldEZMVGdkYXpMYlpzUEE2aHBSK0FJRTJhc0tLTi84UUk1N3UzU2cKL2xyMnZKS1IvU2l5eEN1Q20vQWJkYnJMbXk0WjlSdm1jMGdpclA4T0lLQWxBRWZ2TzV5Z2hSKy8vd1RpTFlzUQp1SllDM0V2UE16ZGdKUzdGR2FscnFLZzlPTCsxVzROY05yNWdveVdSUUJ0cktKaWlTZEJVWmVxb0RvSUY5NHpCCndGbzJJT1JFdXFqcU51M3diMWZIM3p1dGdtalFra3IxVjJhd3hmcExLWlROQWdNQkFBRT0KLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg" 5 | } -------------------------------------------------------------------------------- /UniGame.Zip/README.md: -------------------------------------------------------------------------------- 1 | # SharpZipLib 2 | 3 | [![](https://badge-proxy.cds.internal.unity3d.com/78081939-b2a0-4fc9-bebf-901b49fd954c)](https://badges.cds.internal.unity3d.com/packages/com.unity.sharp-zip-lib/build-info?branch=master&testWorkflow=package-isolation) 4 | [![](https://badge-proxy.cds.internal.unity3d.com/faf61743-4d21-479c-b01c-ab63561e27d9)](https://badges.cds.internal.unity3d.com/packages/com.unity.sharp-zip-lib/dependencies-info?branch=master&testWorkflow=updated-dependencies) 5 | [![](https://badge-proxy.cds.internal.unity3d.com/e5917bce-0357-4f49-a9c3-c356b9de832c)](https://badges.cds.internal.unity3d.com/packages/com.unity.sharp-zip-lib/dependants-info) 6 | [![](https://badge-proxy.cds.internal.unity3d.com/f2066c51-3423-424d-a58f-24a64683cf57)](https://badges.cds.internal.unity3d.com/packages/com.unity.sharp-zip-lib/warnings-info?branch=master) 7 | 8 | ![ReleaseBadge](https://badge-proxy.cds.internal.unity3d.com/3b04c8fe-9005-4b46-848e-cb0199e49a2e) 9 | ![ReleaseBadge](https://badge-proxy.cds.internal.unity3d.com/9a481f99-fa9b-4716-8409-69bb63fedbd7) 10 | 11 | A package that wraps [SharpZipLib](https://github.com/icsharpcode/SharpZipLib) to be used inside Unity 12 | 13 | ## Steps to update SharpZipLib 14 | 15 | ### Windows 16 | 1. Download the source from https://github.com/icsharpcode/SharpZipLib/releases 17 | 1. Extract the source into "SharpZipLibSrc" folder 18 | 1. Open Developer Command Prompt for Visual Studio 19 | 1. Execute ```update_sharp-zip-lib.cmd``` 20 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/StringTesting.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | namespace Unity.SharpZipLib.Tests.TestSupport 3 | { 4 | public static class StringTesting 5 | { 6 | static StringTesting() 7 | { 8 | AddLanguage("Chinese", "測試.txt", "big5"); 9 | AddLanguage("Greek", "Ϗΰ.txt", "windows-1253"); 10 | AddLanguage("Nordic", "Åæ.txt", "windows-1252"); 11 | AddLanguage("Arabic", "ڀڅ.txt", "windows-1256"); 12 | AddLanguage("Russian", "Прйвёт.txt", "windows-1251"); 13 | } 14 | private static void AddLanguage(string language, string filename, string encoding) 15 | { 16 | languages.Add(language); 17 | filenames.Add(filename); 18 | encodings.Add(encoding); 19 | entries++; 20 | } 21 | private static int entries = 0; 22 | private static List languages = new List(); 23 | private static List filenames = new List(); 24 | private static List encodings = new List(); 25 | public static IEnumerable Languages => filenames.AsReadOnly(); 26 | public static IEnumerable Filenames => filenames.AsReadOnly(); 27 | public static IEnumerable Encodings => filenames.AsReadOnly(); 28 | public static IEnumerable<(string language, string filename, string encoding)> GetTestSamples() 29 | { 30 | for (int i = 0; i < entries; i++) 31 | { 32 | yield return (languages[i], filenames[i], encodings[i]); 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /UniGame.GitTools/Runtime/GitCommands.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Text.RegularExpressions; 4 | using UnityEngine; 5 | using Debug = UnityEngine.Debug; 6 | 7 | namespace UniModules.UniGame.GitTools.Runtime 8 | { 9 | public static class GitCommands 10 | { 11 | public const string BranchParameters = "rev-parse --abbrev-ref HEAD"; 12 | 13 | public static string GetGitBranch() 14 | { 15 | var result = string.Empty; 16 | 17 | try { 18 | using (var process = StartGitProcess(BranchParameters)) { 19 | process.Start(); 20 | var output = process.StandardOutput.ReadLine(); 21 | result = RemoveSpecialCharacters(output); 22 | } 23 | } 24 | catch (Exception e) { 25 | Debug.LogException(e); 26 | } 27 | 28 | return result; 29 | } 30 | 31 | public static Process StartGitProcess(string parameters) 32 | { 33 | var startinfo = new ProcessStartInfo("git") { 34 | UseShellExecute = false, 35 | WorkingDirectory = Application.dataPath, 36 | RedirectStandardInput = true, 37 | RedirectStandardOutput = true, 38 | Arguments = parameters, 39 | }; 40 | var process = new Process() { 41 | StartInfo = startinfo 42 | }; 43 | return process; 44 | } 45 | 46 | public static string RemoveSpecialCharacters(string str) 47 | { 48 | return Regex.Replace(str, "[^a-zA-Z0-9_.]+", "", RegexOptions.Compiled); 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/ZipUtilityTests.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_2019_1_OR_NEWER 2 | 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using NUnit.Framework; 6 | using UnityEngine; 7 | 8 | namespace Unity.SharpZipLib.Utils.Tests { 9 | 10 | public class ZipUtilityTests { 11 | 12 | [Test] 13 | public void CompressAndUncompressFolder() { 14 | 15 | Dictionary fileContentDictionary = new Dictionary() { 16 | {"Foo.txt", "FooFoo"}, 17 | {"Bar.txt", "BarBar"} 18 | }; 19 | 20 | string folder = Path.Combine(Application.temporaryCachePath, "TestDataFolder"); 21 | Directory.CreateDirectory(folder); 22 | using (var enumerator = fileContentDictionary.GetEnumerator()) { 23 | while (enumerator.MoveNext()) { 24 | KeyValuePair kv = enumerator.Current; 25 | string filePath = Path.Combine(folder, kv.Key); 26 | File.WriteAllText(filePath, kv.Value); 27 | Assert.True(File.Exists(filePath)); 28 | } 29 | } 30 | 31 | //Compress folder 32 | string tempZipPath = Path.Combine(Application.temporaryCachePath, "TestDataFolder.zip"); 33 | ZipUtility.CompressFolderToZip(tempZipPath,null, folder); 34 | Assert.True(File.Exists(tempZipPath)); 35 | 36 | Directory.Delete(folder, recursive:true); 37 | 38 | 39 | //Uncompress 40 | ZipUtility.UncompressFromZip(tempZipPath, null, folder); 41 | 42 | //Check contents 43 | using (var enumerator = fileContentDictionary.GetEnumerator()) { 44 | while (enumerator.MoveNext()) { 45 | KeyValuePair kv = enumerator.Current; 46 | string filePath = Path.Combine(folder, kv.Key); 47 | Assert.True(File.Exists(filePath)); 48 | Assert.AreEqual(kv.Value, File.ReadAllText(filePath)); 49 | } 50 | } 51 | 52 | //Cleanup 53 | Directory.Delete(folder,true); 54 | File.Delete(tempZipPath); 55 | } 56 | 57 | } 58 | 59 | } //end namepsace 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Documentation~/index.md: -------------------------------------------------------------------------------- 1 | # com.unity.sharp-zip-lib 2 | 3 | `com.unity.sharp-zip-lib` is a package that wraps [SharpZipLib](https://github.com/icsharpcode/SharpZipLib) to be used inside Unity, 4 | and provides various compression/uncompression utility functions. 5 | 6 | Currently, this package uses [SharpZipLib v1.3.3](https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3). 7 | Please refer to the [installation](Installation.md) page to install this package. 8 | 9 | > The version numbering of this package itself and the version of SharpZipLib used in the package may look similar, 10 | but they are not related. 11 | 12 | 13 | ## How to Use 14 | 15 | * All [SharpZipLib](https://github.com/icsharpcode/SharpZipLib) APIs are available under `Unity.SharpZipLib` namespace. For example: 16 | ```csharp 17 | using System.IO; 18 | using Unity.SharpZipLib.GZip; 19 | 20 | ... 21 | 22 | public void Foo() { 23 | MemoryStream ms = new MemoryStream(); 24 | GZipOutputStream outStream = new GZipOutputStream(ms); 25 | ... 26 | } 27 | 28 | ``` 29 | 30 | Please refer to the API documentation of the [SharpZipLib](https://github.com/icsharpcode/SharpZipLib) version used 31 | in this package for more details. 32 | 33 | * In addition, `com.unity.sharp-zip-lib` also provides additional utility APIs: 34 | * `ZipUtility.CompressFolderToZip()`: Compresses the files in the nominated folder, and creates a zip file on disk. 35 | * `ZipUtility.UncompressFromZip()`: Uncompress the contents of a zip file into the specified folder. 36 | 37 | As an example: 38 | ```csharp 39 | 40 | [Test] 41 | public void Foo() { 42 | //Compress 43 | string tempZipPath = FileUtil.GetUniqueTempPathInProject(); 44 | string folderToCompress ="Bar"; 45 | ZipUtility.CompressFolderToZip(tempZipPath,null, folderToCompress); 46 | 47 | //Uncompress 48 | string tempExtractPath = FileUtil.GetUniqueTempPathInProject(); 49 | Directory.CreateDirectory(tempExtractPath); 50 | ZipUtility.UncompressFromZip(tempZipPath, null, tempExtractPath); 51 | 52 | } 53 | ``` 54 | 55 | 56 | ## Supported Unity Versions 57 | 58 | * Unity `2018.4.36` or higher. 59 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [1.3.7] - 2024-03-21 4 | 5 | ### Changed 6 | * Re-releasing 1.3.7-pre.1 (prerelease) as 1.3.7 (released) 7 | 8 | ## [1.3.7-pre.1] - 2024-03-15 9 | 10 | ### Added 11 | * test: add runtime utility test 12 | 13 | ### Fixed 14 | * fix-test: use Unity's temporary path to create temp files 15 | 16 | ### Changed 17 | * test: rename test assembly to Unity.SharpZipLib.* 18 | * test: move test code copied from source to Tests/Runtime/Src 19 | 20 | ## [1.3.6-preview] - 2024-02-28 21 | 22 | ### Fixed 23 | * fix: use SharpZipLib 1.3.3 24 | 25 | ### Changed 26 | * doc: update the version of SharpZipLib source, DLL build steps, and installation doc 27 | 28 | ## [1.3.5-preview] - 2024-01-09 29 | 30 | ### Added 31 | * doc: add "How to Use" section 32 | * doc: add Installation page 33 | 34 | ## [1.3.4-preview] - 2023-04-07 35 | 36 | ### Added 37 | * internal: analytics 38 | 39 | ## [1.3.3-preview] - 2022-12-16 40 | 41 | * Reverted minimum Unity version from 2019.4 back to 2018.4 to increase utility 42 | 43 | ## [1.3.2-preview] - 2022-07-14 44 | 45 | * Re-releasing 1.3.1-preview as 1.3.2-preview 46 | 47 | ## [1.3.1-preview] - 2022-07-13 48 | 49 | ### Fixed 50 | * fix: exclude github workflows from the package 51 | 52 | ## [1.3.0-preview] - 2022-05-16 53 | 54 | ### Changed 55 | 56 | * feat: use SharpZipLib 1.3.1 57 | * chore: increase minimum Unity requirement to 2019.4 58 | * change: the namespace of all code (including DLL) to Unity.SharpZipLib (breaking change) 59 | 60 | ## [1.2.2-preview.2] - 2021-10-19 61 | 62 | ### Changed 63 | * change assembly name to Unity.SharpZipLib 64 | * replace SharpZipLib.dll with Unity.SharpZipLib.dll 65 | 66 | ### Removed 67 | * remove Tests\Runtime\Serialization code 68 | 69 | ## [1.2.2-preview.1] - 2020-10-02 70 | 71 | ### Changed 72 | * chore: remove package author. 73 | 74 | ## [1.2.2-preview] - 2020-06-10 75 | 76 | ### Fixed 77 | * chore: fix package warnings 78 | 79 | ## [1.2.1-preview] - 2020-05-12 80 | 81 | ### Changed 82 | * Changed minimum Unity version from 2019.2 to 2018.4 so it can be used by packages targetting this version 83 | 84 | 85 | ## [1.2.0-preview] - 2019-10-02 86 | 87 | ### Added 88 | * The first release of *SharpZipLib \*, which was built using 89 | [SharpZipLib v1.2.0](https://github.com/icsharpcode/SharpZipLib/archive/v1.2.0.zip). 90 | 91 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/Lzw/LzwTests.cs: -------------------------------------------------------------------------------- 1 | using Unity.SharpZipLib.Lzw; 2 | using Unity.SharpZipLib.Tests.TestSupport; 3 | using NUnit.Framework; 4 | using System.IO; 5 | namespace Unity.SharpZipLib.Tests.Lzw 6 | { 7 | [TestFixture] 8 | public class LzwTestSuite 9 | { 10 | //[Test] 11 | //[Category("LZW")] 12 | //public void TestLzw() { 13 | // LzwInputStream str = new LzwInputStream(File.OpenRead("D:\\hour2890.09n.Z")); 14 | // Stream raw = File.OpenRead("D:\\hour2890.09n"); 15 | // byte[] data = new byte[1028 * 1028]; 16 | // byte[] dataRaw = new byte[1028 * 1028]; 17 | // raw.Read(dataRaw, 0, 1028); 18 | // str.Read(data, 0, 1028); 19 | // for (int i = 0; i < 1028; i++) { 20 | // Assert.AreEqual(data[i], dataRaw[i]); 21 | // } 22 | // Stream output = File.Open("D:\\erase.txt", FileMode.CreateNew); 23 | // output.Write(data, 0, 1028); 24 | // output.Close(); 25 | // raw.Close(); 26 | //} 27 | //[Test] 28 | //[Category("LZW")] 29 | //public void TestStream() { 30 | // using (Stream inStream = new LzwInputStream(File.OpenRead("D:\\hour2890.09n.Z"))) 31 | // using (FileStream outStream = File.Create("D:\\hour2890.09n")) { 32 | // byte[] buffer = new byte[4096]; 33 | // StreamUtils.Copy(inStream, outStream, buffer); 34 | // } 35 | //} 36 | [Test] 37 | [Category("LZW")] 38 | public void ZeroLengthInputStream() 39 | { 40 | var lis = new LzwInputStream(new MemoryStream()); 41 | bool exception = false; 42 | try 43 | { 44 | lis.ReadByte(); 45 | } 46 | catch 47 | { 48 | exception = true; 49 | } 50 | Assert.IsTrue(exception, "reading from an empty stream should cause an exception"); 51 | } 52 | [Test] 53 | [Category("LZW")] 54 | public void InputStreamOwnership() 55 | { 56 | var memStream = new TrackedMemoryStream(); 57 | var s = new LzwInputStream(memStream); 58 | Assert.IsFalse(memStream.IsClosed, "Shouldnt be closed initially"); 59 | Assert.IsFalse(memStream.IsDisposed, "Shouldnt be disposed initially"); 60 | s.Close(); 61 | Assert.IsTrue(memStream.IsClosed, "Should be closed after parent owner close"); 62 | Assert.IsTrue(memStream.IsDisposed, "Should be disposed after parent owner close"); 63 | memStream = new TrackedMemoryStream(); 64 | s = new LzwInputStream(memStream); 65 | Assert.IsFalse(memStream.IsClosed, "Shouldnt be closed initially"); 66 | Assert.IsFalse(memStream.IsDisposed, "Shouldnt be disposed initially"); 67 | s.IsStreamOwner = false; 68 | s.Close(); 69 | Assert.IsFalse(memStream.IsClosed, "Should not be closed after parent owner close"); 70 | Assert.IsFalse(memStream.IsDisposed, "Should not be disposed after parent owner close"); 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/BZip2/Bzip2Tests.cs: -------------------------------------------------------------------------------- 1 | using Unity.SharpZipLib.BZip2; 2 | using Unity.SharpZipLib.Tests.TestSupport; 3 | using NUnit.Framework; 4 | using System; 5 | using System.IO; 6 | namespace Unity.SharpZipLib.Tests.BZip2 7 | { 8 | /// 9 | /// This class contains test cases for Bzip2 compression 10 | /// 11 | [TestFixture] 12 | public class BZip2Suite 13 | { 14 | // Use the same random seed to guarantee all the code paths are followed 15 | const int RandomSeed = 4; 16 | 17 | /// 18 | /// Basic compress/decompress test BZip2 19 | /// 20 | [Test] 21 | [Category("BZip2")] 22 | public void BasicRoundTrip() 23 | { 24 | var ms = new MemoryStream(); 25 | var outStream = new BZip2OutputStream(ms); 26 | byte[] buf = new byte[10000]; 27 | var rnd = new Random(RandomSeed); 28 | rnd.NextBytes(buf); 29 | outStream.Write(buf, 0, buf.Length); 30 | outStream.Close(); 31 | ms = new MemoryStream(ms.GetBuffer()); 32 | ms.Seek(0, SeekOrigin.Begin); 33 | using (BZip2InputStream inStream = new BZip2InputStream(ms)) 34 | { 35 | byte[] buf2 = new byte[buf.Length]; 36 | int pos = 0; 37 | while (true) 38 | { 39 | int numRead = inStream.Read(buf2, pos, 4096); 40 | if (numRead <= 0) 41 | { 42 | break; 43 | } 44 | pos += numRead; 45 | } 46 | for (int i = 0; i < buf.Length; ++i) 47 | { 48 | Assert.AreEqual(buf2[i], buf[i]); 49 | } 50 | } 51 | } 52 | /// 53 | /// Check that creating an empty archive is handled ok 54 | /// 55 | [Test] 56 | [Category("BZip2")] 57 | public void CreateEmptyArchive() 58 | { 59 | var ms = new MemoryStream(); 60 | var outStream = new BZip2OutputStream(ms); 61 | outStream.Close(); 62 | ms = new MemoryStream(ms.GetBuffer()); 63 | ms.Seek(0, SeekOrigin.Begin); 64 | using (BZip2InputStream inStream = new BZip2InputStream(ms)) 65 | { 66 | byte[] buffer = new byte[1024]; 67 | int pos = 0; 68 | while (true) 69 | { 70 | int numRead = inStream.Read(buffer, 0, buffer.Length); 71 | if (numRead <= 0) 72 | { 73 | break; 74 | } 75 | pos += numRead; 76 | } 77 | Assert.Zero(pos); 78 | } 79 | } 80 | [Test] 81 | [Category("BZip2")] 82 | [Category("Performance")] 83 | [Explicit("Long-running")] 84 | public void WriteThroughput() 85 | { 86 | PerformanceTesting.TestWrite( 87 | size: TestDataSize.Small, 88 | output: w => new BZip2OutputStream(w) 89 | ); 90 | } 91 | [Test] 92 | [Category("BZip2")] 93 | [Category("Performance")] 94 | [Explicit("Long-running")] 95 | public void ReadWriteThroughput() 96 | { 97 | PerformanceTesting.TestReadWrite( 98 | size: TestDataSize.Small, 99 | input: w => new BZip2InputStream(w), 100 | output: w => new BZip2OutputStream(w) 101 | ); 102 | } 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/Core/CoreTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Unity.SharpZipLib.Core; 3 | using NUnit.Framework; 4 | namespace Unity.SharpZipLib.Tests.Core 5 | { 6 | [TestFixture] 7 | public class CoreTestSuite 8 | { 9 | [Test] 10 | [Category("Core")] 11 | public void FilterQuoting() 12 | { 13 | string[] filters = NameFilter.SplitQuoted(""); 14 | Assert.AreEqual(0, filters.Length); 15 | filters = NameFilter.SplitQuoted(";;;"); 16 | Assert.AreEqual(4, filters.Length); 17 | foreach (string filter in filters) 18 | { 19 | Assert.AreEqual("", filter); 20 | } 21 | filters = NameFilter.SplitQuoted("a;a;a;a;a"); 22 | Assert.AreEqual(5, filters.Length); 23 | foreach (string filter in filters) 24 | { 25 | Assert.AreEqual("a", filter); 26 | } 27 | filters = NameFilter.SplitQuoted(@"a\;;a\;;a\;;a\;;a\;"); 28 | Assert.AreEqual(5, filters.Length); 29 | foreach (string filter in filters) 30 | { 31 | Assert.AreEqual("a;", filter); 32 | } 33 | } 34 | [Test] 35 | [Category("Core")] 36 | public void NullFilter() 37 | { 38 | var nf = new NameFilter(null); 39 | Assert.IsTrue(nf.IsIncluded("o78i6bgv5rvu\\kj//&*")); 40 | } 41 | [Test] 42 | [Category("Core")] 43 | public void ValidFilter() 44 | { 45 | Assert.IsTrue(NameFilter.IsValidFilterExpression(null)); 46 | Assert.IsTrue(NameFilter.IsValidFilterExpression(string.Empty)); 47 | Assert.IsTrue(NameFilter.IsValidFilterExpression("a")); 48 | Assert.IsFalse(NameFilter.IsValidFilterExpression(@"\,)")); 49 | Assert.IsFalse(NameFilter.IsValidFilterExpression(@"[]")); 50 | } 51 | // Use a shorter name wrapper to make tests more legible 52 | private static string DropRoot(string s) => PathUtils.DropPathRoot(s); 53 | 54 | [Test] 55 | [Category("Core")] 56 | [Platform("Win")] 57 | public void DropPathRoot_Windows() 58 | { 59 | Assert.AreEqual("file.txt", DropRoot(@"\\server\share\file.txt")); 60 | Assert.AreEqual("file.txt", DropRoot(@"c:\file.txt")); 61 | Assert.AreEqual(@"subdir with spaces\file.txt", DropRoot(@"z:\subdir with spaces\file.txt")); 62 | Assert.AreEqual("", DropRoot(@"\\server\share\")); 63 | Assert.AreEqual(@"server\share\file.txt", DropRoot(@"\server\share\file.txt")); 64 | Assert.AreEqual(@"path\file.txt", DropRoot(@"\\server\share\\path\file.txt")); 65 | } 66 | [Test] 67 | [Category("Core")] 68 | [Platform(Exclude="Win")] 69 | public void DropPathRoot_Posix() 70 | { 71 | Assert.AreEqual("file.txt", DropRoot("/file.txt")); 72 | Assert.AreEqual(@"tmp/file.txt", DropRoot(@"/tmp/file.txt")); 73 | Assert.AreEqual(@"tmp\file.txt", DropRoot(@"\tmp\file.txt")); 74 | Assert.AreEqual(@"tmp/file.txt", DropRoot(@"\tmp/file.txt")); 75 | Assert.AreEqual(@"tmp\file.txt", DropRoot(@"/tmp\file.txt")); 76 | Assert.AreEqual("", DropRoot("/")); 77 | } 78 | [Test] 79 | [TestCase(@"c:\file:+/")] 80 | [TestCase(@"c:\file*?")] 81 | [TestCase("c:\\file|\"")] 82 | [TestCase(@"c:\file<>")] 83 | [TestCase(@"c:file")] 84 | [TestCase(@"c::file")] 85 | [TestCase(@"c:?file")] 86 | [TestCase(@"c:+file")] 87 | [TestCase(@"cc:file")] 88 | [Category("Core")] 89 | public void DropPathRoot_DoesNotThrowForInvalidPath(string path) 90 | { 91 | Assert.DoesNotThrow(() => Console.WriteLine(PathUtils.DropPathRoot(path))); 92 | } 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/SevenZip.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.IO; 4 | using NUnit.Framework; 5 | 6 | using Debug = UnityEngine.Debug; 7 | 8 | namespace Unity.SharpZipLib.Tests.TestSupport 9 | { 10 | // Helper class for verifying zips with 7-zip 11 | internal static class SevenZipHelper 12 | { 13 | private static readonly string[] possible7zPaths = new[] { 14 | // Check in PATH 15 | "7z", "7za", 16 | // Check in default install location 17 | Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "7-Zip", "7z.exe"), 18 | Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "7-Zip", "7z.exe"), 19 | }; 20 | private static bool TryGet7zBinPath(out string path7z) 21 | { 22 | var runTimeLimit = TimeSpan.FromSeconds(3); 23 | foreach (var testPath in possible7zPaths) 24 | { 25 | try 26 | { 27 | var p = Process.Start(new ProcessStartInfo(testPath, "i") 28 | { 29 | RedirectStandardOutput = true, 30 | UseShellExecute = false 31 | }); 32 | while (!p.StandardOutput.EndOfStream && (DateTime.Now - p.StartTime) < runTimeLimit) 33 | { 34 | p.StandardOutput.DiscardBufferedData(); 35 | } 36 | if (!p.HasExited) 37 | { 38 | p.Close(); 39 | Debug.LogWarning($"Timed out checking for 7z binary in \"{testPath}\"!"); 40 | continue; 41 | } 42 | if (p.ExitCode == 0) 43 | { 44 | path7z = testPath; 45 | return true; 46 | } 47 | } 48 | catch (Exception) 49 | { 50 | continue; 51 | } 52 | } 53 | path7z = null; 54 | return false; 55 | } 56 | /// 57 | /// Helper function to verify the provided zip stream with 7Zip. 58 | /// 59 | /// A stream containing the zip archive to test. 60 | /// The password for the archive. 61 | internal static void VerifyZipWith7Zip(Stream zipStream, string password) 62 | { 63 | if (TryGet7zBinPath(out string path7z)) 64 | { 65 | Console.WriteLine($"Using 7z path: \"{path7z}\""); 66 | var fileName = Path.GetTempFileName(); 67 | try 68 | { 69 | using (var fs = File.OpenWrite(fileName)) 70 | { 71 | zipStream.Seek(0, SeekOrigin.Begin); 72 | zipStream.CopyTo(fs); 73 | } 74 | var p = Process.Start(new ProcessStartInfo(path7z, $"t -p{password} \"{fileName}\"") 75 | { 76 | RedirectStandardOutput = true, 77 | RedirectStandardError = true, 78 | UseShellExecute = false, 79 | }); 80 | 81 | if (p == null) 82 | { 83 | Assert.Inconclusive("Failed to start 7z process. Skipping!"); 84 | } 85 | if (!p.WaitForExit(2000)) 86 | { 87 | Debug.LogWarning("Timed out verifying zip file!"); 88 | } 89 | TestContext.Out.Write(p.StandardOutput.ReadToEnd()); 90 | var errors = p.StandardError.ReadToEnd(); 91 | Assert.IsEmpty(errors, "7z reported errors"); 92 | Assert.AreEqual(0, p.ExitCode, "Archive verification failed"); 93 | } 94 | finally 95 | { 96 | File.Delete(fileName); 97 | } 98 | } 99 | else 100 | { 101 | Debug.LogWarning("Skipping file verification since 7za is not in path"); 102 | } 103 | } 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /Shared.Editor/Hierarchy/HierarchyItemDrawer.cs: -------------------------------------------------------------------------------- 1 | namespace UniGame.Shared.Editor.Hierarchy 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | [InitializeOnLoad] 9 | public static class HierarchyItemDrawer 10 | { 11 | private static Action onStopped; 12 | 13 | private static List listeners; 14 | private static bool isDirty; 15 | private static bool isStopped; 16 | private static HierarchyItem item; 17 | 18 | static HierarchyItemDrawer() 19 | { 20 | EditorApplication.hierarchyWindowItemOnGUI -= OnHierarchyItemGUI; 21 | EditorApplication.hierarchyWindowItemOnGUI += OnHierarchyItemGUI; 22 | 23 | item = new HierarchyItem(); 24 | } 25 | 26 | private static void OnHierarchyItemGUI(int id, Rect rect) 27 | { 28 | if (listeners == null) return; 29 | 30 | if (isDirty) 31 | { 32 | listeners.Sort(delegate (Listener i1, Listener i2) 33 | { 34 | if (Math.Abs(i1.Order - i2.Order) < float.Epsilon) 35 | return 0; 36 | 37 | if (i1.Order > i2.Order) 38 | return 1; 39 | 40 | return -1; 41 | }); 42 | 43 | isDirty = false; 44 | } 45 | 46 | item.Set(id, rect); 47 | 48 | foreach (var listener in listeners) 49 | { 50 | if (listener.Action != null) 51 | { 52 | try 53 | { 54 | listener.Action(item); 55 | } 56 | catch (Exception e) 57 | { 58 | Debug.Log(e); 59 | } 60 | } 61 | if (isStopped) break; 62 | } 63 | 64 | isStopped = false; 65 | } 66 | 67 | public static void Register(string id, Action action, float order = 0) 68 | { 69 | if (string.IsNullOrEmpty(id)) 70 | throw new Exception("ID cannot be empty"); 71 | 72 | listeners ??= new List(); 73 | 74 | var hash = id.GetHashCode(); 75 | foreach (var listener in listeners) 76 | { 77 | if (listener.Hash != hash || listener.ID != id) 78 | continue; 79 | 80 | listener.Action = action; 81 | listener.Order = order; 82 | return; 83 | } 84 | 85 | listeners.Add(new Listener 86 | { 87 | ID = id, 88 | Hash = hash, 89 | Action = action, 90 | Order = order 91 | }); 92 | 93 | isDirty = true; 94 | } 95 | 96 | public static void StopCurrentRowGUI() 97 | { 98 | isStopped = true; 99 | onStopped?.Invoke(item); 100 | } 101 | 102 | private class Listener 103 | { 104 | public int Hash; 105 | public string ID; 106 | public Action Action; 107 | public float Order; 108 | } 109 | } 110 | } -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Tests/Runtime/Src/TestSupport/Utils.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using System.IO; 4 | using System.Text; 5 | namespace Unity.SharpZipLib.Tests.TestSupport 6 | { 7 | /// 8 | /// Miscellaneous test utilities. 9 | /// 10 | public static class Utils 11 | { 12 | public static int DummyContentLength = 16; 13 | private static Random random = new Random(); 14 | 15 | /// 16 | /// Returns the system root for the current platform (usually c:\ for windows and / for others) 17 | /// 18 | public static string SystemRoot { get; } = 19 | Path.GetPathRoot(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)); 20 | private static void Compare(byte[] a, byte[] b) 21 | { 22 | 23 | if (a == null) 24 | { 25 | throw new ArgumentNullException(nameof(a)); 26 | } 27 | if (b == null) 28 | { 29 | throw new ArgumentNullException(nameof(b)); 30 | } 31 | Assert.AreEqual(a.Length, b.Length); 32 | for (int i = 0; i < a.Length; ++i) 33 | { 34 | Assert.AreEqual(a[i], b[i]); 35 | } 36 | } 37 | public static void WriteDummyData(string fileName, int size = -1) 38 | { 39 | using(var fs = File.OpenWrite(fileName)) 40 | { 41 | WriteDummyData(fs, size); 42 | } 43 | } 44 | public static void WriteDummyData(Stream stream, int size = -1) 45 | { 46 | var bytes = (size < 0) 47 | ? Encoding.ASCII.GetBytes(DateTime.UtcNow.Ticks.ToString("x16")) 48 | : new byte[size]; 49 | if(size > 0) 50 | { 51 | random.NextBytes(bytes); 52 | } 53 | stream.Write(bytes, 0, bytes.Length); 54 | } 55 | public static TempFile GetDummyFile(int size = -1) 56 | { 57 | var tempFile = new TempFile(); 58 | WriteDummyData(tempFile.Filename, size); 59 | return tempFile; 60 | } 61 | public static string GetDummyFileName() 62 | => $"{random.Next():x8}{random.Next():x8}{random.Next():x8}"; 63 | public class TempFile : IDisposable 64 | { 65 | public string Filename { get; internal set; } 66 | public TempFile() 67 | { 68 | Filename = Path.GetTempFileName(); 69 | } 70 | #region IDisposable Support 71 | private bool disposed = false; // To detect redundant calls 72 | protected virtual void Dispose(bool disposing) 73 | { 74 | if (!disposed) 75 | { 76 | if (disposing && File.Exists(Filename)) 77 | { 78 | try 79 | { 80 | File.Delete(Filename); 81 | } 82 | catch { } 83 | } 84 | disposed = true; 85 | } 86 | } 87 | public void Dispose() 88 | { 89 | Dispose(true); 90 | GC.SuppressFinalize(this); 91 | } 92 | #endregion IDisposable Support 93 | } 94 | public class TempDir : IDisposable 95 | { 96 | public string Fullpath { get; internal set; } 97 | public TempDir() 98 | { 99 | Fullpath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 100 | Directory.CreateDirectory(Fullpath); 101 | } 102 | #region IDisposable Support 103 | private bool disposed = false; // To detect redundant calls 104 | protected virtual void Dispose(bool disposing) 105 | { 106 | if (!disposed) 107 | { 108 | if (disposing && Directory.Exists(Fullpath)) 109 | { 110 | try 111 | { 112 | Directory.Delete(Fullpath, true); 113 | } 114 | catch { } 115 | } 116 | disposed = true; 117 | } 118 | } 119 | public void Dispose() 120 | { 121 | Dispose(true); 122 | GC.SuppressFinalize(this); 123 | } 124 | internal string CreateDummyFile(int size = -1) 125 | => CreateDummyFile(GetDummyFileName(), size); 126 | internal string CreateDummyFile(string name, int size = -1) 127 | { 128 | var fileName = Path.Combine(Fullpath, name); 129 | WriteDummyData(fileName, size); 130 | return fileName; 131 | } 132 | #endregion IDisposable Support 133 | } 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/Editor/Analytics/AnalyticsSender.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Reflection; 4 | using UnityEngine; 5 | using UnityEngine.Analytics; 6 | 7 | #if UNITY_EDITOR 8 | using UnityEditor; 9 | #endif 10 | 11 | 12 | namespace Unity.SharpZipLib.Editor { 13 | 14 | internal static class AnalyticsSender { 15 | 16 | #if UNITY_2019_4_OR_NEWER && UNITY_EDITOR && ENABLE_CLOUD_SERVICES_ANALYTICS 17 | private struct EventDetail { 18 | public string assemblyInfo; 19 | public string packageName; 20 | public string packageVersion; 21 | } 22 | 23 | internal static void SendEventInEditor(AnalyticsEvent analyticsEvent) { 24 | if (!EditorAnalytics.enabled) { 25 | return; 26 | } 27 | 28 | if (!IsEventRegistered(analyticsEvent)) { 29 | var assembly = Assembly.GetCallingAssembly(); 30 | if (!RegisterEvent(analyticsEvent, assembly)) { 31 | return; 32 | } 33 | } 34 | 35 | if (!ShouldSendEvent(analyticsEvent)) { 36 | return; 37 | } 38 | 39 | analyticsEvent.parameters.actualPackageVersion = m_registeredEvents[analyticsEvent.eventName].packageVersion; 40 | AnalyticsResult result = EditorAnalytics.SendEventWithLimit(analyticsEvent.eventName, analyticsEvent.parameters, analyticsEvent.version); 41 | if (result != AnalyticsResult.Ok) { 42 | return; 43 | } 44 | 45 | DateTime now = DateTime.Now; 46 | m_lastSentDateTime[analyticsEvent.eventName] = now; 47 | } 48 | 49 | //-------------------------------------------------------------------------------------------------------------------------------------------------------------- 50 | private static bool IsEventRegistered(AnalyticsEvent analyticsEvent) { 51 | return m_registeredEvents.ContainsKey(analyticsEvent.eventName); 52 | } 53 | 54 | private static bool ShouldSendEvent(AnalyticsEvent analyticsEvent) { 55 | if (!m_lastSentDateTime.ContainsKey(analyticsEvent.eventName)) { 56 | return true; 57 | } 58 | 59 | DateTime lastSentDateTime = m_lastSentDateTime[analyticsEvent.eventName]; 60 | return DateTime.Now - lastSentDateTime >= analyticsEvent.minInterval; 61 | } 62 | 63 | private static bool RegisterEvent(AnalyticsEvent analyticsEvent, Assembly assembly) { 64 | if (!EditorAnalytics.enabled) { 65 | return false; 66 | } 67 | 68 | AnalyticsResult result = EditorAnalytics.RegisterEventWithLimit(analyticsEvent.eventName, 69 | analyticsEvent.maxEventPerHour, analyticsEvent.maxItems, VENDOR_KEY, analyticsEvent.version); 70 | 71 | if (result != AnalyticsResult.Ok) { 72 | return false; 73 | } 74 | 75 | var eventDetails = new EventDetail { 76 | assemblyInfo = assembly.FullName, 77 | }; 78 | 79 | var packageInfo = UnityEditor.PackageManager.PackageInfo.FindForAssembly(assembly); 80 | if (packageInfo != null) { 81 | eventDetails.packageName = packageInfo.name; 82 | eventDetails.packageVersion = packageInfo.version; 83 | } 84 | 85 | m_registeredEvents[analyticsEvent.eventName] = eventDetails; 86 | return true; 87 | } 88 | 89 | //-------------------------------------------------------------------------------------------------------------------------------------------------------------- 90 | 91 | private const string VENDOR_KEY = "unity.sharp-zip-lib"; 92 | 93 | private static readonly Dictionary m_registeredEvents = new Dictionary(); 94 | private static readonly Dictionary m_lastSentDateTime = new Dictionary(); 95 | 96 | #else 97 | 98 | internal static void SendEventInEditor(AnalyticsEvent analyticsEvent) { } 99 | 100 | 101 | #endif //UNITY_EDITOR 102 | 103 | } 104 | } //end namespace -------------------------------------------------------------------------------- /UniGame.Zip/com.unity.sharp-zip-lib/README.md: -------------------------------------------------------------------------------- 1 | 2 | # Latest official docs 3 | - [English](https://docs.unity3d.com/Packages/com.unity.sharp-zip-lib@latest) 4 | 5 | [![](https://badge-proxy.cds.internal.unity3d.com/78081939-b2a0-4fc9-bebf-901b49fd954c)](https://badges.cds.internal.unity3d.com/packages/com.unity.sharp-zip-lib/build-info?branch=master&testWorkflow=package-isolation) 6 | [![](https://badge-proxy.cds.internal.unity3d.com/faf61743-4d21-479c-b01c-ab63561e27d9)](https://badges.cds.internal.unity3d.com/packages/com.unity.sharp-zip-lib/dependencies-info?branch=master&testWorkflow=updated-dependencies) 7 | [![](https://badge-proxy.cds.internal.unity3d.com/e5917bce-0357-4f49-a9c3-c356b9de832c)](https://badges.cds.internal.unity3d.com/packages/com.unity.sharp-zip-lib/dependants-info) 8 | [![](https://badge-proxy.cds.internal.unity3d.com/f2066c51-3423-424d-a58f-24a64683cf57)](https://badges.cds.internal.unity3d.com/packages/com.unity.sharp-zip-lib/warnings-info?branch=master) 9 | 10 | ![ReleaseBadge](https://badge-proxy.cds.internal.unity3d.com/3b04c8fe-9005-4b46-848e-cb0199e49a2e) 11 | ![ReleaseBadge](https://badge-proxy.cds.internal.unity3d.com/9a481f99-fa9b-4716-8409-69bb63fedbd7) 12 | # com.unity.sharp-zip-lib 13 | 14 | `com.unity.sharp-zip-lib` is a package that wraps [SharpZipLib](https://github.com/icsharpcode/SharpZipLib) to be used inside Unity, 15 | and provides various compression/uncompression utility functions. 16 | 17 | Currently, this package uses [SharpZipLib v1.3.3](https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3). 18 | Please refer to the [installation](Documentation~/Installation.md) page to install this package. 19 | 20 | > The version numbering of this package itself and the version of SharpZipLib used in the package may look similar, 21 | but they are not related. 22 | 23 | 24 | ## How to Use 25 | 26 | * All [SharpZipLib](https://github.com/icsharpcode/SharpZipLib) APIs are available under `Unity.SharpZipLib` namespace. For example: 27 | ```csharp 28 | using System.IO; 29 | using Unity.SharpZipLib.GZip; 30 | 31 | ... 32 | 33 | public void Foo() { 34 | MemoryStream ms = new MemoryStream(); 35 | GZipOutputStream outStream = new GZipOutputStream(ms); 36 | ... 37 | } 38 | 39 | ``` 40 | 41 | Please refer to the API documentation of the [SharpZipLib](https://github.com/icsharpcode/SharpZipLib) version used 42 | in this package for more details. 43 | 44 | * In addition, `com.unity.sharp-zip-lib` also provides additional utility APIs: 45 | * `ZipUtility.CompressFolderToZip()`: Compresses the files in the nominated folder, and creates a zip file on disk. 46 | * `ZipUtility.UncompressFromZip()`: Uncompress the contents of a zip file into the specified folder. 47 | 48 | As an example: 49 | ```csharp 50 | 51 | [Test] 52 | public void Foo() { 53 | //Compress 54 | string tempZipPath = FileUtil.GetUniqueTempPathInProject(); 55 | string folderToCompress ="Bar"; 56 | ZipUtility.CompressFolderToZip(tempZipPath,null, folderToCompress); 57 | 58 | //Uncompress 59 | string tempExtractPath = FileUtil.GetUniqueTempPathInProject(); 60 | Directory.CreateDirectory(tempExtractPath); 61 | ZipUtility.UncompressFromZip(tempZipPath, null, tempExtractPath); 62 | 63 | } 64 | ``` 65 | 66 | 67 | ## Supported Unity Versions 68 | 69 | * Unity `2018.4.36` or higher. 70 | ## Steps to update SharpZipLib 71 | 72 | ### Windows 73 | 74 | #### Environment Prerequisites 75 | 1. Visual Studio 2022 (17.19.1) or later 76 | * Check ".Net desktop development" during the installation of Visual Studio 77 | 2. Make sure that .Net SDK 8.0 is installed as follows: 78 | * Open "Developer Command Prompt for VS 2022" 79 | * Type: `dotnet --list-sdks` 80 | 81 | #### Steps 82 | 83 | 1. Download the source from https://github.com/icsharpcode/SharpZipLib/releases 84 | 1. Extract the source into a folder, e.g: `Src/SharpZipLib-1.3.3` 85 | 1. Open "Developer Command Prompt for VS 2022" 86 | 1. Execute `update_sharp-zip-lib.cmd [src_folder]` 87 | * E.g: `update_sharp-zip-lib.cmd Src/SharpZipLib-1.3.3` 88 | * Executing `update_sharp-zip-lib.cmd` without arguments will print the list of acceptable arguments 89 | 1. Open SharpZipLib~ test project, ensure everything compiles and the tests are successful. 90 | * We may need to fix/remove some tests that were copied from the source. 91 | For example: [async tests](https://docs.unity3d.com/Packages/com.unity.test-framework@1.4/manual/reference-async-tests.html) 92 | which are not supported in Unity 2018 and earlier. 93 | 94 | 95 | 96 | *Auto-generated on Wed Feb 28 05:29:40 UTC 2024* 97 | -------------------------------------------------------------------------------- /UniGame.UnityFigma/Editor/FlowGenerator/ViewSystemFigmaFlowGenerator.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityFigmaBridge.Editor.Settings; 3 | 4 | namespace UniGame.UnityFigma.Editor.FlowGenerator 5 | { 6 | using System; 7 | using UiSystem.Runtime.Settings; 8 | using UniModules.UniCore.Runtime.Utils; 9 | using UniModules.UniGame.UiSystem.Runtime; 10 | using UnityEngine.UI; 11 | using UnityFigmaBridge.Editor; 12 | using UnityFigmaBridge.Editor.FigmaApi; 13 | using Color = UnityEngine.Color; 14 | 15 | 16 | #if LEO_ECS_ENABLED 17 | using LeoEcs.ViewSystem.Behavriour; 18 | #endif 19 | 20 | [CreateAssetMenu(menuName = "UniGame/Figma/View System Figma Flow",fileName = "ViewSystem FigmaFlowGenerator")] 21 | public class ViewSystemFigmaFlowGenerator : UnityFigmaBridgeFlowGenerator 22 | { 23 | /// 24 | /// Add in prototype flow functionality for this node, if required 25 | /// 26 | /// 27 | /// 28 | /// 29 | public override void ApplyFunctionalityToNode( 30 | Node node, 31 | GameObject nodeGameObject, 32 | FigmaImportProcessData figmaImportProcessData) 33 | { 34 | 35 | if (CheckAddButtonBehaviour(node, figmaImportProcessData)) 36 | { 37 | if (nodeGameObject.GetComponent