Skip to content

Commit fe3133c

Browse files
committed
make clearscript plugin optional
1 parent e021df3 commit fe3133c

35 files changed

+116
-6958
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ jobs:
5858
path: quickjs
5959
repository: ReactUnity/quickjs
6060

61+
- name: Checkout ClearScript plugin
62+
uses: actions/checkout@v2
63+
with:
64+
ref: main
65+
path: clearscript
66+
repository: ReactUnity/clearscript
67+
6168

6269
- name: Cache Unity Library
6370
uses: actions/cache@v2
@@ -72,11 +79,13 @@ jobs:
7279
run: |
7380
echo $(cat tests/Packages/packages-lock.json | jq 'del(.dependencies["com.reactunity.core"])') > tests/Packages/packages-lock.json
7481
echo $(cat tests/Packages/packages-lock.json | jq 'del(.dependencies["com.reactunity.quickjs"])') > tests/Packages/packages-lock.json
82+
echo $(cat tests/Packages/packages-lock.json | jq 'del(.dependencies["com.reactunity.clearscript"])') > tests/Packages/packages-lock.json
7583
7684
- name: Install local React Unity package
7785
run: |
7886
echo $(cat tests/Packages/manifest.json | jq '.dependencies["com.reactunity.core"]="file:../../core"') > tests/Packages/manifest.json
7987
echo $(cat tests/Packages/manifest.json | jq '.dependencies["com.reactunity.quickjs"]="file:../../quickjs"') > tests/Packages/manifest.json
88+
echo $(cat tests/Packages/manifest.json | jq '.dependencies["com.reactunity.clearscript"]="file:../../clearscript"') > tests/Packages/manifest.json
8089
8190
8291
- name: Install TMP v2

Editor/ReactUnity.Editor.asmdef

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@
4141
"define": "REACT_EDITOR_COROUTINES"
4242
},
4343
{
44-
"name": "Unity",
44+
"name": "com.reactunity.clearscript",
4545
"expression": "",
4646
"define": "REACT_CLEARSCRIPT_AVAILABLE"
4747
},
4848
{
49-
"name": "Unity",
49+
"name": "com.reactunity.core",
5050
"expression": "",
5151
"define": "REACT_JINT_AVAILABLE"
5252
},
5353
{
54-
"name": "cc.starlessnight.unity-jsb",
54+
"name": "com.reactunity.quickjs",
5555
"expression": "",
5656
"define": "REACT_QUICKJS_AVAILABLE"
5757
}
-390 KB
Binary file not shown.

Plugins/ClearScript/ClearScript.Core.dll.meta

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)