Skip to content

Commit

Permalink
rm audio related classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin committed Apr 18, 2019
1 parent b0cf5e4 commit bd9d924
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 114 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.mapbox.android.telemetry;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -131,7 +132,7 @@ TelemetryClientSettings obtainSetting() {
}

private void sendBatch(List<Event> batch, Callback callback, boolean serializeNulls) {
Gson gson = new Gson();
Gson gson = serializeNulls ? new GsonBuilder().serializeNulls().create() : new Gson();
String payload = gson.toJson(batch);
RequestBody body = RequestBody.create(JSON, payload);
HttpUrl baseUrl = setting.getBaseUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static String obtainUniversalUniqueIdentifier() {
return universalUniqueIdentifier;
}

static String obtainApplicationState(Context context) {
public static String obtainApplicationState(Context context) {
ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> appProcesses = activityManager.getRunningAppProcesses();
if (appProcesses == null) {
Expand Down Expand Up @@ -147,7 +147,7 @@ public static String obtainCurrentDate() {
return dateFormat.format(new Date());
}

static String generateCreateDateFormatted(Date date) {
public static String generateCreateDateFormatted(Date date) {
return dateFormat.format(date);
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ private JsonObject grabSchema(String eventName) {
schema.remove("locationEnabled");
//temporary need to work out a solution to include this data
schema.remove("platform");
schema.remove("skuId");

return schema;
}
Expand Down

0 comments on commit bd9d924

Please sign in to comment.