Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/scripts/validate-unity-distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
)
CORE_PACKAGE = PACKAGE_NAMES[0]
MINIMUM_UNITY_VERSION = "2022.3"
MINIMUM_UNITY_RELEASE = "0f1"

EXCLUDED_PREFIXES = (
"Assets/OneSignal/Attribution",
Expand Down Expand Up @@ -85,6 +86,11 @@ def validate_packages() -> None:
fail(f"{name} version does not match {CORE_PACKAGE}")
if package.get("unity") != MINIMUM_UNITY_VERSION:
fail(f"{name} does not support Unity {MINIMUM_UNITY_VERSION}")
if package.get("unityRelease") != MINIMUM_UNITY_RELEASE:
fail(
f"{name} does not support Unity "
f"{MINIMUM_UNITY_VERSION}.{MINIMUM_UNITY_RELEASE}"
)
if package.get("license") != "SEE LICENSE IN LICENSE.md":
fail(f"{name} does not reference its package license")
if not package.get("documentationUrl", "").startswith("https://"):
Expand Down
1 change: 1 addition & 0 deletions com.onesignal.unitysdk.android/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"displayName": "OneSignal SDK Android",
"version": "6.0.0",
"unity": "2022.3",
"unityRelease": "0f1",
"description": "Android platform implementation for the OneSignal Unity SDK, including native dependency resolution and notification resources.",
"dependencies": {
"com.onesignal.unitysdk.core": "6.0.0"
Expand Down
1 change: 1 addition & 0 deletions com.onesignal.unitysdk.core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"displayName": "OneSignal SDK Core",
"version": "6.0.0",
"unity": "2022.3",
"unityRelease": "0f1",
"description": "Core APIs, editor setup, and shared runtime for the OneSignal Unity SDK. Install the Android and/or iOS package for native platform support.",
"dependencies": {
"com.unity.modules.jsonserialize": "1.0.0"
Expand Down
1 change: 1 addition & 0 deletions com.onesignal.unitysdk.ios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"displayName": "OneSignal SDK iOS",
"version": "6.0.0",
"unity": "2022.3",
"unityRelease": "0f1",
"description": "iOS platform implementation for the OneSignal Unity SDK, including the native bridge, CocoaPods dependencies, and Xcode post-processing.",
"dependencies": {
"com.onesignal.unitysdk.core": "6.0.0"
Expand Down
1 change: 1 addition & 0 deletions examples/demo/Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"com.onesignal.unitysdk.core": "file:../../../com.onesignal.unitysdk.core",
"com.onesignal.unitysdk.ios": "file:../../../com.onesignal.unitysdk.ios",
"com.unity.nuget.newtonsoft-json": "3.2.2",
"com.unity.upm-publishing-tools": "0.3.1",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.uielements": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0"
Expand Down
17 changes: 17 additions & 0 deletions examples/demo/Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.sharp-zip-lib": {
"version": "1.4.1",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.upm-publishing-tools": {
"version": "0.3.1",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.sharp-zip-lib": "1.4.1",
"com.unity.nuget.newtonsoft-json": "3.2.1"
},
"url": "https://packages.unity.com"
},
"com.unity.modules.androidjni": {
"version": "1.0.0",
"depth": 0,
Expand Down
20 changes: 9 additions & 11 deletions examples/demo/ProjectSettings/PackageManagerSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ MonoBehaviour:
m_SeeAllPackageVersions: 0
m_DismissPreviewPackagesInUse: 0
oneTimeWarningShown: 1
oneTimePackageErrorsPopUpShown: 0
m_Registries:
- m_Id: main
m_Name:
Expand All @@ -26,19 +27,16 @@ MonoBehaviour:
m_IsDefault: 1
m_Capabilities: 7
m_ConfigSource: 0
- m_Id: scoped:project:npmjs
m_Name: npmjs
m_Url: https://registry.npmjs.org
m_Scopes:
- com.onesignal
m_IsDefault: 0
m_Capabilities: 0
m_ConfigSource: 4
m_UserSelectedRegistryName: npmjs
m_Compliance:
m_Status: 0
m_Violations: []
m_UserSelectedRegistryName:
m_UserAddingNewScopedRegistry: 0
m_RegistryInfoDraft:
m_Modified: 0
m_ErrorMessage:
m_UserModificationsInstanceId: -840
m_OriginalInstanceId: -844
m_UserModificationsEntityId:
m_Data: -922
m_OriginalEntityId:
m_Data: -926
m_LoadAssets: 0