Update sample app to use new CCTDestination.
@@ -18,7 +18,7 @@ import android.content.Context;
import com.google.android.datatransport.Event;
import com.google.android.datatransport.Transport;
import com.google.android.datatransport.TransportFactory;
-import com.google.android.datatransport.cct.LegacyFlgDestination;
+import com.google.android.datatransport.cct.CCTDestination;
import com.google.android.datatransport.runtime.TransportRuntime;
public class TransportSample implements SampleCode {
@@ -29,7 +29,7 @@ public class TransportSample implements SampleCode {
TransportRuntime.initialize(context);
TransportFactory f =
- TransportRuntime.getInstance().newFactory(LegacyFlgDestination.DEFAULT_INSTANCE);
+ TransportRuntime.getInstance().newFactory(CCTDestination.INSTANCE);
Transport<String> t = f.getTransport("123", String.class, String::getBytes);
t.send(Event.ofData("Hello"));
t.send(Event.ofTelemetry(1, "World"));
