Latest 0.0.1
Homepage https://github.com/KomodoHQ/KMDDeDupeDictionaries
License MIT
Platforms ios 8.0, requires ARC
Authors

Version
License
Platform

Description

KMDDeDupeDictionaries is an iOS Library to track if dictionaries are duplicated within a given timeout period. This can be useful for example in discarding duplicate remote notifications by examining the dictionaries sent from the server.

This libary supports overriding the default storage type (PList) with custom storage such as SQLLite or NSUserDefaults. Simply conform to KMDDDStorageType and set StorageType to be custom on the manager.

Note: This library is an initial version, as such has not been extensively tested yet (nor does it include tests as yet). Library is very much subject to change.

Usage

  1. Pod install.
  2. Setup a manager. A manager requires a storage type (default will use PLists), a unique identifier (in case you wish to have more than one tracker) and a timeout after which old entries will be pruned

    [[KMDDDManager sharedDictionaryManager] setStoreType:KMDDDStoreTypeDefault identifier:@"NotificationManager" timeout:60*60*24];
  3. Check a dictionary is a duplicate

    [[KMDDDManager sharedDictionaryManager] checkDictionaryisDuplicate:userInfo];

    OR use convenience method added to NSDictionary

    [userInfo isDuplicated]
  4. Track a dictionary

    [[KMDDDManager sharedDictionaryManager] manageDictionary:userInfo];

    OR use convenience method added to NSDictionary

    [userInfo trackDuplicate]

Requirements

No dependancies, though please note this library uses CommonCrypto to generate MD5 hashes and may need to be considered as part of US Export Licence law.

Installation

KMDDeDupeDictionaries is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "KMDDeDupeDictionaries"

Author

Ian Outterside, [email protected]

License

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

Latest podspec

{
    "name": "KMDDeDupeDictionaries",
    "version": "0.0.1",
    "summary": "iOS Library to track if dictionaries are duplicated within a timeout.",
    "description": "iOS Library to track if dictionaries are duplicated within a given timeout period. This can be useful for example in discarding duplicate remote notifications by examining the dictionaries sent from the server.nnThis libary supports overriding the default storage type (PList) with custom storage such as SQLLite or NSUserDefaults. Simply conform to KMDDDStorageType and set StorageType to be custom on the manager.",
    "homepage": "https://github.com/KomodoHQ/KMDDeDupeDictionaries",
    "license": "MIT",
    "authors": {
        "Ian Outterside": "[email protected]"
    },
    "source": {
        "git": "https://github.com/KomodoHQ/KMDDeDupeDictionaries.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "KMDDeDupeDictionaries": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This