Skip to content

Commit

Permalink
Prepare for release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chshapiro committed Mar 22, 2021
1 parent 3386cec commit 0bf9866
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 4.0.0

#### Breaking
- Updated to [Braze iOS SDK 4.0.1](https://github.com/Appboy/appboy-ios-sdk/blob/master/CHANGELOG.md#401).

## 3.6.1

#### Fixed
Expand Down
5 changes: 5 additions & 0 deletions CocoapodsExample/Segment-Appboy/SEGViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ - (void)viewDidLoad
{
[super viewDidLoad];
[self contentCardsUpdated:nil];
[self userIDTextField].text = [[NSUserDefaults standardUserDefaults] stringForKey:@"userID"];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(contentCardsUpdated:)
name:ABKContentCardsProcessedNotification
Expand All @@ -35,7 +36,11 @@ - (IBAction)identifyButtonPress:(id)sender {
NSString *userID = @"appboySegmentTestUseriOS";
if (self.userIDTextField.text.length > 0) {
userID = self.userIDTextField.text;
} else {
[self userIDTextField].text = userID;
}
[[NSUserDefaults standardUserDefaults] setObject:userID forKey:@"userID"];
[[NSUserDefaults standardUserDefaults] synchronize];
[[SEGAnalytics sharedAnalytics] identify:userID
traits:@{ @"email": @"[email protected]",
@"bool" : @(YES),
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let package = Package(
],
dependencies: [
.package(name: "Segment", url: "https://github.com/segmentio/analytics-ios.git", from: "4.1.1"),
.package(name: "Appboy_iOS_SDK", url: "https://github.com/Appboy/appboy-ios-sdk.git", from: "3.31.0"),
.package(name: "Appboy_iOS_SDK", url: "https://github.com/Appboy/appboy-ios-sdk.git", from: "4.0.1"),
],
targets: [
.target(
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,21 @@ carthage update

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))

### Swift Package Manager

To install the Braze integration through Swift Package Manager, follow these steps:

- Select `File > Swift Packages > Add Package Dependency`.
- In the search bar, enter https://github.com/Appboy/segment-ios. Select either `Full-SDK` or `Core`, depending on your use case.
- In your app's target, under `Build Settings > Other Linker Flags`, add the `-ObjC` linker flag.
- In the Xcode menu, click `Product > Scheme > Edit Scheme...`
- Click the expand ▶️ next to `Build` and select `Post-actions`. Press `+` and select `New Run Script Action`.
- In the dropdown next to `Provide build settings from`, select your app's target.
- Copy this script into the open field:
```
bash "$BUILT_PRODUCTS_DIR/Appboy_iOS_SDK_AppboyKit.bundle/Appboy.bundle/appboy-spm-cleanup.sh"
```

## Usage

After adding the dependency, you must register the integration with our SDK. To do this, import the Braze integration in your AppDelegate:
Expand Down
16 changes: 6 additions & 10 deletions Segment-Appboy.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Segment-Appboy"
s.version = "3.6.1"
s.version = "4.0.0"
s.summary = "Braze Integration for Segment's analytics-ios library."

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

# Skip this architecture to pass Pod validation since we removed the `arm64` simulator ARCH in order to use lipo later
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

s.subspec 'Full-SDK' do |default|
default.dependency 'Appboy-iOS-SDK', '~>3.31.0'
default.dependency 'Appboy-iOS-SDK', '~>4.0.1'
default.source_files = 'Pod/Classes/**/*'
end

s.subspec 'Core' do |core|
core.dependency 'Appboy-iOS-SDK/Core', '~>3.31.0'
core.dependency 'Appboy-iOS-SDK/Core', '~>4.0.1'
core.source_files = 'Pod/Classes/**/*'
end

s.subspec 'InAppMessage' do |iam|
iam.dependency 'Appboy-iOS-SDK/InAppMessage', '~>3.31.0'
iam.dependency 'Appboy-iOS-SDK/InAppMessage', '~>4.0.1'
iam.source_files = 'Pod/Classes/**/*'
end

s.subspec 'NewsFeed' do |nf|
nf.dependency 'Appboy-iOS-SDK/NewsFeed', '~>3.31.0'
nf.dependency 'Appboy-iOS-SDK/NewsFeed', '~>4.0.1'
nf.source_files = 'Pod/Classes/**/*'
end

s.subspec 'ContentCards' do |cc|
cc.dependency 'Appboy-iOS-SDK/ContentCards', '~>3.31.0'
cc.dependency 'Appboy-iOS-SDK/ContentCards', '~>4.0.1'
cc.source_files = 'Pod/Classes/**/*'
end

Expand Down
2 changes: 1 addition & 1 deletion Segment_Appboy.json
Original file line number Diff line number Diff line change
@@ -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"}
{ "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 comments on commit 0bf9866

Please sign in to comment.