Skip to content

Commit

Permalink
Additional resources renamed to ONSExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
judsd committed Jun 3, 2024
1 parent de19713 commit 0861214
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion ONSExtension.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pod::Spec.new do |spec|

spec.platform = :ios, "12.0"
spec.swift_version = ['5.0', '5.1', '5.2', '5.3']
spec.source = { :git => "https://github.com/tactint/ONSBatch-iOS-SDK-Extension.git", :tag => "#{spec.version}" }
spec.source = { :git => "https://github.com/tactint/ONS-iOS-SDK-Extension.git", :tag => "#{spec.version}" }

spec.requires_arc = true
spec.source_files = [ "Sources/**/*.{h,m}", "Sources/**/*.swift" ]
Expand Down
10 changes: 5 additions & 5 deletions ONSExtension.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
containerPortal = 51F7ECE9236092FF00E01CD2 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 51F7ECF1236092FF00E01CD2;
remoteInfo = BatchExtension;
remoteInfo = ONSExtension;
};
/* End PBXContainerItemProxy section */

Expand Down Expand Up @@ -165,7 +165,7 @@
dependencies = (
);
name = ONSExtension;
productName = BatchExtension;
productName = ONSExtension;
productReference = 51F7ECF2236092FF00E01CD2 /* ONSExtension.framework */;
productType = "com.apple.product-type.framework";
};
Expand All @@ -183,7 +183,7 @@
51F7ECFE236092FF00E01CD2 /* PBXTargetDependency */,
);
name = ONSExtensionTests;
productName = BatchExtensionTests;
productName = ONSExtensionTests;
productReference = 51F7ECFB236092FF00E01CD2 /* ONSExtensionTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
Expand Down Expand Up @@ -469,7 +469,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = foundation.p.ons.Extension.BatchExtensionTests;
PRODUCT_BUNDLE_IDENTIFIER = foundation.p.ons.Extension.ONSExtensionTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -488,7 +488,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = foundation.p.ons.Extension.BatchExtensionTests;
PRODUCT_BUNDLE_IDENTIFIER = foundation.p.ons.Extension.ONSExtensionTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "51F7ECF1236092FF00E01CD2"
BuildableName = "BatchExtension.framework"
BlueprintName = "BatchExtension"
ReferencedContainer = "container:BatchExtension.xcodeproj">
BuildableName = "ONSExtension.framework"
BlueprintName = "ONSExtension"
ReferencedContainer = "container:ONSExtension.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -33,9 +33,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "51F7ECFA236092FF00E01CD2"
BuildableName = "BatchExtensionTests.xctest"
BlueprintName = "BatchExtensionTests"
ReferencedContainer = "container:BatchExtension.xcodeproj">
BuildableName = "ONSExtensionTests.xctest"
BlueprintName = "ONSExtensionTests"
ReferencedContainer = "container:ONSExtension.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
Expand All @@ -61,9 +61,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "51F7ECF1236092FF00E01CD2"
BuildableName = "BatchExtension.framework"
BlueprintName = "BatchExtension"
ReferencedContainer = "container:BatchExtension.xcodeproj">
BuildableName = "ONSExtension.framework"
BlueprintName = "ONSExtension"
ReferencedContainer = "container:ONSExtension.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let package = Package(
dependencies: [],
path: "Sources/Swift",
resources: [.copy("PrivacyInfo.xcprivacy")],
swiftSettings: [.define("BATCHEXTENSION_PURE_SWIFT")]
swiftSettings: [.define("ONSExtension_PURE_SWIFT")]
),
]
)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You will also need to configure an app group shared by your extension and app. S

### Cocoapods

pod 'BatchExtension'
pod 'ONSExtension'

### Carthage

Expand Down
2 changes: 1 addition & 1 deletion Sources/Swift/Consts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import Foundation

struct Consts {
static let timeoutIntervalSecs = 20
static let attachmentIdentifier = "ons_batch_rich_attachment"
static let attachmentIdentifier = "ons_rich_attachment"
static let errorDomain = "foundation.p.ons.extension.richnotificationhelper"
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class RichNotificationHelper : NSObject {
public func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
appendRichData(toContent: request.content) { (content: UNNotificationContent?, error: Error?) in
if let error = error {
print("Batch - An error occurred while downloading the rich push content: \(error)")
print("ONS - An error occurred while downloading the rich push content: \(error)")
}
contentHandler(content ?? request.content)
}
Expand Down

0 comments on commit 0861214

Please sign in to comment.