Analytics extends AbstractAppCenterService { @Override public boolean isAppSecretRequired() { return false; } private  Analytics(); @SuppressWarnings({"WeakerAccess", "RedundantSuppression"}) static synchronized Analytics getInstance(); static AppCenterFuture<Boolean> isEnabled(); static AppCenterFuture<Void> setEnabled(boolean enabled); static boolean setTransmissionInterval(int seconds); static void pause(); static void resume(); static void trackEvent(String name); static void trackEvent(String name, Map<String, String> properties); static void trackEvent(String name, Map<String, String> properties, int flags); static void trackEvent(String name, EventProperties properties); static void trackEvent(String name, EventProperties properties, int flags); static AnalyticsTransmissionTarget getTransmissionTarget(String transmissionTargetToken); @Override boolean isAppSecretRequired(); @Override String getServiceName(); @Override Map<String, LogFactory> getLogFactories(); @Override synchronized void onActivityResumed(final Activity activity); @Override synchronized void onActivityPaused(Activity activity); @Override synchronized void onStarted(@NonNull Context context, @NonNull Channel channel, String appSecret, String transmissionTargetToken, boolean startedFromApp); @Override void onConfigurationUpdated(String appSecret, String transmissionTargetToken); static final String LOG_TAG; }
@Test public void isAppSecretRequired() { assertFalse(Analytics.getInstance().isAppSecretRequired()); }