Skip to content

Commit e7504c1

Browse files
committed
chore(demo): externalize signing to Local.xcconfig
1 parent d3e81c7 commit e7504c1

6 files changed

Lines changed: 96 additions & 63 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ iOS_SDK/Carthage/Build
2020
/temp/
2121
.build/
2222

23-
examples/demo/App/Secrets.plist
23+
examples/demo/App/Secrets.plist
24+
examples/demo/Local.xcconfig

examples/demo/App.xcodeproj/project.pbxproj

Lines changed: 51 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@
5050
8068AFC608E7E82F06733BE7 /* OneSignalCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C1B9BE42E81492B9DB61343 /* OneSignalCore.framework */; };
5151
80E3E2B5438CFEBE1316FA84 /* OneSignalCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C1B9BE42E81492B9DB61343 /* OneSignalCore.framework */; };
5252
837FCE7A095ED1D7CCFEACF3 /* InAppSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = B76FFAF18177241F4A47FE23 /* InAppSection.swift */; };
53-
8E57965CF0E9F1C341E61996 /* OneSignalFramework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 25848A5B7E93DCA744373200 /* OneSignalFramework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
53+
8E57965CF0E9F1C341E61996 /* OneSignal-Dynamic.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 25848A5B7E93DCA744373200 /* OneSignal-Dynamic.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
5454
8EA2FF24D93691FDC1661913 /* CustomEventsSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B6FF0BC430F5A2B89215967 /* CustomEventsSection.swift */; };
5555
902A116B26B8ECAD8EE29C95 /* ToggleRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 911376C90AA43F41478596FE /* ToggleRow.swift */; };
56+
93104E0838915DD6194805D5 /* Secrets.plist in Resources */ = {isa = PBXBuildFile; fileRef = 6B00BC406653BC6B08ECCE26 /* Secrets.plist */; };
5657
99C141A5ED972D66B5CD255A /* OneSignalWidget.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = AB92C9C455B15E0B571A1C66 /* OneSignalWidget.appex */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
5758
9A7BE456B679D7DE7CA300BC /* ListWidgets.swift in Sources */ = {isa = PBXBuildFile; fileRef = 280B23B41935EAB89C8C6FCB /* ListWidgets.swift */; };
5859
9B0D1DD32B99602629BBCB95 /* ActionButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6094499773760C3190F62C9 /* ActionButton.swift */; };
@@ -71,7 +72,7 @@
7172
CF76A5715EB5AE7F47839B9B /* CustomNotificationSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C10708FFB28FB6B9AF895E1 /* CustomNotificationSheet.swift */; };
7273
D154E0266C8AB372F928D42A /* OneSignalLocation.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = FE9834773C437CC373607693 /* OneSignalLocation.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
7374
D4CEA45BD0A4D71AF43524E2 /* MultiPairInputSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FB43BE0E085909B109C661F /* MultiPairInputSheet.swift */; };
74-
D65AC6EC014557264E7A3697 /* OneSignalFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25848A5B7E93DCA744373200 /* OneSignalFramework.framework */; };
75+
D65AC6EC014557264E7A3697 /* OneSignal-Dynamic.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25848A5B7E93DCA744373200 /* OneSignal-Dynamic.framework */; };
7576
DBDA727D6317A3CCC73A1699 /* LiveActivitySection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 27856D76807C31B23CD10CFD /* LiveActivitySection.swift */; };
7677
E5671E3A84219D49E45F8DCF /* KeyValueRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5984B93007C6B85AFE09045A /* KeyValueRow.swift */; };
7778
E72F68A7DB51347AB8B10FA7 /* OneSignalLiveActivities.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F5EBC48D807036E572D97F0E /* OneSignalLiveActivities.framework */; };
@@ -294,7 +295,7 @@
294295
D154E0266C8AB372F928D42A /* OneSignalLocation.framework in Embed Frameworks */,
295296
C6E9E2C6716059856A1AC571 /* OneSignalInAppMessages.framework in Embed Frameworks */,
296297
9FCE157075859B954814F6B7 /* OneSignalLiveActivities.framework in Embed Frameworks */,
297-
8E57965CF0E9F1C341E61996 /* OneSignalFramework.framework in Embed Frameworks */,
298+
8E57965CF0E9F1C341E61996 /* OneSignal-Dynamic.framework in Embed Frameworks */,
298299
);
299300
name = "Embed Frameworks";
300301
runOnlyForDeploymentPostprocessing = 0;
@@ -319,12 +320,13 @@
319320
3FD8258E807E6672642A32E6 /* UserFetchService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserFetchService.swift; sourceTree = "<group>"; };
320321
4078B5F096680AFA83D1CB85 /* OutcomesSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OutcomesSection.swift; sourceTree = "<group>"; };
321322
497484E7C094D645338BD404 /* SectionCard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SectionCard.swift; sourceTree = "<group>"; };
322-
49D88A349FD70A9153DD2C03 /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
323+
49D88A349FD70A9153DD2C03 /* App.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
323324
4B6FF0BC430F5A2B89215967 /* CustomEventsSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomEventsSection.swift; sourceTree = "<group>"; };
324325
5984B93007C6B85AFE09045A /* KeyValueRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeyValueRow.swift; sourceTree = "<group>"; };
325326
5C0EE23773C63B6EC3FB563A /* LocationSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationSection.swift; sourceTree = "<group>"; };
326327
5E0F5CBE80CF861238E1A9AA /* OneSignalService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OneSignalService.swift; sourceTree = "<group>"; };
327328
5FB43BE0E085909B109C661F /* MultiPairInputSheet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MultiPairInputSheet.swift; sourceTree = "<group>"; };
329+
6B00BC406653BC6B08ECCE26 /* Secrets.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Secrets.plist; sourceTree = "<group>"; };
328330
6C10708FFB28FB6B9AF895E1 /* CustomNotificationSheet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomNotificationSheet.swift; sourceTree = "<group>"; };
329331
6DD14C3CEEDFB9557E589B45 /* OneSignalWidgetBundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OneSignalWidgetBundle.swift; sourceTree = "<group>"; };
330332
76989E05CECAD7B8B3C424A7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
@@ -335,8 +337,8 @@
335337
9E2383E8AA63BF04ADA2CF0D /* UserSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserSection.swift; sourceTree = "<group>"; };
336338
A20B46F63592FC67B655BEB8 /* NotificationService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationService.swift; sourceTree = "<group>"; };
337339
A42B5EDA3264E3D00A5CB265 /* PushSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PushSection.swift; sourceTree = "<group>"; };
338-
AB92C9C455B15E0B571A1C66 /* OneSignalWidget.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = OneSignalWidget.appex; sourceTree = BUILT_PRODUCTS_DIR; };
339-
B24E059F4DF6ABED55BA3183 /* OneSignalNotificationServiceExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = OneSignalNotificationServiceExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };
340+
AB92C9C455B15E0B571A1C66 /* OneSignalWidget.appex */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "wrapper.app-extension"; path = OneSignalWidget.appex; sourceTree = BUILT_PRODUCTS_DIR; };
341+
B24E059F4DF6ABED55BA3183 /* OneSignalNotificationServiceExtension.appex */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "wrapper.app-extension"; path = OneSignalNotificationServiceExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };
340342
B3E7F504B0421F2B6247E2F5 /* Theme.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Theme.swift; sourceTree = "<group>"; };
341343
B76FFAF18177241F4A47FE23 /* InAppSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InAppSection.swift; sourceTree = "<group>"; };
342344
BDB04A33912347325A0155D6 /* App.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App.swift; sourceTree = "<group>"; };
@@ -352,6 +354,7 @@
352354
ECAC7EF0B67920F9FEC4F129 /* TagsSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TagsSection.swift; sourceTree = "<group>"; };
353355
F46DFACB9F304B9374F3C570 /* ToastView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ToastView.swift; sourceTree = "<group>"; };
354356
FF74D1CE043AD45649BF9D2B /* OutcomeSheet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OutcomeSheet.swift; sourceTree = "<group>"; };
357+
"TEMP_9C66ED0B-078B-4B2A-AC74-6C9C626EB903" /* Build.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Build.xcconfig; sourceTree = "<group>"; };
355358
/* End PBXFileReference section */
356359

357360
/* Begin PBXFrameworksBuildPhase section */
@@ -378,7 +381,7 @@
378381
68BC99D15FDCB26EB35EBB07 /* OneSignalLocation.framework in Frameworks */,
379382
C31F603E294D69E30CE65EA3 /* OneSignalInAppMessages.framework in Frameworks */,
380383
E72F68A7DB51347AB8B10FA7 /* OneSignalLiveActivities.framework in Frameworks */,
381-
D65AC6EC014557264E7A3697 /* OneSignalFramework.framework in Frameworks */,
384+
D65AC6EC014557264E7A3697 /* OneSignal-Dynamic.framework in Frameworks */,
382385
);
383386
runOnlyForDeploymentPostprocessing = 0;
384387
};
@@ -421,6 +424,7 @@
421424
F0D08B397106EA8498C4A8F4 /* Views */,
422425
BDB04A33912347325A0155D6 /* App.swift */,
423426
76989E05CECAD7B8B3C424A7 /* Assets.xcassets */,
427+
6B00BC406653BC6B08ECCE26 /* Secrets.plist */,
424428
1EE449E8308FCB038408D7CF /* vine_boom.wav */,
425429
);
426430
path = App;
@@ -459,16 +463,16 @@
459463
54D70151146ED2430545164A /* Products */ = {
460464
isa = PBXGroup;
461465
children = (
462-
25848A5B7E93DCA744373200 /* OneSignalFramework.framework */,
463466
2C1B9BE42E81492B9DB61343 /* OneSignalCore.framework */,
464-
B2F82BD207897EB78739182A /* OneSignalExtension.framework */,
465-
EF49509A218369322ECFA3B9 /* OneSignalUser.framework */,
466467
1636BCBAB444EAC7BB34CEDE /* OneSignalOSCore.framework */,
467468
EC2530FFC78AECEAF6A7E1B7 /* OneSignalOutcomes.framework */,
468469
283B132CEE12D26D1FA1AADF /* OneSignalNotifications.framework */,
470+
EF49509A218369322ECFA3B9 /* OneSignalUser.framework */,
471+
B2F82BD207897EB78739182A /* OneSignalExtension.framework */,
469472
FE9834773C437CC373607693 /* OneSignalLocation.framework */,
470473
919F0D129D0FA271E24F0BBD /* OneSignalInAppMessages.framework */,
471474
F5EBC48D807036E572D97F0E /* OneSignalLiveActivities.framework */,
475+
25848A5B7E93DCA744373200 /* OneSignal-Dynamic.framework */,
472476
);
473477
name = Products;
474478
sourceTree = "<group>";
@@ -554,6 +558,14 @@
554558
path = Views;
555559
sourceTree = "<group>";
556560
};
561+
"TEMP_2A75F706-BD9F-4715-A03C-7C89218E2598" /* demo */ = {
562+
isa = PBXGroup;
563+
children = (
564+
"TEMP_9C66ED0B-078B-4B2A-AC74-6C9C626EB903" /* Build.xcconfig */,
565+
);
566+
path = demo;
567+
sourceTree = "<group>";
568+
};
557569
/* End PBXGroup section */
558570

559571
/* Begin PBXNativeTarget section */
@@ -639,6 +651,20 @@
639651
attributes = {
640652
BuildIndependentTargetsInParallel = YES;
641653
LastUpgradeCheck = 1430;
654+
TargetAttributes = {
655+
61033D7807F09753830EDBC1 = {
656+
DevelopmentTeam = "";
657+
ProvisioningStyle = Automatic;
658+
};
659+
93E9E330FC2CE7458D9C925F = {
660+
DevelopmentTeam = "";
661+
ProvisioningStyle = Automatic;
662+
};
663+
97373B3889FBDD1762E98B03 = {
664+
DevelopmentTeam = "";
665+
ProvisioningStyle = Automatic;
666+
};
667+
};
642668
};
643669
buildConfigurationList = B3FD05C59F197F398A0B04AB /* Build configuration list for PBXProject "App" */;
644670
developmentRegion = en;
@@ -675,10 +701,10 @@
675701
remoteRef = 8B6EE756CF7175F38D5B5B4B /* PBXContainerItemProxy */;
676702
sourceTree = BUILT_PRODUCTS_DIR;
677703
};
678-
25848A5B7E93DCA744373200 /* OneSignalFramework.framework */ = {
704+
25848A5B7E93DCA744373200 /* OneSignal-Dynamic.framework */ = {
679705
isa = PBXReferenceProxy;
680706
fileType = wrapper.framework;
681-
path = OneSignalFramework.framework;
707+
path = "OneSignal-Dynamic.framework";
682708
remoteRef = 25CC6D5CA1E9DA9142715E8A /* PBXContainerItemProxy */;
683709
sourceTree = BUILT_PRODUCTS_DIR;
684710
};
@@ -746,6 +772,7 @@
746772
buildActionMask = 2147483647;
747773
files = (
748774
3FB3C8C0634A765EE81D042E /* Assets.xcassets in Resources */,
775+
93104E0838915DD6194805D5 /* Secrets.plist in Resources */,
749776
AB963AA6733C32EFB84DCBC0 /* vine_boom.wav in Resources */,
750777
);
751778
runOnlyForDeploymentPostprocessing = 0;
@@ -913,17 +940,13 @@
913940
/* Begin XCBuildConfiguration section */
914941
0D2EF3911CA89837C30DB0D1 /* Debug */ = {
915942
isa = XCBuildConfiguration;
943+
baseConfigurationReference = "TEMP_9C66ED0B-078B-4B2A-AC74-6C9C626EB903" /* Build.xcconfig */;
916944
buildSettings = {
917945
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
918946
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
919-
DEVELOPMENT_TEAM = 99SW8E36CT;
920947
INFOPLIST_FILE = OneSignalWidget/Info.plist;
921948
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
922-
LD_RUNPATH_SEARCH_PATHS = (
923-
"$(inherited)",
924-
"@executable_path/Frameworks",
925-
"@executable_path/../../Frameworks",
926-
);
949+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
927950
PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example.LA;
928951
PRODUCT_NAME = "$(TARGET_NAME)";
929952
SDKROOT = iphoneos;
@@ -934,18 +957,15 @@
934957
};
935958
4A0C935808978B5A7673E412 /* Debug */ = {
936959
isa = XCBuildConfiguration;
960+
baseConfigurationReference = "TEMP_9C66ED0B-078B-4B2A-AC74-6C9C626EB903" /* Build.xcconfig */;
937961
buildSettings = {
938962
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
939963
CODE_SIGN_ENTITLEMENTS = App.entitlements;
940964
CODE_SIGN_IDENTITY = "iPhone Developer";
941-
DEVELOPMENT_TEAM = 99SW8E36CT;
942965
ENABLE_USER_SCRIPT_SANDBOXING = NO;
943966
INFOPLIST_FILE = App/Info.plist;
944967
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
945-
LD_RUNPATH_SEARCH_PATHS = (
946-
"$(inherited)",
947-
"@executable_path/Frameworks",
948-
);
968+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
949969
PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example;
950970
PRODUCT_NAME = "$(TARGET_NAME)";
951971
SDKROOT = iphoneos;
@@ -1016,23 +1036,14 @@
10161036
};
10171037
D0E56A85F1C385808720F94B /* Release */ = {
10181038
isa = XCBuildConfiguration;
1039+
baseConfigurationReference = "TEMP_9C66ED0B-078B-4B2A-AC74-6C9C626EB903" /* Build.xcconfig */;
10191040
buildSettings = {
10201041
CODE_SIGN_ENTITLEMENTS = OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension.entitlements;
1021-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1022-
CODE_SIGN_STYLE = Manual;
1023-
DEVELOPMENT_TEAM = "";
1024-
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 99SW8E36CT;
10251042
INFOPLIST_FILE = OneSignalNotificationServiceExtension/Info.plist;
10261043
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
1027-
LD_RUNPATH_SEARCH_PATHS = (
1028-
"$(inherited)",
1029-
"@executable_path/Frameworks",
1030-
"@executable_path/../../Frameworks",
1031-
);
1044+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
10321045
PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example.NSE;
10331046
PRODUCT_NAME = "$(TARGET_NAME)";
1034-
PROVISIONING_PROFILE_SPECIFIER = "";
1035-
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Appium Demo - NSE";
10361047
SDKROOT = iphoneos;
10371048
SKIP_INSTALL = YES;
10381049
TARGETED_DEVICE_FAMILY = "1,2";
@@ -1041,49 +1052,33 @@
10411052
};
10421053
EB1CC3A930E09FEBECF9195D /* Release */ = {
10431054
isa = XCBuildConfiguration;
1055+
baseConfigurationReference = "TEMP_9C66ED0B-078B-4B2A-AC74-6C9C626EB903" /* Build.xcconfig */;
10441056
buildSettings = {
10451057
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
10461058
CODE_SIGN_ENTITLEMENTS = App.entitlements;
10471059
CODE_SIGN_IDENTITY = "iPhone Developer";
1048-
CODE_SIGN_STYLE = Manual;
1049-
DEVELOPMENT_TEAM = "";
1050-
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 99SW8E36CT;
10511060
ENABLE_USER_SCRIPT_SANDBOXING = NO;
10521061
INFOPLIST_FILE = App/Info.plist;
10531062
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
1054-
LD_RUNPATH_SEARCH_PATHS = (
1055-
"$(inherited)",
1056-
"@executable_path/Frameworks",
1057-
);
1063+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
10581064
PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example;
10591065
PRODUCT_NAME = "$(TARGET_NAME)";
1060-
PROVISIONING_PROFILE_SPECIFIER = "";
1061-
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Appium Demo - Main";
10621066
SDKROOT = iphoneos;
10631067
TARGETED_DEVICE_FAMILY = "1,2";
10641068
};
10651069
name = Release;
10661070
};
10671071
F305A3E63851EE49DA2D190E /* Release */ = {
10681072
isa = XCBuildConfiguration;
1073+
baseConfigurationReference = "TEMP_9C66ED0B-078B-4B2A-AC74-6C9C626EB903" /* Build.xcconfig */;
10691074
buildSettings = {
10701075
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
10711076
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
1072-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1073-
CODE_SIGN_STYLE = Manual;
1074-
DEVELOPMENT_TEAM = "";
1075-
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 99SW8E36CT;
10761077
INFOPLIST_FILE = OneSignalWidget/Info.plist;
10771078
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
1078-
LD_RUNPATH_SEARCH_PATHS = (
1079-
"$(inherited)",
1080-
"@executable_path/Frameworks",
1081-
"@executable_path/../../Frameworks",
1082-
);
1079+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
10831080
PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example.LA;
10841081
PRODUCT_NAME = "$(TARGET_NAME)";
1085-
PROVISIONING_PROFILE_SPECIFIER = "";
1086-
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Appium Demo - Live Activity";
10871082
SDKROOT = iphoneos;
10881083
SKIP_INSTALL = YES;
10891084
TARGETED_DEVICE_FAMILY = "1,2";
@@ -1092,16 +1087,12 @@
10921087
};
10931088
F5FD25168D9B32A08A468069 /* Debug */ = {
10941089
isa = XCBuildConfiguration;
1090+
baseConfigurationReference = "TEMP_9C66ED0B-078B-4B2A-AC74-6C9C626EB903" /* Build.xcconfig */;
10951091
buildSettings = {
10961092
CODE_SIGN_ENTITLEMENTS = OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension.entitlements;
1097-
DEVELOPMENT_TEAM = 99SW8E36CT;
10981093
INFOPLIST_FILE = OneSignalNotificationServiceExtension/Info.plist;
10991094
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
1100-
LD_RUNPATH_SEARCH_PATHS = (
1101-
"$(inherited)",
1102-
"@executable_path/Frameworks",
1103-
"@executable_path/../../Frameworks",
1104-
);
1095+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
11051096
PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example.NSE;
11061097
PRODUCT_NAME = "$(TARGET_NAME)";
11071098
SDKROOT = iphoneos;

examples/demo/App/Views/ContentView.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ struct ContentView: View {
133133
}
134134
}
135135
.toast(message: $viewModel.toastMessage)
136+
// Auto-prompt for notification permission on first appear, matching the
137+
// Capacitor / Flutter / React Native demos (which all prompt from their
138+
// home screen's mount lifecycle). This races the OneSignal iOS-params
139+
// response: the standard alert shows before the SDK can register for
140+
// provisional authorization (which would otherwise silently grant
141+
// permission and skip the prompt entirely).
142+
.task {
143+
viewModel.promptPushPermission()
144+
}
136145
}
137146

138147
@ToolbarContentBuilder

examples/demo/Build.xcconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Demo build settings auto-included by every target via project.yml.
2+
//
3+
// Per-developer values (Apple DEVELOPMENT_TEAM, custom bundle ids, etc.)
4+
// belong in a sibling `Local.xcconfig` so they never get committed. The
5+
// optional include below is a no-op when the file is missing, so a fresh
6+
// clone builds without further setup. See `Local.xcconfig.example`.
7+
8+
#include? "Local.xcconfig"

0 commit comments

Comments
 (0)