Skip to content

Commit 0bf9866

Browse files
committed
Prepare for release 4.0.0
1 parent 3386cec commit 0bf9866

File tree

6 files changed

+33
-12
lines changed

6 files changed

+33
-12
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 4.0.0
2+
3+
#### Breaking
4+
- Updated to [Braze iOS SDK 4.0.1](https://github.com/Appboy/appboy-ios-sdk/blob/master/CHANGELOG.md#401).
5+
16
## 3.6.1
27

38
#### Fixed

CocoapodsExample/Segment-Appboy/SEGViewController.m

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ - (void)viewDidLoad
1414
{
1515
[super viewDidLoad];
1616
[self contentCardsUpdated:nil];
17+
[self userIDTextField].text = [[NSUserDefaults standardUserDefaults] stringForKey:@"userID"];
1718
[[NSNotificationCenter defaultCenter] addObserver:self
1819
selector:@selector(contentCardsUpdated:)
1920
name:ABKContentCardsProcessedNotification
@@ -35,7 +36,11 @@ - (IBAction)identifyButtonPress:(id)sender {
3536
NSString *userID = @"appboySegmentTestUseriOS";
3637
if (self.userIDTextField.text.length > 0) {
3738
userID = self.userIDTextField.text;
39+
} else {
40+
[self userIDTextField].text = userID;
3841
}
42+
[[NSUserDefaults standardUserDefaults] setObject:userID forKey:@"userID"];
43+
[[NSUserDefaults standardUserDefaults] synchronize];
3944
[[SEGAnalytics sharedAnalytics] identify:userID
4045
traits:@{ @"email": @"[email protected]",
4146
@"bool" : @(YES),

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let package = Package(
1313
],
1414
dependencies: [
1515
.package(name: "Segment", url: "https://github.com/segmentio/analytics-ios.git", from: "4.1.1"),
16-
.package(name: "Appboy_iOS_SDK", url: "https://github.com/Appboy/appboy-ios-sdk.git", from: "3.31.0"),
16+
.package(name: "Appboy_iOS_SDK", url: "https://github.com/Appboy/appboy-ios-sdk.git", from: "4.0.1"),
1717
],
1818
targets: [
1919
.target(

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,21 @@ carthage update
4343

4444
Follow the standard procedure to add the frameworks built/retrieved by Carthage to your project (see [Adding frameworks to an application](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application))
4545

46+
### Swift Package Manager
47+
48+
To install the Braze integration through Swift Package Manager, follow these steps:
49+
50+
- Select `File > Swift Packages > Add Package Dependency`.
51+
- In the search bar, enter https://github.com/Appboy/segment-ios. Select either `Full-SDK` or `Core`, depending on your use case.
52+
- In your app's target, under `Build Settings > Other Linker Flags`, add the `-ObjC` linker flag.
53+
- In the Xcode menu, click `Product > Scheme > Edit Scheme...`
54+
- Click the expand ▶️ next to `Build` and select `Post-actions`. Press `+` and select `New Run Script Action`.
55+
- In the dropdown next to `Provide build settings from`, select your app's target.
56+
- Copy this script into the open field:
57+
```
58+
bash "$BUILT_PRODUCTS_DIR/Appboy_iOS_SDK_AppboyKit.bundle/Appboy.bundle/appboy-spm-cleanup.sh"
59+
```
60+
4661
## Usage
4762

4863
After adding the dependency, you must register the integration with our SDK. To do this, import the Braze integration in your AppDelegate:

Segment-Appboy.podspec

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Segment-Appboy"
3-
s.version = "3.6.1"
3+
s.version = "4.0.0"
44
s.summary = "Braze Integration for Segment's analytics-ios library."
55

66
s.description = <<-DESC
@@ -21,32 +21,28 @@ Pod::Spec.new do |s|
2121
s.dependency 'Analytics'
2222
s.default_subspec = 'Full-SDK'
2323

24-
# Skip this architecture to pass Pod validation since we removed the `arm64` simulator ARCH in order to use lipo later
25-
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
26-
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
27-
2824
s.subspec 'Full-SDK' do |default|
29-
default.dependency 'Appboy-iOS-SDK', '~>3.31.0'
25+
default.dependency 'Appboy-iOS-SDK', '~>4.0.1'
3026
default.source_files = 'Pod/Classes/**/*'
3127
end
3228

3329
s.subspec 'Core' do |core|
34-
core.dependency 'Appboy-iOS-SDK/Core', '~>3.31.0'
30+
core.dependency 'Appboy-iOS-SDK/Core', '~>4.0.1'
3531
core.source_files = 'Pod/Classes/**/*'
3632
end
3733

3834
s.subspec 'InAppMessage' do |iam|
39-
iam.dependency 'Appboy-iOS-SDK/InAppMessage', '~>3.31.0'
35+
iam.dependency 'Appboy-iOS-SDK/InAppMessage', '~>4.0.1'
4036
iam.source_files = 'Pod/Classes/**/*'
4137
end
4238

4339
s.subspec 'NewsFeed' do |nf|
44-
nf.dependency 'Appboy-iOS-SDK/NewsFeed', '~>3.31.0'
40+
nf.dependency 'Appboy-iOS-SDK/NewsFeed', '~>4.0.1'
4541
nf.source_files = 'Pod/Classes/**/*'
4642
end
4743

4844
s.subspec 'ContentCards' do |cc|
49-
cc.dependency 'Appboy-iOS-SDK/ContentCards', '~>3.31.0'
45+
cc.dependency 'Appboy-iOS-SDK/ContentCards', '~>4.0.1'
5046
cc.source_files = 'Pod/Classes/**/*'
5147
end
5248

Segment_Appboy.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "3.6.1": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.6.1/Segment_Appboy.framework.zip", "3.6.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.6.0/Segment_Appboy.framework.zip", "3.5.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.5.0/Segment_Appboy.framework.zip", "3.4.1": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.4.1/Segment_Appboy.framework.zip", "3.4.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.4.0/Segment_Appboy.framework.zip", "3.3.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.3.0/Segment_Appboy.framework.zip", "3.2.0" : "https://github.com/Appboy/appboy-segment-ios/releases/download/3.2.0/Segment_Appboy.framework.zip"}
1+
{ "4.0.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/4.0.0/Segment_Appboy.framework.zip", "3.6.1": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.6.1/Segment_Appboy.framework.zip", "3.6.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.6.0/Segment_Appboy.framework.zip", "3.5.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.5.0/Segment_Appboy.framework.zip", "3.4.1": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.4.1/Segment_Appboy.framework.zip", "3.4.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.4.0/Segment_Appboy.framework.zip", "3.3.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.3.0/Segment_Appboy.framework.zip", "3.2.0" : "https://github.com/Appboy/appboy-segment-ios/releases/download/3.2.0/Segment_Appboy.framework.zip"}

0 commit comments

Comments
 (0)