Giter Club home page Giter Club logo

yanalytics-ios's People

Contributors

mpospese avatar sahilsainiyml avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mpospese

yanalytics-ios's Issues

Hide Pull Request Template

Hide the Pull Request Template file by moving it to the .github directory.

Rename PULL_REQUEST_TEMPLATE.md to .github/pull_request_template.md
Update link in README under the ### Pull Requests section to reflect the new name and location.

Add SPI Shields

  • Add shields.io badges to README for
    • swift version
    • platform compatibility
  • In the above order
  • Immediately below the banner image but above the italicized tagline

Add Mock and Spy AnalyticsEngine implementations

Introduction

Mocks and Spies are both useful tools for testing our products.

Task

  1. Move MockAnalyticsEngine from Test to Sources
    a. mark public and fully document
    b. revise to store only a single array of events: [AnalyticsEvents]
    c. if necessary, convert the 3 typed arrays into computed properties that filter events by type and return only the linked values.
  2. Create SpyAnalyticsEngine which should be similar to CompoundAnalyticsEngine in that it takes as a parameter an AnalyticsEngine and then combines it with a MockAnalyticsEngine (basically adds a mock engine to any engine).
  3. Fully unit test the two new engines.

Add `EventFactory` protocol

Add a protocol EventFactory that can be anything that makes an event.

/// Generates an analytics event
public protocol EventFactory {
    /// Event name
    var name: String { get }
    /// Event parameters
    var parameters: Metadata? { get }

    /// The event
    var event: AnalyticsEvent { get }
}

add a track(event: EventFactory) override to AnalyticsEngine and give it a default implementation:

public func track(event factory: EventFactory) { track(event: factory.event }

Release a new version once the PR is merged.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.