diff --git a/.gitignore b/.gitignore index cfb6b0a81..f106ce2a7 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ build/ *.perspectivev3 !default.perspectivev3 *.xcworkspace +!OneSignalSDK.xcworkspace !default.xcworkspace xcuserdata profile diff --git a/.travis.yml b/.travis.yml index 981a370a3..7114f9c6c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: objective-c osx_image: xcode8.1 before_install: - - cd iOS_SDK + - cd iOS_SDK/OneSignalSDK script: - xcodebuild -list - xcodebuild build -scheme OneSignal-Dynamic diff --git a/Examples/.gitignore b/Examples/.gitignore new file mode 100644 index 000000000..ed582eb7b --- /dev/null +++ b/Examples/.gitignore @@ -0,0 +1,2 @@ +Pods +Podfile.lock \ No newline at end of file diff --git a/OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Contents.json b/Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Contents.json rename to Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Contents.json diff --git a/OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon-60@2x.png b/Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon-60@2x.png similarity index 100% rename from OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon-60@2x.png rename to Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon-60@2x.png diff --git a/OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon-60@3x.png b/Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon-60@3x.png similarity index 100% rename from OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon-60@3x.png rename to Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon-60@3x.png diff --git a/OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon-72.png b/Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon-72.png similarity index 100% rename from OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon-72.png rename to Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon-72.png diff --git a/OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon-72@2x.png b/Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon-72@2x.png similarity index 100% rename from OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon-72@2x.png rename to Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon-72@2x.png diff --git a/OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon-76.png b/Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon-76.png similarity index 100% rename from OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon-76.png rename to Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon-76.png diff --git a/OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon-76@2x.png b/Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon-76@2x.png similarity index 100% rename from OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon-76@2x.png rename to Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon-76@2x.png diff --git a/OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon.png b/Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon.png similarity index 100% rename from OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon.png rename to Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon.png diff --git a/OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon@2x.png b/Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon@2x.png similarity index 100% rename from OneSignalExample/AppIcon.xcassets/AppIcon.appiconset/Icon@2x.png rename to Examples/ObjectiveCExample/AppIcon.xcassets/AppIcon.appiconset/Icon@2x.png diff --git a/OneSignalExample/Icon-60@2x.png b/Examples/ObjectiveCExample/Icon-60@2x.png similarity index 100% rename from OneSignalExample/Icon-60@2x.png rename to Examples/ObjectiveCExample/Icon-60@2x.png diff --git a/OneSignalExample/Icon-60@3x.png b/Examples/ObjectiveCExample/Icon-60@3x.png similarity index 100% rename from OneSignalExample/Icon-60@3x.png rename to Examples/ObjectiveCExample/Icon-60@3x.png diff --git a/OneSignalExample/Icon-72.png b/Examples/ObjectiveCExample/Icon-72.png similarity index 100% rename from OneSignalExample/Icon-72.png rename to Examples/ObjectiveCExample/Icon-72.png diff --git a/OneSignalExample/Icon-72@2x.png b/Examples/ObjectiveCExample/Icon-72@2x.png similarity index 100% rename from OneSignalExample/Icon-72@2x.png rename to Examples/ObjectiveCExample/Icon-72@2x.png diff --git a/OneSignalExample/Icon-76.png b/Examples/ObjectiveCExample/Icon-76.png similarity index 100% rename from OneSignalExample/Icon-76.png rename to Examples/ObjectiveCExample/Icon-76.png diff --git a/OneSignalExample/Icon-76@2x.png b/Examples/ObjectiveCExample/Icon-76@2x.png similarity index 100% rename from OneSignalExample/Icon-76@2x.png rename to Examples/ObjectiveCExample/Icon-76@2x.png diff --git a/OneSignalExample/Icon.png b/Examples/ObjectiveCExample/Icon.png similarity index 100% rename from OneSignalExample/Icon.png rename to Examples/ObjectiveCExample/Icon.png diff --git a/OneSignalExample/Icon@2x.png b/Examples/ObjectiveCExample/Icon@2x.png similarity index 100% rename from OneSignalExample/Icon@2x.png rename to Examples/ObjectiveCExample/Icon@2x.png diff --git a/OneSignalExample/NotificationServiceExtension/Info.plist b/Examples/ObjectiveCExample/NotificationServiceExtension/Info.plist similarity index 100% rename from OneSignalExample/NotificationServiceExtension/Info.plist rename to Examples/ObjectiveCExample/NotificationServiceExtension/Info.plist diff --git a/OneSignalExample/NotificationServiceExtension/NotificationService.h b/Examples/ObjectiveCExample/NotificationServiceExtension/NotificationService.h similarity index 100% rename from OneSignalExample/NotificationServiceExtension/NotificationService.h rename to Examples/ObjectiveCExample/NotificationServiceExtension/NotificationService.h diff --git a/OneSignalExample/NotificationServiceExtension/NotificationService.m b/Examples/ObjectiveCExample/NotificationServiceExtension/NotificationService.m similarity index 100% rename from OneSignalExample/NotificationServiceExtension/NotificationService.m rename to Examples/ObjectiveCExample/NotificationServiceExtension/NotificationService.m diff --git a/OneSignalExample/OneSignalExample.xcodeproj/project.pbxproj b/Examples/ObjectiveCExample/OneSignalDemo.xcodeproj/project.pbxproj similarity index 57% rename from OneSignalExample/OneSignalExample.xcodeproj/project.pbxproj rename to Examples/ObjectiveCExample/OneSignalDemo.xcodeproj/project.pbxproj index 3669fee88..159bbc4a7 100755 --- a/OneSignalExample/OneSignalExample.xcodeproj/project.pbxproj +++ b/Examples/ObjectiveCExample/OneSignalDemo.xcodeproj/project.pbxproj @@ -8,21 +8,17 @@ /* Begin PBXBuildFile section */ 373D19151ACCC60F00BBAB2E /* AppIcon.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 373D19141ACCC60F00BBAB2E /* AppIcon.xcassets */; }; - 37668EEB1AA810740095D813 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37668EEA1AA810740095D813 /* SystemConfiguration.framework */; }; 37D0A46A192B077E009DC9F4 /* notification.wav in Resources */ = {isa = PBXBuildFile; fileRef = 37D0A469192B077E009DC9F4 /* notification.wav */; }; - 37E277221ACBB40100D49C8D /* OneSignal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37E277211ACBB40100D49C8D /* OneSignal.framework */; }; - 37F9CA1D19D9CBAD0084DB7F /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37F9CA1C19D9CBAD0084DB7F /* UIKit.framework */; }; - 91172A5D1E6F6D6700D13B84 /* OneSignal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37E277211ACBB40100D49C8D /* OneSignal.framework */; }; - 91172A5E1E6F6DC200D13B84 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37F9CA1C19D9CBAD0084DB7F /* UIKit.framework */; }; - 91172A5F1E6F6DDB00D13B84 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37668EEA1AA810740095D813 /* SystemConfiguration.framework */; }; + 45163AA76AD8EE9E627D5E39 /* libPods-NotificationServiceExtension.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A45F218DE0723D549F783D7 /* libPods-NotificationServiceExtension.a */; }; + 8DB6D582F990C74E1F3A727C /* libPods-OneSignalDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 234F3177F10DC54A3839A0A4 /* libPods-OneSignalDemo.a */; }; 916B37141E6F520E00CEE4AA /* NotificationService.m in Sources */ = {isa = PBXBuildFile; fileRef = 916B37131E6F520E00CEE4AA /* NotificationService.m */; }; 916B37181E6F520E00CEE4AA /* NotificationServiceExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 916B37101E6F520D00CEE4AA /* NotificationServiceExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - DE4BCB72161638D4003F4A66 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = DE4BCB70161638D4003F4A66 /* InfoPlist.strings */; }; - DE4BCB74161638D4003F4A66 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = DE4BCB73161638D4003F4A66 /* main.m */; }; - DE4BCB78161638D4003F4A66 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = DE4BCB77161638D4003F4A66 /* AppDelegate.m */; }; - DE4BCB7B161638D4003F4A66 /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DE4BCB79161638D4003F4A66 /* MainStoryboard.storyboard */; }; - DE4BCB7E161638D4003F4A66 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = DE4BCB7D161638D4003F4A66 /* ViewController.m */; }; - DEE5C41C162F34490024001B /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DEE5C41B162F34490024001B /* Default-568h@2x.png */; }; + 91C3CFC81E725E2B00D9EA80 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 91C3CFBD1E725E2B00D9EA80 /* AppDelegate.m */; }; + 91C3CFC91E725E2B00D9EA80 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 91C3CFBE1E725E2B00D9EA80 /* Default-568h@2x.png */; }; + 91C3CFCA1E725E2B00D9EA80 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 91C3CFBF1E725E2B00D9EA80 /* InfoPlist.strings */; }; + 91C3CFCB1E725E2B00D9EA80 /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 91C3CFC11E725E2B00D9EA80 /* MainStoryboard.storyboard */; }; + 91C3CFCC1E725E2B00D9EA80 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 91C3CFC31E725E2B00D9EA80 /* main.m */; }; + 91C3CFCE1E725E2B00D9EA80 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 91C3CFC71E725E2B00D9EA80 /* ViewController.m */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -50,28 +46,30 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 1A45F218DE0723D549F783D7 /* libPods-NotificationServiceExtension.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-NotificationServiceExtension.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 234F3177F10DC54A3839A0A4 /* libPods-OneSignalDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-OneSignalDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 373D19141ACCC60F00BBAB2E /* AppIcon.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = AppIcon.xcassets; sourceTree = ""; }; - 37668EEA1AA810740095D813 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; 37D0A469192B077E009DC9F4 /* notification.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = notification.wav; sourceTree = ""; }; - 37E277211ACBB40100D49C8D /* OneSignal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OneSignal.framework; path = ../iOS_SDK/Framework/OneSignal.framework; sourceTree = ""; }; - 37F9CA1C19D9CBAD0084DB7F /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - 91172A4D1E6F5DD100D13B84 /* UserNotificationsUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotificationsUI.framework; path = System/Library/Frameworks/UserNotificationsUI.framework; sourceTree = SDKROOT; }; + 3FBEFBEFB38722072334EE0E /* Pods-OneSignalDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OneSignalDemo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-OneSignalDemo/Pods-OneSignalDemo.debug.xcconfig"; sourceTree = ""; }; + 6BC4E632603B2DE8FD01512E /* Pods-NotificationServiceExtension.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.release.xcconfig"; path = "Pods/Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.release.xcconfig"; sourceTree = ""; }; + 7C47C28881420FCA6FD6BC74 /* Pods-NotificationServiceExtension.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationServiceExtension.debug.xcconfig"; path = "Pods/Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension.debug.xcconfig"; sourceTree = ""; }; + 803357615A11B247404C7A8B /* Pods-OneSignalDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OneSignalDemo.release.xcconfig"; path = "Pods/Target Support Files/Pods-OneSignalDemo/Pods-OneSignalDemo.release.xcconfig"; sourceTree = ""; }; 916B37101E6F520D00CEE4AA /* NotificationServiceExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = NotificationServiceExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; 916B37121E6F520E00CEE4AA /* NotificationService.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NotificationService.h; sourceTree = ""; }; 916B37131E6F520E00CEE4AA /* NotificationService.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NotificationService.m; sourceTree = ""; }; 916B37151E6F520E00CEE4AA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 91D311361DB9A996001B7365 /* OneSignalExample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = OneSignalExample.entitlements; sourceTree = ""; }; - DE4BCB63161638D4003F4A66 /* OneSignalExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OneSignalExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; - DE4BCB6F161638D4003F4A66 /* OneSignalExample-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "OneSignalExample-Info.plist"; sourceTree = ""; }; - DE4BCB71161638D4003F4A66 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - DE4BCB73161638D4003F4A66 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - DE4BCB75161638D4003F4A66 /* OneSignalExample-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "OneSignalExample-Prefix.pch"; sourceTree = ""; }; - DE4BCB76161638D4003F4A66 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - DE4BCB77161638D4003F4A66 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - DE4BCB7A161638D4003F4A66 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard.storyboard; sourceTree = ""; }; - DE4BCB7C161638D4003F4A66 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - DE4BCB7D161638D4003F4A66 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - DEE5C41B162F34490024001B /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; + 91C3CFBC1E725E2B00D9EA80 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 91C3CFBD1E725E2B00D9EA80 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 91C3CFBE1E725E2B00D9EA80 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; + 91C3CFC01E725E2B00D9EA80 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 91C3CFC21E725E2B00D9EA80 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard.storyboard; sourceTree = ""; }; + 91C3CFC31E725E2B00D9EA80 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 91C3CFC41E725E2B00D9EA80 /* OneSignalDemo-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "OneSignalDemo-Info.plist"; sourceTree = ""; }; + 91C3CFC51E725E2B00D9EA80 /* OneSignalDemo-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "OneSignalDemo-Prefix.pch"; sourceTree = ""; }; + 91C3CFC61E725E2B00D9EA80 /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 91C3CFC71E725E2B00D9EA80 /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 91C3CFCF1E725E7A00D9EA80 /* OneSignalDemo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = OneSignalDemo.entitlements; sourceTree = ""; }; + DE4BCB63161638D4003F4A66 /* OneSignalDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OneSignalDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -79,9 +77,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 91172A5F1E6F6DDB00D13B84 /* SystemConfiguration.framework in Frameworks */, - 91172A5E1E6F6DC200D13B84 /* UIKit.framework in Frameworks */, - 91172A5D1E6F6D6700D13B84 /* OneSignal.framework in Frameworks */, + 45163AA76AD8EE9E627D5E39 /* libPods-NotificationServiceExtension.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -89,9 +85,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 37E277221ACBB40100D49C8D /* OneSignal.framework in Frameworks */, - 37668EEB1AA810740095D813 /* SystemConfiguration.framework in Frameworks */, - 37F9CA1D19D9CBAD0084DB7F /* UIKit.framework in Frameworks */, + 8DB6D582F990C74E1F3A727C /* libPods-OneSignalDemo.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -108,62 +102,64 @@ path = NotificationServiceExtension; sourceTree = ""; }; - DE4BCB58161638D4003F4A66 = { + 91C3CFBB1E725E2B00D9EA80 /* OneSignalDemo */ = { isa = PBXGroup; children = ( - 91D311361DB9A996001B7365 /* OneSignalExample.entitlements */, - 373D19141ACCC60F00BBAB2E /* AppIcon.xcassets */, - 37D0A469192B077E009DC9F4 /* notification.wav */, - DE4BCB6D161638D4003F4A66 /* push-notifications */, - 916B37111E6F520E00CEE4AA /* NotificationServiceExtension */, - DE4BCB66161638D4003F4A66 /* Frameworks */, - DE4BCB64161638D4003F4A66 /* Products */, + 91C3CFCF1E725E7A00D9EA80 /* OneSignalDemo.entitlements */, + 91C3CFBC1E725E2B00D9EA80 /* AppDelegate.h */, + 91C3CFBD1E725E2B00D9EA80 /* AppDelegate.m */, + 91C3CFBE1E725E2B00D9EA80 /* Default-568h@2x.png */, + 91C3CFBF1E725E2B00D9EA80 /* InfoPlist.strings */, + 91C3CFC11E725E2B00D9EA80 /* MainStoryboard.storyboard */, + 91C3CFC31E725E2B00D9EA80 /* main.m */, + 91C3CFC41E725E2B00D9EA80 /* OneSignalDemo-Info.plist */, + 91C3CFC51E725E2B00D9EA80 /* OneSignalDemo-Prefix.pch */, + 91C3CFC61E725E2B00D9EA80 /* ViewController.h */, + 91C3CFC71E725E2B00D9EA80 /* ViewController.m */, ); + path = OneSignalDemo; sourceTree = ""; }; - DE4BCB64161638D4003F4A66 /* Products */ = { + CDEE1A4C22CB119EECAFAE38 /* Pods */ = { isa = PBXGroup; children = ( - DE4BCB63161638D4003F4A66 /* OneSignalExample.app */, - 916B37101E6F520D00CEE4AA /* NotificationServiceExtension.appex */, + 7C47C28881420FCA6FD6BC74 /* Pods-NotificationServiceExtension.debug.xcconfig */, + 6BC4E632603B2DE8FD01512E /* Pods-NotificationServiceExtension.release.xcconfig */, + 3FBEFBEFB38722072334EE0E /* Pods-OneSignalDemo.debug.xcconfig */, + 803357615A11B247404C7A8B /* Pods-OneSignalDemo.release.xcconfig */, ); - name = Products; + name = Pods; sourceTree = ""; }; - DE4BCB66161638D4003F4A66 /* Frameworks */ = { + DE4BCB58161638D4003F4A66 = { isa = PBXGroup; children = ( - 37E277211ACBB40100D49C8D /* OneSignal.framework */, - 37668EEA1AA810740095D813 /* SystemConfiguration.framework */, - 37F9CA1C19D9CBAD0084DB7F /* UIKit.framework */, - 91172A4D1E6F5DD100D13B84 /* UserNotificationsUI.framework */, + 91C3CFBB1E725E2B00D9EA80 /* OneSignalDemo */, + 373D19141ACCC60F00BBAB2E /* AppIcon.xcassets */, + 37D0A469192B077E009DC9F4 /* notification.wav */, + 916B37111E6F520E00CEE4AA /* NotificationServiceExtension */, + DE4BCB64161638D4003F4A66 /* Products */, + CDEE1A4C22CB119EECAFAE38 /* Pods */, + F0B542BA7CE287481E0D5E45 /* Frameworks */, ); - name = Frameworks; sourceTree = ""; }; - DE4BCB6D161638D4003F4A66 /* push-notifications */ = { + DE4BCB64161638D4003F4A66 /* Products */ = { isa = PBXGroup; children = ( - DE4BCB76161638D4003F4A66 /* AppDelegate.h */, - DE4BCB77161638D4003F4A66 /* AppDelegate.m */, - DE4BCB79161638D4003F4A66 /* MainStoryboard.storyboard */, - DE4BCB7C161638D4003F4A66 /* ViewController.h */, - DE4BCB7D161638D4003F4A66 /* ViewController.m */, - DE4BCB6E161638D4003F4A66 /* Supporting Files */, - ); - path = "push-notifications"; + DE4BCB63161638D4003F4A66 /* OneSignalDemo.app */, + 916B37101E6F520D00CEE4AA /* NotificationServiceExtension.appex */, + ); + name = Products; sourceTree = ""; }; - DE4BCB6E161638D4003F4A66 /* Supporting Files */ = { + F0B542BA7CE287481E0D5E45 /* Frameworks */ = { isa = PBXGroup; children = ( - DEE5C41B162F34490024001B /* Default-568h@2x.png */, - DE4BCB6F161638D4003F4A66 /* OneSignalExample-Info.plist */, - DE4BCB70161638D4003F4A66 /* InfoPlist.strings */, - DE4BCB73161638D4003F4A66 /* main.m */, - DE4BCB75161638D4003F4A66 /* OneSignalExample-Prefix.pch */, + 1A45F218DE0723D549F783D7 /* libPods-NotificationServiceExtension.a */, + 234F3177F10DC54A3839A0A4 /* libPods-OneSignalDemo.a */, ); - name = "Supporting Files"; + name = Frameworks; sourceTree = ""; }; /* End PBXGroup section */ @@ -173,9 +169,11 @@ isa = PBXNativeTarget; buildConfigurationList = 916B371B1E6F520E00CEE4AA /* Build configuration list for PBXNativeTarget "NotificationServiceExtension" */; buildPhases = ( + B6FE2DEB3B7911DA542111D2 /* [CP] Check Pods Manifest.lock */, 916B370C1E6F520D00CEE4AA /* Sources */, 916B370D1E6F520D00CEE4AA /* Frameworks */, 916B370E1E6F520D00CEE4AA /* Resources */, + EE781DE378D91960D86CE6A9 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -186,23 +184,26 @@ productReference = 916B37101E6F520D00CEE4AA /* NotificationServiceExtension.appex */; productType = "com.apple.product-type.app-extension"; }; - DE4BCB62161638D4003F4A66 /* OneSignalExample */ = { + DE4BCB62161638D4003F4A66 /* OneSignalDemo */ = { isa = PBXNativeTarget; - buildConfigurationList = DE4BCB81161638D4003F4A66 /* Build configuration list for PBXNativeTarget "OneSignalExample" */; + buildConfigurationList = DE4BCB81161638D4003F4A66 /* Build configuration list for PBXNativeTarget "OneSignalDemo" */; buildPhases = ( + 7A59FCE6645C295E1D1E497D /* [CP] Check Pods Manifest.lock */, DE4BCB5F161638D4003F4A66 /* Sources */, DE4BCB60161638D4003F4A66 /* Frameworks */, DE4BCB61161638D4003F4A66 /* Resources */, 3EA62ECB1D877A5A00E5845A /* Embed App Extensions */, + 3A713F87D8DB2B63D1F9B177 /* [CP] Embed Pods Frameworks */, + 0DDC4A7C9FEDBAD0394075C6 /* [CP] Copy Pods Resources */, ); buildRules = ( ); dependencies = ( 916B37171E6F520E00CEE4AA /* PBXTargetDependency */, ); - name = OneSignalExample; + name = OneSignalDemo; productName = "push-notifications"; - productReference = DE4BCB63161638D4003F4A66 /* OneSignalExample.app */; + productReference = DE4BCB63161638D4003F4A66 /* OneSignalDemo.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -212,7 +213,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0800; - LastUpgradeCheck = 0800; + LastUpgradeCheck = 0820; ORGANIZATIONNAME = OneSignal; TargetAttributes = { 916B370F1E6F520D00CEE4AA = { @@ -234,7 +235,7 @@ }; }; }; - buildConfigurationList = DE4BCB5D161638D4003F4A66 /* Build configuration list for PBXProject "OneSignalExample" */; + buildConfigurationList = DE4BCB5D161638D4003F4A66 /* Build configuration list for PBXProject "OneSignalDemo" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; @@ -247,7 +248,7 @@ projectDirPath = ""; projectRoot = ""; targets = ( - DE4BCB62161638D4003F4A66 /* OneSignalExample */, + DE4BCB62161638D4003F4A66 /* OneSignalDemo */, 916B370F1E6F520D00CEE4AA /* NotificationServiceExtension */, ); }; @@ -266,15 +267,93 @@ buildActionMask = 2147483647; files = ( 373D19151ACCC60F00BBAB2E /* AppIcon.xcassets in Resources */, - DE4BCB72161638D4003F4A66 /* InfoPlist.strings in Resources */, + 91C3CFCB1E725E2B00D9EA80 /* MainStoryboard.storyboard in Resources */, + 91C3CFCA1E725E2B00D9EA80 /* InfoPlist.strings in Resources */, 37D0A46A192B077E009DC9F4 /* notification.wav in Resources */, - DE4BCB7B161638D4003F4A66 /* MainStoryboard.storyboard in Resources */, - DEE5C41C162F34490024001B /* Default-568h@2x.png in Resources */, + 91C3CFC91E725E2B00D9EA80 /* Default-568h@2x.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 0DDC4A7C9FEDBAD0394075C6 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-OneSignalDemo/Pods-OneSignalDemo-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 3A713F87D8DB2B63D1F9B177 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-OneSignalDemo/Pods-OneSignalDemo-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 7A59FCE6645C295E1D1E497D /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; + B6FE2DEB3B7911DA542111D2 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; + EE781DE378D91960D86CE6A9 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-NotificationServiceExtension/Pods-NotificationServiceExtension-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ 916B370C1E6F520D00CEE4AA /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -288,9 +367,9 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - DE4BCB74161638D4003F4A66 /* main.m in Sources */, - DE4BCB78161638D4003F4A66 /* AppDelegate.m in Sources */, - DE4BCB7E161638D4003F4A66 /* ViewController.m in Sources */, + 91C3CFCE1E725E2B00D9EA80 /* ViewController.m in Sources */, + 91C3CFCC1E725E2B00D9EA80 /* main.m in Sources */, + 91C3CFC81E725E2B00D9EA80 /* AppDelegate.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -305,18 +384,18 @@ /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ - DE4BCB70161638D4003F4A66 /* InfoPlist.strings */ = { + 91C3CFBF1E725E2B00D9EA80 /* InfoPlist.strings */ = { isa = PBXVariantGroup; children = ( - DE4BCB71161638D4003F4A66 /* en */, + 91C3CFC01E725E2B00D9EA80 /* en */, ); name = InfoPlist.strings; sourceTree = ""; }; - DE4BCB79161638D4003F4A66 /* MainStoryboard.storyboard */ = { + 91C3CFC11E725E2B00D9EA80 /* MainStoryboard.storyboard */ = { isa = PBXVariantGroup; children = ( - DE4BCB7A161638D4003F4A66 /* en */, + 91C3CFC21E725E2B00D9EA80 /* en */, ); name = MainStoryboard.storyboard; sourceTree = ""; @@ -326,6 +405,7 @@ /* Begin XCBuildConfiguration section */ 916B37191E6F520E00CEE4AA /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 7C47C28881420FCA6FD6BC74 /* Pods-NotificationServiceExtension.debug.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LIBRARY = "libc++"; @@ -353,6 +433,7 @@ }; 916B371A1E6F520E00CEE4AA /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 6BC4E632603B2DE8FD01512E /* Pods-NotificationServiceExtension.release.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LIBRARY = "libc++"; @@ -390,16 +471,14 @@ CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "\"$(SRCROOT)/../iOS_SDK/Framework\"/**", - ); GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; @@ -416,10 +495,8 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "\"$(SRCROOT)/../iOS_SDK/Framework\"/**"; IPHONEOS_DEPLOYMENT_TARGET = 8.0; ONLY_ACTIVE_ARCH = YES; - OTHER_LDFLAGS = "-ObjC"; SDKROOT = iphoneos; VALID_ARCHS = "armv7 armv7s arm64 i386"; }; @@ -435,15 +512,13 @@ CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "\"$(SRCROOT)/../iOS_SDK/Framework\"/**", - ); GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; @@ -453,10 +528,8 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "\"$(SRCROOT)/../iOS_SDK/Framework\"/**"; IPHONEOS_DEPLOYMENT_TARGET = 8.0; OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; - OTHER_LDFLAGS = "-ObjC"; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; VALID_ARCHS = "armv7 armv7s arm64 i386"; @@ -465,24 +538,19 @@ }; DE4BCB82161638D4003F4A66 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 3FBEFBEFB38722072334EE0E /* Pods-OneSignalDemo.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = OneSignalExample.entitlements; + CODE_SIGN_ENTITLEMENTS = OneSignalDemo/OneSignalDemo.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; DEVELOPMENT_TEAM = 99SW8E36CT; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "\"$(SRCROOT)/../iOS_SDK/Framework\"/**", - ); GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "push-notifications/OneSignalExample-Prefix.pch"; - HEADER_SEARCH_PATHS = "\"$(SRCROOT)/../iOS_SDK/Framework\"/**"; - INFOPLIST_FILE = "push-notifications/OneSignalExample-Info.plist"; + GCC_PREFIX_HEADER = "OneSignalDemo/OneSignalDemo-Prefix.pch"; + INFOPLIST_FILE = "$(SRCROOT)/OneSignalDemo/OneSignalDemo-Info.plist"; LIBRARY_SEARCH_PATHS = "$(inherited)"; - OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example; - PRODUCT_NAME = OneSignalExample; + PRODUCT_NAME = OneSignalDemo; PROVISIONING_PROFILE = ""; WRAPPER_EXTENSION = app; }; @@ -490,24 +558,19 @@ }; DE4BCB83161638D4003F4A66 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 803357615A11B247404C7A8B /* Pods-OneSignalDemo.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = OneSignalExample.entitlements; + CODE_SIGN_ENTITLEMENTS = OneSignalDemo/OneSignalDemo.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; DEVELOPMENT_TEAM = 99SW8E36CT; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "\"$(SRCROOT)/../iOS_SDK/Framework\"/**", - ); GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "push-notifications/OneSignalExample-Prefix.pch"; - HEADER_SEARCH_PATHS = "\"$(SRCROOT)/../iOS_SDK/Framework\"/**"; - INFOPLIST_FILE = "push-notifications/OneSignalExample-Info.plist"; + GCC_PREFIX_HEADER = "OneSignalDemo/OneSignalDemo-Prefix.pch"; + INFOPLIST_FILE = "$(SRCROOT)/OneSignalDemo/OneSignalDemo-Info.plist"; LIBRARY_SEARCH_PATHS = "$(inherited)"; - OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example; - PRODUCT_NAME = OneSignalExample; + PRODUCT_NAME = OneSignalDemo; PROVISIONING_PROFILE = ""; WRAPPER_EXTENSION = app; }; @@ -525,7 +588,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - DE4BCB5D161638D4003F4A66 /* Build configuration list for PBXProject "OneSignalExample" */ = { + DE4BCB5D161638D4003F4A66 /* Build configuration list for PBXProject "OneSignalDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( DE4BCB7F161638D4003F4A66 /* Debug */, @@ -534,7 +597,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - DE4BCB81161638D4003F4A66 /* Build configuration list for PBXNativeTarget "OneSignalExample" */ = { + DE4BCB81161638D4003F4A66 /* Build configuration list for PBXNativeTarget "OneSignalDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( DE4BCB82161638D4003F4A66 /* Debug */, diff --git a/OneSignalExample/push-notifications/AppDelegate.h b/Examples/ObjectiveCExample/OneSignalDemo/AppDelegate.h similarity index 100% rename from OneSignalExample/push-notifications/AppDelegate.h rename to Examples/ObjectiveCExample/OneSignalDemo/AppDelegate.h diff --git a/OneSignalExample/push-notifications/AppDelegate.m b/Examples/ObjectiveCExample/OneSignalDemo/AppDelegate.m similarity index 100% rename from OneSignalExample/push-notifications/AppDelegate.m rename to Examples/ObjectiveCExample/OneSignalDemo/AppDelegate.m diff --git a/OneSignalExample/push-notifications/Default-568h@2x.png b/Examples/ObjectiveCExample/OneSignalDemo/Default-568h@2x.png similarity index 100% rename from OneSignalExample/push-notifications/Default-568h@2x.png rename to Examples/ObjectiveCExample/OneSignalDemo/Default-568h@2x.png diff --git a/OneSignalExample/push-notifications/OneSignalExample-Info.plist b/Examples/ObjectiveCExample/OneSignalDemo/OneSignalDemo-Info.plist similarity index 100% rename from OneSignalExample/push-notifications/OneSignalExample-Info.plist rename to Examples/ObjectiveCExample/OneSignalDemo/OneSignalDemo-Info.plist diff --git a/OneSignalExample/push-notifications/OneSignalExample-Prefix.pch b/Examples/ObjectiveCExample/OneSignalDemo/OneSignalDemo-Prefix.pch similarity index 100% rename from OneSignalExample/push-notifications/OneSignalExample-Prefix.pch rename to Examples/ObjectiveCExample/OneSignalDemo/OneSignalDemo-Prefix.pch diff --git a/OneSignalExample/OneSignalExample.entitlements b/Examples/ObjectiveCExample/OneSignalDemo/OneSignalDemo.entitlements similarity index 100% rename from OneSignalExample/OneSignalExample.entitlements rename to Examples/ObjectiveCExample/OneSignalDemo/OneSignalDemo.entitlements diff --git a/OneSignalExample/push-notifications/ViewController.h b/Examples/ObjectiveCExample/OneSignalDemo/ViewController.h similarity index 100% rename from OneSignalExample/push-notifications/ViewController.h rename to Examples/ObjectiveCExample/OneSignalDemo/ViewController.h diff --git a/OneSignalExample/push-notifications/ViewController.m b/Examples/ObjectiveCExample/OneSignalDemo/ViewController.m similarity index 100% rename from OneSignalExample/push-notifications/ViewController.m rename to Examples/ObjectiveCExample/OneSignalDemo/ViewController.m diff --git a/OneSignalExample/push-notifications/en.lproj/InfoPlist.strings b/Examples/ObjectiveCExample/OneSignalDemo/en.lproj/InfoPlist.strings similarity index 100% rename from OneSignalExample/push-notifications/en.lproj/InfoPlist.strings rename to Examples/ObjectiveCExample/OneSignalDemo/en.lproj/InfoPlist.strings diff --git a/OneSignalExample/push-notifications/en.lproj/MainStoryboard.storyboard b/Examples/ObjectiveCExample/OneSignalDemo/en.lproj/MainStoryboard.storyboard similarity index 100% rename from OneSignalExample/push-notifications/en.lproj/MainStoryboard.storyboard rename to Examples/ObjectiveCExample/OneSignalDemo/en.lproj/MainStoryboard.storyboard diff --git a/OneSignalExample/push-notifications/main.m b/Examples/ObjectiveCExample/OneSignalDemo/main.m similarity index 98% rename from OneSignalExample/push-notifications/main.m rename to Examples/ObjectiveCExample/OneSignalDemo/main.m index 543e94766..0699a537f 100755 --- a/OneSignalExample/push-notifications/main.m +++ b/Examples/ObjectiveCExample/OneSignalDemo/main.m @@ -1,7 +1,7 @@ /** * Modified MIT License * - * Copyright 2015 OneSignal + * Copyright 2017 OneSignal * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/Examples/ObjectiveCExample/Podfile b/Examples/ObjectiveCExample/Podfile new file mode 100644 index 000000000..77bd08acf --- /dev/null +++ b/Examples/ObjectiveCExample/Podfile @@ -0,0 +1,7 @@ +target 'OneSignalDemo' do + pod 'OneSignal', '~> 2.0' +end + +target 'NotificationServiceExtension' do + pod 'OneSignal', '~> 2.0' +end diff --git a/OneSignalExample/notification.wav b/Examples/ObjectiveCExample/notification.wav similarity index 100% rename from OneSignalExample/notification.wav rename to Examples/ObjectiveCExample/notification.wav diff --git a/Examples/README.md b/Examples/README.md new file mode 100644 index 000000000..0830b0ce0 --- /dev/null +++ b/Examples/README.md @@ -0,0 +1,9 @@ +### Running Example projects. +1. Open `ObjectiveCExample` or `SwiftExample` in your terminal. +2. Run `sudo gem install cocoapods` to install Cocoapods. +3. Run `pod repo update` to make sure you get the latest OneSignal version. +4. Run `pod install` +5. Open `OneSignalDemo.xcworkspace` +6. Under General in Xcode Change the Bundle identifier to yours. +7. Also change your Team under signing below this. +8. Open `AppDelegate` and change the `appId` passed to OneSignal initWithLaunchOptions to yours. \ No newline at end of file diff --git a/Examples/SwiftExample/OneSignalDemo.xcodeproj/project.pbxproj b/Examples/SwiftExample/OneSignalDemo.xcodeproj/project.pbxproj new file mode 100644 index 000000000..f3b28a12b --- /dev/null +++ b/Examples/SwiftExample/OneSignalDemo.xcodeproj/project.pbxproj @@ -0,0 +1,574 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 0BFA9580A5738FE71877AB42 /* libPods-OneSignalNotificationServiceExtension.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D32C4978E51F05AA82FC597 /* libPods-OneSignalNotificationServiceExtension.a */; }; + 378310DE5E74831CBC5C833C /* Pods_OneSignalDemo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6DE881DDE387B7869A75E56A /* Pods_OneSignalDemo.framework */; }; + 3E20C84D1D8787B6004ACDEA /* UserNotifications.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EA62EFB1D877EF200E5845A /* UserNotifications.framework */; }; + 9112E8B01E725C1E0022A1CB /* NotificationService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9112E8AF1E725C1E0022A1CB /* NotificationService.swift */; }; + 9112E8B41E725C1E0022A1CB /* OneSignalNotificationServiceExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 9112E8AD1E725C1E0022A1CB /* OneSignalNotificationServiceExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 91C3CFD91E7266F600D9EA80 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91C3CFD11E7266F600D9EA80 /* AppDelegate.swift */; }; + 91C3CFDA1E7266F600D9EA80 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 91C3CFD21E7266F600D9EA80 /* Assets.xcassets */; }; + 91C3CFDB1E7266F600D9EA80 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 91C3CFD31E7266F600D9EA80 /* LaunchScreen.storyboard */; }; + 91C3CFDC1E7266F600D9EA80 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 91C3CFD51E7266F600D9EA80 /* Main.storyboard */; }; + 91C3CFDD1E7266F600D9EA80 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 91C3CFD71E7266F600D9EA80 /* Info.plist */; }; + 91C3CFDE1E7266F600D9EA80 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91C3CFD81E7266F600D9EA80 /* ViewController.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 9112E8B21E725C1E0022A1CB /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 91E4D5051C7521DE00025BA8 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 9112E8AC1E725C1E0022A1CB; + remoteInfo = OneSignalNotificationServiceExtension; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 3EA62F0D1D877EF200E5845A /* Embed App Extensions */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 13; + files = ( + 9112E8B41E725C1E0022A1CB /* OneSignalNotificationServiceExtension.appex in Embed App Extensions */, + ); + name = "Embed App Extensions"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 2F2B914C976A118DAE4F0182 /* Pods-OneSignalDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OneSignalDemo.release.xcconfig"; path = "Pods/Target Support Files/Pods-OneSignalDemo/Pods-OneSignalDemo.release.xcconfig"; sourceTree = ""; }; + 3EA62EFB1D877EF200E5845A /* UserNotifications.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotifications.framework; path = System/Library/Frameworks/UserNotifications.framework; sourceTree = SDKROOT; }; + 6DE881DDE387B7869A75E56A /* Pods_OneSignalDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OneSignalDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 7D32C4978E51F05AA82FC597 /* libPods-OneSignalNotificationServiceExtension.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-OneSignalNotificationServiceExtension.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 9112E8AD1E725C1E0022A1CB /* OneSignalNotificationServiceExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = OneSignalNotificationServiceExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; + 9112E8AF1E725C1E0022A1CB /* NotificationService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationService.swift; sourceTree = ""; }; + 9112E8B11E725C1E0022A1CB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 91C3CFD11E7266F600D9EA80 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 91C3CFD21E7266F600D9EA80 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 91C3CFD41E7266F600D9EA80 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 91C3CFD61E7266F600D9EA80 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 91C3CFD71E7266F600D9EA80 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 91C3CFD81E7266F600D9EA80 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 91E4D50D1C7521DE00025BA8 /* OneSignalDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OneSignalDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; + C4E3EDAB2FA367616C26AB60 /* Pods-OneSignalNotificationServiceExtension.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OneSignalNotificationServiceExtension.release.xcconfig"; path = "Pods/Target Support Files/Pods-OneSignalNotificationServiceExtension/Pods-OneSignalNotificationServiceExtension.release.xcconfig"; sourceTree = ""; }; + F7D037F3EC51FAA8D3FEE517 /* Pods-OneSignalNotificationServiceExtension.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OneSignalNotificationServiceExtension.debug.xcconfig"; path = "Pods/Target Support Files/Pods-OneSignalNotificationServiceExtension/Pods-OneSignalNotificationServiceExtension.debug.xcconfig"; sourceTree = ""; }; + FBF7B1679DAECB1F8823DFA8 /* Pods-OneSignalDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OneSignalDemo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-OneSignalDemo/Pods-OneSignalDemo.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 9112E8AA1E725C1E0022A1CB /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0BFA9580A5738FE71877AB42 /* libPods-OneSignalNotificationServiceExtension.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 91E4D50A1C7521DE00025BA8 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3E20C84D1D8787B6004ACDEA /* UserNotifications.framework in Frameworks */, + 378310DE5E74831CBC5C833C /* Pods_OneSignalDemo.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 1CDBE35165AA78DDCBF76F6E /* Pods */ = { + isa = PBXGroup; + children = ( + FBF7B1679DAECB1F8823DFA8 /* Pods-OneSignalDemo.debug.xcconfig */, + 2F2B914C976A118DAE4F0182 /* Pods-OneSignalDemo.release.xcconfig */, + F7D037F3EC51FAA8D3FEE517 /* Pods-OneSignalNotificationServiceExtension.debug.xcconfig */, + C4E3EDAB2FA367616C26AB60 /* Pods-OneSignalNotificationServiceExtension.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + 3EA62EFA1D877EF200E5845A /* Frameworks */ = { + isa = PBXGroup; + children = ( + 3EA62EFB1D877EF200E5845A /* UserNotifications.framework */, + 6DE881DDE387B7869A75E56A /* Pods_OneSignalDemo.framework */, + 7D32C4978E51F05AA82FC597 /* libPods-OneSignalNotificationServiceExtension.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 9112E8AE1E725C1E0022A1CB /* OneSignalNotificationServiceExtension */ = { + isa = PBXGroup; + children = ( + 9112E8AF1E725C1E0022A1CB /* NotificationService.swift */, + 9112E8B11E725C1E0022A1CB /* Info.plist */, + ); + path = OneSignalNotificationServiceExtension; + sourceTree = ""; + }; + 91C3CFD01E7266F600D9EA80 /* OneSignalDemo */ = { + isa = PBXGroup; + children = ( + 91C3CFD11E7266F600D9EA80 /* AppDelegate.swift */, + 91C3CFD21E7266F600D9EA80 /* Assets.xcassets */, + 91C3CFD31E7266F600D9EA80 /* LaunchScreen.storyboard */, + 91C3CFD51E7266F600D9EA80 /* Main.storyboard */, + 91C3CFD71E7266F600D9EA80 /* Info.plist */, + 91C3CFD81E7266F600D9EA80 /* ViewController.swift */, + ); + path = OneSignalDemo; + sourceTree = ""; + }; + 91E4D5041C7521DE00025BA8 = { + isa = PBXGroup; + children = ( + 91C3CFD01E7266F600D9EA80 /* OneSignalDemo */, + 9112E8AE1E725C1E0022A1CB /* OneSignalNotificationServiceExtension */, + 3EA62EFA1D877EF200E5845A /* Frameworks */, + 91E4D50E1C7521DE00025BA8 /* Products */, + 1CDBE35165AA78DDCBF76F6E /* Pods */, + ); + sourceTree = ""; + }; + 91E4D50E1C7521DE00025BA8 /* Products */ = { + isa = PBXGroup; + children = ( + 91E4D50D1C7521DE00025BA8 /* OneSignalDemo.app */, + 9112E8AD1E725C1E0022A1CB /* OneSignalNotificationServiceExtension.appex */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 9112E8AC1E725C1E0022A1CB /* OneSignalNotificationServiceExtension */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9112E8B51E725C1E0022A1CB /* Build configuration list for PBXNativeTarget "OneSignalNotificationServiceExtension" */; + buildPhases = ( + E209D13BE75543C6A57007B7 /* [CP] Check Pods Manifest.lock */, + 9112E8A91E725C1E0022A1CB /* Sources */, + 9112E8AA1E725C1E0022A1CB /* Frameworks */, + 9112E8AB1E725C1E0022A1CB /* Resources */, + F081337AC0967A1DFB1C1C9D /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = OneSignalNotificationServiceExtension; + productName = OneSignalNotificationServiceExtension; + productReference = 9112E8AD1E725C1E0022A1CB /* OneSignalNotificationServiceExtension.appex */; + productType = "com.apple.product-type.app-extension"; + }; + 91E4D50C1C7521DE00025BA8 /* OneSignalDemo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 91E4D51F1C7521DE00025BA8 /* Build configuration list for PBXNativeTarget "OneSignalDemo" */; + buildPhases = ( + 17B45ED1BAC691537C835200 /* [CP] Check Pods Manifest.lock */, + 91E4D5091C7521DE00025BA8 /* Sources */, + 91E4D50A1C7521DE00025BA8 /* Frameworks */, + 91E4D50B1C7521DE00025BA8 /* Resources */, + 3EA62F0D1D877EF200E5845A /* Embed App Extensions */, + 6F0A94118DCF1271C41EE7C2 /* [CP] Embed Pods Frameworks */, + C4FCDCA7A32106905E7C6B2D /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + 9112E8B31E725C1E0022A1CB /* PBXTargetDependency */, + ); + name = OneSignalDemo; + productName = OneSignalSwiftExample; + productReference = 91E4D50D1C7521DE00025BA8 /* OneSignalDemo.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 91E4D5051C7521DE00025BA8 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0820; + LastUpgradeCheck = 0720; + ORGANIZATIONNAME = OneSignal; + TargetAttributes = { + 9112E8AC1E725C1E0022A1CB = { + CreatedOnToolsVersion = 8.2.1; + DevelopmentTeam = 99SW8E36CT; + ProvisioningStyle = Automatic; + }; + 91E4D50C1C7521DE00025BA8 = { + CreatedOnToolsVersion = 7.2; + DevelopmentTeam = 99SW8E36CT; + LastSwiftMigration = 0800; + SystemCapabilities = { + com.apple.BackgroundModes = { + enabled = 1; + }; + }; + }; + }; + }; + buildConfigurationList = 91E4D5081C7521DE00025BA8 /* Build configuration list for PBXProject "OneSignalDemo" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 91E4D5041C7521DE00025BA8; + productRefGroup = 91E4D50E1C7521DE00025BA8 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 91E4D50C1C7521DE00025BA8 /* OneSignalDemo */, + 9112E8AC1E725C1E0022A1CB /* OneSignalNotificationServiceExtension */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 9112E8AB1E725C1E0022A1CB /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 91E4D50B1C7521DE00025BA8 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 91C3CFDD1E7266F600D9EA80 /* Info.plist in Resources */, + 91C3CFDC1E7266F600D9EA80 /* Main.storyboard in Resources */, + 91C3CFDA1E7266F600D9EA80 /* Assets.xcassets in Resources */, + 91C3CFDB1E7266F600D9EA80 /* LaunchScreen.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 17B45ED1BAC691537C835200 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; + 6F0A94118DCF1271C41EE7C2 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-OneSignalDemo/Pods-OneSignalDemo-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + C4FCDCA7A32106905E7C6B2D /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-OneSignalDemo/Pods-OneSignalDemo-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + E209D13BE75543C6A57007B7 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; + F081337AC0967A1DFB1C1C9D /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-OneSignalNotificationServiceExtension/Pods-OneSignalNotificationServiceExtension-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 9112E8A91E725C1E0022A1CB /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9112E8B01E725C1E0022A1CB /* NotificationService.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 91E4D5091C7521DE00025BA8 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 91C3CFDE1E7266F600D9EA80 /* ViewController.swift in Sources */, + 91C3CFD91E7266F600D9EA80 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 9112E8B31E725C1E0022A1CB /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 9112E8AC1E725C1E0022A1CB /* OneSignalNotificationServiceExtension */; + targetProxy = 9112E8B21E725C1E0022A1CB /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 91C3CFD31E7266F600D9EA80 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 91C3CFD41E7266F600D9EA80 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; + 91C3CFD51E7266F600D9EA80 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 91C3CFD61E7266F600D9EA80 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 9112E8B61E725C1E0022A1CB /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = F7D037F3EC51FAA8D3FEE517 /* Pods-OneSignalNotificationServiceExtension.debug.xcconfig */; + buildSettings = { + CLANG_ANALYZER_NONNULL = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + DEVELOPMENT_TEAM = 99SW8E36CT; + INFOPLIST_FILE = OneSignalNotificationServiceExtension/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 10.2; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example.OneSignalNotificationServiceExtension; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_VERSION = 3.0; + }; + name = Debug; + }; + 9112E8B71E725C1E0022A1CB /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = C4E3EDAB2FA367616C26AB60 /* Pods-OneSignalNotificationServiceExtension.release.xcconfig */; + buildSettings = { + CLANG_ANALYZER_NONNULL = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + DEVELOPMENT_TEAM = 99SW8E36CT; + INFOPLIST_FILE = OneSignalNotificationServiceExtension/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 10.2; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example.OneSignalNotificationServiceExtension; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 3.0; + }; + name = Release; + }; + 91E4D51D1C7521DE00025BA8 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 91E4D51E1C7521DE00025BA8 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 91E4D5201C7521DE00025BA8 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FBF7B1679DAECB1F8823DFA8 /* Pods-OneSignalDemo.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = 99SW8E36CT; + INFOPLIST_FILE = "$(SRCROOT)/OneSignalDemo/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = ""; + SWIFT_VERSION = 3.0; + }; + name = Debug; + }; + 91E4D5211C7521DE00025BA8 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2F2B914C976A118DAE4F0182 /* Pods-OneSignalDemo.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = 99SW8E36CT; + INFOPLIST_FILE = "$(SRCROOT)/OneSignalDemo/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = ""; + SWIFT_VERSION = 3.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 9112E8B51E725C1E0022A1CB /* Build configuration list for PBXNativeTarget "OneSignalNotificationServiceExtension" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9112E8B61E725C1E0022A1CB /* Debug */, + 9112E8B71E725C1E0022A1CB /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 91E4D5081C7521DE00025BA8 /* Build configuration list for PBXProject "OneSignalDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 91E4D51D1C7521DE00025BA8 /* Debug */, + 91E4D51E1C7521DE00025BA8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 91E4D51F1C7521DE00025BA8 /* Build configuration list for PBXNativeTarget "OneSignalDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 91E4D5201C7521DE00025BA8 /* Debug */, + 91E4D5211C7521DE00025BA8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 91E4D5051C7521DE00025BA8 /* Project object */; +} diff --git a/Examples/SwiftExample/OneSignalDemo.xcodeproj/xcshareddata/xcschemes/OneSignalDemo.xcscheme b/Examples/SwiftExample/OneSignalDemo.xcodeproj/xcshareddata/xcschemes/OneSignalDemo.xcscheme new file mode 100644 index 000000000..7f8ee060b --- /dev/null +++ b/Examples/SwiftExample/OneSignalDemo.xcodeproj/xcshareddata/xcschemes/OneSignalDemo.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Examples/SwiftExample/OneSignalDemo.xcodeproj/xcshareddata/xcschemes/OneSignalNotificationServiceExtension.xcscheme b/Examples/SwiftExample/OneSignalDemo.xcodeproj/xcshareddata/xcschemes/OneSignalNotificationServiceExtension.xcscheme new file mode 100644 index 000000000..f05b7002b --- /dev/null +++ b/Examples/SwiftExample/OneSignalDemo.xcodeproj/xcshareddata/xcschemes/OneSignalNotificationServiceExtension.xcscheme @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OneSignalSwiftExample/OneSignalSwiftExample/AppDelegate.swift b/Examples/SwiftExample/OneSignalDemo/AppDelegate.swift similarity index 69% rename from OneSignalSwiftExample/OneSignalSwiftExample/AppDelegate.swift rename to Examples/SwiftExample/OneSignalDemo/AppDelegate.swift index 4a6b3b0a5..c26a4900c 100644 --- a/OneSignalSwiftExample/OneSignalSwiftExample/AppDelegate.swift +++ b/Examples/SwiftExample/OneSignalDemo/AppDelegate.swift @@ -55,26 +55,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate { }, settings: [kOSSettingsKeyAutoPrompt : true, kOSSettingsKeyInFocusDisplayOption : OSNotificationDisplayType.notification.rawValue]) - OneSignal.idsAvailable({ (userId, pushToken) in - print("UserId:%@", userId); - if (pushToken != nil) { - NSLog("Sending Test Noification to this device now"); - OneSignal.postNotification(["contents": ["en": "Test Message"], "include_player_ids": [userId]]); - } - }); - - - // iOS 10 ONLY - Add category for the OSContentExtension - // Make sure to add UserNotifications framework in the Linked Frameworks & Libraries. - if #available(iOS 10.0, *) { - UNUserNotificationCenter.current().getNotificationCategories { (categories) in - let myAction = UNNotificationAction(identifier: "action0", title: "Hit Me!", options: .foreground) - let myCategory = UNNotificationCategory(identifier: "myOSContentCategory", actions: [myAction], intentIdentifiers: [], options: .customDismissAction) - let mySet = NSSet(array: [myCategory]).addingObjects(from: categories) as! Set - UNUserNotificationCenter.current().setNotificationCategories(mySet) - } - } - return true } } diff --git a/OneSignalSwiftExample/OneSignalSwiftExample/Assets.xcassets/AppIcon.appiconset/Contents.json b/Examples/SwiftExample/OneSignalDemo/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from OneSignalSwiftExample/OneSignalSwiftExample/Assets.xcassets/AppIcon.appiconset/Contents.json rename to Examples/SwiftExample/OneSignalDemo/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/OneSignalSwiftExample/OneSignalSwiftExample/Base.lproj/LaunchScreen.storyboard b/Examples/SwiftExample/OneSignalDemo/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from OneSignalSwiftExample/OneSignalSwiftExample/Base.lproj/LaunchScreen.storyboard rename to Examples/SwiftExample/OneSignalDemo/Base.lproj/LaunchScreen.storyboard diff --git a/OneSignalSwiftExample/OneSignalSwiftExample/Base.lproj/Main.storyboard b/Examples/SwiftExample/OneSignalDemo/Base.lproj/Main.storyboard similarity index 100% rename from OneSignalSwiftExample/OneSignalSwiftExample/Base.lproj/Main.storyboard rename to Examples/SwiftExample/OneSignalDemo/Base.lproj/Main.storyboard diff --git a/OneSignalSwiftExample/OneSignalSwiftExample/Info.plist b/Examples/SwiftExample/OneSignalDemo/Info.plist similarity index 100% rename from OneSignalSwiftExample/OneSignalSwiftExample/Info.plist rename to Examples/SwiftExample/OneSignalDemo/Info.plist diff --git a/OneSignalSwiftExample/OneSignalSwiftExample/ViewController.swift b/Examples/SwiftExample/OneSignalDemo/ViewController.swift similarity index 100% rename from OneSignalSwiftExample/OneSignalSwiftExample/ViewController.swift rename to Examples/SwiftExample/OneSignalDemo/ViewController.swift diff --git a/OneSignalSwiftExample/OSServiceExtension/Info.plist b/Examples/SwiftExample/OneSignalNotificationServiceExtension/Info.plist similarity index 94% rename from OneSignalSwiftExample/OSServiceExtension/Info.plist rename to Examples/SwiftExample/OneSignalNotificationServiceExtension/Info.plist index 8fe208a3d..a3212be29 100644 --- a/OneSignalSwiftExample/OSServiceExtension/Info.plist +++ b/Examples/SwiftExample/OneSignalNotificationServiceExtension/Info.plist @@ -5,7 +5,7 @@ CFBundleDevelopmentRegion en CFBundleDisplayName - OSServiceExtension + OneSignalNotificationServiceExtension CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier diff --git a/OneSignalSwiftExample/OSServiceExtension/NotificationService.swift b/Examples/SwiftExample/OneSignalNotificationServiceExtension/NotificationService.swift similarity index 84% rename from OneSignalSwiftExample/OSServiceExtension/NotificationService.swift rename to Examples/SwiftExample/OneSignalNotificationServiceExtension/NotificationService.swift index 67e71ece3..1a7ccf410 100644 --- a/OneSignalSwiftExample/OSServiceExtension/NotificationService.swift +++ b/Examples/SwiftExample/OneSignalNotificationServiceExtension/NotificationService.swift @@ -1,9 +1,9 @@ // // NotificationService.swift -// OSServiceExtension +// OneSignalNotificationServiceExtension // -// Created by Joseph Kalash on 9/12/16. -// Copyright © 2016 OneSignal. All rights reserved. +// Created by Kasten on 3/9/17. +// Copyright © 2017 OneSignal. All rights reserved. // import UserNotifications @@ -19,7 +19,7 @@ class NotificationService: UNNotificationServiceExtension { if let bestAttemptContent = bestAttemptContent { // Modify the notification content here... - bestAttemptContent.title = "[Modified By OneSignal] - \(bestAttemptContent.title)" + bestAttemptContent.title = "\(bestAttemptContent.title) [modified]" contentHandler(bestAttemptContent) } diff --git a/Examples/SwiftExample/Podfile b/Examples/SwiftExample/Podfile new file mode 100644 index 000000000..37a735568 --- /dev/null +++ b/Examples/SwiftExample/Podfile @@ -0,0 +1,8 @@ +target 'OneSignalDemo' do + use_frameworks! + pod 'OneSignal', '~> 2.0' +end + +target 'OneSignalNotificationServiceExtension' do + pod 'OneSignal', '~> 2.0' +end diff --git a/OneSignal.podspec b/OneSignal.podspec index bc390ecbf..913227cf9 100755 --- a/OneSignal.podspec +++ b/OneSignal.podspec @@ -11,6 +11,6 @@ Pod::Spec.new do |s| s.platform = :ios s.requires_arc = true - s.ios.vendored_frameworks = 'iOS_SDK/Framework/OneSignal.framework' + s.ios.vendored_frameworks = 'iOS_SDK/OneSignalSDK/Framework/OneSignal.framework' s.framework = 'SystemConfiguration', 'UIKit' end diff --git a/OneSignalExample/OneSignalExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/OneSignalExample/OneSignalExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index c425475b0..000000000 --- a/OneSignalExample/OneSignalExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/OneSignalExample/OneSignalExample.xcodeproj/project.xcworkspace/xcshareddata/OneSignalExample.xccheckout b/OneSignalExample/OneSignalExample.xcodeproj/project.xcworkspace/xcshareddata/OneSignalExample.xccheckout deleted file mode 100644 index 2b020dbe2..000000000 --- a/OneSignalExample/OneSignalExample.xcodeproj/project.xcworkspace/xcshareddata/OneSignalExample.xccheckout +++ /dev/null @@ -1,41 +0,0 @@ - - - - - IDESourceControlProjectFavoriteDictionaryKey - - IDESourceControlProjectIdentifier - 66DE8BA1-FBD0-48F4-9A90-4C559C222F8E - IDESourceControlProjectName - OneSignalExample - IDESourceControlProjectOriginsDictionary - - 5A4AFF41A71B5F8D4741699EC46766398BC4FE44 - https://github.com/Hiptic/GameThrive - - IDESourceControlProjectPath - SDK/iOS/OneSignalExample/OneSignalExample.xcodeproj - IDESourceControlProjectRelativeInstallPathDictionary - - 5A4AFF41A71B5F8D4741699EC46766398BC4FE44 - ../../../../.. - - IDESourceControlProjectURL - https://github.com/Hiptic/GameThrive - IDESourceControlProjectVersion - 111 - IDESourceControlProjectWCCIdentifier - 5A4AFF41A71B5F8D4741699EC46766398BC4FE44 - IDESourceControlProjectWCConfigurations - - - IDESourceControlRepositoryExtensionIdentifierKey - public.vcs.git - IDESourceControlWCCIdentifierKey - 5A4AFF41A71B5F8D4741699EC46766398BC4FE44 - IDESourceControlWCCName - GameThrive - - - - diff --git a/OneSignalSwiftExample/.gitignore b/OneSignalSwiftExample/.gitignore deleted file mode 100644 index c895cc66d..000000000 --- a/OneSignalSwiftExample/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -.DS_Store -build/ -*.pbxuser -!default.pbxuser -*.mode1v3 -!default.mode1v3 -*.mode2v3 -!default.mode2v3 -*.perspectivev3 -!default.perspectivev3 -*.xcworkspace -!default.xcworkspace -xcuserdata -profile -*.moved-aside -DerivedData -.idea/ \ No newline at end of file diff --git a/OneSignalSwiftExample/OSContentExtension/Base.lproj/MainInterface.storyboard b/OneSignalSwiftExample/OSContentExtension/Base.lproj/MainInterface.storyboard deleted file mode 100644 index 4a583e332..000000000 --- a/OneSignalSwiftExample/OSContentExtension/Base.lproj/MainInterface.storyboard +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/OneSignalSwiftExample/OSContentExtension/Info.plist b/OneSignalSwiftExample/OSContentExtension/Info.plist deleted file mode 100644 index 7359ac34b..000000000 --- a/OneSignalSwiftExample/OSContentExtension/Info.plist +++ /dev/null @@ -1,38 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleDisplayName - OSContentExtension - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - XPC! - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - NSExtension - - NSExtensionAttributes - - UNNotificationExtensionCategory - myOSContentCategory - UNNotificationExtensionInitialContentSizeRatio - 1 - - NSExtensionMainStoryboard - MainInterface - NSExtensionPointIdentifier - com.apple.usernotifications.content-extension - - - diff --git a/OneSignalSwiftExample/OSContentExtension/NotificationViewController.swift b/OneSignalSwiftExample/OSContentExtension/NotificationViewController.swift deleted file mode 100644 index fa73600ea..000000000 --- a/OneSignalSwiftExample/OSContentExtension/NotificationViewController.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// NotificationViewController.swift -// OSContentExtension -// -// Created by Joseph Kalash on 9/12/16. -// Copyright © 2016 OneSignal. All rights reserved. -// - -import UIKit -import UserNotifications -import UserNotificationsUI - -class NotificationViewController: UIViewController, UNNotificationContentExtension { - - @IBOutlet var label: UILabel? - - override func viewDidLoad() { - super.viewDidLoad() - // Do any required interface initialization here. - } - - func didReceive(_ notification: UNNotification) { - self.label?.text = notification.request.content.body - } - -} diff --git a/OneSignalSwiftExample/OneSignalSwiftExample.xcodeproj/project.pbxproj b/OneSignalSwiftExample/OneSignalSwiftExample.xcodeproj/project.pbxproj deleted file mode 100644 index 987591cf4..000000000 --- a/OneSignalSwiftExample/OneSignalSwiftExample.xcodeproj/project.pbxproj +++ /dev/null @@ -1,613 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 3E20C84D1D8787B6004ACDEA /* UserNotifications.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EA62EFB1D877EF200E5845A /* UserNotifications.framework */; }; - 3EA62F231D87807F00E5845A /* UserNotifications.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EA62EFB1D877EF200E5845A /* UserNotifications.framework */; }; - 3EA62F241D87807F00E5845A /* UserNotificationsUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EA62EFD1D877EF200E5845A /* UserNotificationsUI.framework */; }; - 3EA62F271D87807F00E5845A /* NotificationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3EA62F261D87807F00E5845A /* NotificationViewController.swift */; }; - 3EA62F2A1D87807F00E5845A /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3EA62F281D87807F00E5845A /* MainInterface.storyboard */; }; - 3EA62F2E1D87807F00E5845A /* OSContentExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 3EA62F221D87807F00E5845A /* OSContentExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - 3EA62F391D8780A800E5845A /* NotificationService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3EA62F381D8780A800E5845A /* NotificationService.swift */; }; - 3EA62F3D1D8780A800E5845A /* OSServiceExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 3EA62F361D8780A800E5845A /* OSServiceExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - 918ECE421C75250300A8358F /* OneSignal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 918ECE411C75250300A8358F /* OneSignal.framework */; }; - 918ECE441C75252700A8358F /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 918ECE431C75252700A8358F /* SystemConfiguration.framework */; }; - 91E4D5111C7521DE00025BA8 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91E4D5101C7521DE00025BA8 /* AppDelegate.swift */; }; - 91E4D5131C7521DE00025BA8 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91E4D5121C7521DE00025BA8 /* ViewController.swift */; }; - 91E4D5161C7521DE00025BA8 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 91E4D5141C7521DE00025BA8 /* Main.storyboard */; }; - 91E4D5181C7521DE00025BA8 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 91E4D5171C7521DE00025BA8 /* Assets.xcassets */; }; - 91E4D51B1C7521DE00025BA8 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 91E4D5191C7521DE00025BA8 /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 3EA62F2C1D87807F00E5845A /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 91E4D5051C7521DE00025BA8 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3EA62F211D87807F00E5845A; - remoteInfo = OSContentExtension; - }; - 3EA62F3B1D8780A800E5845A /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 91E4D5051C7521DE00025BA8 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3EA62F351D8780A800E5845A; - remoteInfo = OSServiceExtension; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 3EA62F0D1D877EF200E5845A /* Embed App Extensions */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 13; - files = ( - 3EA62F3D1D8780A800E5845A /* OSServiceExtension.appex in Embed App Extensions */, - 3EA62F2E1D87807F00E5845A /* OSContentExtension.appex in Embed App Extensions */, - ); - name = "Embed App Extensions"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 3EA62EFB1D877EF200E5845A /* UserNotifications.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotifications.framework; path = System/Library/Frameworks/UserNotifications.framework; sourceTree = SDKROOT; }; - 3EA62EFD1D877EF200E5845A /* UserNotificationsUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotificationsUI.framework; path = System/Library/Frameworks/UserNotificationsUI.framework; sourceTree = SDKROOT; }; - 3EA62F221D87807F00E5845A /* OSContentExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = OSContentExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; - 3EA62F261D87807F00E5845A /* NotificationViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationViewController.swift; sourceTree = ""; }; - 3EA62F291D87807F00E5845A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = ""; }; - 3EA62F2B1D87807F00E5845A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 3EA62F361D8780A800E5845A /* OSServiceExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = OSServiceExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; - 3EA62F381D8780A800E5845A /* NotificationService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationService.swift; sourceTree = ""; }; - 3EA62F3A1D8780A800E5845A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 918ECE411C75250300A8358F /* OneSignal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OneSignal.framework; path = ../iOS_SDK/Framework/OneSignal.framework; sourceTree = ""; }; - 918ECE431C75252700A8358F /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; - 91E4D50D1C7521DE00025BA8 /* OneSignalSwiftExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OneSignalSwiftExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 91E4D5101C7521DE00025BA8 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 91E4D5121C7521DE00025BA8 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 91E4D5151C7521DE00025BA8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 91E4D5171C7521DE00025BA8 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 91E4D51A1C7521DE00025BA8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 91E4D51C1C7521DE00025BA8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 3EA62F1F1D87807F00E5845A /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 3EA62F241D87807F00E5845A /* UserNotificationsUI.framework in Frameworks */, - 3EA62F231D87807F00E5845A /* UserNotifications.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3EA62F331D8780A800E5845A /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 91E4D50A1C7521DE00025BA8 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 3E20C84D1D8787B6004ACDEA /* UserNotifications.framework in Frameworks */, - 918ECE441C75252700A8358F /* SystemConfiguration.framework in Frameworks */, - 918ECE421C75250300A8358F /* OneSignal.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 3EA62EFA1D877EF200E5845A /* Frameworks */ = { - isa = PBXGroup; - children = ( - 3EA62EFB1D877EF200E5845A /* UserNotifications.framework */, - 3EA62EFD1D877EF200E5845A /* UserNotificationsUI.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 3EA62F251D87807F00E5845A /* OSContentExtension */ = { - isa = PBXGroup; - children = ( - 3EA62F261D87807F00E5845A /* NotificationViewController.swift */, - 3EA62F281D87807F00E5845A /* MainInterface.storyboard */, - 3EA62F2B1D87807F00E5845A /* Info.plist */, - ); - path = OSContentExtension; - sourceTree = ""; - }; - 3EA62F371D8780A800E5845A /* OSServiceExtension */ = { - isa = PBXGroup; - children = ( - 3EA62F381D8780A800E5845A /* NotificationService.swift */, - 3EA62F3A1D8780A800E5845A /* Info.plist */, - ); - path = OSServiceExtension; - sourceTree = ""; - }; - 91E4D5041C7521DE00025BA8 = { - isa = PBXGroup; - children = ( - 918ECE431C75252700A8358F /* SystemConfiguration.framework */, - 918ECE411C75250300A8358F /* OneSignal.framework */, - 91E4D50F1C7521DE00025BA8 /* OneSignalSwiftExample */, - 3EA62F251D87807F00E5845A /* OSContentExtension */, - 3EA62F371D8780A800E5845A /* OSServiceExtension */, - 3EA62EFA1D877EF200E5845A /* Frameworks */, - 91E4D50E1C7521DE00025BA8 /* Products */, - ); - sourceTree = ""; - }; - 91E4D50E1C7521DE00025BA8 /* Products */ = { - isa = PBXGroup; - children = ( - 91E4D50D1C7521DE00025BA8 /* OneSignalSwiftExample.app */, - 3EA62F221D87807F00E5845A /* OSContentExtension.appex */, - 3EA62F361D8780A800E5845A /* OSServiceExtension.appex */, - ); - name = Products; - sourceTree = ""; - }; - 91E4D50F1C7521DE00025BA8 /* OneSignalSwiftExample */ = { - isa = PBXGroup; - children = ( - 91E4D5101C7521DE00025BA8 /* AppDelegate.swift */, - 91E4D5121C7521DE00025BA8 /* ViewController.swift */, - 91E4D5141C7521DE00025BA8 /* Main.storyboard */, - 91E4D5171C7521DE00025BA8 /* Assets.xcassets */, - 91E4D5191C7521DE00025BA8 /* LaunchScreen.storyboard */, - 91E4D51C1C7521DE00025BA8 /* Info.plist */, - ); - path = OneSignalSwiftExample; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 3EA62F211D87807F00E5845A /* OSContentExtension */ = { - isa = PBXNativeTarget; - buildConfigurationList = 3EA62F2F1D87807F00E5845A /* Build configuration list for PBXNativeTarget "OSContentExtension" */; - buildPhases = ( - 3EA62F1E1D87807F00E5845A /* Sources */, - 3EA62F1F1D87807F00E5845A /* Frameworks */, - 3EA62F201D87807F00E5845A /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = OSContentExtension; - productName = OSContentExtension; - productReference = 3EA62F221D87807F00E5845A /* OSContentExtension.appex */; - productType = "com.apple.product-type.app-extension"; - }; - 3EA62F351D8780A800E5845A /* OSServiceExtension */ = { - isa = PBXNativeTarget; - buildConfigurationList = 3EA62F3E1D8780A800E5845A /* Build configuration list for PBXNativeTarget "OSServiceExtension" */; - buildPhases = ( - 3EA62F321D8780A800E5845A /* Sources */, - 3EA62F331D8780A800E5845A /* Frameworks */, - 3EA62F341D8780A800E5845A /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = OSServiceExtension; - productName = OSServiceExtension; - productReference = 3EA62F361D8780A800E5845A /* OSServiceExtension.appex */; - productType = "com.apple.product-type.app-extension"; - }; - 91E4D50C1C7521DE00025BA8 /* OneSignalSwiftExample */ = { - isa = PBXNativeTarget; - buildConfigurationList = 91E4D51F1C7521DE00025BA8 /* Build configuration list for PBXNativeTarget "OneSignalSwiftExample" */; - buildPhases = ( - 91E4D5091C7521DE00025BA8 /* Sources */, - 91E4D50A1C7521DE00025BA8 /* Frameworks */, - 91E4D50B1C7521DE00025BA8 /* Resources */, - 3EA62F0D1D877EF200E5845A /* Embed App Extensions */, - ); - buildRules = ( - ); - dependencies = ( - 3EA62F2D1D87807F00E5845A /* PBXTargetDependency */, - 3EA62F3C1D8780A800E5845A /* PBXTargetDependency */, - ); - name = OneSignalSwiftExample; - productName = OneSignalSwiftExample; - productReference = 91E4D50D1C7521DE00025BA8 /* OneSignalSwiftExample.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 91E4D5051C7521DE00025BA8 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0800; - LastUpgradeCheck = 0720; - ORGANIZATIONNAME = OneSignal; - TargetAttributes = { - 3EA62F211D87807F00E5845A = { - CreatedOnToolsVersion = 8.0; - DevelopmentTeam = 99SW8E36CT; - ProvisioningStyle = Automatic; - }; - 3EA62F351D8780A800E5845A = { - CreatedOnToolsVersion = 8.0; - DevelopmentTeam = 99SW8E36CT; - ProvisioningStyle = Automatic; - }; - 91E4D50C1C7521DE00025BA8 = { - CreatedOnToolsVersion = 7.2; - DevelopmentTeam = 99SW8E36CT; - LastSwiftMigration = 0800; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - }; - }; - }; - }; - buildConfigurationList = 91E4D5081C7521DE00025BA8 /* Build configuration list for PBXProject "OneSignalSwiftExample" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 91E4D5041C7521DE00025BA8; - productRefGroup = 91E4D50E1C7521DE00025BA8 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 91E4D50C1C7521DE00025BA8 /* OneSignalSwiftExample */, - 3EA62F211D87807F00E5845A /* OSContentExtension */, - 3EA62F351D8780A800E5845A /* OSServiceExtension */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 3EA62F201D87807F00E5845A /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 3EA62F2A1D87807F00E5845A /* MainInterface.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3EA62F341D8780A800E5845A /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 91E4D50B1C7521DE00025BA8 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 91E4D51B1C7521DE00025BA8 /* LaunchScreen.storyboard in Resources */, - 91E4D5181C7521DE00025BA8 /* Assets.xcassets in Resources */, - 91E4D5161C7521DE00025BA8 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 3EA62F1E1D87807F00E5845A /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 3EA62F271D87807F00E5845A /* NotificationViewController.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3EA62F321D8780A800E5845A /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 3EA62F391D8780A800E5845A /* NotificationService.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 91E4D5091C7521DE00025BA8 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 91E4D5131C7521DE00025BA8 /* ViewController.swift in Sources */, - 91E4D5111C7521DE00025BA8 /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 3EA62F2D1D87807F00E5845A /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 3EA62F211D87807F00E5845A /* OSContentExtension */; - targetProxy = 3EA62F2C1D87807F00E5845A /* PBXContainerItemProxy */; - }; - 3EA62F3C1D8780A800E5845A /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 3EA62F351D8780A800E5845A /* OSServiceExtension */; - targetProxy = 3EA62F3B1D8780A800E5845A /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 3EA62F281D87807F00E5845A /* MainInterface.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 3EA62F291D87807F00E5845A /* Base */, - ); - name = MainInterface.storyboard; - sourceTree = ""; - }; - 91E4D5141C7521DE00025BA8 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 91E4D5151C7521DE00025BA8 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 91E4D5191C7521DE00025BA8 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 91E4D51A1C7521DE00025BA8 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 3EA62F301D87807F00E5845A /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEVELOPMENT_TEAM = 99SW8E36CT; - INFOPLIST_FILE = OSContentExtension/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example.OSContentExtension; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_VERSION = 3.0; - }; - name = Debug; - }; - 3EA62F311D87807F00E5845A /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEVELOPMENT_TEAM = 99SW8E36CT; - INFOPLIST_FILE = OSContentExtension/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example.OSContentExtension; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 3.0; - }; - name = Release; - }; - 3EA62F3F1D8780A800E5845A /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEVELOPMENT_TEAM = 99SW8E36CT; - INFOPLIST_FILE = OSServiceExtension/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example.OSServiceExtension; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_VERSION = 3.0; - }; - name = Debug; - }; - 3EA62F401D8780A800E5845A /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEVELOPMENT_TEAM = 99SW8E36CT; - INFOPLIST_FILE = OSServiceExtension/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example.OSServiceExtension; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 3.0; - }; - name = Release; - }; - 91E4D51D1C7521DE00025BA8 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.2; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 91E4D51E1C7521DE00025BA8 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.2; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 91E4D5201C7521DE00025BA8 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = 99SW8E36CT; - FRAMEWORK_SEARCH_PATHS = "\"$(SRCROOT)/../iOS_SDK/Framework\""; - INFOPLIST_FILE = OneSignalSwiftExample/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = ""; - SWIFT_VERSION = 3.0; - }; - name = Debug; - }; - 91E4D5211C7521DE00025BA8 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = 99SW8E36CT; - FRAMEWORK_SEARCH_PATHS = "\"$(SRCROOT)/../iOS_SDK/Framework\""; - INFOPLIST_FILE = OneSignalSwiftExample/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = ""; - SWIFT_VERSION = 3.0; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 3EA62F2F1D87807F00E5845A /* Build configuration list for PBXNativeTarget "OSContentExtension" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 3EA62F301D87807F00E5845A /* Debug */, - 3EA62F311D87807F00E5845A /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 3EA62F3E1D8780A800E5845A /* Build configuration list for PBXNativeTarget "OSServiceExtension" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 3EA62F3F1D8780A800E5845A /* Debug */, - 3EA62F401D8780A800E5845A /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 91E4D5081C7521DE00025BA8 /* Build configuration list for PBXProject "OneSignalSwiftExample" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 91E4D51D1C7521DE00025BA8 /* Debug */, - 91E4D51E1C7521DE00025BA8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 91E4D51F1C7521DE00025BA8 /* Build configuration list for PBXNativeTarget "OneSignalSwiftExample" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 91E4D5201C7521DE00025BA8 /* Debug */, - 91E4D5211C7521DE00025BA8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 91E4D5051C7521DE00025BA8 /* Project object */; -} diff --git a/OneSignalSwiftExample/OneSignalSwiftExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/OneSignalSwiftExample/OneSignalSwiftExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index dea908c8d..000000000 --- a/OneSignalSwiftExample/OneSignalSwiftExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/iOS_SDK/OneSignal.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/iOS_SDK/OneSignal.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index f66b8e2a3..000000000 --- a/iOS_SDK/OneSignal.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/iOS_SDK/OneSignal.xcodeproj/project.xcworkspace/xcshareddata/OneSignal.xccheckout b/iOS_SDK/OneSignal.xcodeproj/project.xcworkspace/xcshareddata/OneSignal.xccheckout deleted file mode 100644 index ab4b8736c..000000000 --- a/iOS_SDK/OneSignal.xcodeproj/project.xcworkspace/xcshareddata/OneSignal.xccheckout +++ /dev/null @@ -1,41 +0,0 @@ - - - - - IDESourceControlProjectFavoriteDictionaryKey - - IDESourceControlProjectIdentifier - 82DF9B41-8B65-40E7-832A-C61D19DFA081 - IDESourceControlProjectName - project - IDESourceControlProjectOriginsDictionary - - 5A4AFF41A71B5F8D4741699EC46766398BC4FE44 - https://github.com/Hiptic/OneSignal - - IDESourceControlProjectPath - SDK/iOS/iOS_SDK/OneSignal.xcodeproj/project.xcworkspace - IDESourceControlProjectRelativeInstallPathDictionary - - 5A4AFF41A71B5F8D4741699EC46766398BC4FE44 - ../../../../.. - - IDESourceControlProjectURL - https://github.com/Hiptic/OneSignal - IDESourceControlProjectVersion - 111 - IDESourceControlProjectWCCIdentifier - 5A4AFF41A71B5F8D4741699EC46766398BC4FE44 - IDESourceControlProjectWCConfigurations - - - IDESourceControlRepositoryExtensionIdentifierKey - public.vcs.git - IDESourceControlWCCIdentifierKey - 5A4AFF41A71B5F8D4741699EC46766398BC4FE44 - IDESourceControlWCCName - GameThrive - - - - diff --git a/iOS_SDK/OneSignalDevApp/OneSignalDevApp.xcodeproj/project.pbxproj b/iOS_SDK/OneSignalDevApp/OneSignalDevApp.xcodeproj/project.pbxproj new file mode 100644 index 000000000..307beb1e0 --- /dev/null +++ b/iOS_SDK/OneSignalDevApp/OneSignalDevApp.xcodeproj/project.pbxproj @@ -0,0 +1,348 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 9112E8871E724C320022A1CB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9112E8861E724C320022A1CB /* main.m */; }; + 9112E88A1E724C320022A1CB /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9112E8891E724C320022A1CB /* AppDelegate.m */; }; + 9112E88D1E724C320022A1CB /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9112E88C1E724C320022A1CB /* ViewController.m */; }; + 9112E8901E724C320022A1CB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9112E88E1E724C320022A1CB /* Main.storyboard */; }; + 9112E8921E724C320022A1CB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9112E8911E724C320022A1CB /* Assets.xcassets */; }; + 9112E8951E724C320022A1CB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9112E8931E724C320022A1CB /* LaunchScreen.storyboard */; }; + 9112E8A51E724ECC0022A1CB /* libOneSignal.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9112E8A31E724DCB0022A1CB /* libOneSignal.a */; }; + 9112E8A71E724EE00022A1CB /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9112E8A61E724EE00022A1CB /* SystemConfiguration.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 9112E8821E724C320022A1CB /* OneSignalDevApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OneSignalDevApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 9112E8861E724C320022A1CB /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 9112E8881E724C320022A1CB /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 9112E8891E724C320022A1CB /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 9112E88B1E724C320022A1CB /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 9112E88C1E724C320022A1CB /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 9112E88F1E724C320022A1CB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 9112E8911E724C320022A1CB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 9112E8941E724C320022A1CB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 9112E8961E724C320022A1CB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 9112E8A31E724DCB0022A1CB /* libOneSignal.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libOneSignal.a; path = "../../../../../Library/Developer/Xcode/DerivedData/OneSignalSDK-gokrmgmincuokwdzxidzbpukovwj/Build/Products/Debug-iphoneos/libOneSignal.a"; sourceTree = ""; }; + 9112E8A61E724EE00022A1CB /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; + 9112E8A81E72506C0022A1CB /* OneSignalDevApp.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = OneSignalDevApp.entitlements; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 9112E87F1E724C320022A1CB /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 9112E8A71E724EE00022A1CB /* SystemConfiguration.framework in Frameworks */, + 9112E8A51E724ECC0022A1CB /* libOneSignal.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9112E8791E724C320022A1CB = { + isa = PBXGroup; + children = ( + 9112E8841E724C320022A1CB /* OneSignalDevApp */, + 9112E8831E724C320022A1CB /* Products */, + 9112E8A21E724DCA0022A1CB /* Frameworks */, + ); + sourceTree = ""; + }; + 9112E8831E724C320022A1CB /* Products */ = { + isa = PBXGroup; + children = ( + 9112E8821E724C320022A1CB /* OneSignalDevApp.app */, + ); + name = Products; + sourceTree = ""; + }; + 9112E8841E724C320022A1CB /* OneSignalDevApp */ = { + isa = PBXGroup; + children = ( + 9112E8A81E72506C0022A1CB /* OneSignalDevApp.entitlements */, + 9112E8881E724C320022A1CB /* AppDelegate.h */, + 9112E8891E724C320022A1CB /* AppDelegate.m */, + 9112E88B1E724C320022A1CB /* ViewController.h */, + 9112E88C1E724C320022A1CB /* ViewController.m */, + 9112E88E1E724C320022A1CB /* Main.storyboard */, + 9112E8911E724C320022A1CB /* Assets.xcassets */, + 9112E8931E724C320022A1CB /* LaunchScreen.storyboard */, + 9112E8961E724C320022A1CB /* Info.plist */, + 9112E8851E724C320022A1CB /* Supporting Files */, + ); + path = OneSignalDevApp; + sourceTree = ""; + }; + 9112E8851E724C320022A1CB /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 9112E8861E724C320022A1CB /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 9112E8A21E724DCA0022A1CB /* Frameworks */ = { + isa = PBXGroup; + children = ( + 9112E8A61E724EE00022A1CB /* SystemConfiguration.framework */, + 9112E8A31E724DCB0022A1CB /* libOneSignal.a */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 9112E8811E724C320022A1CB /* OneSignalDevApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9112E8991E724C320022A1CB /* Build configuration list for PBXNativeTarget "OneSignalDevApp" */; + buildPhases = ( + 9112E87E1E724C320022A1CB /* Sources */, + 9112E87F1E724C320022A1CB /* Frameworks */, + 9112E8801E724C320022A1CB /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = OneSignalDevApp; + productName = OneSignalDevApp; + productReference = 9112E8821E724C320022A1CB /* OneSignalDevApp.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 9112E87A1E724C320022A1CB /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0820; + ORGANIZATIONNAME = OneSignal; + TargetAttributes = { + 9112E8811E724C320022A1CB = { + CreatedOnToolsVersion = 8.2.1; + DevelopmentTeam = 99SW8E36CT; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.BackgroundModes = { + enabled = 1; + }; + com.apple.Push = { + enabled = 1; + }; + }; + }; + }; + }; + buildConfigurationList = 9112E87D1E724C320022A1CB /* Build configuration list for PBXProject "OneSignalDevApp" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 9112E8791E724C320022A1CB; + productRefGroup = 9112E8831E724C320022A1CB /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 9112E8811E724C320022A1CB /* OneSignalDevApp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 9112E8801E724C320022A1CB /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9112E8951E724C320022A1CB /* LaunchScreen.storyboard in Resources */, + 9112E8921E724C320022A1CB /* Assets.xcassets in Resources */, + 9112E8901E724C320022A1CB /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 9112E87E1E724C320022A1CB /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9112E88D1E724C320022A1CB /* ViewController.m in Sources */, + 9112E88A1E724C320022A1CB /* AppDelegate.m in Sources */, + 9112E8871E724C320022A1CB /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 9112E88E1E724C320022A1CB /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 9112E88F1E724C320022A1CB /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 9112E8931E724C320022A1CB /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 9112E8941E724C320022A1CB /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 9112E8971E724C320022A1CB /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 9112E8981E724C320022A1CB /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 9112E89A1E724C320022A1CB /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = OneSignalDevApp/OneSignalDevApp.entitlements; + DEVELOPMENT_TEAM = 99SW8E36CT; + INFOPLIST_FILE = OneSignalDevApp/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 9112E89B1E724C320022A1CB /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = OneSignalDevApp/OneSignalDevApp.entitlements; + DEVELOPMENT_TEAM = 99SW8E36CT; + INFOPLIST_FILE = OneSignalDevApp/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.onesignal.example; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 9112E87D1E724C320022A1CB /* Build configuration list for PBXProject "OneSignalDevApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9112E8971E724C320022A1CB /* Debug */, + 9112E8981E724C320022A1CB /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 9112E8991E724C320022A1CB /* Build configuration list for PBXNativeTarget "OneSignalDevApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9112E89A1E724C320022A1CB /* Debug */, + 9112E89B1E724C320022A1CB /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 9112E87A1E724C320022A1CB /* Project object */; +} diff --git a/iOS_SDK/OneSignalDevApp/OneSignalDevApp.xcodeproj/xcshareddata/xcschemes/OneSignalDevApp.xcscheme b/iOS_SDK/OneSignalDevApp/OneSignalDevApp.xcodeproj/xcshareddata/xcschemes/OneSignalDevApp.xcscheme new file mode 100644 index 000000000..7fc5b7c8b --- /dev/null +++ b/iOS_SDK/OneSignalDevApp/OneSignalDevApp.xcodeproj/xcshareddata/xcschemes/OneSignalDevApp.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/iOS_SDK/OneSignalDevApp/OneSignalDevApp/AppDelegate.h b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/AppDelegate.h new file mode 100644 index 000000000..50b1e8aec --- /dev/null +++ b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/AppDelegate.h @@ -0,0 +1,39 @@ +/** + * Modified MIT License + * + * Copyright 2017 OneSignal + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * 1. The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * 2. All copies of substantial portions of the Software may only be used in connection + * with services provided by OneSignal. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +// Please see the root Example folder of this repo for an Example project. +// This project exisits to make testing OneSignal SDK changes. + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git a/iOS_SDK/OneSignalDevApp/OneSignalDevApp/AppDelegate.m b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/AppDelegate.m new file mode 100644 index 000000000..6df827ad9 --- /dev/null +++ b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/AppDelegate.m @@ -0,0 +1,73 @@ +/** + * Modified MIT License + * + * Copyright 2017 OneSignal + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * 1. The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * 2. All copies of substantial portions of the Software may only be used in connection + * with services provided by OneSignal. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +// Please see the root Example folder of this repo for an Example project. +// This project exisits to make testing OneSignal SDK changes. + +#import "AppDelegate.h" + +#import + +@interface AppDelegate () + +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + + [OneSignal setLogLevel:ONE_S_LL_VERBOSE visualLevel:ONE_S_LL_WARN]; + + [OneSignal initWithLaunchOptions:launchOptions + appId:@"b2f7f966-d8cc-11e4-bed1-df8f05be55ba"]; + + return YES; +} + + +- (void)applicationWillResignActive:(UIApplication *)application { +} + + +- (void)applicationDidEnterBackground:(UIApplication *)application { +} + + +- (void)applicationWillEnterForeground:(UIApplication *)application { +} + + +- (void)applicationDidBecomeActive:(UIApplication *)application { +} + + +- (void)applicationWillTerminate:(UIApplication *)application { +} + + +@end diff --git a/iOS_SDK/OneSignalDevApp/OneSignalDevApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..36d2c80d8 --- /dev/null +++ b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/iOS_SDK/OneSignalDevApp/OneSignalDevApp/Base.lproj/LaunchScreen.storyboard b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 000000000..fdf3f97d1 --- /dev/null +++ b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/iOS_SDK/OneSignalDevApp/OneSignalDevApp/Base.lproj/Main.storyboard b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/Base.lproj/Main.storyboard new file mode 100644 index 000000000..4529698c4 --- /dev/null +++ b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/iOS_SDK/OneSignalDevApp/OneSignalDevApp/Info.plist b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/Info.plist new file mode 100644 index 000000000..8f5b348ff --- /dev/null +++ b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIBackgroundModes + + remote-notification + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/iOS_SDK/OneSignalDevApp/OneSignalDevApp/OneSignalDevApp.entitlements b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/OneSignalDevApp.entitlements new file mode 100644 index 000000000..903def2af --- /dev/null +++ b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/OneSignalDevApp.entitlements @@ -0,0 +1,8 @@ + + + + + aps-environment + development + + diff --git a/iOS_SDK/OneSignal/OneSignal-Prefix.pch b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/ViewController.h similarity index 83% rename from iOS_SDK/OneSignal/OneSignal-Prefix.pch rename to iOS_SDK/OneSignalDevApp/OneSignalDevApp/ViewController.h index af6be8dce..2d49dc108 100644 --- a/iOS_SDK/OneSignal/OneSignal-Prefix.pch +++ b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/ViewController.h @@ -1,7 +1,7 @@ /** * Modified MIT License * - * Copyright 2016 OneSignal + * Copyright 2017 OneSignal * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -25,7 +25,13 @@ * THE SOFTWARE. */ -#ifdef __OBJC__ - #import - #import -#endif +// Please see the root Example folder of this repo for an Example project. +// This project exisits to make testing OneSignal SDK changes. + +#import + +@interface ViewController : UIViewController + + +@end + diff --git a/iOS_SDK/OneSignalDevApp/OneSignalDevApp/ViewController.m b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/ViewController.m new file mode 100644 index 000000000..a8149e8ff --- /dev/null +++ b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/ViewController.m @@ -0,0 +1,51 @@ +/** + * Modified MIT License + * + * Copyright 2017 OneSignal + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * 1. The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * 2. All copies of substantial portions of the Software may only be used in connection + * with services provided by OneSignal. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +// Please see the root Example folder of this repo for an Example project. +// This project exisits to make testing OneSignal SDK changes. + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +@end diff --git a/iOS_SDK/OneSignalDevApp/OneSignalDevApp/main.m b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/main.m new file mode 100644 index 000000000..d0877be12 --- /dev/null +++ b/iOS_SDK/OneSignalDevApp/OneSignalDevApp/main.m @@ -0,0 +1,38 @@ +/** + * Modified MIT License + * + * Copyright 2017 OneSignal + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * 1. The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * 2. All copies of substantial portions of the Software may only be used in connection + * with services provided by OneSignal. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +// Please see the root Example folder of this repo for an Example project. +// This project exisits to make testing OneSignal SDK changes. + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/iOS_SDK/OneSignalSDK.xcworkspace/contents.xcworkspacedata b/iOS_SDK/OneSignalSDK.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..577b9135f --- /dev/null +++ b/iOS_SDK/OneSignalSDK.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/iOS_SDK/Framework/OneSignal.framework/Headers b/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers similarity index 100% rename from iOS_SDK/Framework/OneSignal.framework/Headers rename to iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers diff --git a/iOS_SDK/Framework/OneSignal.framework/Modules b/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Modules similarity index 100% rename from iOS_SDK/Framework/OneSignal.framework/Modules rename to iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Modules diff --git a/iOS_SDK/Framework/OneSignal.framework/OneSignal b/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/OneSignal similarity index 100% rename from iOS_SDK/Framework/OneSignal.framework/OneSignal rename to iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/OneSignal diff --git a/iOS_SDK/Framework/OneSignal.framework/Versions/A/Headers/OneSignal.h b/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/Headers/OneSignal.h similarity index 100% rename from iOS_SDK/Framework/OneSignal.framework/Versions/A/Headers/OneSignal.h rename to iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/Headers/OneSignal.h diff --git a/iOS_SDK/Framework/OneSignal.framework/Versions/A/Modules/module.modulemap b/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/Modules/module.modulemap similarity index 100% rename from iOS_SDK/Framework/OneSignal.framework/Versions/A/Modules/module.modulemap rename to iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/Modules/module.modulemap diff --git a/iOS_SDK/Framework/OneSignal.framework/Versions/A/OneSignal b/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/OneSignal similarity index 73% rename from iOS_SDK/Framework/OneSignal.framework/Versions/A/OneSignal rename to iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/OneSignal index 7acc05085..4c9ea8272 100644 Binary files a/iOS_SDK/Framework/OneSignal.framework/Versions/A/OneSignal and b/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/OneSignal differ diff --git a/iOS_SDK/Framework/OneSignal.framework/Versions/Current b/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/Current similarity index 100% rename from iOS_SDK/Framework/OneSignal.framework/Versions/Current rename to iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/Current diff --git a/iOS_SDK/OneSignal-Dynamic/Info.plist b/iOS_SDK/OneSignalSDK/OneSignal-Dynamic/Info.plist similarity index 100% rename from iOS_SDK/OneSignal-Dynamic/Info.plist rename to iOS_SDK/OneSignalSDK/OneSignal-Dynamic/Info.plist diff --git a/iOS_SDK/OneSignal.xcodeproj/project.pbxproj b/iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/project.pbxproj similarity index 63% rename from iOS_SDK/OneSignal.xcodeproj/project.pbxproj rename to iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/project.pbxproj index 713e059ea..d44fbcd7d 100644 --- a/iOS_SDK/OneSignal.xcodeproj/project.pbxproj +++ b/iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/project.pbxproj @@ -7,44 +7,71 @@ objects = { /* Begin PBXBuildFile section */ - 371FDED919F1A486001479B7 /* OneSignalTrackIAP.m in Sources */ = {isa = PBXBuildFile; fileRef = 371FDED819F1A486001479B7 /* OneSignalTrackIAP.m */; }; - 3724485819F6D1DE00573B5A /* OneSignalJailbreakDetection.m in Sources */ = {isa = PBXBuildFile; fileRef = 3724485719F6D1DE00573B5A /* OneSignalJailbreakDetection.m */; }; - 37668EE91AA80B7E0095D813 /* OneSignalReachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 37668EE81AA80B7E0095D813 /* OneSignalReachability.m */; }; - 37747FC51914837300558FAD /* OneSignalHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 37747FBD1914837300558FAD /* OneSignalHTTPClient.m */; }; - 37D6E07F1B1EAE6500EC3624 /* OneSignalMobileProvision.m in Sources */ = {isa = PBXBuildFile; fileRef = 37D6E07D1B1EAE6500EC3624 /* OneSignalMobileProvision.m */; }; - 37E277051ACB940000D49C8D /* OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 37E277031ACB940000D49C8D /* OneSignal.m */; }; 37E6B2BB19D9CAF300D0C601 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37E6B2BA19D9CAF300D0C601 /* UIKit.framework */; settings = {ATTRIBUTES = (Weak, ); }; }; - 3E14F6341D3DB0E7008BF4E2 /* OneSignalWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 3E14F6331D3DB0E7008BF4E2 /* OneSignalWebView.m */; }; - 3E2400401D4FFC39008BDE70 /* OneSignal.h in Headers */ = {isa = PBXBuildFile; fileRef = 37E277041ACB940000D49C8D /* OneSignal.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 3E464ECA1D88ED0C00DCF7E9 /* OneSignalAlertViewDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3ECE8FDC1D39829300742055 /* OneSignalAlertViewDelegate.m */; }; - 3E464ECB1D88ED0C00DCF7E9 /* OneSignalLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = 91F2D1021C94D10F00DE95D0 /* OneSignalLocation.m */; }; - 3E464ECC1D88ED0C00DCF7E9 /* OneSignalTrackIAP.m in Sources */ = {isa = PBXBuildFile; fileRef = 371FDED819F1A486001479B7 /* OneSignalTrackIAP.m */; }; - 3E464ECD1D88ED0C00DCF7E9 /* OneSignalHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 37747FBD1914837300558FAD /* OneSignalHTTPClient.m */; }; 3E464ED71D88ED1F00DCF7E9 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37E6B2BA19D9CAF300D0C601 /* UIKit.framework */; }; - 3E464EDC1D88EF3C00DCF7E9 /* OneSignalWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 3E14F6331D3DB0E7008BF4E2 /* OneSignalWebView.m */; }; - 3E464EDD1D88F48C00DCF7E9 /* OneSignalHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 3EBD83FD1D49364E008F135D /* OneSignalHelper.m */; }; - 3E464EDF1D88F4A400DCF7E9 /* OneSignalReachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 37668EE81AA80B7E0095D813 /* OneSignalReachability.m */; }; - 3E464EE01D88F4B000DCF7E9 /* OneSignalJailbreakDetection.m in Sources */ = {isa = PBXBuildFile; fileRef = 3724485719F6D1DE00573B5A /* OneSignalJailbreakDetection.m */; }; - 3E464EE11D88F4B500DCF7E9 /* OneSignalMobileProvision.m in Sources */ = {isa = PBXBuildFile; fileRef = 37D6E07D1B1EAE6500EC3624 /* OneSignalMobileProvision.m */; }; - 3E464EE21D88F4B900DCF7E9 /* OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 37E277031ACB940000D49C8D /* OneSignal.m */; }; - 3E464EE31D88F4BF00DCF7E9 /* OneSignalTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = 3EB26DBE1D5121D000E51BD4 /* OneSignalTracker.m */; }; 3E66F5821D90A2C600E45A01 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E08E2701D49A5C8002176DE /* SystemConfiguration.framework */; }; - 3E8998B61D37268F0066A9ED /* OneSignal.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 37E277041ACB940000D49C8D /* OneSignal.h */; }; - 3EB26DBF1D5121D000E51BD4 /* OneSignalTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = 3EB26DBE1D5121D000E51BD4 /* OneSignalTracker.m */; }; - 3EBD83FE1D49364E008F135D /* OneSignalHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 3EBD83FD1D49364E008F135D /* OneSignalHelper.m */; }; - 3ECE8FDD1D39829300742055 /* OneSignalAlertViewDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3ECE8FDC1D39829300742055 /* OneSignalAlertViewDelegate.m */; }; 911E2CBD1E398AB3003112A4 /* UnitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 911E2CBC1E398AB3003112A4 /* UnitTests.m */; }; 911E2CBF1E398AB3003112A4 /* libOneSignal.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 37747F9319147D6500558FAD /* libOneSignal.a */; }; 911E2CC51E398B53003112A4 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E08E2701D49A5C8002176DE /* SystemConfiguration.framework */; }; 911E2CC61E398B97003112A4 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37E6B2BA19D9CAF300D0C601 /* UIKit.framework */; }; 911E2CC81E399834003112A4 /* UserNotifications.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 911E2CC71E399834003112A4 /* UserNotifications.framework */; }; - 9139AF5B1DDECB6300642ED5 /* UIApplicationDelegate+OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 9139AF5A1DDECB6300642ED5 /* UIApplicationDelegate+OneSignal.m */; }; - 918416271DC2E32500D458A5 /* OneSignalSelectorHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 918416261DC2E32500D458A5 /* OneSignalSelectorHelpers.m */; }; - 918416281DC2E80A00D458A5 /* OneSignalSelectorHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 918416261DC2E32500D458A5 /* OneSignalSelectorHelpers.m */; }; - 91D684CC1DC2D60E00D09C41 /* UNUserNotificationCenter+OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 91D684CB1DC2D60E00D09C41 /* UNUserNotificationCenter+OneSignal.m */; }; - 91D684CD1DC2D60E00D09C41 /* UNUserNotificationCenter+OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 91D684CB1DC2D60E00D09C41 /* UNUserNotificationCenter+OneSignal.m */; }; - 91F2D1031C94D10F00DE95D0 /* OneSignalLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = 91F2D1021C94D10F00DE95D0 /* OneSignalLocation.m */; }; - 91FC4BDC1DED233800EDFD75 /* UIApplicationDelegate+OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 9139AF5A1DDECB6300642ED5 /* UIApplicationDelegate+OneSignal.m */; }; + 9124120E1E73342200E41FD7 /* OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F11E73342200E41FD7 /* OneSignal.m */; }; + 9124120F1E73342200E41FD7 /* OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F11E73342200E41FD7 /* OneSignal.m */; }; + 912412101E73342200E41FD7 /* OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F11E73342200E41FD7 /* OneSignal.m */; }; + 912412111E73342200E41FD7 /* OneSignalAlertViewDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 912411F21E73342200E41FD7 /* OneSignalAlertViewDelegate.h */; }; + 912412121E73342200E41FD7 /* OneSignalAlertViewDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F31E73342200E41FD7 /* OneSignalAlertViewDelegate.m */; }; + 912412131E73342200E41FD7 /* OneSignalAlertViewDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F31E73342200E41FD7 /* OneSignalAlertViewDelegate.m */; }; + 912412141E73342200E41FD7 /* OneSignalAlertViewDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F31E73342200E41FD7 /* OneSignalAlertViewDelegate.m */; }; + 912412151E73342200E41FD7 /* OneSignalHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = 912411F41E73342200E41FD7 /* OneSignalHelper.h */; }; + 912412191E73342200E41FD7 /* OneSignalHTTPClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 912411F61E73342200E41FD7 /* OneSignalHTTPClient.h */; }; + 9124121A1E73342200E41FD7 /* OneSignalHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F71E73342200E41FD7 /* OneSignalHTTPClient.m */; }; + 9124121B1E73342200E41FD7 /* OneSignalHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F71E73342200E41FD7 /* OneSignalHTTPClient.m */; }; + 9124121C1E73342200E41FD7 /* OneSignalHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F71E73342200E41FD7 /* OneSignalHTTPClient.m */; }; + 9124121D1E73342200E41FD7 /* OneSignalJailbreakDetection.h in Headers */ = {isa = PBXBuildFile; fileRef = 912411F81E73342200E41FD7 /* OneSignalJailbreakDetection.h */; }; + 9124121E1E73342200E41FD7 /* OneSignalJailbreakDetection.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F91E73342200E41FD7 /* OneSignalJailbreakDetection.m */; }; + 9124121F1E73342200E41FD7 /* OneSignalJailbreakDetection.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F91E73342200E41FD7 /* OneSignalJailbreakDetection.m */; }; + 912412201E73342200E41FD7 /* OneSignalJailbreakDetection.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F91E73342200E41FD7 /* OneSignalJailbreakDetection.m */; }; + 912412211E73342200E41FD7 /* OneSignalLocation.h in Headers */ = {isa = PBXBuildFile; fileRef = 912411FA1E73342200E41FD7 /* OneSignalLocation.h */; }; + 912412221E73342200E41FD7 /* OneSignalLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411FB1E73342200E41FD7 /* OneSignalLocation.m */; }; + 912412231E73342200E41FD7 /* OneSignalLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411FB1E73342200E41FD7 /* OneSignalLocation.m */; }; + 912412241E73342200E41FD7 /* OneSignalLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411FB1E73342200E41FD7 /* OneSignalLocation.m */; }; + 912412251E73342200E41FD7 /* OneSignalMobileProvision.h in Headers */ = {isa = PBXBuildFile; fileRef = 912411FC1E73342200E41FD7 /* OneSignalMobileProvision.h */; }; + 912412261E73342200E41FD7 /* OneSignalMobileProvision.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411FD1E73342200E41FD7 /* OneSignalMobileProvision.m */; }; + 912412271E73342200E41FD7 /* OneSignalMobileProvision.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411FD1E73342200E41FD7 /* OneSignalMobileProvision.m */; }; + 912412281E73342200E41FD7 /* OneSignalMobileProvision.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411FD1E73342200E41FD7 /* OneSignalMobileProvision.m */; }; + 912412291E73342200E41FD7 /* OneSignalReachability.h in Headers */ = {isa = PBXBuildFile; fileRef = 912411FE1E73342200E41FD7 /* OneSignalReachability.h */; }; + 9124122A1E73342200E41FD7 /* OneSignalReachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411FF1E73342200E41FD7 /* OneSignalReachability.m */; }; + 9124122B1E73342200E41FD7 /* OneSignalReachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411FF1E73342200E41FD7 /* OneSignalReachability.m */; }; + 9124122C1E73342200E41FD7 /* OneSignalReachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411FF1E73342200E41FD7 /* OneSignalReachability.m */; }; + 9124122D1E73342200E41FD7 /* OneSignalSelectorHelpers.h in Headers */ = {isa = PBXBuildFile; fileRef = 912412001E73342200E41FD7 /* OneSignalSelectorHelpers.h */; }; + 9124122E1E73342200E41FD7 /* OneSignalSelectorHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412011E73342200E41FD7 /* OneSignalSelectorHelpers.m */; }; + 9124122F1E73342200E41FD7 /* OneSignalSelectorHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412011E73342200E41FD7 /* OneSignalSelectorHelpers.m */; }; + 912412301E73342200E41FD7 /* OneSignalSelectorHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412011E73342200E41FD7 /* OneSignalSelectorHelpers.m */; }; + 912412311E73342200E41FD7 /* OneSignalTracker.h in Headers */ = {isa = PBXBuildFile; fileRef = 912412021E73342200E41FD7 /* OneSignalTracker.h */; }; + 912412321E73342200E41FD7 /* OneSignalTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412031E73342200E41FD7 /* OneSignalTracker.m */; }; + 912412331E73342200E41FD7 /* OneSignalTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412031E73342200E41FD7 /* OneSignalTracker.m */; }; + 912412341E73342200E41FD7 /* OneSignalTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412031E73342200E41FD7 /* OneSignalTracker.m */; }; + 912412351E73342200E41FD7 /* OneSignalTrackIAP.h in Headers */ = {isa = PBXBuildFile; fileRef = 912412041E73342200E41FD7 /* OneSignalTrackIAP.h */; }; + 912412361E73342200E41FD7 /* OneSignalTrackIAP.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412051E73342200E41FD7 /* OneSignalTrackIAP.m */; }; + 912412371E73342200E41FD7 /* OneSignalTrackIAP.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412051E73342200E41FD7 /* OneSignalTrackIAP.m */; }; + 912412381E73342200E41FD7 /* OneSignalTrackIAP.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412051E73342200E41FD7 /* OneSignalTrackIAP.m */; }; + 912412391E73342200E41FD7 /* OneSignalWebView.h in Headers */ = {isa = PBXBuildFile; fileRef = 912412061E73342200E41FD7 /* OneSignalWebView.h */; }; + 9124123A1E73342200E41FD7 /* OneSignalWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412071E73342200E41FD7 /* OneSignalWebView.m */; }; + 9124123B1E73342200E41FD7 /* OneSignalWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412071E73342200E41FD7 /* OneSignalWebView.m */; }; + 9124123C1E73342200E41FD7 /* OneSignalWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412071E73342200E41FD7 /* OneSignalWebView.m */; }; + 9124123D1E73342200E41FD7 /* UIApplicationDelegate+OneSignal.h in Headers */ = {isa = PBXBuildFile; fileRef = 912412081E73342200E41FD7 /* UIApplicationDelegate+OneSignal.h */; }; + 9124123E1E73342200E41FD7 /* UIApplicationDelegate+OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412091E73342200E41FD7 /* UIApplicationDelegate+OneSignal.m */; }; + 9124123F1E73342200E41FD7 /* UIApplicationDelegate+OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412091E73342200E41FD7 /* UIApplicationDelegate+OneSignal.m */; }; + 912412401E73342200E41FD7 /* UIApplicationDelegate+OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 912412091E73342200E41FD7 /* UIApplicationDelegate+OneSignal.m */; }; + 912412411E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.h in Headers */ = {isa = PBXBuildFile; fileRef = 9124120A1E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.h */; }; + 912412421E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 9124120B1E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.m */; }; + 912412431E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 9124120B1E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.m */; }; + 912412441E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.m in Sources */ = {isa = PBXBuildFile; fileRef = 9124120B1E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.m */; }; + 912412471E73369600E41FD7 /* OneSignalHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F51E73342200E41FD7 /* OneSignalHelper.m */; }; + 912412481E73369700E41FD7 /* OneSignalHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F51E73342200E41FD7 /* OneSignalHelper.m */; }; + 912412491E73369800E41FD7 /* OneSignalHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 912411F51E73342200E41FD7 /* OneSignalHelper.m */; }; + 9124124B1E7337A800E41FD7 /* OneSignal.h in Headers */ = {isa = PBXBuildFile; fileRef = 912411F01E73342200E41FD7 /* OneSignal.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 918CB0301E73388E0067130F /* OneSignal.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 912411F01E73342200E41FD7 /* OneSignal.h */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -64,52 +91,51 @@ dstPath = "include/$(PRODUCT_NAME)"; dstSubfolderSpec = 16; files = ( - 3E8998B61D37268F0066A9ED /* OneSignal.h in CopyFiles */, + 918CB0301E73388E0067130F /* OneSignal.h in CopyFiles */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 371FDED819F1A486001479B7 /* OneSignalTrackIAP.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OneSignalTrackIAP.m; path = OneSignal/OneSignalTrackIAP.m; sourceTree = ""; }; - 371FDEDA19F1F9D9001479B7 /* OneSignalTrackIAP.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OneSignalTrackIAP.h; path = OneSignal/OneSignalTrackIAP.h; sourceTree = ""; }; - 3724485619F61C9E00573B5A /* OneSignalJailbreakDetection.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OneSignalJailbreakDetection.h; sourceTree = ""; }; - 3724485719F6D1DE00573B5A /* OneSignalJailbreakDetection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalJailbreakDetection.m; sourceTree = ""; }; - 37668EE71AA80B7E0095D813 /* OneSignalReachability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalReachability.h; sourceTree = ""; }; - 37668EE81AA80B7E0095D813 /* OneSignalReachability.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalReachability.m; sourceTree = ""; }; 37747F9319147D6500558FAD /* libOneSignal.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libOneSignal.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 37747FBC1914837300558FAD /* OneSignalHTTPClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OneSignalHTTPClient.h; path = OneSignal/OneSignalHTTPClient.h; sourceTree = ""; }; - 37747FBD1914837300558FAD /* OneSignalHTTPClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OneSignalHTTPClient.m; path = OneSignal/OneSignalHTTPClient.m; sourceTree = ""; }; - 378699FC1919B5FB00C3E7DA /* OneSignal-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "OneSignal-Prefix.pch"; sourceTree = ""; }; - 37D6E07C1B1EAE6500EC3624 /* OneSignalMobileProvision.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalMobileProvision.h; sourceTree = ""; }; - 37D6E07D1B1EAE6500EC3624 /* OneSignalMobileProvision.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalMobileProvision.m; sourceTree = ""; }; - 37E277031ACB940000D49C8D /* OneSignal.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignal.m; sourceTree = ""; }; - 37E277041ACB940000D49C8D /* OneSignal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignal.h; sourceTree = ""; }; 37E6B2BA19D9CAF300D0C601 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 3E08E2701D49A5C8002176DE /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; - 3E14F6321D3DB0E7008BF4E2 /* OneSignalWebView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalWebView.h; sourceTree = ""; }; - 3E14F6331D3DB0E7008BF4E2 /* OneSignalWebView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalWebView.m; sourceTree = ""; }; 3E2400381D4FFC31008BDE70 /* OneSignal.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = OneSignal.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 3E24003B1D4FFC31008BDE70 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 3E464ED91D88EE6A00DCF7E9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 3EB26DBD1D5121D000E51BD4 /* OneSignalTracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalTracker.h; sourceTree = ""; }; - 3EB26DBE1D5121D000E51BD4 /* OneSignalTracker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalTracker.m; sourceTree = ""; }; - 3EBD83FC1D49364E008F135D /* OneSignalHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OneSignalHelper.h; path = OneSignal/OneSignalHelper.h; sourceTree = ""; }; - 3EBD83FD1D49364E008F135D /* OneSignalHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OneSignalHelper.m; path = OneSignal/OneSignalHelper.m; sourceTree = ""; }; - 3ECE8FDB1D39829300742055 /* OneSignalAlertViewDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OneSignalAlertViewDelegate.h; path = OneSignal/OneSignalAlertViewDelegate.h; sourceTree = ""; }; - 3ECE8FDC1D39829300742055 /* OneSignalAlertViewDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OneSignalAlertViewDelegate.m; path = OneSignal/OneSignalAlertViewDelegate.m; sourceTree = ""; }; 911E2CBA1E398AB3003112A4 /* UnitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UnitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 911E2CBC1E398AB3003112A4 /* UnitTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UnitTests.m; sourceTree = ""; }; 911E2CBE1E398AB3003112A4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 911E2CC71E399834003112A4 /* UserNotifications.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotifications.framework; path = System/Library/Frameworks/UserNotifications.framework; sourceTree = SDKROOT; }; - 9139AF591DDECB4200642ED5 /* UIApplicationDelegate+OneSignal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "UIApplicationDelegate+OneSignal.h"; path = "OneSignal/UIApplicationDelegate+OneSignal.h"; sourceTree = ""; }; - 9139AF5A1DDECB6300642ED5 /* UIApplicationDelegate+OneSignal.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIApplicationDelegate+OneSignal.m"; path = "OneSignal/UIApplicationDelegate+OneSignal.m"; sourceTree = ""; }; - 918416251DC2E30500D458A5 /* OneSignalSelectorHelpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = OneSignalSelectorHelpers.h; path = OneSignal/OneSignalSelectorHelpers.h; sourceTree = ""; }; - 918416261DC2E32500D458A5 /* OneSignalSelectorHelpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OneSignalSelectorHelpers.m; path = OneSignal/OneSignalSelectorHelpers.m; sourceTree = ""; }; - 91D684C91DC2D5F200D09C41 /* UNUserNotificationCenter+OneSignal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UNUserNotificationCenter+OneSignal.h"; path = "OneSignal/UNUserNotificationCenter+OneSignal.h"; sourceTree = ""; }; - 91D684CB1DC2D60E00D09C41 /* UNUserNotificationCenter+OneSignal.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UNUserNotificationCenter+OneSignal.m"; path = "OneSignal/UNUserNotificationCenter+OneSignal.m"; sourceTree = ""; }; - 91F2D1011C94D0DD00DE95D0 /* OneSignalLocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OneSignalLocation.h; path = OneSignal/OneSignalLocation.h; sourceTree = ""; }; - 91F2D1021C94D10F00DE95D0 /* OneSignalLocation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OneSignalLocation.m; path = OneSignal/OneSignalLocation.m; sourceTree = ""; }; + 912411F01E73342200E41FD7 /* OneSignal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignal.h; sourceTree = ""; }; + 912411F11E73342200E41FD7 /* OneSignal.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignal.m; sourceTree = ""; }; + 912411F21E73342200E41FD7 /* OneSignalAlertViewDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalAlertViewDelegate.h; sourceTree = ""; }; + 912411F31E73342200E41FD7 /* OneSignalAlertViewDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalAlertViewDelegate.m; sourceTree = ""; }; + 912411F41E73342200E41FD7 /* OneSignalHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalHelper.h; sourceTree = ""; }; + 912411F51E73342200E41FD7 /* OneSignalHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalHelper.m; sourceTree = ""; }; + 912411F61E73342200E41FD7 /* OneSignalHTTPClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalHTTPClient.h; sourceTree = ""; }; + 912411F71E73342200E41FD7 /* OneSignalHTTPClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalHTTPClient.m; sourceTree = ""; }; + 912411F81E73342200E41FD7 /* OneSignalJailbreakDetection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalJailbreakDetection.h; sourceTree = ""; }; + 912411F91E73342200E41FD7 /* OneSignalJailbreakDetection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalJailbreakDetection.m; sourceTree = ""; }; + 912411FA1E73342200E41FD7 /* OneSignalLocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalLocation.h; sourceTree = ""; }; + 912411FB1E73342200E41FD7 /* OneSignalLocation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalLocation.m; sourceTree = ""; }; + 912411FC1E73342200E41FD7 /* OneSignalMobileProvision.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalMobileProvision.h; sourceTree = ""; }; + 912411FD1E73342200E41FD7 /* OneSignalMobileProvision.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalMobileProvision.m; sourceTree = ""; }; + 912411FE1E73342200E41FD7 /* OneSignalReachability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalReachability.h; sourceTree = ""; }; + 912411FF1E73342200E41FD7 /* OneSignalReachability.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalReachability.m; sourceTree = ""; }; + 912412001E73342200E41FD7 /* OneSignalSelectorHelpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalSelectorHelpers.h; sourceTree = ""; }; + 912412011E73342200E41FD7 /* OneSignalSelectorHelpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalSelectorHelpers.m; sourceTree = ""; }; + 912412021E73342200E41FD7 /* OneSignalTracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalTracker.h; sourceTree = ""; }; + 912412031E73342200E41FD7 /* OneSignalTracker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalTracker.m; sourceTree = ""; }; + 912412041E73342200E41FD7 /* OneSignalTrackIAP.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalTrackIAP.h; sourceTree = ""; }; + 912412051E73342200E41FD7 /* OneSignalTrackIAP.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalTrackIAP.m; sourceTree = ""; }; + 912412061E73342200E41FD7 /* OneSignalWebView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSignalWebView.h; sourceTree = ""; }; + 912412071E73342200E41FD7 /* OneSignalWebView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneSignalWebView.m; sourceTree = ""; }; + 912412081E73342200E41FD7 /* UIApplicationDelegate+OneSignal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIApplicationDelegate+OneSignal.h"; sourceTree = ""; }; + 912412091E73342200E41FD7 /* UIApplicationDelegate+OneSignal.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIApplicationDelegate+OneSignal.m"; sourceTree = ""; }; + 9124120A1E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UNUserNotificationCenter+OneSignal.h"; sourceTree = ""; }; + 9124120B1E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UNUserNotificationCenter+OneSignal.m"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -144,43 +170,13 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 3724485519F61C3D00573B5A /* Jailbreak Detection */ = { - isa = PBXGroup; - children = ( - 3724485619F61C9E00573B5A /* OneSignalJailbreakDetection.h */, - 3724485719F6D1DE00573B5A /* OneSignalJailbreakDetection.m */, - ); - name = "Jailbreak Detection"; - path = OneSignalJailbreakDettection; - sourceTree = ""; - }; - 37668EE31AA80A560095D813 /* Reachability */ = { - isa = PBXGroup; - children = ( - 37668EE71AA80B7E0095D813 /* OneSignalReachability.h */, - 37668EE81AA80B7E0095D813 /* OneSignalReachability.m */, - ); - name = Reachability; - path = OneSignalReachability; - sourceTree = ""; - }; 37747F8A19147D6400558FAD = { isa = PBXGroup; children = ( - 3E14F6301D3D602C008BF4E2 /* Alert */, - 3E14F62F1D3D601E008BF4E2 /* Location Tracking */, - 3E14F62E1D3D600C008BF4E2 /* In-App Purchase */, - 3E14F62D1D3D6006008BF4E2 /* HTTP Client */, - 3E14F6311D3DB0C9008BF4E2 /* Web View */, - 37D6E07B1B1EAE6500EC3624 /* Mobile Provision */, - 37668EE31AA80A560095D813 /* Reachability */, - 3724485519F61C3D00573B5A /* Jailbreak Detection */, - 3E3B6F311D494DD6008ED274 /* Helper */, - 37747F9819147D6500558FAD /* OneSignal */, - 3E3B6F301D494DBB008ED274 /* Categories */, - 3E2400391D4FFC31008BDE70 /* OneSignal-Dynamic */, + 912411EE1E73342200E41FD7 /* Source */, 911E2CBB1E398AB3003112A4 /* UnitTests */, 37747F9519147D6500558FAD /* Frameworks */, + 3E2400391D4FFC31008BDE70 /* OneSignal-Dynamic */, 37747F9419147D6500558FAD /* Products */, ); sourceTree = ""; @@ -206,112 +202,74 @@ name = Frameworks; sourceTree = ""; }; - 37747F9819147D6500558FAD /* OneSignal */ = { - isa = PBXGroup; - children = ( - 378699FC1919B5FB00C3E7DA /* OneSignal-Prefix.pch */, - 37E277041ACB940000D49C8D /* OneSignal.h */, - 37E277031ACB940000D49C8D /* OneSignal.m */, - ); - path = OneSignal; - sourceTree = ""; - }; - 37D6E07B1B1EAE6500EC3624 /* Mobile Provision */ = { - isa = PBXGroup; - children = ( - 37D6E07C1B1EAE6500EC3624 /* OneSignalMobileProvision.h */, - 37D6E07D1B1EAE6500EC3624 /* OneSignalMobileProvision.m */, - ); - name = "Mobile Provision"; - path = OneSignalMobileProvision; - sourceTree = ""; - }; - 3E14F62D1D3D6006008BF4E2 /* HTTP Client */ = { - isa = PBXGroup; - children = ( - 37747FBC1914837300558FAD /* OneSignalHTTPClient.h */, - 37747FBD1914837300558FAD /* OneSignalHTTPClient.m */, - ); - name = "HTTP Client"; - sourceTree = ""; - }; - 3E14F62E1D3D600C008BF4E2 /* In-App Purchase */ = { - isa = PBXGroup; - children = ( - 371FDED819F1A486001479B7 /* OneSignalTrackIAP.m */, - 371FDEDA19F1F9D9001479B7 /* OneSignalTrackIAP.h */, - ); - name = "In-App Purchase"; - sourceTree = ""; - }; - 3E14F62F1D3D601E008BF4E2 /* Location Tracking */ = { + 3E2400391D4FFC31008BDE70 /* OneSignal-Dynamic */ = { isa = PBXGroup; children = ( - 91F2D1011C94D0DD00DE95D0 /* OneSignalLocation.h */, - 91F2D1021C94D10F00DE95D0 /* OneSignalLocation.m */, + 3E24003B1D4FFC31008BDE70 /* Info.plist */, ); - name = "Location Tracking"; + path = "OneSignal-Dynamic"; sourceTree = ""; }; - 3E14F6301D3D602C008BF4E2 /* Alert */ = { + 911E2CBB1E398AB3003112A4 /* UnitTests */ = { isa = PBXGroup; children = ( - 3ECE8FDB1D39829300742055 /* OneSignalAlertViewDelegate.h */, - 3ECE8FDC1D39829300742055 /* OneSignalAlertViewDelegate.m */, + 911E2CBC1E398AB3003112A4 /* UnitTests.m */, + 911E2CBE1E398AB3003112A4 /* Info.plist */, ); - name = Alert; + path = UnitTests; sourceTree = ""; }; - 3E14F6311D3DB0C9008BF4E2 /* Web View */ = { + 912411EE1E73342200E41FD7 /* Source */ = { isa = PBXGroup; children = ( - 3E14F6321D3DB0E7008BF4E2 /* OneSignalWebView.h */, - 3E14F6331D3DB0E7008BF4E2 /* OneSignalWebView.m */, - ); - name = "Web View"; + 912412461E73349500E41FD7 /* Categories */, + 912412451E73346700E41FD7 /* UI */, + 912411F01E73342200E41FD7 /* OneSignal.h */, + 912411F11E73342200E41FD7 /* OneSignal.m */, + 912411F41E73342200E41FD7 /* OneSignalHelper.h */, + 912411F51E73342200E41FD7 /* OneSignalHelper.m */, + 912411F61E73342200E41FD7 /* OneSignalHTTPClient.h */, + 912411F71E73342200E41FD7 /* OneSignalHTTPClient.m */, + 912411F81E73342200E41FD7 /* OneSignalJailbreakDetection.h */, + 912411F91E73342200E41FD7 /* OneSignalJailbreakDetection.m */, + 912411FA1E73342200E41FD7 /* OneSignalLocation.h */, + 912411FB1E73342200E41FD7 /* OneSignalLocation.m */, + 912411FC1E73342200E41FD7 /* OneSignalMobileProvision.h */, + 912411FD1E73342200E41FD7 /* OneSignalMobileProvision.m */, + 912411FE1E73342200E41FD7 /* OneSignalReachability.h */, + 912411FF1E73342200E41FD7 /* OneSignalReachability.m */, + 912412021E73342200E41FD7 /* OneSignalTracker.h */, + 912412031E73342200E41FD7 /* OneSignalTracker.m */, + 912412041E73342200E41FD7 /* OneSignalTrackIAP.h */, + 912412051E73342200E41FD7 /* OneSignalTrackIAP.m */, + ); + path = Source; sourceTree = ""; }; - 3E2400391D4FFC31008BDE70 /* OneSignal-Dynamic */ = { + 912412451E73346700E41FD7 /* UI */ = { isa = PBXGroup; children = ( - 3E24003B1D4FFC31008BDE70 /* Info.plist */, + 912411F21E73342200E41FD7 /* OneSignalAlertViewDelegate.h */, + 912411F31E73342200E41FD7 /* OneSignalAlertViewDelegate.m */, + 912412061E73342200E41FD7 /* OneSignalWebView.h */, + 912412071E73342200E41FD7 /* OneSignalWebView.m */, ); - path = "OneSignal-Dynamic"; + name = UI; sourceTree = ""; }; - 3E3B6F301D494DBB008ED274 /* Categories */ = { + 912412461E73349500E41FD7 /* Categories */ = { isa = PBXGroup; children = ( - 91D684C91DC2D5F200D09C41 /* UNUserNotificationCenter+OneSignal.h */, - 91D684CB1DC2D60E00D09C41 /* UNUserNotificationCenter+OneSignal.m */, - 9139AF591DDECB4200642ED5 /* UIApplicationDelegate+OneSignal.h */, - 9139AF5A1DDECB6300642ED5 /* UIApplicationDelegate+OneSignal.m */, + 912412001E73342200E41FD7 /* OneSignalSelectorHelpers.h */, + 912412011E73342200E41FD7 /* OneSignalSelectorHelpers.m */, + 912412081E73342200E41FD7 /* UIApplicationDelegate+OneSignal.h */, + 912412091E73342200E41FD7 /* UIApplicationDelegate+OneSignal.m */, + 9124120A1E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.h */, + 9124120B1E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.m */, ); name = Categories; sourceTree = ""; }; - 3E3B6F311D494DD6008ED274 /* Helper */ = { - isa = PBXGroup; - children = ( - 3EBD83FC1D49364E008F135D /* OneSignalHelper.h */, - 3EBD83FD1D49364E008F135D /* OneSignalHelper.m */, - 3EB26DBD1D5121D000E51BD4 /* OneSignalTracker.h */, - 3EB26DBE1D5121D000E51BD4 /* OneSignalTracker.m */, - 918416251DC2E30500D458A5 /* OneSignalSelectorHelpers.h */, - 918416261DC2E32500D458A5 /* OneSignalSelectorHelpers.m */, - ); - name = Helper; - sourceTree = ""; - }; - 911E2CBB1E398AB3003112A4 /* UnitTests */ = { - isa = PBXGroup; - children = ( - 911E2CBC1E398AB3003112A4 /* UnitTests.m */, - 911E2CBE1E398AB3003112A4 /* Info.plist */, - ); - path = UnitTests; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ @@ -319,7 +277,20 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 3E2400401D4FFC39008BDE70 /* OneSignal.h in Headers */, + 9124124B1E7337A800E41FD7 /* OneSignal.h in Headers */, + 912412211E73342200E41FD7 /* OneSignalLocation.h in Headers */, + 912412291E73342200E41FD7 /* OneSignalReachability.h in Headers */, + 912412251E73342200E41FD7 /* OneSignalMobileProvision.h in Headers */, + 912412411E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.h in Headers */, + 912412351E73342200E41FD7 /* OneSignalTrackIAP.h in Headers */, + 912412111E73342200E41FD7 /* OneSignalAlertViewDelegate.h in Headers */, + 912412311E73342200E41FD7 /* OneSignalTracker.h in Headers */, + 9124122D1E73342200E41FD7 /* OneSignalSelectorHelpers.h in Headers */, + 9124123D1E73342200E41FD7 /* UIApplicationDelegate+OneSignal.h in Headers */, + 9124121D1E73342200E41FD7 /* OneSignalJailbreakDetection.h in Headers */, + 912412191E73342200E41FD7 /* OneSignalHTTPClient.h in Headers */, + 912412151E73342200E41FD7 /* OneSignalHelper.h in Headers */, + 912412391E73342200E41FD7 /* OneSignalWebView.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -459,20 +430,20 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 3ECE8FDD1D39829300742055 /* OneSignalAlertViewDelegate.m in Sources */, - 371FDED919F1A486001479B7 /* OneSignalTrackIAP.m in Sources */, - 9139AF5B1DDECB6300642ED5 /* UIApplicationDelegate+OneSignal.m in Sources */, - 3EBD83FE1D49364E008F135D /* OneSignalHelper.m in Sources */, - 3724485819F6D1DE00573B5A /* OneSignalJailbreakDetection.m in Sources */, - 37747FC51914837300558FAD /* OneSignalHTTPClient.m in Sources */, - 918416271DC2E32500D458A5 /* OneSignalSelectorHelpers.m in Sources */, - 91D684CC1DC2D60E00D09C41 /* UNUserNotificationCenter+OneSignal.m in Sources */, - 3EB26DBF1D5121D000E51BD4 /* OneSignalTracker.m in Sources */, - 3E14F6341D3DB0E7008BF4E2 /* OneSignalWebView.m in Sources */, - 37D6E07F1B1EAE6500EC3624 /* OneSignalMobileProvision.m in Sources */, - 37668EE91AA80B7E0095D813 /* OneSignalReachability.m in Sources */, - 37E277051ACB940000D49C8D /* OneSignal.m in Sources */, - 91F2D1031C94D10F00DE95D0 /* OneSignalLocation.m in Sources */, + 9124120E1E73342200E41FD7 /* OneSignal.m in Sources */, + 9124121E1E73342200E41FD7 /* OneSignalJailbreakDetection.m in Sources */, + 912412471E73369600E41FD7 /* OneSignalHelper.m in Sources */, + 9124122E1E73342200E41FD7 /* OneSignalSelectorHelpers.m in Sources */, + 9124122A1E73342200E41FD7 /* OneSignalReachability.m in Sources */, + 912412121E73342200E41FD7 /* OneSignalAlertViewDelegate.m in Sources */, + 912412421E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.m in Sources */, + 9124123A1E73342200E41FD7 /* OneSignalWebView.m in Sources */, + 9124123E1E73342200E41FD7 /* UIApplicationDelegate+OneSignal.m in Sources */, + 912412261E73342200E41FD7 /* OneSignalMobileProvision.m in Sources */, + 912412321E73342200E41FD7 /* OneSignalTracker.m in Sources */, + 9124121A1E73342200E41FD7 /* OneSignalHTTPClient.m in Sources */, + 912412221E73342200E41FD7 /* OneSignalLocation.m in Sources */, + 912412361E73342200E41FD7 /* OneSignalTrackIAP.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -480,20 +451,20 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 3E464EE31D88F4BF00DCF7E9 /* OneSignalTracker.m in Sources */, - 3E464EE21D88F4B900DCF7E9 /* OneSignal.m in Sources */, - 3E464EE11D88F4B500DCF7E9 /* OneSignalMobileProvision.m in Sources */, - 3E464EE01D88F4B000DCF7E9 /* OneSignalJailbreakDetection.m in Sources */, - 3E464EDF1D88F4A400DCF7E9 /* OneSignalReachability.m in Sources */, - 3E464EDD1D88F48C00DCF7E9 /* OneSignalHelper.m in Sources */, - 918416281DC2E80A00D458A5 /* OneSignalSelectorHelpers.m in Sources */, - 91D684CD1DC2D60E00D09C41 /* UNUserNotificationCenter+OneSignal.m in Sources */, - 3E464EDC1D88EF3C00DCF7E9 /* OneSignalWebView.m in Sources */, - 3E464ECA1D88ED0C00DCF7E9 /* OneSignalAlertViewDelegate.m in Sources */, - 3E464ECB1D88ED0C00DCF7E9 /* OneSignalLocation.m in Sources */, - 3E464ECC1D88ED0C00DCF7E9 /* OneSignalTrackIAP.m in Sources */, - 91FC4BDC1DED233800EDFD75 /* UIApplicationDelegate+OneSignal.m in Sources */, - 3E464ECD1D88ED0C00DCF7E9 /* OneSignalHTTPClient.m in Sources */, + 9124120F1E73342200E41FD7 /* OneSignal.m in Sources */, + 9124121F1E73342200E41FD7 /* OneSignalJailbreakDetection.m in Sources */, + 912412481E73369700E41FD7 /* OneSignalHelper.m in Sources */, + 9124122F1E73342200E41FD7 /* OneSignalSelectorHelpers.m in Sources */, + 9124122B1E73342200E41FD7 /* OneSignalReachability.m in Sources */, + 912412131E73342200E41FD7 /* OneSignalAlertViewDelegate.m in Sources */, + 912412431E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.m in Sources */, + 9124123B1E73342200E41FD7 /* OneSignalWebView.m in Sources */, + 9124123F1E73342200E41FD7 /* UIApplicationDelegate+OneSignal.m in Sources */, + 912412271E73342200E41FD7 /* OneSignalMobileProvision.m in Sources */, + 912412331E73342200E41FD7 /* OneSignalTracker.m in Sources */, + 9124121B1E73342200E41FD7 /* OneSignalHTTPClient.m in Sources */, + 912412231E73342200E41FD7 /* OneSignalLocation.m in Sources */, + 912412371E73342200E41FD7 /* OneSignalTrackIAP.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -501,7 +472,21 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 912412201E73342200E41FD7 /* OneSignalJailbreakDetection.m in Sources */, + 912412381E73342200E41FD7 /* OneSignalTrackIAP.m in Sources */, + 912412301E73342200E41FD7 /* OneSignalSelectorHelpers.m in Sources */, + 912412241E73342200E41FD7 /* OneSignalLocation.m in Sources */, + 912412491E73369800E41FD7 /* OneSignalHelper.m in Sources */, + 912412341E73342200E41FD7 /* OneSignalTracker.m in Sources */, + 912412101E73342200E41FD7 /* OneSignal.m in Sources */, + 9124122C1E73342200E41FD7 /* OneSignalReachability.m in Sources */, 911E2CBD1E398AB3003112A4 /* UnitTests.m in Sources */, + 9124121C1E73342200E41FD7 /* OneSignalHTTPClient.m in Sources */, + 912412401E73342200E41FD7 /* UIApplicationDelegate+OneSignal.m in Sources */, + 912412281E73342200E41FD7 /* OneSignalMobileProvision.m in Sources */, + 912412141E73342200E41FD7 /* OneSignalAlertViewDelegate.m in Sources */, + 912412441E73342200E41FD7 /* UNUserNotificationCenter+OneSignal.m in Sources */, + 9124123C1E73342200E41FD7 /* OneSignalWebView.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -614,7 +599,6 @@ isa = XCBuildConfiguration; buildSettings = { DSTROOT = /tmp/OneSignal.dst; - GCC_PREFIX_HEADER = "OneSignal/OneSignal-Prefix.pch"; IPHONEOS_DEPLOYMENT_TARGET = 7.0; ONLY_ACTIVE_ARCH = NO; OTHER_CFLAGS = "-fembed-bitcode"; @@ -628,7 +612,6 @@ isa = XCBuildConfiguration; buildSettings = { DSTROOT = /tmp/OneSignal.dst; - GCC_PREFIX_HEADER = "OneSignal/OneSignal-Prefix.pch"; IPHONEOS_DEPLOYMENT_TARGET = 7.0; OTHER_CFLAGS = "-fembed-bitcode"; OTHER_LDFLAGS = ""; diff --git a/iOS_SDK/OneSignal.xcodeproj/xcshareddata/xcschemes/OneSignal-Dynamic.xcscheme b/iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/xcshareddata/xcschemes/OneSignal-Dynamic.xcscheme similarity index 100% rename from iOS_SDK/OneSignal.xcodeproj/xcshareddata/xcschemes/OneSignal-Dynamic.xcscheme rename to iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/xcshareddata/xcschemes/OneSignal-Dynamic.xcscheme diff --git a/iOS_SDK/OneSignal.xcodeproj/xcshareddata/xcschemes/OneSignal.xcscheme b/iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/xcshareddata/xcschemes/OneSignal.xcscheme similarity index 100% rename from iOS_SDK/OneSignal.xcodeproj/xcshareddata/xcschemes/OneSignal.xcscheme rename to iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/xcshareddata/xcschemes/OneSignal.xcscheme diff --git a/iOS_SDK/OneSignal.xcodeproj/xcshareddata/xcschemes/UnitTests.xcscheme b/iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/xcshareddata/xcschemes/UnitTests.xcscheme similarity index 100% rename from iOS_SDK/OneSignal.xcodeproj/xcshareddata/xcschemes/UnitTests.xcscheme rename to iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/xcshareddata/xcschemes/UnitTests.xcscheme diff --git a/iOS_SDK/OneSignal/OneSignal.h b/iOS_SDK/OneSignalSDK/Source/OneSignal.h similarity index 100% rename from iOS_SDK/OneSignal/OneSignal.h rename to iOS_SDK/OneSignalSDK/Source/OneSignal.h diff --git a/iOS_SDK/OneSignal/OneSignal.m b/iOS_SDK/OneSignalSDK/Source/OneSignal.m similarity index 100% rename from iOS_SDK/OneSignal/OneSignal.m rename to iOS_SDK/OneSignalSDK/Source/OneSignal.m diff --git a/iOS_SDK/OneSignal/OneSignalAlertViewDelegate.h b/iOS_SDK/OneSignalSDK/Source/OneSignalAlertViewDelegate.h similarity index 100% rename from iOS_SDK/OneSignal/OneSignalAlertViewDelegate.h rename to iOS_SDK/OneSignalSDK/Source/OneSignalAlertViewDelegate.h diff --git a/iOS_SDK/OneSignal/OneSignalAlertViewDelegate.m b/iOS_SDK/OneSignalSDK/Source/OneSignalAlertViewDelegate.m similarity index 100% rename from iOS_SDK/OneSignal/OneSignalAlertViewDelegate.m rename to iOS_SDK/OneSignalSDK/Source/OneSignalAlertViewDelegate.m diff --git a/iOS_SDK/OneSignal/OneSignalHTTPClient.h b/iOS_SDK/OneSignalSDK/Source/OneSignalHTTPClient.h similarity index 99% rename from iOS_SDK/OneSignal/OneSignalHTTPClient.h rename to iOS_SDK/OneSignalSDK/Source/OneSignalHTTPClient.h index a1d7b1d08..90422998f 100755 --- a/iOS_SDK/OneSignal/OneSignalHTTPClient.h +++ b/iOS_SDK/OneSignalSDK/Source/OneSignalHTTPClient.h @@ -31,4 +31,4 @@ - (NSMutableURLRequest*) requestWithMethod:(NSString*)method path:(NSString*)path; -@end \ No newline at end of file +@end diff --git a/iOS_SDK/OneSignal/OneSignalHTTPClient.m b/iOS_SDK/OneSignalSDK/Source/OneSignalHTTPClient.m similarity index 100% rename from iOS_SDK/OneSignal/OneSignalHTTPClient.m rename to iOS_SDK/OneSignalSDK/Source/OneSignalHTTPClient.m diff --git a/iOS_SDK/OneSignal/OneSignalHelper.h b/iOS_SDK/OneSignalSDK/Source/OneSignalHelper.h similarity index 100% rename from iOS_SDK/OneSignal/OneSignalHelper.h rename to iOS_SDK/OneSignalSDK/Source/OneSignalHelper.h diff --git a/iOS_SDK/OneSignal/OneSignalHelper.m b/iOS_SDK/OneSignalSDK/Source/OneSignalHelper.m similarity index 100% rename from iOS_SDK/OneSignal/OneSignalHelper.m rename to iOS_SDK/OneSignalSDK/Source/OneSignalHelper.m diff --git a/iOS_SDK/OneSignalJailbreakDettection/OneSignalJailbreakDetection.h b/iOS_SDK/OneSignalSDK/Source/OneSignalJailbreakDetection.h similarity index 100% rename from iOS_SDK/OneSignalJailbreakDettection/OneSignalJailbreakDetection.h rename to iOS_SDK/OneSignalSDK/Source/OneSignalJailbreakDetection.h diff --git a/iOS_SDK/OneSignalJailbreakDettection/OneSignalJailbreakDetection.m b/iOS_SDK/OneSignalSDK/Source/OneSignalJailbreakDetection.m similarity index 100% rename from iOS_SDK/OneSignalJailbreakDettection/OneSignalJailbreakDetection.m rename to iOS_SDK/OneSignalSDK/Source/OneSignalJailbreakDetection.m diff --git a/iOS_SDK/OneSignal/OneSignalLocation.h b/iOS_SDK/OneSignalSDK/Source/OneSignalLocation.h similarity index 100% rename from iOS_SDK/OneSignal/OneSignalLocation.h rename to iOS_SDK/OneSignalSDK/Source/OneSignalLocation.h diff --git a/iOS_SDK/OneSignal/OneSignalLocation.m b/iOS_SDK/OneSignalSDK/Source/OneSignalLocation.m similarity index 100% rename from iOS_SDK/OneSignal/OneSignalLocation.m rename to iOS_SDK/OneSignalSDK/Source/OneSignalLocation.m diff --git a/iOS_SDK/OneSignalMobileProvision/OneSignalMobileProvision.h b/iOS_SDK/OneSignalSDK/Source/OneSignalMobileProvision.h similarity index 100% rename from iOS_SDK/OneSignalMobileProvision/OneSignalMobileProvision.h rename to iOS_SDK/OneSignalSDK/Source/OneSignalMobileProvision.h diff --git a/iOS_SDK/OneSignalMobileProvision/OneSignalMobileProvision.m b/iOS_SDK/OneSignalSDK/Source/OneSignalMobileProvision.m similarity index 100% rename from iOS_SDK/OneSignalMobileProvision/OneSignalMobileProvision.m rename to iOS_SDK/OneSignalSDK/Source/OneSignalMobileProvision.m diff --git a/iOS_SDK/OneSignalReachability/OneSignalReachability.h b/iOS_SDK/OneSignalSDK/Source/OneSignalReachability.h similarity index 100% rename from iOS_SDK/OneSignalReachability/OneSignalReachability.h rename to iOS_SDK/OneSignalSDK/Source/OneSignalReachability.h diff --git a/iOS_SDK/OneSignalReachability/OneSignalReachability.m b/iOS_SDK/OneSignalSDK/Source/OneSignalReachability.m similarity index 100% rename from iOS_SDK/OneSignalReachability/OneSignalReachability.m rename to iOS_SDK/OneSignalSDK/Source/OneSignalReachability.m diff --git a/iOS_SDK/OneSignal/OneSignalSelectorHelpers.h b/iOS_SDK/OneSignalSDK/Source/OneSignalSelectorHelpers.h similarity index 100% rename from iOS_SDK/OneSignal/OneSignalSelectorHelpers.h rename to iOS_SDK/OneSignalSDK/Source/OneSignalSelectorHelpers.h diff --git a/iOS_SDK/OneSignal/OneSignalSelectorHelpers.m b/iOS_SDK/OneSignalSDK/Source/OneSignalSelectorHelpers.m similarity index 100% rename from iOS_SDK/OneSignal/OneSignalSelectorHelpers.m rename to iOS_SDK/OneSignalSDK/Source/OneSignalSelectorHelpers.m diff --git a/iOS_SDK/OneSignal/OneSignalTrackIAP.h b/iOS_SDK/OneSignalSDK/Source/OneSignalTrackIAP.h similarity index 100% rename from iOS_SDK/OneSignal/OneSignalTrackIAP.h rename to iOS_SDK/OneSignalSDK/Source/OneSignalTrackIAP.h diff --git a/iOS_SDK/OneSignal/OneSignalTrackIAP.m b/iOS_SDK/OneSignalSDK/Source/OneSignalTrackIAP.m similarity index 100% rename from iOS_SDK/OneSignal/OneSignalTrackIAP.m rename to iOS_SDK/OneSignalSDK/Source/OneSignalTrackIAP.m diff --git a/iOS_SDK/OneSignalTracker.h b/iOS_SDK/OneSignalSDK/Source/OneSignalTracker.h similarity index 100% rename from iOS_SDK/OneSignalTracker.h rename to iOS_SDK/OneSignalSDK/Source/OneSignalTracker.h diff --git a/iOS_SDK/OneSignalTracker.m b/iOS_SDK/OneSignalSDK/Source/OneSignalTracker.m similarity index 100% rename from iOS_SDK/OneSignalTracker.m rename to iOS_SDK/OneSignalSDK/Source/OneSignalTracker.m diff --git a/iOS_SDK/OneSignalWebView.h b/iOS_SDK/OneSignalSDK/Source/OneSignalWebView.h similarity index 100% rename from iOS_SDK/OneSignalWebView.h rename to iOS_SDK/OneSignalSDK/Source/OneSignalWebView.h diff --git a/iOS_SDK/OneSignalWebView.m b/iOS_SDK/OneSignalSDK/Source/OneSignalWebView.m similarity index 100% rename from iOS_SDK/OneSignalWebView.m rename to iOS_SDK/OneSignalSDK/Source/OneSignalWebView.m diff --git a/iOS_SDK/OneSignal/UIApplicationDelegate+OneSignal.h b/iOS_SDK/OneSignalSDK/Source/UIApplicationDelegate+OneSignal.h similarity index 100% rename from iOS_SDK/OneSignal/UIApplicationDelegate+OneSignal.h rename to iOS_SDK/OneSignalSDK/Source/UIApplicationDelegate+OneSignal.h diff --git a/iOS_SDK/OneSignal/UIApplicationDelegate+OneSignal.m b/iOS_SDK/OneSignalSDK/Source/UIApplicationDelegate+OneSignal.m similarity index 100% rename from iOS_SDK/OneSignal/UIApplicationDelegate+OneSignal.m rename to iOS_SDK/OneSignalSDK/Source/UIApplicationDelegate+OneSignal.m diff --git a/iOS_SDK/OneSignal/UNUserNotificationCenter+OneSignal.h b/iOS_SDK/OneSignalSDK/Source/UNUserNotificationCenter+OneSignal.h similarity index 100% rename from iOS_SDK/OneSignal/UNUserNotificationCenter+OneSignal.h rename to iOS_SDK/OneSignalSDK/Source/UNUserNotificationCenter+OneSignal.h diff --git a/iOS_SDK/OneSignal/UNUserNotificationCenter+OneSignal.m b/iOS_SDK/OneSignalSDK/Source/UNUserNotificationCenter+OneSignal.m similarity index 100% rename from iOS_SDK/OneSignal/UNUserNotificationCenter+OneSignal.m rename to iOS_SDK/OneSignalSDK/Source/UNUserNotificationCenter+OneSignal.m diff --git a/iOS_SDK/UnitTests/Info.plist b/iOS_SDK/OneSignalSDK/UnitTests/Info.plist similarity index 100% rename from iOS_SDK/UnitTests/Info.plist rename to iOS_SDK/OneSignalSDK/UnitTests/Info.plist diff --git a/iOS_SDK/UnitTests/UnitTests.m b/iOS_SDK/OneSignalSDK/UnitTests/UnitTests.m similarity index 100% rename from iOS_SDK/UnitTests/UnitTests.m rename to iOS_SDK/OneSignalSDK/UnitTests/UnitTests.m