Skip to content

Commit

Permalink
remove google analytics from binary.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuri65536 committed May 7, 2017
1 parent 590f4b5 commit b3e4b68
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 104 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -1,2 +1,6 @@
*.iml
.idea/
build/
.gradle/
local.properties

3 changes: 1 addition & 2 deletions android/Common/build.gradle
Expand Up @@ -13,8 +13,7 @@ apply plugin: 'com.android.library'
dependencies {
compile project(':Utils')
compile files('libs/guava-r06.jar')
compile files('libs/libGoogleAnalytics.jar')
compile('com.android.support:support-v4:21.0.3'){
compile('com.android.support:support-v4:21.0.3') {
force = true
}
}
Expand Down
94 changes: 0 additions & 94 deletions android/Common/src/com/googlecode/android_scripting/Analytics.java

This file was deleted.

@@ -1,4 +1,5 @@
/*
* Copyright (c) Shimoda <kuri65536 _at_ hotmail _dot_ com>
* Copyright (C) 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
Expand All @@ -19,12 +20,15 @@
import android.content.Intent;
import android.net.Uri;

import com.googlecode.android_scripting.Analytics;
import com.googlecode.android_scripting.facade.AndroidFacade;
import com.googlecode.android_scripting.jsonrpc.RpcReceiver;
import com.googlecode.android_scripting.jsonrpc.RpcReceiverManager;
import com.googlecode.android_scripting.util.VisibleForTesting;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.lang.annotation.Annotation;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
Expand All @@ -36,10 +40,6 @@
import java.util.List;
import java.util.Map;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/**
* An adapter that wraps {@code Method}.
*
Expand Down Expand Up @@ -82,9 +82,6 @@ public static Collection<MethodDescriptor> collectFrom(Class<? extends RpcReceiv
* @throws Throwable
*/
public Object invoke(RpcReceiverManager manager, final JSONArray parameters) throws Throwable {
// Issue track call first in case of failure.
Analytics.track("api", getName());

final Type[] parameterTypes = getGenericParameterTypes();
final Object[] args = new Object[parameterTypes.length];
final Annotation annotations[][] = getParameterAnnotations();
Expand Down

0 comments on commit b3e4b68

Please sign in to comment.