Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github "adjust/ios_sdk"
github "segmentio/analytics-ios"
2 changes: 2 additions & 0 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github "adjust/ios_sdk" "v4.17.1"
github "segmentio/analytics-ios" "3.6.10"
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
12 changes: 11 additions & 1 deletion Pod/Classes/SEGAdjustIntegration.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#import <Foundation/Foundation.h>
#import <Analytics/SEGAnalytics.h>
#import <Adjust/Adjust.h>
#import "SEGAdjustIntegrationFactory.h"

#ifdef CARTHAGE_BUILD
/* This header is used for XCode & Carthage build because when using adjust
as a Carthage dependency it is imported as AdjustSDK/Adjust.h */
#import <AdjustSdk/Adjust.h>
#else
/* This header is used for make build because when using adjust
as a cocoapods dependency it is imported as Adjust/Adjust.h */
#import <Adjust/Adjust.h>
#endif


@interface SEGAdjustIntegration : NSObject <SEGIntegration, AdjustDelegate>
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,30 @@
[![CircleCI](https://circleci.com/gh/segment-integrations/analytics-ios-integration-adjust.svg?style=svg)](https://circleci.com/gh/segment-integrations/analytics-ios-integration-adjust)
[![Version](https://img.shields.io/cocoapods/v/Segment-Adjust.svg?style=flat)](http://cocoapods.org/pods/Segment-Adjust)
[![License](https://img.shields.io/cocoapods/l/Segment-Adjust.svg?style=flat)](http://cocoapods.org/pods/Segment-Adjust)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)

Adjust integration for analytics-ios.

## Installation

### Cocoapods
To install the Segment-Adjust integration, simply add this line to your [CocoaPods](http://cocoapods.org) `Podfile`:

```ruby
pod "Segment-Adjust"
```

### Carthage
Or add this to your [Carthage](https://github.com/Carthage/Carthage) `Cartfile`:

```ruby
github "segment-integrations/analytics-ios-integration-adjust"
```

In the Xcode project, add a preprocessor macro `CARTHAGE_BUILD=1` to all targets and configurations.
This is necessary because Adjust uses different import statements depending on if it has been added
via Carthage or Cocoapods.

## Usage

After adding the dependency, you must register the integration with our SDK. To do this, import the Adjust integration in your `AppDelegate`:
Expand Down
Loading