codeandtheory / yanalytics-ios Goto Github PK
View Code? Open in Web Editor NEWY—Analytics: a generic analytics wrapper you can put around most any analytics framework
License: Apache License 2.0
Y—Analytics: a generic analytics wrapper you can put around most any analytics framework
License: Apache License 2.0
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.
Mocks and Spies are both useful tools for testing our products.
MockAnalyticsEngine
from Test to Sourcesevents: [AnalyticsEvents]
events
by type and return only the linked values.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).Otherwise it can't be used outside of the package.
public init()
It doesn't need any parameters, just documentation comments
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.