Skip to content

Commit

Permalink
Added additional step
Browse files Browse the repository at this point in the history
  • Loading branch information
mobiledevtealium authored and mobiledevtealium committed Jul 1, 2015
1 parent c37faa6 commit eb9102c
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions QUICKSTART.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,27 @@ This plugin bridges Titanium's system to our existing [Android](http://www.githu
To integrate:

* [Add the modules to the Titanium SDK](#1-add-the-modules-to-the-titanium-sdk)
* [Reference the modules in the tiapp.xml file](#2-reference-the-modules-in-the-tiappxml-file)
* [Add the tealium.js file](#3-add-the-tealiumjs-file)
* [Import the modules](#4-import-the-modules)
* [Add view track calls](#5-add-view-track-calls)
* [Add event track calls](#6-add-event-track-calls)
* [Update the iOS module.xcconfig file](#2-update-the-ios-modulexcconfig-file)
* [Reference the modules in the tiapp.xml file](#3-reference-the-modules-in-the-tiappxml-file)
* [Add the tealium.js file](#4-add-the-tealiumjs-file)
* [Import the modules](#5-import-the-modules)
* [Add view track calls](#6-add-view-track-calls)
* [Add event track calls](#7-add-event-track-calls)

## 1. Add the modules to the Titanium SDK

* Paste the ```Modules/com.tealium.appcelerator.android``` module in the Titanium's ```android``` module directory.
* Paste the ```Modules/com.tealium.appcelerator.ios``` module in the Titanium's ```iphone``` module directory.

## 2. Reference the modules in the tiapp.xml file
## 2. Update the iOS module.xcconfig file

Make sure the ```TealiumLibrary``` framework's directory correctly points to the iOS module's ```frameworks``` directory in its ```module.xcconfig``` file.

*For example:*

```OTHER_LDFLAGS=$(inherited) -framework SystemConfiguration -F "~/Library/Application Support/Titanium/modules/iphone/com.tealium.appcelerator.ios/1.0.0/frameworks" -framework TealiumLibrary```

## 3. Reference the modules in the tiapp.xml file

```xml
<ti:app xmlns:ti="http://ti.appcelerator.org">
Expand All @@ -29,7 +38,7 @@ To integrate:
</ti:app>
```

## 3. Add the tealium.js file
## 4. Add the tealium.js file

Copy ```Source/tealium.js``` into the project:

Expand All @@ -41,7 +50,7 @@ In ```<PROJECT ROOT>/app/assets/```

In ```<PROJECT ROOT>/Resources/```

## 4. Import the modules
## 5. Import the modules

Add the include and initialization code:

Expand All @@ -67,7 +76,7 @@ In ```<PROJECT ROOT>/Resources/app.js```

> When ```isRelease``` is false, Tealium Library logs will be visible in the console.
## 5. Add view track calls
## 6. Add view track calls

```javascript
/*
Expand All @@ -78,7 +87,7 @@ Tealium.trackView('view_name', {
});
```

## 6. Add event track calls
## 7. Add event track calls

```javascript
/*
Expand Down

0 comments on commit eb9102c

Please sign in to comment.