diff --git a/.gitignore b/.gitignore index 20480f0..c7c0aba 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,8 @@ Source/tealium_android/.project Source/tealium_android/.settings/ Source/tealium_android/android/build/ Source/tealium_android/bin/ + +build/ +build.log +.idea +build*.sh diff --git a/QUICKSTART.md b/QUICKSTART.md deleted file mode 100644 index f1216a2..0000000 --- a/QUICKSTART.md +++ /dev/null @@ -1,99 +0,0 @@ -# Titanium SDK - -This plugin bridges Titanium's system to our existing [Android](http://www.github.com/tealium/android-library) and [iOS](http://www.github.com/tealium/ios-library) native libraries. - -To integrate: - -* [Add the modules to the Titanium SDK](#1-add-the-modules-to-the-titanium-sdk) -* [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. 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 - - - - com.tealium.appcelerator.android - com.tealium.appcelerator.ios - - - -``` - -## 4. Add the tealium.js file - -Copy ```Source/tealium.js``` into the project: - -**Alloy** - -In ```/app/assets/``` - -**Classic** - -In ```/Resources/``` - -## 5. Import the modules - -Add the include and initialization code: - -```javascript -Ti.include("tealium.js"); -/* -Tealium.initialize( - , - , - , - isRelease); -*/ -Tealium.initialize("tealiummobile", "demo", "dev", false); -``` - -**Alloy** - -In ```/app/alloy.js``` - -**Classic** - -In ```/Resources/app.js``` - -> When ```isRelease``` is false, Tealium Library logs will be visible in the console. - -## 6. Add view track calls - -```javascript -/* -Tealium.trackView(, ); -*/ -Tealium.trackView('view_name', { - 'data_source-key' : 'data_source-value' -}); -``` - -## 7. Add event track calls - -```javascript -/* -Tealium.trackEvent(, ); -*/ -Tealium.trackEvent('button_name', { - 'data_source-key' : 'data_source-value' -}); -``` \ No newline at end of file diff --git a/README.md b/README.md index b67eca4..2d48589 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,21 @@ -# Tealium Titanium Plugin +## Tealium Titanium Library -This plugin brings the power of [Tealium's mobile tag management solution](http://tealium.com/products/tealium-for-mobile/) to Titanium applications. It provides a bridge to the native [Android](https://github.com/Tealium/android-library) and [iOS](https://github.com/Tealium/ios-library) libraries. +[![License](https://img.shields.io/badge/license-Proprietary-blue.svg?style=flat + )](https://github.com/Tealium/cordova-plugin/blob/master/LICENSE.txt) +![Platform](https://img.shields.io/badge/platform-iOS%20android-lightgrey.svg?style=flat + ) +![Language](https://img.shields.io/badge/language-javascript%20java%20objective--c-orange.svg) -## What is Tealium iQ Tag Management ? -The [Tealium iQ™](http://tealium.com/products/tealium-iq-tag-management-system/) tag management system is a powerful and highly extensible solution that helps marketers easily manage their mission-critical technologies across web and mobile channels. Tealium iQ drives the complexity out of vendor tag deployments and is the cornerstone for achieving unified marketing, i.e., the ability to harmonize applications and data to drive superior cross-channel customer interactions. +## Documentation +For full documentation, please see the Tealium Developer Docs: -## How To Get Started - -Check out the [Quickstart](QUICKSTART.md) guide for a step by step walkthough of adding Tealium to an extisting project - -## Communication - -* If you have **code questions** or have experienced **errors** please post an issue in the [issues page](../../issues) -* If you have **general questions** or want to network with other users please visit the [Tealium Learning Community](https://community.tealiumiq.com) -* If you have **account specific questions** please contact your Tealium account manager +[https://docs.tealium.com/platforms/titanium/](https://docs.tealium.com/platforms/titanium/) ## License Use of this software is subject to the terms and conditions of the license agreement contained in the file titled "LICENSE.txt". Please read the license before downloading or using any of the files contained in this repository. By downloading or using any of these files, you are agreeing to be bound by and comply with the license agreement. --------------------------------------------- - -Copyright (C) 2012-2015, Tealium Inc. + +--- +Copyright (C) 2012-2020, Tealium Inc. diff --git a/Samples/Alloy/app/alloy.js b/Samples/Alloy/app/alloy.js deleted file mode 100644 index 1a5c7e9..0000000 --- a/Samples/Alloy/app/alloy.js +++ /dev/null @@ -1,14 +0,0 @@ -// The contents of this file will be executed before any of -// your view controllers are ever executed, including the index. -// You have access to all functionality on the `Alloy` namespace. -// -// This is a great place to do any initialization for your app -// or create any global variables/functions that you'd like to -// make available throughout your app. You can easily make things -// accessible globally by attaching them to the `Alloy.Globals` -// object. For example: -// -// Alloy.Globals.someGlobalFunction = function(){}; - -Ti.include("tealium.js"); -Tealium.initialize("tealiummobile", "demo", "dev", false); \ No newline at end of file diff --git a/Samples/Alloy/app/assets/android/default.png b/Samples/Alloy/app/assets/android/default.png deleted file mode 100644 index 2578dc1..0000000 Binary files a/Samples/Alloy/app/assets/android/default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/android/images/res-long-land-hdpi/default.png b/Samples/Alloy/app/assets/android/images/res-long-land-hdpi/default.png deleted file mode 100644 index 289320d..0000000 Binary files a/Samples/Alloy/app/assets/android/images/res-long-land-hdpi/default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/android/images/res-long-land-ldpi/default.png b/Samples/Alloy/app/assets/android/images/res-long-land-ldpi/default.png deleted file mode 100644 index ed0cbf3..0000000 Binary files a/Samples/Alloy/app/assets/android/images/res-long-land-ldpi/default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/android/images/res-long-port-hdpi/default.png b/Samples/Alloy/app/assets/android/images/res-long-port-hdpi/default.png deleted file mode 100644 index 15dd8a7..0000000 Binary files a/Samples/Alloy/app/assets/android/images/res-long-port-hdpi/default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/android/images/res-long-port-ldpi/default.png b/Samples/Alloy/app/assets/android/images/res-long-port-ldpi/default.png deleted file mode 100644 index f472001..0000000 Binary files a/Samples/Alloy/app/assets/android/images/res-long-port-ldpi/default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/android/images/res-notlong-land-hdpi/default.png b/Samples/Alloy/app/assets/android/images/res-notlong-land-hdpi/default.png deleted file mode 100644 index 289320d..0000000 Binary files a/Samples/Alloy/app/assets/android/images/res-notlong-land-hdpi/default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/android/images/res-notlong-land-ldpi/default.png b/Samples/Alloy/app/assets/android/images/res-notlong-land-ldpi/default.png deleted file mode 100644 index 6cdb7d0..0000000 Binary files a/Samples/Alloy/app/assets/android/images/res-notlong-land-ldpi/default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/android/images/res-notlong-land-mdpi/default.png b/Samples/Alloy/app/assets/android/images/res-notlong-land-mdpi/default.png deleted file mode 100644 index ff7e57d..0000000 Binary files a/Samples/Alloy/app/assets/android/images/res-notlong-land-mdpi/default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/android/images/res-notlong-port-hdpi/default.png b/Samples/Alloy/app/assets/android/images/res-notlong-port-hdpi/default.png deleted file mode 100644 index 15dd8a7..0000000 Binary files a/Samples/Alloy/app/assets/android/images/res-notlong-port-hdpi/default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/android/images/res-notlong-port-ldpi/default.png b/Samples/Alloy/app/assets/android/images/res-notlong-port-ldpi/default.png deleted file mode 100644 index 06d0921..0000000 Binary files a/Samples/Alloy/app/assets/android/images/res-notlong-port-ldpi/default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/android/images/res-notlong-port-mdpi/default.png b/Samples/Alloy/app/assets/android/images/res-notlong-port-mdpi/default.png deleted file mode 100644 index 2578dc1..0000000 Binary files a/Samples/Alloy/app/assets/android/images/res-notlong-port-mdpi/default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/Default-568h@2x.png b/Samples/Alloy/app/assets/iphone/Default-568h@2x.png deleted file mode 100644 index e525fdb..0000000 Binary files a/Samples/Alloy/app/assets/iphone/Default-568h@2x.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/Default-667h@2x.png b/Samples/Alloy/app/assets/iphone/Default-667h@2x.png deleted file mode 100644 index db6f19c..0000000 Binary files a/Samples/Alloy/app/assets/iphone/Default-667h@2x.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/Default-Landscape-736h@3x.png b/Samples/Alloy/app/assets/iphone/Default-Landscape-736h@3x.png deleted file mode 100644 index a7610c5..0000000 Binary files a/Samples/Alloy/app/assets/iphone/Default-Landscape-736h@3x.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/Default-Landscape.png b/Samples/Alloy/app/assets/iphone/Default-Landscape.png deleted file mode 100644 index 6bba052..0000000 Binary files a/Samples/Alloy/app/assets/iphone/Default-Landscape.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/Default-Landscape@2x.png b/Samples/Alloy/app/assets/iphone/Default-Landscape@2x.png deleted file mode 100644 index 1095335..0000000 Binary files a/Samples/Alloy/app/assets/iphone/Default-Landscape@2x.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/Default-Portrait-736h@3x.png b/Samples/Alloy/app/assets/iphone/Default-Portrait-736h@3x.png deleted file mode 100644 index 34c8135..0000000 Binary files a/Samples/Alloy/app/assets/iphone/Default-Portrait-736h@3x.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/Default-Portrait.png b/Samples/Alloy/app/assets/iphone/Default-Portrait.png deleted file mode 100644 index e50bd88..0000000 Binary files a/Samples/Alloy/app/assets/iphone/Default-Portrait.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/Default-Portrait@2x.png b/Samples/Alloy/app/assets/iphone/Default-Portrait@2x.png deleted file mode 100644 index c77e53a..0000000 Binary files a/Samples/Alloy/app/assets/iphone/Default-Portrait@2x.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/Default.png b/Samples/Alloy/app/assets/iphone/Default.png deleted file mode 100644 index 6ad4820..0000000 Binary files a/Samples/Alloy/app/assets/iphone/Default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/Default@2x.png b/Samples/Alloy/app/assets/iphone/Default@2x.png deleted file mode 100644 index 62add74..0000000 Binary files a/Samples/Alloy/app/assets/iphone/Default@2x.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/appicon-60.png b/Samples/Alloy/app/assets/iphone/appicon-60.png deleted file mode 100644 index 587a029..0000000 Binary files a/Samples/Alloy/app/assets/iphone/appicon-60.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/appicon-60@2x.png b/Samples/Alloy/app/assets/iphone/appicon-60@2x.png deleted file mode 100644 index d9aae83..0000000 Binary files a/Samples/Alloy/app/assets/iphone/appicon-60@2x.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/appicon-60@3x.png b/Samples/Alloy/app/assets/iphone/appicon-60@3x.png deleted file mode 100644 index 3abeefa..0000000 Binary files a/Samples/Alloy/app/assets/iphone/appicon-60@3x.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/appicon-72.png b/Samples/Alloy/app/assets/iphone/appicon-72.png deleted file mode 100644 index 8fdf5a9..0000000 Binary files a/Samples/Alloy/app/assets/iphone/appicon-72.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/appicon-72@2x.png b/Samples/Alloy/app/assets/iphone/appicon-72@2x.png deleted file mode 100644 index b3ef1ca..0000000 Binary files a/Samples/Alloy/app/assets/iphone/appicon-72@2x.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/appicon-Small-50.png b/Samples/Alloy/app/assets/iphone/appicon-Small-50.png deleted file mode 100644 index 244b8ec..0000000 Binary files a/Samples/Alloy/app/assets/iphone/appicon-Small-50.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/appicon-Small.png b/Samples/Alloy/app/assets/iphone/appicon-Small.png deleted file mode 100644 index f74c286..0000000 Binary files a/Samples/Alloy/app/assets/iphone/appicon-Small.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/appicon-Small@2x.png b/Samples/Alloy/app/assets/iphone/appicon-Small@2x.png deleted file mode 100644 index b94865e..0000000 Binary files a/Samples/Alloy/app/assets/iphone/appicon-Small@2x.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/appicon.png b/Samples/Alloy/app/assets/iphone/appicon.png deleted file mode 100644 index f7bde5b..0000000 Binary files a/Samples/Alloy/app/assets/iphone/appicon.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/appicon@2x.png b/Samples/Alloy/app/assets/iphone/appicon@2x.png deleted file mode 100644 index 05ee350..0000000 Binary files a/Samples/Alloy/app/assets/iphone/appicon@2x.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/iphone/iTunesArtwork b/Samples/Alloy/app/assets/iphone/iTunesArtwork deleted file mode 100644 index 0f76405..0000000 Binary files a/Samples/Alloy/app/assets/iphone/iTunesArtwork and /dev/null differ diff --git a/Samples/Alloy/app/assets/mobileweb/appicon.png b/Samples/Alloy/app/assets/mobileweb/appicon.png deleted file mode 100644 index 7e73d18..0000000 Binary files a/Samples/Alloy/app/assets/mobileweb/appicon.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default-Landscape.jpg b/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default-Landscape.jpg deleted file mode 100644 index 3b5d947..0000000 Binary files a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default-Landscape.jpg and /dev/null differ diff --git a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default-Landscape.png b/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default-Landscape.png deleted file mode 100644 index 0414898..0000000 Binary files a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default-Landscape.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default-Portrait.jpg b/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default-Portrait.jpg deleted file mode 100644 index b217ee4..0000000 Binary files a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default-Portrait.jpg and /dev/null differ diff --git a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default-Portrait.png b/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default-Portrait.png deleted file mode 100644 index 52fd998..0000000 Binary files a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default-Portrait.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default.jpg b/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default.jpg deleted file mode 100644 index f7c0c0d..0000000 Binary files a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default.jpg and /dev/null differ diff --git a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default.png b/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default.png deleted file mode 100644 index d89dc7b..0000000 Binary files a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/Default.png and /dev/null differ diff --git a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/README b/Samples/Alloy/app/assets/mobileweb/apple_startup_images/README deleted file mode 100644 index 6d8006a..0000000 --- a/Samples/Alloy/app/assets/mobileweb/apple_startup_images/README +++ /dev/null @@ -1,8 +0,0 @@ -These startup images are used by iPhone and iPad apps that are installed to the -home screen. These images are displayed before the splash screen is displayed. - -If you want to create a new splash screen, it is recommended that you start by -modifying the files in the adjacent "splash" folder, then take screenshots of -device, crop, and save into this directory. This is the best way to avoid visual -artifacts when the app transitions from the Apple startup images to the splash -screen assets. diff --git a/Samples/Alloy/app/assets/mobileweb/splash/README b/Samples/Alloy/app/assets/mobileweb/splash/README deleted file mode 100644 index 461faf4..0000000 --- a/Samples/Alloy/app/assets/mobileweb/splash/README +++ /dev/null @@ -1,49 +0,0 @@ -This folder contains assets to make the startup splash screen assets. Splash -screens are made up of HTML and CSS. This allows you the flexibility to -customize your splash screen to fit a variety of screen sizes and orientations. - - -splash.html ------------ -Contains an HTML fragment that is inserted into a div tag with an id="splash". -You can choose to leave this file empty. You can put