Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Commit 4246552

Browse files
authored
Updating mobile workers (#42)
* updating mobile workers * adding changelog * update pinned version * removing new line * updated changelog
1 parent 3097f1b commit 4246552

22 files changed

+42
-535
lines changed

.buildkite/premerge.steps.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ common: &common
3131
# These are then relied on to have stable names by other things, so once named, please beware renaming has consequences.
3232

3333
steps:
34-
- label: "build :android:"
34+
- label: "build :android: and iOS"
3535
command: bash -c .shared-ci/scripts/build-worker.sh
3636
<<: *common
3737
artifact_paths:
3838
- logs/**/*
3939
env:
40-
WORKER_TYPE: "AndroidClient"
40+
WORKER_TYPE: "MobileClient"
4141
BUILD_TARGET: "local"
4242
SCRIPTING_TYPE: "mono"
4343

.buildkite/release-qa.steps.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ common: &common
3131
# These are then relied on to have stable names by other things, so once named, please beware renaming has consequences.
3232

3333
steps:
34-
- label: "build :android:"
34+
- label: "build :android: and iOS"
3535
command: bash -c .shared-ci/scripts/build-worker.sh
3636
<<: *common
3737
artifact_paths:
3838
- logs/**/*
3939
- build/assembly/**/*
4040
env:
41-
WORKER_TYPE: "AndroidClient"
41+
WORKER_TYPE: "MobileClient"
4242
BUILD_TARGET: "local"
4343
SCRIPTING_TYPE: "mono"
4444

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Breaking Changes
6+
- Removed the `AndroidClientWorkerConnector` and `iOSClientWorkerConnector` and their specific scenes. You can now use the `MobileClientWorkerConnector` and its `MobileClientScene` to connect to a mobile device.
7+
- Added the worker type `MobileClient` and removed the worker types `AndroidClient` and `iOSClient`.
8+
59
## `0.2.1` - 2019-04-15
610

711
### Changed

cloud_launch.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,7 @@
3838
]
3939
},
4040
{
41-
"worker_type": "AndroidClient",
42-
"permissions": [
43-
{
44-
"all": {}
45-
}
46-
]
47-
},
48-
{
49-
"worker_type": "iOSClient",
41+
"worker_type": "MobileClient",
5042
"permissions": [
5143
{
5244
"all": {}

default_launch.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,7 @@
4747
]
4848
},
4949
{
50-
"worker_type": "AndroidClient",
51-
"permissions": [
52-
{
53-
"all": {}
54-
}
55-
]
56-
},
57-
{
58-
"worker_type": "iOSClient",
50+
"worker_type": "MobileClient",
5951
"permissions": [
6052
{
6153
"all": {}

gdk.pinned

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1ebe4a385826ee94189369781c5a79345b0401fd
1+
f88cb9df1dc7345fad505c692a33ebf1f5a5e1a1

snapshots/default.snapshot

21 Bytes
Binary file not shown.

workers/unity/Assets/BlankProject.asmdef

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
"Improbable.Gdk.Core",
55
"Improbable.Gdk.Generated",
66
"Improbable.Gdk.Mobile",
7-
"Improbable.Gdk.Mobile.Android",
8-
"Improbable.Gdk.Mobile.iOS",
97
"Improbable.Gdk.TransformSynchronization",
108
"Improbable.Gdk.PlayerLifecycle",
119
"Unity.Entities",

workers/unity/Assets/Config/BuildConfiguration.asset

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ MonoBehaviour:
8181
- Options: 0
8282
Enabled: 0
8383
Required: 0
84-
- WorkerType: AndroidClient
84+
- WorkerType: MobileClient
8585
ScenesForWorker:
8686
- {fileID: 102900000, guid: 17bd667c9bc89cf4b8c402299c7aa813, type: 3}
8787
LocalBuildConfig:
@@ -92,40 +92,6 @@ MonoBehaviour:
9292
- Options: 1
9393
Enabled: 1
9494
Required: 0
95-
- Options: 0
96-
Enabled: 0
97-
Required: 0
98-
CloudBuildConfig:
99-
BuildTargets:
100-
- Options: 0
101-
Enabled: 0
102-
Required: 0
103-
- Options: 0
104-
Enabled: 0
105-
Required: 0
106-
- Options: 16384
107-
Enabled: 0
108-
Required: 0
109-
- Options: 0
110-
Enabled: 0
111-
Required: 0
112-
- Options: 0
113-
Enabled: 1
114-
Required: 0
115-
- Options: 0
116-
Enabled: 0
117-
Required: 0
118-
- WorkerType: iOSClient
119-
ScenesForWorker:
120-
- {fileID: 102900000, guid: 41a2e6f1d4e756248b31ad0e94d13def, type: 3}
121-
LocalBuildConfig:
122-
BuildTargets:
123-
- Options: 0
124-
Enabled: 0
125-
Required: 0
126-
- Options: 0
127-
Enabled: 0
128-
Required: 0
12995
- Options: 1
13096
Enabled: 1
13197
Required: 0
@@ -144,7 +110,7 @@ MonoBehaviour:
144110
Enabled: 0
145111
Required: 0
146112
- Options: 0
147-
Enabled: 0
113+
Enabled: 1
148114
Required: 0
149115
- Options: 0
150116
Enabled: 1

workers/unity/Assets/Editor/SnapshotGenerator/SnapshotGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private static void AddPlayerSpawner(Snapshot snapshot)
4040
template.AddComponent(new Persistence.Snapshot(), serverAttribute);
4141
template.AddComponent(new PlayerCreator.Snapshot(), serverAttribute);
4242

43-
template.SetReadAccess(UnityClientConnector.WorkerType, UnityGameLogicConnector.WorkerType, AndroidClientWorkerConnector.WorkerType, iOSClientWorkerConnector.WorkerType);
43+
template.SetReadAccess(UnityClientConnector.WorkerType, UnityGameLogicConnector.WorkerType, MobileClientWorkerConnector.WorkerType);
4444
template.SetComponentWriteAccess(EntityAcl.ComponentId, serverAttribute);
4545

4646
snapshot.AddEntity(template);

0 commit comments

Comments
 (0)