Skip to content

Commit bbc56d7

Browse files
authored
Merge branch 'master' into fix_iam_preview_constraint_crash
2 parents 7130037 + 79df764 commit bbc56d7

File tree

15 files changed

+282
-20
lines changed

15 files changed

+282
-20
lines changed

OneSignal.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "OneSignal"
3-
s.version = "2.11.0"
3+
s.version = "2.11.1"
44
s.summary = "OneSignal push notification library for mobile apps."
55
s.homepage = "https://onesignal.com"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

OneSignalDynamic.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "OneSignalDynamic"
3-
s.version = "2.11.0"
3+
s.version = "2.11.1"
44
s.summary = "OneSignal push notification library for mobile apps."
55
s.homepage = "https://onesignal.com"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

iOS_SDK/OneSignalSDK/Framework/Dynamic/OneSignal.framework/Versions/A/Headers/OneSignal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
442442
// - Request and track user's location
443443
+ (void)promptLocation;
444444
+ (void)setLocationShared:(BOOL)enable;
445+
+ (BOOL)isLocationShared;
445446

446447

447448
// Only used for wrapping SDKs, such as Unity, Cordova, Xamarin, etc.
Binary file not shown.

iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/Headers/OneSignal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
442442
// - Request and track user's location
443443
+ (void)promptLocation;
444444
+ (void)setLocationShared:(BOOL)enable;
445+
+ (BOOL)isLocationShared;
445446

446447

447448
// Only used for wrapping SDKs, such as Unity, Cordova, Xamarin, etc.
Binary file not shown.

iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/project.pbxproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@
149149
9D3300F723145AF3000F0A83 /* OneSignalUserDefaults.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D3300F323145AF3000F0A83 /* OneSignalUserDefaults.m */; };
150150
9D3300F823145AF3000F0A83 /* OneSignalUserDefaults.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D3300F323145AF3000F0A83 /* OneSignalUserDefaults.m */; };
151151
9D3300FA23149DAE000F0A83 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D3300F923149DAE000F0A83 /* CoreGraphics.framework */; };
152+
9D348537233C669E00EB81C9 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D348536233C669E00EB81C9 /* CoreLocation.framework */; };
153+
9D34853A233D2E3600EB81C9 /* OneSignalLocationOverrider.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D348539233D2E3600EB81C9 /* OneSignalLocationOverrider.m */; };
152154
9D59C2F82321C7720008ECCF /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CACBAAAB218A662B000ACAA5 /* WebKit.framework */; };
153155
9D59C2F92321C7780008ECCF /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D3300F923149DAE000F0A83 /* CoreGraphics.framework */; };
154156
9DDFEEF223189C0800EAE0BB /* OneSignalViewHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D3300F423145AF3000F0A83 /* OneSignalViewHelper.h */; };
@@ -373,6 +375,9 @@
373375
9D3300F323145AF3000F0A83 /* OneSignalUserDefaults.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalUserDefaults.m; sourceTree = "<group>"; };
374376
9D3300F423145AF3000F0A83 /* OneSignalViewHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalViewHelper.h; sourceTree = "<group>"; };
375377
9D3300F923149DAE000F0A83 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
378+
9D348536233C669E00EB81C9 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
379+
9D348538233D2DCF00EB81C9 /* OneSignalLocationOverrider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OneSignalLocationOverrider.h; sourceTree = "<group>"; };
380+
9D348539233D2E3600EB81C9 /* OneSignalLocationOverrider.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = OneSignalLocationOverrider.m; sourceTree = "<group>"; };
376381
CA08FC711FE99AFD004C445F /* OneSignalClient.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OneSignalClient.h; sourceTree = "<group>"; };
377382
CA08FC721FE99AFD004C445F /* OneSignalClient.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = OneSignalClient.m; sourceTree = "<group>"; };
378383
CA08FC761FE99B13004C445F /* OneSignalRequest.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OneSignalRequest.h; sourceTree = "<group>"; };
@@ -471,6 +476,7 @@
471476
isa = PBXFrameworksBuildPhase;
472477
buildActionMask = 2147483647;
473478
files = (
479+
9D348537233C669E00EB81C9 /* CoreLocation.framework in Frameworks */,
474480
9D3300FA23149DAE000F0A83 /* CoreGraphics.framework in Frameworks */,
475481
CACBAAAC218A662B000ACAA5 /* WebKit.framework in Frameworks */,
476482
911E2CC81E399834003112A4 /* UserNotifications.framework in Frameworks */,
@@ -507,6 +513,7 @@
507513
37747F9519147D6500558FAD /* Frameworks */ = {
508514
isa = PBXGroup;
509515
children = (
516+
9D348536233C669E00EB81C9 /* CoreLocation.framework */,
510517
9D3300F923149DAE000F0A83 /* CoreGraphics.framework */,
511518
CACBAAAB218A662B000ACAA5 /* WebKit.framework */,
512519
911E2CC71E399834003112A4 /* UserNotifications.framework */,
@@ -562,6 +569,8 @@
562569
CA8E190A2194FE0B009DA223 /* OSMessagingControllerOverrider.m */,
563570
CAAE0DFB2195216900A57402 /* OneSignalOverrider.h */,
564571
CAAE0DFC2195216900A57402 /* OneSignalOverrider.m */,
572+
9D348538233D2DCF00EB81C9 /* OneSignalLocationOverrider.h */,
573+
9D348539233D2E3600EB81C9 /* OneSignalLocationOverrider.m */,
565574
);
566575
path = Shadows;
567576
sourceTree = "<group>";
@@ -1113,6 +1122,7 @@
11131122
912412201E73342200E41FD7 /* OneSignalJailbreakDetection.m in Sources */,
11141123
CAAEA68921ED68A40049CF15 /* OneSignalNotificationCategoryController.m in Sources */,
11151124
CA85C15320604AEA003AB529 /* RequestTests.m in Sources */,
1125+
9D34853A233D2E3600EB81C9 /* OneSignalLocationOverrider.m in Sources */,
11161126
CAE2E5A8215D80010036FD32 /* OneSignalTrackFirebaseAnalytics.m in Sources */,
11171127
912412381E73342200E41FD7 /* OneSignalTrackIAP.m in Sources */,
11181128
CA63AF8720211FF800E340FB /* UnitTestCommonMethods.m in Sources */,
@@ -1211,6 +1221,7 @@
12111221
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
12121222
COPY_PHASE_STRIP = YES;
12131223
DEBUG_INFORMATION_FORMAT = dwarf;
1224+
DEPLOYMENT_POSTPROCESSING = YES;
12141225
ENABLE_NS_ASSERTIONS = NO;
12151226
ENABLE_STRICT_OBJC_MSGSEND = YES;
12161227
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -1362,6 +1373,7 @@
13621373
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
13631374
COPY_PHASE_STRIP = YES;
13641375
DEBUG_INFORMATION_FORMAT = dwarf;
1376+
DEPLOYMENT_POSTPROCESSING = YES;
13651377
ENABLE_NS_ASSERTIONS = NO;
13661378
ENABLE_STRICT_OBJC_MSGSEND = YES;
13671379
GCC_C_LANGUAGE_STANDARD = gnu99;

iOS_SDK/OneSignalSDK/Source/OneSignal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
442442
// - Request and track user's location
443443
+ (void)promptLocation;
444444
+ (void)setLocationShared:(BOOL)enable;
445+
+ (BOOL)isLocationShared;
445446

446447

447448
// Only used for wrapping SDKs, such as Unity, Cordova, Xamarin, etc.

iOS_SDK/OneSignalSDK/Source/OneSignal.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ @implementation OSPendingCallbacks
126126

127127
@implementation OneSignal
128128

129-
NSString* const ONESIGNAL_VERSION = @"021100";
129+
NSString* const ONESIGNAL_VERSION = @"021101";
130130
static NSString* mSDKType = @"native";
131131
static BOOL coldStartFromTapOnNotification = NO;
132132

@@ -1302,6 +1302,10 @@ + (void) promptLocation {
13021302
[OneSignalLocation getLocation:true];
13031303
}
13041304

1305+
+ (BOOL)isLocationShared {
1306+
return mShareLocation;
1307+
}
1308+
13051309

13061310
+ (void) handleDidFailRegisterForRemoteNotification:(NSError*)err {
13071311
waitingForApnsResponse = false;

iOS_SDK/OneSignalSDK/Source/OneSignalLocation.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ typedef struct os_last_location {
4141
double horizontalAccuracy;
4242
} os_last_location;
4343

44-
4544
@interface OneSignalLocation : NSObject
45+
46+
+ (OneSignalLocation*) sharedInstance;
47+
+ (bool)started;
48+
+ (void)internalGetLocation:(bool)prompt;
49+
- (void)locationManager:(id)manager didUpdateLocations:(NSArray *)locations;
4650
+ (void) getLocation:(bool)prompt;
4751
+ (void) sendLocation;
4852
+ (os_last_location*)lastLocation;

0 commit comments

Comments
 (0)