Permalink
Browse files

[Mobile] Removed analytics code.

[Trivla] Bumped version numbers for release v0.111.
  • Loading branch information...
thecosmicfrog committed Oct 10, 2018
1 parent d7ab4c0 commit eb9c15e6ef1f641b53a70137f3994eac9047fb26
View
@@ -8,8 +8,8 @@ android {
applicationId "org.thecosmicfrog.luasataglance"
minSdkVersion 21
targetSdkVersion 27
versionCode 110
versionName "0.110"
versionCode 111
versionName "0.111"
}
buildTypes {
release {
@@ -30,7 +30,6 @@
import android.widget.TextView;
import org.thecosmicfrog.luasataglance.R;
import org.thecosmicfrog.luasataglance.util.Analytics;
public class AboutActivity extends FragmentActivity {
@@ -53,16 +52,6 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_about);
TextView textViewSourceCode = (TextView) findViewById(R.id.textview_sourcecode);
textViewSourceCode.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Analytics.selectContent(
getApplicationContext(),
"link_tapped",
"sourcecode_tapped"
);
}
});
TextView textViewLicense = (TextView) findViewById(R.id.textview_license);
textViewLicense.setOnClickListener(new View.OnClickListener() {
@@ -74,12 +63,6 @@ public void onClick(View v) {
LicenseActivity.class
)
);
Analytics.selectContent(
getApplicationContext(),
"link_tapped",
"license_tapped"
);
}
});
}
@@ -48,7 +48,6 @@
import org.thecosmicfrog.luasataglance.object.NotifyTimesMap;
import org.thecosmicfrog.luasataglance.object.StopForecast;
import org.thecosmicfrog.luasataglance.object.StopNameIdMap;
import org.thecosmicfrog.luasataglance.util.Analytics;
import org.thecosmicfrog.luasataglance.util.Constant;
import org.thecosmicfrog.luasataglance.util.Preferences;
import org.thecosmicfrog.luasataglance.util.Settings;
@@ -816,12 +815,6 @@ public void success(ApiTimes apiTimes, Response response) {
/* Stop the refresh animations. */
setIsLoading(false);
swipeRefreshLayout.setRefreshing(false);
} else {
Analytics.nullApitimes(
getContext(),
"null",
"null_apitimes_mobile"
);
}
}
}
@@ -865,12 +858,6 @@ public void failure(RetrofitError retrofitError) {
if (retrofitError.getKind() != null) {
Log.e(LOG_TAG, "Kind: " + retrofitError.getKind().toString());
}
Analytics.httpError(
getContext(),
"http_error",
"http_error_general_mobile"
);
}
};
@@ -38,7 +38,6 @@
import android.widget.TextView;
import org.thecosmicfrog.luasataglance.R;
import org.thecosmicfrog.luasataglance.util.Analytics;
import org.thecosmicfrog.luasataglance.util.Constant;
import org.thecosmicfrog.luasataglance.util.Preferences;
import org.thecosmicfrog.luasataglance.view.TutorialCardView;
@@ -164,12 +163,6 @@ public void onClick(View v) {
)
);
}
Analytics.selectContent(
getApplicationContext(),
"button_tapped",
"map_tapped"
);
}
});
}
@@ -196,12 +189,6 @@ public void onClick(View v) {
FavouritesActivity.class
)
);
Analytics.selectContent(
getApplicationContext(),
"button_tapped",
"favourites_tapped"
);
}
});
}
@@ -222,12 +209,6 @@ public void onClick(View v) {
FaresActivity.class
)
);
Analytics.selectContent(
getApplicationContext(),
"button_tapped",
"fares_tapped"
);
}
});
}
@@ -247,12 +228,6 @@ public void onClick(View v) {
NewsActivity.class
).putExtra(Constant.NEWS_TYPE, Constant.NEWS_TYPE_TRAVEL_UPDATES)
);
Analytics.selectContent(
getApplicationContext(),
"button_tapped",
"alerts_tapped"
);
}
});
}
@@ -37,7 +37,6 @@
import org.thecosmicfrog.luasataglance.R;
import org.thecosmicfrog.luasataglance.object.NotifyTimesMap;
import org.thecosmicfrog.luasataglance.receiver.NotifyTimesReceiver;
import org.thecosmicfrog.luasataglance.util.Analytics;
import org.thecosmicfrog.luasataglance.util.Constant;
import org.thecosmicfrog.luasataglance.util.Preferences;
@@ -113,12 +112,6 @@ public void onClick(View v) {
/* Send the Intent. */
sendBroadcast(intent);
Analytics.selectContent(
getApplicationContext(),
"schedule_created",
"schedule_created"
);
/* Dismiss the Dialog. */
finish();
}
@@ -36,7 +36,6 @@
import org.thecosmicfrog.luasataglance.object.StopForecast;
import org.thecosmicfrog.luasataglance.object.StopNameIdMap;
import org.thecosmicfrog.luasataglance.object.Tram;
import org.thecosmicfrog.luasataglance.util.Analytics;
import org.thecosmicfrog.luasataglance.util.Constant;
import org.thecosmicfrog.luasataglance.util.Serializer;
@@ -151,12 +150,6 @@ public void run() {
replyStopForecast(Constant.PATH_STOPFORECAST_FETCH_WEAR, stopForecast);
}
}).start();
} else {
Analytics.nullApitimes(
getApplicationContext(),
"null",
"null_apitimes_wear"
);
}
}
@@ -197,12 +190,6 @@ public void failure(RetrofitError retrofitError) {
*/
if (retrofitError.getKind() != null)
Log.e(LOG_TAG, retrofitError.getKind().toString());
Analytics.httpError(
getApplicationContext(),
"http_error",
"http_error_general_wear"
);
}
};
@@ -44,7 +44,6 @@
import org.thecosmicfrog.luasataglance.object.StopForecast;
import org.thecosmicfrog.luasataglance.object.StopNameIdMap;
import org.thecosmicfrog.luasataglance.object.Tram;
import org.thecosmicfrog.luasataglance.util.Analytics;
import org.thecosmicfrog.luasataglance.util.Constant;
import java.io.BufferedInputStream;
@@ -258,12 +257,6 @@ public void success(ApiTimes apiTimes, Response response) {
updateStopForecast(context, views, stopForecast);
appWidgetManager.partiallyUpdateAppWidget(widgetId, views);
} else {
Analytics.nullApitimes(
getApplicationContext(),
"null",
"null_apitimes_widget"
);
}
/* Stop the refresh animations. */
@@ -308,12 +301,6 @@ public void failure(RetrofitError retrofitError) {
*/
if (retrofitError.getKind() != null)
Log.e(LOG_TAG, retrofitError.getKind().toString());
Analytics.httpError(
getApplicationContext(),
"http_error",
"http_error_general_widget"
);
}
};

This file was deleted.

Oops, something went wrong.
@@ -51,12 +51,6 @@ public static void getSettings(Context context, MenuItem item) {
NewsActivity.class
).putExtra(Constant.NEWS_TYPE, Constant.NEWS_TYPE_LUAS_NEWS)
);
Analytics.selectContent(
context,
"menuitem_tapped",
"news_tapped"
);
}
if (id == R.id.action_settings) {
@@ -66,12 +60,6 @@ public static void getSettings(Context context, MenuItem item) {
SettingsActivity.class
)
);
Analytics.selectContent(
context,
"menuitem_tapped",
"settings_tapped"
);
}
if (id == R.id.action_about) {
@@ -81,12 +69,6 @@ public static void getSettings(Context context, MenuItem item) {
AboutActivity.class
)
);
Analytics.selectContent(
context,
"menuitem_tapped",
"about_tapped"
);
}
}
}
Oops, something went wrong.

0 comments on commit eb9c15e

Please sign in to comment.