You are on page 1of 1

/**

* Copyright 2015 Ruckus Wireless, Inc. All rights reserved.


*
* RUCKUS WIRELESS, INC. CONFIDENTIAL -
* This is an unpublished, proprietary work of Ruckus Wireless, Inc., and is
* fully protected under copyright and trade secret laws. You may not view,
* use, disclose, copy, or distribute this file or any information contained
* herein except pursuant to a valid license from Ruckus.
*/
package com.ruckuswireless.rwanalytics;

import com.testfairy.TestFairy;
import android.content.Context;
/**
* Wrapper class responsible for handling all analytics Hits
*
* @author Ruckus Android Team
*
*/
public class RWTFAnalytics {

private static RWTFAnalytics rwtfAnalytics;


private boolean isTestFairyEnabled;
private boolean isTestFairyConfigured = false;
private RWTFAnalytics() {
}

/**
* Return the singleton instance of RMFAnalytics
*
* @return {@link RMFAnalytics}
*/
public static RWTFAnalytics getInstance() {
if (rwtfAnalytics == null) {
rwtfAnalytics = new RWTFAnalytics();
}
return rwtfAnalytics;
}

public void init(Context context, String key, String testFairyKey) {


if (!isTestFairyConfigured) {
isTestFairyConfigured = true;
//TestFairy
TestFairy.begin(context, testFairyKey);
isTestFairyEnabled = true;
}

}
}

You might also like