Skip to content

Commit 4bbc8bf

Browse files
authored
Merge pull request #873 from PlayEveryWare/release-3.3.2
Release 3.3.2
2 parents 9a7f0f1 + 4e6d559 commit 4bbc8bf

File tree

2,578 files changed

+15468
-3732
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,578 files changed

+15468
-3732
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Check package.json to see if the version number is different.
2+
# If it isn't changed, then yell at the user.
3+
4+
name: "CheckPackageVersionChanged"
5+
6+
on:
7+
push:
8+
branches: [ "stable" ]
9+
pull_request:
10+
branches: [ "stable" ]
11+
workflow_call:
12+
inputs:
13+
new-branch:
14+
description: 'Branch that contains changes. If the context does not have a branch, use this. If context is not provided, this is required.'
15+
required: false
16+
default: ''
17+
type: string
18+
old-branch:
19+
description: 'Branch to compare against. Defaults to main, should be whatever branch is the primary branch.'
20+
required: false
21+
default: 'stable'
22+
type: string
23+
package-location:
24+
description: 'File path to the package.json file to check. Includes the name of the file.'
25+
required: false
26+
default: 'com.playeveryware.eos/package.json'
27+
type: string
28+
29+
env:
30+
NEW_BRANCH_NAME: ${{ github.head_ref || github.ref_name || inputs.new-branch || 'stable' }}
31+
OLD_BRANCH_NAME: ${{ inputs.old-branch || 'stable' }}
32+
PACKAGE_LOCATION: ${{ inputs.package-location }}
33+
34+
jobs:
35+
check_package_version_changed:
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
- name: Get New Package.json
40+
id: get_new_package_json
41+
uses: actions/github-script@v7
42+
with:
43+
script: |
44+
const response = await github.rest.repos.getContent({
45+
owner: context.repo.owner,
46+
repo: context.repo.repo,
47+
path: 'com.playeveryware.eos/package.json',
48+
ref: '${{ env.NEW_BRANCH_NAME }}'
49+
});
50+
51+
return Buffer.from(response.data.content, response.data.encoding).toString('utf-8');
52+
result-encoding: string
53+
54+
- name: Get Old Package.json
55+
id: get_old_package_json
56+
uses: actions/github-script@v7
57+
with:
58+
script: |
59+
const response = await github.rest.repos.getContent({
60+
owner: context.repo.owner,
61+
repo: context.repo.repo,
62+
path: 'etc/PackageTemplate/package.json',
63+
ref: '${{ env.OLD_BRANCH_NAME }}'
64+
});
65+
66+
return Buffer.from(response.data.content, response.data.encoding).toString('utf-8');
67+
result-encoding: string
68+
69+
- name: Extract Value of New Package.json
70+
run: |
71+
echo "new_package_value=${{ fromJson(steps.get_new_package_json.outputs.result).version }}" >> $Env:GITHUB_ENV
72+
shell:
73+
pwsh
74+
75+
- name: Extract Value of Old Package.json
76+
run: |
77+
echo "old_package_value=${{ fromJson(steps.get_old_package_json.outputs.result).version }}" >> $Env:GITHUB_ENV
78+
shell:
79+
pwsh
80+
81+
- name: Compare package.json values
82+
if: ${{ Env.old_package_value == Env.new_package_value }}
83+
run: |
84+
echo "::error file=toplevelfile.json::The package.json version was not changed between commits. Failing job."
85+
exit 1

.github/workflows/unity-version-badge.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Read Unity Version
1717
id: read_unity_version
@@ -21,15 +21,29 @@ jobs:
2121
2222
- name: Update README with Badge
2323
run: |
24-
badge_url="https://img.shields.io/badge/Unity-$UNITY_VERSION-brightgreen"
24+
badge_url="https://img.shields.io/badge/Unity-$UNITY_VERSION-blue"
2525
sed -i 's|!\[Unity\](.*)|![Unity]('"$badge_url"')|' README.md
26-
sed -i 's|!\[Unity\](.*)|![Unity]('"$badge_url"')|' etc/PackageTemplate/README.md
26+
sed -i 's|!\[Unity\](.*)|![Unity]('"$badge_url"')|' com.playeveryware.eos/README.md
27+
28+
- name: Check for changes
29+
id: check_changes
30+
run: |
31+
if [ -n "$(git status --porcelain)" ]; then
32+
echo "changes=true" >> $GITHUB_ENV
33+
else
34+
echo "changes=false" >> $GITHUB_ENV
35+
fi
2736
2837
- name: Commit changes
38+
if: env.changes == 'true'
2939
run: |
3040
git config --global user.name 'github-actions'
3141
git config --global user.email '[email protected]'
3242
git add README.md
33-
git add etc/PackageTemplate/README.md
43+
git add com.playeveryware.eos/README.md
3444
git commit -m "Update Unity version badge to $UNITY_VERSION"
3545
git push
46+
47+
- name: No changes to commit
48+
if: env.changes == 'false'
49+
run: echo "No changes to commit"

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ Sessionx.vim
118118

119119
# Temporary
120120
.netrwhist
121-
*~
122121
# Auto-generated tag files
123122
tags
124123
# Persistent undo
@@ -156,4 +155,5 @@ EOSPluginEditorConfiguration/
156155
[Aa]ssets/TextMesh*Pro/
157156
Assets/Plugins/Source/Editor/obj/
158157
*_BackUpThisFolder_ButDontShipItWithYourGame*
159-
*_BurstDebugInformation_DoNotShip*
158+
*_BurstDebugInformation_DoNotShip*
159+
Assets/InitTestScene*

Assets/Plugins/Android/Core/AndroidPlatformSpecifics.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ private static void ConfigureAndroidActivity()
8787
// This does some work to configure the Android side of things before doing the
8888
// 'normal' EOS init things.
8989
// TODO: Configure the internal and external directory
90-
public override void ConfigureSystemInitOptions(ref EOSInitializeOptions initializeOptionsRef, EOSConfig configData)
90+
public override void ConfigureSystemInitOptions(ref EOSInitializeOptions initializeOptionsRef)
9191
{
9292
// Do the standard overriding stuff
93-
base.ConfigureSystemInitOptions(ref initializeOptionsRef, configData);
93+
base.ConfigureSystemInitOptions(ref initializeOptionsRef);
9494

9595
// check again for if it's null after coming out of the base ConfigureSystemInitOptions method
9696
// (it shouldn't, but check anyways to make compile-time checks happy)

Assets/Plugins/Source/Editor/ConfigEditors/AndroidBuildConfigEditor.cs renamed to Assets/Plugins/Dummyfile.cs

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* copies of the Software, and to permit persons to whom the Software is
99
* furnished to do so, subject to the following conditions:
1010
*
11-
* The above copyright notice and this permission notice shall be included in all
12-
* copies or substantial portions of the Software.
11+
* The above copyright notice and this permission notice shall be included in
12+
* all copies or substantial portions of the Software.
1313
*
1414
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
@@ -19,20 +19,13 @@
1919
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020
* SOFTWARE.
2121
*/
22-
namespace PlayEveryWare.EpicOnlineServices.Editor
22+
23+
// TODO: This class only serves to remove a warning.
24+
// It may be removed if when more files are added to the com.playeveryware.eos assembly.
25+
namespace PlayEveryWare.EpicOnlineServices
2326
{
24-
using Config;
25-
using Utility;
2627

27-
public class AndroidBuildConfigEditor : ConfigEditor<AndroidBuildConfig>
28+
public class EOSDummyClass
2829
{
29-
public AndroidBuildConfigEditor() : base("Android Build Settings")
30-
{
31-
}
32-
33-
public override void RenderContents()
34-
{
35-
GUIEditorUtility.AssigningBoolField("Link EOS Library Dynamically", ref config.DynamicallyLinkEOSLibrary);
36-
}
3730
}
38-
}
31+
}

Assets/Plugins/Source/Editor/ConfigEditors/AndroidBuildConfigEditor.cs.meta renamed to Assets/Plugins/Dummyfile.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:e4b65481b34c389782c976d57e34006a0683637a2aabba5df05a35bed54efd5f
3-
size 28350088
2+
oid sha256:aa2712cc2ae3e8a997803b8a8e31f48c3af027d9a071e0f17cde49e6a7c8df41
3+
size 28348072

0 commit comments

Comments
 (0)