Skip to content

Commit 494d0a4

Browse files
authored
Merge pull request #702 from OneSignal/user-model/main-rebased
Rebase user-model/main into main
2 parents c5d3fad + 18e1b6d commit 494d0a4

File tree

355 files changed

+33699
-8201
lines changed

Some content is hidden

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

355 files changed

+33699
-8201
lines changed

.github/workflows/set_response_time.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v3
1818
with:
1919
token: ${{ secrets.GITHUB_TOKEN }}
20-
- run: npm install @octokit/[email protected]
20+
- run: npm install @octokit
2121
- uses: actions/github-script@v6
2222
id: set-time
2323
with:
File renamed without changes.

MIGRATION_GUIDE_v3_to_v5.md

+317
Large diffs are not rendered by default.

OneSignalExample/Assets/ExternalDependencyManager/Editor/1.2.169.meta renamed to OneSignalExample/Assets/ExternalDependencyManager/Editor/1.2.177.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OneSignalExample/Assets/ExternalDependencyManager/Editor/1.2.169/Google.IOSResolver.dll.meta renamed to OneSignalExample/Assets/ExternalDependencyManager/Editor/1.2.177/Google.IOSResolver.dll.meta

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OneSignalExample/Assets/ExternalDependencyManager/Editor/1.2.169/Google.JarResolver.dll.meta renamed to OneSignalExample/Assets/ExternalDependencyManager/Editor/1.2.177/Google.JarResolver.dll.meta

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OneSignalExample/Assets/ExternalDependencyManager/Editor/1.2.169/Google.VersionHandlerImpl.dll.meta renamed to OneSignalExample/Assets/ExternalDependencyManager/Editor/1.2.177/Google.VersionHandlerImpl.dll.meta

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OneSignalExample/Assets/ExternalDependencyManager/Editor/CHANGELOG.md

+54-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,57 @@
1-
# Version 1.2.169 - Jan 20, 2021
1+
# Version 1.2.177 - Aug 14, 2023
2+
* iOS Resolver - Added `/opt/homebrew/bin` to Cocoapod executable search path.
3+
Fixes #627
4+
5+
# Version 1.2.176 - Apr 27, 2023
6+
* Android Resolver - Added two Android Resolver settings to determine whether
7+
EDM4U injects custom local Maven repo path as a relative path or full path.
8+
Fixes #537
9+
* Android Resolver - Inject Maven Repo to `settingTemplate.gradle` from
10+
Unity 2022.2+
11+
Fixes #594
12+
* Android Resolver - Jetifier option is enabled by default now.
13+
* Android Resolver - `Explode Aar` option applies to all cases, whether the
14+
project will be exported or not.
15+
Fixes #584
16+
Fixes #287
17+
18+
# Version 1.2.175 - Nov 16, 2022
19+
* General - Added tvOS podfile support to the iOS resolver.
20+
21+
# Version 1.2.174 - Oct 06, 2022
22+
* General - Added tvOS support to the iOS resolver.
23+
* General - Fixed #484 - Changed `EditorMeasurement` to use secure connection.
24+
* Android Resolver - Fixed Android Resolver unable to resolve
25+
`mainTemplate.gradle` in Unity `2022.2+` or `2023.1+`.
26+
27+
# Version 1.2.173 - Sep 28, 2022
28+
* General - Added tvOS library support to the export unity package scripts.
29+
30+
# Version 1.2.172 - Jun 23, 2022
31+
* iOS Resolver - Stop forcing `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` to `YES`,
32+
which seems to cause problem for some when submitting apps. See #526 for more
33+
information.
34+
35+
# Version 1.2.171 - May 11, 2022
36+
* iOS Resolver - Change `Enable Swift Framework Support Workaround` setting to
37+
be `ON` by default since more pods are using Swift Framework now.
38+
39+
# Version 1.2.170 - Apr 4, 2022
40+
* Android Resolver - Fixes #498 - Fix the path separator of the Maven repo
41+
injected to `mainTemplate.gradle`.
42+
* iOS Resolver - Fixes #470 - Switch default Cocoapods master repo from Github
43+
to CDN.
44+
* iOS Resolver - `Link Framework Statically` setting is now default to `true`.
45+
That is, `use_frameworks! :linkage => static` will be added to `Podfile` by
46+
default instead of `use_frameworks!`. This can be changed in iOS Resolver
47+
settings. This fixes odd behaviors when pods include static libraries, ex.
48+
Firebase Analytics.
49+
* iOS Resolver - Added a workaround when app crashes on launch due to
50+
`Library not loaded: @rpath/libswiftCore.dylib` when some pods includes Swift
51+
framework. This is turned `OFF` by default and can be changed in iOS Resolver
52+
settings.
53+
54+
# Version 1.2.169 - Jan 20, 2022
255
* General - Fixes #425 - Change to save `GvhProjectSettings.xml` without
356
Unicode byte order mark (BoM).
457
* Android Resolver - Remove reference to `jcenter()`

OneSignalExample/Assets/ExternalDependencyManager/Editor/CHANGELOG.md.meta

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OneSignalExample/Assets/ExternalDependencyManager/Editor/Google.VersionHandler.dll.meta

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OneSignalExample/Assets/ExternalDependencyManager/Editor/LICENSE.meta

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OneSignalExample/Assets/ExternalDependencyManager/Editor/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This causes the following problems:
2626
Unity project can be complex and a burden on a Unity plugin maintainer.
2727
* The process of resolving conflicting dependencies on platform specific
2828
libraries is pushed to the developer attempting to use a Unity plugin.
29-
The developer trying to use you plugin is very likely to give up when
29+
The developer trying to use your plugin is very likely to give up when
3030
faced with Android or iOS specific build errors.
3131
* The process of resolving conflicting Unity plugins (due to shared Unity
3232
plugin components) is pushed to the developer attempting to use your Unity
@@ -36,6 +36,9 @@ This causes the following problems:
3636

3737
EDM provides solutions for each of these problems.
3838

39+
If, after reading this, you need to debug usage of EDM in a Unity project,
40+
consult the debugging [step-by-step guide](troubleshooting-faq.md).
41+
3942
## Android Dependency Management
4043

4144
The *Android Resolver* component of this plugin will download and integrate

OneSignalExample/Assets/ExternalDependencyManager/Editor/README.md.meta

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OneSignalExample/Assets/ExternalDependencyManager/Editor/external-dependency-manager_version-1.2.169_manifest.txt

-13
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Assets/ExternalDependencyManager/Editor/1.2.177/Google.IOSResolver.dll
2+
Assets/ExternalDependencyManager/Editor/1.2.177/Google.IOSResolver.dll.mdb
3+
Assets/ExternalDependencyManager/Editor/1.2.177/Google.JarResolver.dll
4+
Assets/ExternalDependencyManager/Editor/1.2.177/Google.JarResolver.dll.mdb
5+
Assets/ExternalDependencyManager/Editor/1.2.177/Google.PackageManagerResolver.dll
6+
Assets/ExternalDependencyManager/Editor/1.2.177/Google.PackageManagerResolver.dll.mdb
7+
Assets/ExternalDependencyManager/Editor/1.2.177/Google.VersionHandlerImpl.dll
8+
Assets/ExternalDependencyManager/Editor/1.2.177/Google.VersionHandlerImpl.dll.mdb
9+
Assets/ExternalDependencyManager/Editor/CHANGELOG.md
10+
Assets/ExternalDependencyManager/Editor/Google.VersionHandler.dll
11+
Assets/ExternalDependencyManager/Editor/Google.VersionHandler.dll.mdb
12+
Assets/ExternalDependencyManager/Editor/LICENSE
13+
Assets/ExternalDependencyManager/Editor/README.md
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OneSignalExample/Assets/OneSignal/Attribution/OneSignal.UnityPackage.Attribution.asmdef

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"versionDefines": [
1717
{
1818
"name": "com.onesignal.unity.core",
19-
"expression": "3.0.0-beta.1",
19+
"expression": "5.1.0",
2020
"define": "ONE_SIGNAL_INSTALLED"
2121
}
2222
],

OneSignalExample/Assets/OneSignal/Attribution/OneSignalVSAttribution.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Modified MIT License
33
*
4-
* Copyright 2022 OneSignal
4+
* Copyright 2023 OneSignal
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -33,10 +33,10 @@ namespace OneSignalSDK
3333
internal static class AttachToInit {
3434
#if ONE_SIGNAL_INSTALLED
3535
[RuntimeInitializeOnLoadMethod] public static void Init() {
36-
if (string.IsNullOrEmpty(OneSignal.AppId))
37-
OneSignal.OnInitialize += appId => VSAttribution.SendAttributionEvent("Login", "OneSignal", appId);
36+
if (string.IsNullOrEmpty(OneSignalPlatform.AppId))
37+
OneSignalPlatform.OnInitialize += appId => VSAttribution.SendAttributionEvent("Login", "OneSignal", appId);
3838
else
39-
VSAttribution.SendAttributionEvent("Login", "OneSignal", OneSignal.AppId);
39+
VSAttribution.SendAttributionEvent("Login", "OneSignal", OneSignalPlatform.AppId);
4040
}
4141
#endif
4242
}

OneSignalExample/Assets/OneSignal/CHANGELOG.md

+102-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,99 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
## [5.1.0]
9+
### Fixed
10+
- iOS crash when calling OneSignal.User.PushSubscription.Id and OneSignal.User.PushSubscription.Token when they are null.
11+
### Changed
12+
- Add public getters for OneSignalId and ExternalId in the User namespace
13+
- Add public event handler OneSignal.User.Changed that fires when the OneSignalId or ExternalId changes
14+
- Updated included Android SDK to [5.1.5](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.5)
15+
16+
## [5.0.6]
17+
### Fixed
18+
- Duplicate symbol errors when building with other iOS plugins
19+
- Removed READ_PHONE_STATE permission in Android builds. Delete your OneSignalConfig.androidlib and run the
20+
"Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup** to apply the fix.
21+
- Fixed lower build-tools versions being needed for Android builds. Delete your OneSignalConfig.androidlib and run the
22+
"Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup** to apply the fix.
23+
### Changed
24+
- Updated included Android SDK to [5.1.2](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.2).
25+
- Android builds now require the Target API Level to be set to 33 or higher.
26+
- Updated included iOS SDK to [5.1.0](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.1.0)
27+
28+
## [5.0.5]
29+
### Changed
30+
- Add public get tags method
31+
- Updated included Android SDK to [5.0.5](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.5)
32+
- Updated included iOS SDK to [5.0.5](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.5)
33+
### Fixed
34+
- Included meta files in OneSignalConfig.androidlib to prevent asset from being ignored
35+
- Package download url in the "Sync example code bundle package" step from the OneSignal SDK Setup
36+
37+
## [5.0.4]
38+
### Changed
39+
- Updated included Android SDK to [5.0.3](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.3)
40+
41+
## [5.0.3]
42+
### Changed
43+
- `InstallEdm4uStep` now imports version [1.2.177](https://github.com/googlesamples/unity-jar-resolver/releases/tag/v1.2.177) of [EDM4U](https://github.com/googlesamples/unity-jar-resolver)
44+
- Updated included Android SDK to [5.0.2](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.2)
45+
- Updated included iOS SDK to [5.0.2](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.2)
46+
- `OneSignalConfig.plugin` has been changed to `OneSignalConfig.androidlib`. Run the "Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup** to migrate. Custom notification icons are now located in `Assets/Plugins/Android/OneSignalConfig.androidlib/src/main/res`
47+
### Fixed
48+
- Sending VSAttribution data from the editor
49+
- iOS notifications clicked event firing if the app was cold started from clicking a notification
50+
- ClassNotFoundException: com.onesignal.OneSignal for Android builds with minify enabled. You must run the "Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup**.
51+
- Disabled bitcode to avoid iOS build error
52+
53+
## [5.0.2]
54+
### Fixed
55+
- Stop foreground notifications from displaying after calling prevent default on iOS
56+
57+
## [5.0.1]
58+
### Fixed
59+
- Push subscription Id and Token malloc error on iOS
60+
61+
## [5.0.0]
62+
### Changed
63+
- Removed `SetLaunchURLsInApp`
64+
- Removed async from location request permission and updated method name to `RequestPermission`
65+
- Updated included iOS SDK to [5.0.1](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.1)
66+
- Updated included Android SDK to [5.0.0](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.0)
67+
- Updated default OneSignal Android notification icons to new logo
68+
### Fixed
69+
- NoSuchMethodError for outcome methods on Android
70+
- Completion check for the Copy Android plugin to Assets setup step
71+
72+
## [5.0.0-beta.3]
73+
### Changed
74+
- Updated `Notifications`, `InAppMessages`, and `User` models to have Pascal Case properties
75+
- Updated public API. Please see the updated [migration guide](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/5.0.0-beta.3/MIGRATION_GUIDE_v3_to_v5.md) for the most up to date signatures.
76+
- Updated included Android SDK to [5.0.0-beta4](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.0-beta4)
77+
- Updated included iOS SDK to [5.0.0-beta-04](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.0-beta-04)
78+
79+
## [5.0.0-beta.2]
80+
### Added
81+
- SDK type and version to api headers
82+
### Changed
83+
- Updated included Android SDK to [5.0.0-beta2](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.0-beta2)
84+
- Updated included iOS SDK to [5.0.0-beta-02](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.0-beta-02)
85+
86+
## [5.0.0-beta.1]
87+
### Added
88+
- [Migration guide](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/5.0.0-beta.1/MIGRATION_GUIDE_v3_to_v5.md
89+
) for updating from 3.x.x to 5.x.x
90+
### Changed
91+
- Overhauled public API of the SDK to a user-centered model. While this release is in beta please see our included [example MonoBehaviour](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/5.0.0-beta.1/OneSignalExample/Assets/OneSignal/Example/OneSignalExampleBehaviour.cs) for usage.
92+
- Updated included Android SDK to [5.0.0-beta1](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.0-beta1)
93+
- Updated included iOS SDK to [5.0.0-beta-01](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.0-beta-01)
94+
95+
If you run into any problems, please don’t hesitate to add to this [issue](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/585)!
96+
897
## [3.0.11]
998
### Fixed
1099
- Fixed rare Android ANRs on callbacks firing and also when backgrounding the app.
100+
11101
## [3.0.10]
12102
### Changed
13103
- Updated included Android SDK to [4.8.5](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.8.5)
@@ -196,9 +286,18 @@ If you run into any problems, please don’t hesitate to [open an issue](https:/
196286
- If you are updating from a previous version of the OneSignal Unity SDK please follow the Unity Asset Store instructions in
197287
the [README](https://github.com/OneSignal/OneSignal-Unity-SDK/README.md#unity-asset-store) to ensure a smooth transition.
198288

199-
[Unreleased]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.11...HEAD
200-
[3.0.11]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.10...3.0.11
201-
[3.0.10]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.9...3.0.10
289+
[Unreleased]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.0...HEAD
290+
[5.1.0]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.6...5.1.0
291+
[5.0.6]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.5...5.0.6
292+
[5.0.5]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.4...5.0.5
293+
[5.0.4]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.3...5.0.4
294+
[5.0.3]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.2...5.0.3
295+
[5.0.2]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.1...5.0.2
296+
[5.0.1]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.0...5.0.1
297+
[5.0.0]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.0-beta.3...5.0.0
298+
[5.0.0-beta.3]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.0-beta.2...5.0.0-beta.3
299+
[5.0.0-beta.2]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.0-beta.1...5.0.0-beta.2
300+
[5.0.0-beta.1]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.9...5.0.0-beta.1
202301
[3.0.9]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.8...3.0.9
203302
[3.0.8]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.7...3.0.8
204303
[3.0.7]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.6...3.0.7

OneSignalExample/Assets/OneSignal/Editor/AssemblyInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Modified MIT License
33
*
4-
* Copyright 2022 OneSignal
4+
* Copyright 2023 OneSignal
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)