Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/haifengkao/hftagmanager

a open source Google Tag Manager clone for iOS
https://github.com/haifengkao/hftagmanager

Last synced: about 1 month ago
JSON representation

a open source Google Tag Manager clone for iOS

Awesome Lists containing this project

README

        

# HFTAGManager

[![CI Status](http://img.shields.io/travis/haifengkao/HFTAGManager.svg?style=flat)](https://travis-ci.org/haifengkao/HFTAGManager)
[![Coverage Status](https://codecov.io/gh/haifengkao/HFTAGManager/branch/master/graph/badge.svg)](https://codecov.io/gh/haifengkao/HFTAGManager)
[![Version](https://img.shields.io/cocoapods/v/HFTAGManager.svg?style=flat)](http://cocoapods.org/pods/HFTAGManager)
[![License](https://img.shields.io/cocoapods/l/HFTAGManager.svg?style=flat)](http://cocoapods.org/pods/HFTAGManager)
[![Platform](https://img.shields.io/cocoapods/p/HFTAGManager.svg?style=flat)](http://cocoapods.org/pods/HFTAGManager)

## Usage

To run the example project, clone the repo, and run `pod install` from the Example directory first.

```objc
HFTAGRule* rule = [[HFTAGRule alloc] initWithBlock:^[(TagRule* rule){
NSPredicate *purchased = [NSPredicate predicateWithFormat:@"SELF.isPurchased MATCHES %@", @"1"];
[rule setPredicate:purchased rule:@{@"gift":@"apple"}];

// not purchased
[rule setPredicate:nil rule:@{@"gift":@"nothing"}];
}];
NSDictionary* gift = [container dictionaryForKey:@"specialGift" defaultRule:rule];
```

## Requirements

## Installation

HFTAGManager is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod "HFTAGManager"
```

## Author

Hai Feng Kao, [email protected]

## License

HFTAGManager is available under the MIT license. See the LICENSE file for more info.