Commit 4c9f3325 by Simhachalam ch

integrated appcenter analytics

parent 0b9ca7bc
...@@ -78,6 +78,8 @@ android { ...@@ -78,6 +78,8 @@ android {
} }
dependencies { dependencies {
def appCenterSdkVersion = '2.3.0'
implementation fileTree(include: ['*.jar'], dir: 'libs') implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.volley:volley:1.1.+' implementation 'com.android.volley:volley:1.1.+'
...@@ -85,6 +87,9 @@ dependencies { ...@@ -85,6 +87,9 @@ dependencies {
exclude group: 'com.android.support' exclude group: 'com.android.support'
} }
implementation "com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}"
implementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"
implementation 'com.android.support:design:28.0.0' implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-annotations:28.0.0' implementation 'com.android.support:support-annotations:28.0.0'
implementation 'android.arch.lifecycle:extensions:1.1.1' implementation 'android.arch.lifecycle:extensions:1.1.1'
......
...@@ -15,11 +15,15 @@ import com.androidquery.callback.AjaxStatus; ...@@ -15,11 +15,15 @@ import com.androidquery.callback.AjaxStatus;
import com.bumptech.glide.Glide; import com.bumptech.glide.Glide;
import com.bumptech.glide.request.target.SimpleTarget; import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.transition.Transition; import com.bumptech.glide.request.transition.Transition;
import com.microsoft.appcenter.AppCenterService;
import com.microsoft.appcenter.analytics.Analytics;
import com.vsoft.vera.AppConfig; import com.vsoft.vera.AppConfig;
import com.vsoft.vera.R; import com.vsoft.vera.R;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
import com.microsoft.appcenter.AppCenter;
import com.microsoft.appcenter.crashes.Crashes;
import butterknife.ButterKnife; import butterknife.ButterKnife;
...@@ -37,6 +41,10 @@ public class SplashScreen extends Activity { ...@@ -37,6 +41,10 @@ public class SplashScreen extends Activity {
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
AppCenter.start(getApplication(), "f7408b15-e0d4-4157-ab67-8bb5ba833bdb", Analytics.class,
Crashes.class);
requestWindowFeature(Window.FEATURE_NO_TITLE); requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.splash_screen); setContentView(R.layout.splash_screen);
mainLayt = (LinearLayout) findViewById(R.id.splash_main_lyt); mainLayt = (LinearLayout) findViewById(R.id.splash_main_lyt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment