Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚫 Test merging two copies of branches #1330

Merged
merged 688 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
688 commits
Select commit Hold shift + click to select a range
2785e85
[nits] name release `5.0.0-alpha-01`
nan-li Jan 10, 2023
02e84e4
Merge pull request #1203 from OneSignal/user_model/fetch_user_replace…
nan-li Jan 10, 2023
2b657b3
bumping version numbers to 5.0.0-alpha-01
emawby Jan 10, 2023
9217f90
Merge pull request #1202 from OneSignal/user_model/5.0.0-alpha1_relea…
nan-li Jan 10, 2023
94da3c0
Binaries for Release 5.0.0-alpha-01
emawby Jan 10, 2023
3998187
Updating zips and Package.swift for 5.0.0-alpha-01
emawby Jan 10, 2023
7fceb9f
update SDK install instructions to account for SPM changes
nan-li Jan 10, 2023
9cae39a
Merge pull request #1206 from OneSignal/release/5.0.0-alpha-01
emawby Jan 10, 2023
9739c08
Fix OneSignalOSCore dependency in OneSignal.podspec
emawby Jan 10, 2023
c86e3eb
Pulling live activities into 5.0.0
fhboswell Dec 15, 2022
cee9942
Finishing touches, still need to add property
fhboswell Dec 16, 2022
7e51952
App_id in url check
fhboswell Jan 9, 2023
a8585a1
add push sub property
fhboswell Jan 10, 2023
2150722
merging in 5.0.0 branch
fhboswell Jan 10, 2023
b1e87e5
Adding Live Activity to Dev app for testing
fhboswell Jan 10, 2023
a69ea61
cleanup
fhboswell Jan 11, 2023
f58730e
fix bug in firing push subscription observer
nan-li Jan 12, 2023
b58339b
need to fetch user after successfully identifying user
nan-li Jan 12, 2023
cba7c69
merge in 5.0.0
fhboswell Jan 11, 2023
6ebeb05
Merge pull request #1209 from OneSignal/user_model/alpha-01_update_mi…
nan-li Jan 10, 2023
5f287fe
Merge pull request #1211 from OneSignal/user_model/fix_push_observer
nan-li Jan 12, 2023
92a10c7
make onesignalliveactivitycontroller
fhboswell Jan 12, 2023
97d3619
Change target membership to OneSignalFramework
fhboswell Jan 12, 2023
301fe72
add initialize to set subscriptionId
fhboswell Jan 12, 2023
1b9cb2f
PR feedback from Nan, add logging and add controller as observer
fhboswell Jan 13, 2023
9300dab
Spacing Nit
fhboswell Jan 13, 2023
1db5578
Adding legal
fhboswell Jan 13, 2023
ee98375
Merge pull request #1207 from OneSignal/fix/Onesignal_podspec
emawby Jan 12, 2023
dc22ca7
bump version numbers
nan-li Jan 13, 2023
b53fe7f
update version to `alpha-02`
nan-li Jan 13, 2023
aa11da1
update year on legal
fhboswell Jan 13, 2023
9e9edef
Merge pull request #1210 from OneSignal/user_model/fix_identify_user_…
nan-li Jan 12, 2023
9d6f142
updating binaries for release `5.0.0-alpha-02`
nan-li Jan 13, 2023
0f9c993
add Live Activity API to alpha-02 migration guide
nan-li Jan 13, 2023
5f381b9
Merge pull request #1189 from OneSignal/live-activity-support-5.0.0
fhboswell Jan 13, 2023
079f864
updating Package.swift for release
nan-li Jan 13, 2023
44a9454
Merge pull request #1212 from OneSignal/5.0.0_alpha_02_migration_guide
nan-li Jan 13, 2023
b86ca97
Add properties to Subscription Model
nan-li Jan 23, 2023
2c94d9f
Move language files to user module
nan-li Jan 24, 2023
8029598
fix permission observer that was accessing a `nil` observer
nan-li Jan 24, 2023
8855dab
Remove language files, the logic is not needed anymore
nan-li Jan 30, 2023
368bc0e
fix `canRequestPermission` to be the `answeredPrompt` property
nan-li Jan 24, 2023
02dd4da
Properties model will handle language
nan-li Jan 30, 2023
efe4d26
expose `setLaunchOptions` method for use by wrappers
nan-li Jan 19, 2023
ed38655
Merge pull request #1213 from OneSignal/rel/5.0.0_alpha_02
nan-li Jan 13, 2023
6a445b5
[nit] use `jsonRepresentation` for consistency
nan-li Jan 19, 2023
f49acf4
`optedIn` and `enabled` will consider provisional as true
nan-li Jan 24, 2023
48b2267
Retry requests with a backoff strategy & keep max retries
nan-li Jan 31, 2023
3103a47
Client will pass along status code even when successful
nan-li Jan 31, 2023
397ffef
Updates to `OSUserExecutor`
nan-li Jan 31, 2023
c9e8476
Update user related requests
nan-li Jan 31, 2023
fbf8cf2
remove retain_previous_user flag
nan-li Jan 31, 2023
b0cf604
small bug fixes
nan-li Feb 3, 2023
e89d797
update email and sms subscriptions API
nan-li Feb 3, 2023
ca78b10
[nits] todos, comments
nan-li Feb 2, 2023
2189fb7
fix sending location
nan-li Feb 3, 2023
798b2c5
update permission observer callback's object
nan-li Feb 3, 2023
aa4923b
re-arrange User Manager startup code order
nan-li Feb 2, 2023
367842e
update `Notifications.clearAll()` method to really clear all
nan-li Feb 3, 2023
d52aad4
rename push subscription model's `accepted` property to `reachable`
nan-li Feb 3, 2023
9e61233
Update the Property Executor
nan-li Feb 2, 2023
ee2cc93
saving push token locally doesn't need privacy consent
nan-li Feb 3, 2023
21f6046
dev app remove code that was for testing only
nan-li Feb 3, 2023
a9bbfaf
Update Identity Executor
nan-li Feb 2, 2023
f126853
logging out of anonymous user is a no-op
nan-li Feb 3, 2023
eeeebb1
add push subscription observer returns void
nan-li Feb 3, 2023
6c69521
Update Subscription Executor
nan-li Feb 2, 2023
f4287cb
Update MIGRATION_GUIDE.md
nan-li Feb 3, 2023
d73c6b2
rename setVisualLevel to setAlertLevel
nan-li Feb 3, 2023
320fc67
Update Dev App
nan-li Feb 2, 2023
2ca5704
Allow adding push subscription observer before privacy consent
nan-li Feb 3, 2023
be02900
Update MIGRATION_GUIDE.md
nan-li Feb 3, 2023
d78977c
[nits] from swiflint
nan-li Feb 2, 2023
81a0a2a
Merge pull request #1224 from OneSignal/5.0.0/beta_01_fixes
nan-li Feb 3, 2023
628af83
[dev app] add buttons for requiring privacy consent
nan-li Feb 3, 2023
1acab5a
update `setLanguage` method
nan-li Jan 30, 2023
60cc863
Merge pull request #1223 from OneSignal/5.0.0/beta_01_update_api
nan-li Feb 3, 2023
ef39ff3
Use property model's language in IAMs
nan-li Jan 30, 2023
9f150e6
Merge pull request #1222 from OneSignal/5.0.0/error_handling_client_e…
nan-li Feb 3, 2023
301f4b6
Merge pull request #1214 from OneSignal/5.0.0/expose_set_launch_options
nan-li Jan 23, 2023
9ac955c
Merge pull request #1215 from OneSignal/5.0.0/json_representation_method
nan-li Jan 23, 2023
5c6f640
bump version numbers
nan-li Feb 3, 2023
b9428a7
Merge pull request #1216 from OneSignal/5.0.0/fill_out_subscription_o…
nan-li Jan 26, 2023
f1ade04
updating binaries for release `5.0.0-beta-01`
nan-li Feb 3, 2023
2fb2ea9
Merge pull request #1221 from OneSignal/5.0.0/move_language_to_user
nan-li Feb 3, 2023
7fbc4a1
add OneSignalWrapper for wrapper SDKs to add info
nan-li Feb 14, 2023
7c4a609
updating Package.swift for release
nan-li Feb 3, 2023
6d96858
Update migration guide for `5.0.0-beta-02`
nan-li Feb 16, 2023
36a4912
Merge pull request #1225 from OneSignal/rel/5.0.0_beta_01
nan-li Feb 3, 2023
2643624
fixes to detecting permission changes
nan-li Feb 17, 2023
bad789e
Merge pull request #1228 from OneSignal/5.0.0/onesignal_wrapper
nan-li Feb 17, 2023
8f67a89
Merge pull request #1229 from OneSignal/5.0.0/detecting_native_permis…
nan-li Feb 17, 2023
11819d6
bumping version numbers to `5.0.0-beta-02`
nan-li Feb 17, 2023
bedf52d
Binaries for Release `5.0.0-beta-02`
nan-li Feb 17, 2023
b547065
Updating zips and Package.swift for 5.0.0-beta-02
nan-li Feb 17, 2023
117609c
update migration guide to clarify migration limitation
nan-li Feb 23, 2023
5aef8c2
Merge pull request #1230 from OneSignal/rel/5.0.0_beta_02
nan-li Feb 17, 2023
4b1030c
fix firing push sub observer when opting out
nan-li Mar 26, 2023
38736fd
add back in preview IAMs
nan-li Apr 10, 2023
b271859
Merge pull request #1231 from OneSignal/5.0.0/update_beta_02_migratio…
nan-li Feb 23, 2023
50bea76
fix unrelated bug where we shouldn't remove a request
nan-li Apr 3, 2023
ad3a2c7
API for adding triggers has string values
nan-li Apr 24, 2023
5ca205b
remove legacy player info if app_id changes
nan-li Apr 3, 2023
fd43384
IAM Click Listener - API update
nan-li Apr 29, 2023
da388d2
Make Live Activities namespace
nan-li Apr 21, 2023
7eebf62
add legacy player ID to Common Defines
nan-li Apr 3, 2023
7a42250
[nit] remove some old non-existent methods
nan-li Apr 29, 2023
cee029a
Update privacy consent API names and no public getters
nan-li Apr 23, 2023
f41d396
Creating a user from a legacy player
nan-li Apr 3, 2023
af01b6c
Notification Click Listener - API update
nan-li Apr 29, 2023
20971b7
make a fix to IAM click listener
nan-li Apr 30, 2023
9d92f2b
Add OneSignal.Notifications.permissionNative
nan-li Apr 24, 2023
2133a14
Add the request to fetch Identity by subscription ID
nan-li Apr 3, 2023
46b11db
Merge pull request #1262 from OneSignal/5.0.0/notification_click_list…
emawby May 1, 2023
e7b5aa6
Push Subscription Observer - API update
nan-li Apr 28, 2023
b767b3a
[nit] OneSignalLog remove extraneous interface methods
nan-li Apr 24, 2023
2487bb6
[nits] refactor code for reuse
nan-li Apr 3, 2023
9b2eb5b
Merge pull request #1247 from OneSignal/5.0.0/add_back_preview_iam
nan-li Apr 17, 2023
f7f84b3
Notification Foreground Listener - API update
nan-li Apr 27, 2023
c2b61e9
Merge pull request #1261 from OneSignal/5.0.0/iam_click_listener_api
emawby May 1, 2023
80b4400
IAM Lifecycle Listener - API update
nan-li Apr 27, 2023
a722c1e
Notification Permission Observer - API update
nan-li Apr 27, 2023
9552d5c
Update InAppMessages.paused to not be capitalized
nan-li Apr 24, 2023
5b91f35
Merge pull request #1243 from OneSignal/5.0.0/migrating_v3_sdk_users
nan-li Apr 17, 2023
8b51153
[nit] display event does not need preventDefault state
nan-li Apr 28, 2023
e6859a1
Merge pull request #1260 from OneSignal/5.0.0/push_subscription_obser…
emawby May 1, 2023
7185348
Merge pull request #1258 from OneSignal/5.0.0/notification_foreground…
emawby May 1, 2023
2685944
Merge pull request #1257 from OneSignal/5.0.0/iam_lifecycle_listener_api
emawby May 1, 2023
3b73f0e
Merge pull request #1256 from OneSignal/5.0.0/notification_permission…
emawby May 1, 2023
21b3bb1
bumping version numbers for 5.0.0 beta 3
emawby May 1, 2023
d592875
Merge pull request #1255 from OneSignal/5.0.0/api_updates_part_1
emawby May 1, 2023
87a56d9
Binaries for 5.0.0 Beta 3
emawby May 1, 2023
45451db
Zips and updated Package.swift for 5.0.0 beta 3
emawby May 1, 2023
f811ae3
5.0.0-beta-03 migration guide update
nan-li May 1, 2023
dc6ef7d
Merge pull request #1263 from OneSignal/release/5.0.0-beta-03
emawby May 1, 2023
1c6e0ef
Updating jsonRepresentation for OSPushSubscriptionChangedState
emawby May 8, 2023
d377698
Merge pull request #1264 from OneSignal/5.0.0/beta_03_migration_guide
emawby May 2, 2023
2a29142
Merge pull request #1265 from OneSignal/user_model/fix_json_represent…
emawby May 8, 2023
be5a2fc
Bump version numbers for "5.0.0-beta-04"
nan-li May 9, 2023
3cbc582
Binaries for 5.0.0-beta-04
nan-li May 9, 2023
4333432
add more properties to Update Subscription request
nan-li May 8, 2023
36abbd8
Zips and updated Package.swift for 5.0.0-beta-04
nan-li May 9, 2023
e8112ed
Merge pull request #1266 from OneSignal/5.0.0/more_push_sub_properties
nan-li May 8, 2023
9e9f0a6
update migration guide to reflect beta-04
nan-li May 9, 2023
d552d89
Merge pull request #1267 from OneSignal/release/5.0.0-beta-04
nan-li May 9, 2023
85d047f
Merge pull request #1268 from OneSignal/5.0.0/beta_04_migration_guide…
nan-li May 9, 2023
99fd96d
Create blank OneSignalLocation framework
emawby Jun 20, 2023
7efa87e
Move Location files to OneSignalLocation framework
emawby Jun 20, 2023
2fdbb93
Updating OneSignalLocation imports
emawby Jun 20, 2023
2d9db17
Use OneSignalLocation framework in dev app
emawby Jun 20, 2023
89af666
Create blank OneSignalInAppMessages framework
emawby Jun 20, 2023
4a089d3
Move In App Messages files to OneSignalInAppMessages framework
emawby Jun 20, 2023
6af9535
Updating OneSignalInAppMessages imports
emawby Jun 20, 2023
aaf27a9
Moving code out of OneSignalFramework for IAM module dependencies
emawby Jun 20, 2023
2c3db21
Updating OneSignalFramework to use OneSignalInAppMessages framework
emawby Jun 20, 2023
0dba6cb
Build OneSignalFramework without dependency on location and IAM
emawby Jun 21, 2023
4ebdb9e
Adding a helper method for NSInvocation to OneSignalCoreHelper and us…
emawby Jun 21, 2023
26895af
Forward onApplicationDidBecomeActive to MessagingController through O…
emawby Jun 21, 2023
15248eb
Migrate IAMs in the IAM framework
emawby Jun 21, 2023
ea70afc
Add OneSignalInAppMessages to the dev app
emawby Jun 21, 2023
f350e00
Rename OneSignalLocation classes -> OneSignalLocationManager
emawby Jun 26, 2023
d3546ed
Updated podspec and build script for new modules
emawby Jun 30, 2023
6357373
test modularized binaries
emawby Jun 30, 2023
2062d8c
mark OSCore as extension safe
emawby Jun 30, 2023
3faa0e8
Fixing IAM location prompting
emawby Jun 30, 2023
fabff09
new test binaries after fixes
emawby Jun 30, 2023
98b7333
Adding Location and InAppMessages SwiftPM products
emawby Jun 30, 2023
416c798
add location and IAMs to update_swift_package.sh
emawby Jun 30, 2023
2d41ad0
add `jsonRepresentation` to IAM lifecycle events
nan-li Jul 18, 2023
cd39dab
Removing launchURLsInApp and webkit code from Notifications
emawby Jul 10, 2023
828a141
Fixing copyright
emawby Jul 13, 2023
3ad9899
Support multiple IAM lifecycle listeners
nan-li Jul 18, 2023
d695d51
Merge pull request #1275 from OneSignal/user_model/remove_launch_urls…
emawby Jul 13, 2023
57a7b17
Support multiple Notification Lifecycle Listeners
nan-li Jul 18, 2023
e1100e0
Merge pull request #1273 from OneSignal/user_model/modularize_location
emawby Jul 17, 2023
2e74857
Bump version numbers for "5.0.0-beta-05"
nan-li Jul 20, 2023
f7d5798
Make `OSResponseStatusType` enum to categorize status codes
nan-li Jul 19, 2023
1a756bb
Add OneSignalExample dev app scheme
nan-li Jul 19, 2023
f387393
Binaries for 5.0.0-beta-05
nan-li Jul 20, 2023
a8006cc
logout when the user no longer exists on server
nan-li Jul 19, 2023
3d0364c
Merge pull request #1278 from OneSignal/5.0.0/support_multiple_listeners
nan-li Jul 19, 2023
1502fd4
Zips and updated Package.swift for 5.0.0-beta-05
nan-li Jul 20, 2023
f7cfe6b
Merge pull request #1279 from OneSignal/5.0.0/server_error_responses
nan-li Jul 19, 2023
6826f46
Merge pull request #1280 from OneSignal/rel/5.0.0-beta-05
nan-li Jul 20, 2023
c1b9c3b
Bump version numbers for "5.0.0-beta-06"
nan-li Jul 24, 2023
059b837
Binaries for 5.0.0-beta-06
nan-li Jul 24, 2023
d7ff2e1
Fixing double vendoring of OneSignalFramework
emawby Jul 24, 2023
7bbd5e0
Zips and updated Package.swift for 5.0.0-beta-06
nan-li Jul 24, 2023
2429766
Merge pull request #1281 from OneSignal/fixing_distribution_of_xcfram…
emawby Jul 24, 2023
dbcd753
Do not swizzle a subclass of an already swizzled class
emawby Jul 26, 2023
9daa536
Merge pull request #1282 from OneSignal/rel/5.0.0_beta_06
nan-li Jul 24, 2023
4e24e72
Merge pull request #1287 from OneSignal/user_model/fix_swizzling_subc…
emawby Aug 3, 2023
e967946
Define more background tasks
nan-li Aug 10, 2023
96bce1b
Background flush of operation repo
nan-li Aug 10, 2023
ec2ab24
Background sending of session ending outcomes
nan-li Aug 10, 2023
b78b71a
Allow the operation repo to be paused
nan-li Aug 8, 2023
5a9a571
Update background sending session_time to user
nan-li Aug 10, 2023
7547724
On new session, user executor executes, and unpause operation repo
nan-li Aug 8, 2023
91d68e7
check for push subscription updates on new sessions
nan-li Aug 1, 2023
0737362
Bring the github actions from main to the user model branch
emawby Aug 10, 2023
2f03170
Fix session logic from a notification clicked
nan-li Jul 25, 2023
fe1015a
[nits] logging
nan-li Aug 10, 2023
7162c88
Add `timezone_id` to property model
nan-li Aug 8, 2023
868fc2c
Create the push sub model with a notification type
nan-li Aug 8, 2023
c8d748b
Update trackReceivedEvent to allow Firebase influence
emawby Aug 10, 2023
decb7cc
Merge pull request #1295 from OneSignal/update_github_actions_from_main
emawby Aug 10, 2023
5910b5e
Don't send influenced session time under 1 second
nan-li Aug 8, 2023
8c62aaa
Always remove the window when an IAM is dismissed
emawby Aug 9, 2023
0160b2a
Don't handle addAlias conflict
nan-li Aug 10, 2023
2a3e32f
[nits]
nan-li Aug 1, 2023
03f3f10
Recreate a push subscription when we detect it is removed
nan-li Aug 7, 2023
e4404ae
Fix crash when an IAM click action does not have an id
emawby Aug 10, 2023
3859d34
Merge pull request #1296 from OneSignal/bring_1241_to_user_model
emawby Aug 10, 2023
ad4216f
Fix Background Task Manager
nan-li Aug 1, 2023
9e42090
Ignore the second JS dismiss event
emawby Aug 10, 2023
0724e1e
Merge pull request #1300 from OneSignal/5.0.0/rehaul_background_tasks
emawby Aug 10, 2023
501eeb4
Add convenience accessor to the push subscription model
nan-li Aug 8, 2023
8f4274f
Always set test type to 1 for simulators
emawby Aug 10, 2023
b710e8c
Merge pull request #1298 from OneSignal/user_model/fix_iam_click_crash
emawby Aug 10, 2023
a6e08d9
Make web views inspectable in debug log mode or greater
emawby Aug 10, 2023
b219a8f
[nits] rename Background Task Delegate to Handler
nan-li Aug 9, 2023
a4112a0
Merge pull request #1294 from OneSignal/user_model/fix_in_app_display
emawby Aug 10, 2023
7b10ac9
Merge pull request #1290 from OneSignal/5.0.0/create_user_error
emawby Aug 10, 2023
db055cb
Merge pull request #1297 from OneSignal/user_model/enable_push_for_si…
emawby Aug 10, 2023
1474751
Bump version numbers to 5.0.0
emawby Aug 10, 2023
4e9b9af
[nits] rename Background Task Delegate to Handler
nan-li Aug 9, 2023
73a6f70
Merge pull request #1299 from OneSignal/user_model/web_view_inspectab…
emawby Aug 10, 2023
0b8fcc5
binaries for release 5.0.0
emawby Aug 10, 2023
9d90866
Merge branch '5.0.0/fix_session_influence' into 5.0.0/push_sub_fixes
nan-li Aug 10, 2023
2d9bc4d
Merge pull request #1288 from OneSignal/5.0.0/fix_session_influence
nan-li Aug 10, 2023
9cfb409
Updated zips and package.swift for 5.0.0
emawby Aug 10, 2023
37e7637
Merge pull request #1289 from OneSignal/5.0.0/push_sub_fixes
nan-li Aug 10, 2023
ad19847
Bump version numbers for 5.0.1 release
emawby Aug 10, 2023
96df408
Update Migration Guide for 5.0.0 release
emawby Aug 10, 2023
3418606
binaries for release 5.0.1
emawby Aug 10, 2023
64851e9
Merge pull request #1301 from OneSignal/release-5.0.0
emawby Aug 10, 2023
04c485f
New zips and update package.swift
emawby Aug 10, 2023
9206b2a
Remove extra comma in package.swift
emawby Aug 10, 2023
2bafc79
Merge pull request #1302 from OneSignal/release-5.0.1
emawby Aug 10, 2023
bd06d54
note setLaunchURLsInApp removal in migration guide.
emawby Aug 11, 2023
06011d6
Update the migration guide for modularity
emawby Aug 11, 2023
7ef4c6a
Bump version numbers to 5.0.2
nan-li Sep 22, 2023
f5af79c
Remove embed bitcode flag from OneSignal framework targets
shepherd-l Sep 13, 2023
90324b3
Merge pull request #1305 from OneSignal/update_migration_guide
emawby Aug 11, 2023
f2a6402
binaries for release 5.0.2
nan-li Sep 22, 2023
ca55bac
Fix bug when setting app_id from cache
nan-li Sep 20, 2023
1c4b70d
Merge pull request #1316 from OneSignal/fix/remove_embed_bitcode_flag
shepherd-l Sep 13, 2023
4d1a279
Updated zips and package.swift for 5.0.2
nan-li Sep 22, 2023
983628a
Merge pull request #1317 from OneSignal/5.0.0/use_cached_app_id_for_w…
nan-li Sep 22, 2023
5f62ca6
Merge pull request #1320 from OneSignal/rel/5.0.2
nan-li Sep 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
785 changes: 785 additions & 0 deletions MIGRATION_GUIDE.md

Large diffs are not rendered by default.

59 changes: 56 additions & 3 deletions OneSignal.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "OneSignal"
s.version = "3.12.7"
s.version = "5.0.2"
s.summary = "OneSignal push notification library for mobile apps."
s.homepage = "https://onesignal.com"
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand All @@ -9,12 +9,17 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/OneSignal/OneSignal-iOS-SDK.git", :tag => s.version.to_s }
s.platform = :ios, "11.0"
s.requires_arc = true

s.ios.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework'
s.default_subspec = "OneSignalComplete"
s.subspec 'OneSignalCore' do |ss|
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_Core/OneSignalCore.xcframework'
end

s.subspec 'OneSignalOSCore' do |ss|
ss.dependency 'OneSignal/OneSignalCore'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_OSCore/OneSignalOSCore.xcframework'
end

s.subspec 'OneSignalOutcomes' do |ss|
ss.dependency 'OneSignal/OneSignalCore'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_Outcomes/OneSignalOutcomes.xcframework'
Expand All @@ -25,4 +30,52 @@ Pod::Spec.new do |s|
ss.dependency 'OneSignal/OneSignalOutcomes'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_Extension/OneSignalExtension.xcframework'
end

s.subspec 'OneSignalNotifications' do |ss|
ss.dependency 'OneSignal/OneSignalCore'
ss.dependency 'OneSignal/OneSignalOutcomes'
ss.dependency 'OneSignal/OneSignalExtension'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_Notifications/OneSignalNotifications.xcframework'
end

s.subspec 'OneSignalUser' do |ss|
ss.dependency 'OneSignal/OneSignalCore'
ss.dependency 'OneSignal/OneSignalOSCore'
ss.dependency 'OneSignal/OneSignalOutcomes'
ss.dependency 'OneSignal/OneSignalNotifications'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_User/OneSignalUser.xcframework'
end

s.subspec 'OneSignalLocation' do |ss|
ss.dependency 'OneSignal/OneSignalCore'
ss.dependency 'OneSignal/OneSignalOSCore'
ss.dependency 'OneSignal/OneSignalNotifications'
ss.dependency 'OneSignal/OneSignalUser'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_Location/OneSignalLocation.xcframework'
end

s.subspec 'OneSignalInAppMessages' do |ss|
ss.dependency 'OneSignal/OneSignalCore'
ss.dependency 'OneSignal/OneSignalOSCore'
ss.dependency 'OneSignal/OneSignalOutcomes'
ss.dependency 'OneSignal/OneSignalNotifications'
ss.dependency 'OneSignal/OneSignalUser'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_InAppMessages/OneSignalInAppMessages.xcframework'
end

s.subspec 'OneSignal' do |ss|
ss.dependency 'OneSignal/OneSignalCore'
ss.dependency 'OneSignal/OneSignalOSCore'
ss.dependency 'OneSignal/OneSignalOutcomes'
ss.dependency 'OneSignal/OneSignalExtension'
ss.dependency 'OneSignal/OneSignalNotifications'
ss.dependency 'OneSignal/OneSignalUser'
ss.ios.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignalFramework.xcframework'
end

s.subspec 'OneSignalComplete' do |ss|
ss.dependency 'OneSignal/OneSignal'
ss.dependency 'OneSignal/OneSignalLocation'
ss.dependency 'OneSignal/OneSignalInAppMessages'
end
end
File renamed without changes.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added OneSignalOSCoreWrapper/dummy.m
Empty file.
Empty file.
Empty file added OneSignalUserWrapper/dummy.m
Empty file.
Empty file.
61 changes: 56 additions & 5 deletions OneSignalXCFramework.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "OneSignalXCFramework"
s.version = "3.12.7"
s.version = "5.0.2"
s.summary = "OneSignal push notification library for mobile apps."
s.homepage = "https://onesignal.com"
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand All @@ -9,13 +9,17 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/OneSignal/OneSignal-iOS-SDK.git", :tag => s.version.to_s }
s.platform = :ios, '11.0'
s.requires_arc = true

s.ios.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework'
s.default_subspec = "OneSignalComplete"

s.subspec 'OneSignalCore' do |ss|
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_Core/OneSignalCore.xcframework'
end

s.subspec 'OneSignalOSCore' do |ss|
ss.dependency 'OneSignalXCFramework/OneSignalCore'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_OSCore/OneSignalOSCore.xcframework'
end

s.subspec 'OneSignalOutcomes' do |ss|
ss.dependency 'OneSignalXCFramework/OneSignalCore'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_Outcomes/OneSignalOutcomes.xcframework'
Expand All @@ -26,5 +30,52 @@ Pod::Spec.new do |s|
ss.dependency 'OneSignalXCFramework/OneSignalOutcomes'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_Extension/OneSignalExtension.xcframework'
end
end


s.subspec 'OneSignalNotifications' do |ss|
ss.dependency 'OneSignalXCFramework/OneSignalCore'
ss.dependency 'OneSignalXCFramework/OneSignalOutcomes'
ss.dependency 'OneSignalXCFramework/OneSignalExtension'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_Notifications/OneSignalNotifications.xcframework'
end

s.subspec 'OneSignalUser' do |ss|
ss.dependency 'OneSignalXCFramework/OneSignalCore'
ss.dependency 'OneSignalXCFramework/OneSignalOSCore'
ss.dependency 'OneSignalXCFramework/OneSignalOutcomes'
ss.dependency 'OneSignalXCFramework/OneSignalNotifications'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_User/OneSignalUser.xcframework'
end

s.subspec 'OneSignalLocation' do |ss|
ss.dependency 'OneSignalXCFramework/OneSignalCore'
ss.dependency 'OneSignalXCFramework/OneSignalOSCore'
ss.dependency 'OneSignalXCFramework/OneSignalNotifications'
ss.dependency 'OneSignalXCFramework/OneSignalUser'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_Location/OneSignalLocation.xcframework'
end

s.subspec 'OneSignalInAppMessages' do |ss|
ss.dependency 'OneSignalXCFramework/OneSignalCore'
ss.dependency 'OneSignalXCFramework/OneSignalOSCore'
ss.dependency 'OneSignalXCFramework/OneSignalOutcomes'
ss.dependency 'OneSignalXCFramework/OneSignalNotifications'
ss.dependency 'OneSignalXCFramework/OneSignalUser'
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_InAppMessages/OneSignalInAppMessages.xcframework'
end

s.subspec 'OneSignal' do |ss|
ss.dependency 'OneSignalXCFramework/OneSignalCore'
ss.dependency 'OneSignalXCFramework/OneSignalOSCore'
ss.dependency 'OneSignalXCFramework/OneSignalOutcomes'
ss.dependency 'OneSignalXCFramework/OneSignalExtension'
ss.dependency 'OneSignalXCFramework/OneSignalNotifications'
ss.dependency 'OneSignalXCFramework/OneSignalUser'
ss.ios.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignalFramework.xcframework'
end

s.subspec 'OneSignalComplete' do |ss|
ss.dependency 'OneSignalXCFramework/OneSignal'
ss.dependency 'OneSignalXCFramework/OneSignalLocation'
ss.dependency 'OneSignalXCFramework/OneSignalInAppMessages'
end
end
117 changes: 102 additions & 15 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,79 @@
import PackageDescription

let package = Package(
name: "OneSignal",
name: "OneSignalFramework",
products: [
.library(
name: "OneSignal",
targets: ["OneSignalWrapper"]),
name: "OneSignalFramework",
targets: ["OneSignalFrameworkWrapper"]),
.library(
name: "OneSignalInAppMessages",
targets: ["OneSignalInAppMessagesWrapper"]),
.library(
name: "OneSignalLocation",
targets: ["OneSignalLocationWrapper"]),
.library(
name: "OneSignalExtension",
targets: ["OneSignalExtensionWrapper"])
],
targets: [
.target(
name: "OneSignalWrapper",
name: "OneSignalFrameworkWrapper",
dependencies: [
"OneSignalFramework",
"OneSignalUser",
"OneSignalNotifications",
"OneSignalExtension",
"OneSignalOutcomes",
"OneSignalOSCore",
"OneSignalCore"
],
path: "OneSignalFrameworkWrapper"
),
.target(
name: "OneSignalInAppMessagesWrapper",
dependencies: [
"OneSignalInAppMessages",
"OneSignalUser",
"OneSignalNotifications",
"OneSignalOutcomes",
"OneSignalOSCore",
"OneSignalCore"
],
path: "OneSignalInAppMessagesWrapper"
),
.target(
name: "OneSignalLocationWrapper",
dependencies: [
"OneSignalLocation",
"OneSignalUser",
"OneSignalNotifications",
"OneSignalOSCore",
"OneSignalCore"
],
path: "OneSignalLocationWrapper"
),
.target(
name: "OneSignalUserWrapper",
dependencies: [
"OneSignalUser",
"OneSignalNotifications",
"OneSignalExtension",
"OneSignalOutcomes",
"OneSignalOSCore",
"OneSignalCore"
],
path: "OneSignalUserWrapper"
),
.target(
name: "OneSignalNotificationsWrapper",
dependencies: [
"OneSignal",
"OneSignalNotifications",
"OneSignalExtension",
"OneSignalOutcomes",
"OneSignalCore"
],
path: "OneSignalWrapper"
path: "OneSignalNotificationsWrapper"
),
.target(
name: "OneSignalExtensionWrapper",
Expand All @@ -41,25 +95,58 @@ let package = Package(
],
path: "OneSignalOutcomesWrapper"
),
.target(
name: "OneSignalOSCoreWrapper",
dependencies: [
"OneSignalOSCore",
"OneSignalCore"
],
path: "OneSignalOSCoreWrapper"
),
.binaryTarget(
name: "OneSignal",
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/3.12.7/OneSignal.xcframework.zip",
checksum: "26848c739578c43bd401898d0f913eb451856a57549a445ecbe688f1a0426548"
name: "OneSignalFramework",
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.2/OneSignalFramework.xcframework.zip",
checksum: "260bc18c3b29967f1b9f484fa0b3220c2c99f867d210276e25d625b5bc40a1a3"
),
.binaryTarget(
name: "OneSignalInAppMessages",
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.2/OneSignalInAppMessages.xcframework.zip",
checksum: "2da59762c380ba1251c4b0d665b6823e26e60f06f169459350f11c7c6929c7d1"
),
.binaryTarget(
name: "OneSignalLocation",
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.2/OneSignalLocation.xcframework.zip",
checksum: "856517d1ef5e81095f8c51ae2b98148e9e813d94f44d008aed379038d56b3fb9"
),
.binaryTarget(
name: "OneSignalUser",
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.2/OneSignalUser.xcframework.zip",
checksum: "9c3df89f942f9f76905c3a1404d127124b8873905c390e8cc5044c378f05df04"
),
.binaryTarget(
name: "OneSignalNotifications",
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.2/OneSignalNotifications.xcframework.zip",
checksum: "26065fb2f7915938653e7f4342c6181d60a421d9c53f2d665221354c0106afda"
),
.binaryTarget(
name: "OneSignalExtension",
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/3.12.7/OneSignalExtension.xcframework.zip",
checksum: "38706d80fa648b555f0eefa97b95ed0a96e2614dc98e91fde10827b5d4da413d"
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.2/OneSignalExtension.xcframework.zip",
checksum: "c262a77df89463eab57073e4fe24db178575811d5cb273d85fb9921eb7022e99"
),
.binaryTarget(
name: "OneSignalOutcomes",
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/3.12.7/OneSignalOutcomes.xcframework.zip",
checksum: "f79b274f3c4e8372fbaad1a7c37bdfb1b0feb71721649900e35ab6c391718082"
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.2/OneSignalOutcomes.xcframework.zip",
checksum: "3f27a9d99e8adef5e3124838c44a56084123113b937fd7a0da1565c1c94c9b08"
),
.binaryTarget(
name: "OneSignalOSCore",
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.2/OneSignalOSCore.xcframework.zip",
checksum: "6855fbf364583bf710cc0f9c6b444809b612290453ca3002fe6667b959175128"
),
.binaryTarget(
name: "OneSignalCore",
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/3.12.7/OneSignalCore.xcframework.zip",
checksum: "1f51ffa939a5bb58b05f9a83be18e20a6d692182822a5a559396f0c567f8bde0"
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.2/OneSignalCore.xcframework.zip",
checksum: "7fc1bb7be5d00dbb68245d657517b947e7363bfa828c00394e184bee6316c436"
)
]
)
4 changes: 2 additions & 2 deletions iOS_SDK/OneSignalDevApp/OneSignalDevApp/AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
// This project exisits to make testing OneSignal SDK changes.

#import <UIKit/UIKit.h>
#import <OneSignal/OneSignal.h>
#import <OneSignalFramework/OneSignalFramework.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate, OSPermissionObserver, OSSubscriptionObserver, OSEmailSubscriptionObserver, OSInAppMessageLifecycleHandler>
@interface AppDelegate : UIResponder <UIApplicationDelegate, OSNotificationPermissionObserver, OSInAppMessageLifecycleListener, OSPushSubscriptionObserver, OSNotificationLifecycleListener, OSInAppMessageClickListener, OSNotificationClickListener>

@property (strong, nonatomic) UIWindow *window;

Expand Down
Loading
Loading