Skip to content

Commit bb60c99

Browse files
committed
cleanup comments for notifications tests and bundle utils
1 parent 899541c commit bb60c99

File tree

3 files changed

+64
-22
lines changed

3 files changed

+64
-22
lines changed

iOS_SDK/OneSignalSDK/OneSignalCore/Source/OSBundleUtils.h

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1-
//
2-
// OSBundleUtils.h
3-
// OneSignal
4-
//
5-
// Created by Elliot Mawby on 6/20/24.
6-
// Copyright © 2024 Hiptic. All rights reserved.
7-
//
1+
/*
2+
Modified MIT License
3+
Copyright 2024 OneSignal
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
1. The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
2. All copies of substantial portions of the Software may only be used in connection
13+
with services provided by OneSignal.
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
THE SOFTWARE.
21+
*/
822

923
@interface OSBundleUtils : NSObject
1024
+ (BOOL)isAppUsingUIScene;

iOS_SDK/OneSignalSDK/OneSignalCore/Source/OSBundleUtils.m

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1-
//
2-
// OSBundleUtils.m
3-
// OneSignalCore
4-
//
5-
// Created by Elliot Mawby on 6/17/24.
6-
// Copyright © 2024 Hiptic. All rights reserved.
7-
//
1+
/*
2+
Modified MIT License
3+
Copyright 2024 OneSignal
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
1. The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
2. All copies of substantial portions of the Software may only be used in connection
13+
with services provided by OneSignal.
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
THE SOFTWARE.
21+
*/
822

923
#import <Foundation/Foundation.h>
1024
#import "OSBundleUtils.h"

iOS_SDK/OneSignalSDK/OneSignalNotificationsTests/OneSignalNotificationsTests.swift

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1-
//
2-
// OneSignalNotificationsTests.swift
3-
// OneSignalNotificationsTests
4-
//
5-
// Created by Elliot Mawby on 6/17/24.
6-
// Copyright © 2024 Hiptic. All rights reserved.
7-
//
1+
/*
2+
Modified MIT License
3+
Copyright 2024 OneSignal
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
1. The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
2. All copies of substantial portions of the Software may only be used in connection
13+
with services provided by OneSignal.
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
THE SOFTWARE.
21+
*/
822

923
import XCTest
1024
import OneSignalNotifications
@@ -48,7 +62,7 @@ final class OneSignalNotificationsTests: XCTestCase {
4862
OneSignalCoreMocks.resignActive()
4963
// App becomes active the app
5064
OneSignalCoreMocks.becomeActive()
51-
// Ensure that badge count == 0
65+
// Ensure that badge count == 1
5266
XCTAssertEqual(UIApplication.shared.applicationIconBadgeNumber, 1)
5367
}
5468

0 commit comments

Comments
 (0)