Code Monkey home page Code Monkey logo

crittercism-unity's Introduction

Crittercism Unity Plugin

Integration instructions and an API reference are available on the Apteligent docs site.

Release Notes

Version 2.1.2 (May 30, 2017)

New

Version 2.1.1 (Nov 30, 2016)

New

Version 2.1.0 (Oct 25, 2016)

New

Version 2.0.0 (April 8, 2016)

New

  • Unified the old Crittercism iOS and Android plugins with a single Crittercism interface. The CrittercismIOS and CrittercismAndroid classes are still available, but we strongly recommend using the new Crittercism class as it works for both iOS and Android builds.
  • The iOS plugin now logs breadcrumbs asynchronously.
  • The DemoApp now uses Unity's WWW and UnityWebRequest APIs to demonstrate Crittercism's network insights capabilities.

Fixes

  • The iOS plugin caused duplicate symbol linker errors when compiling with IL2CPP on iOS
  • When compiling for Android with IL2CPP turned on, the iOS plugin would cause compile errors since it was not #ifdef'd properly.
  • The iOS plugin would hang during a crash when Script Call Optimizations was set to Fast but no Exceptions and IL2CPP was turned on.
  • When compiling on Unity 4.x, a compile error would result because the Application.logMessageReceived API was not available in 4.x

crittercism-unity's People

Contributors

dshirley avatar kevandunsmore avatar kieran2k15 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crittercism-unity's Issues

Android plugin is not initialized properly.

Android plugin is not being initialize properly. We need to grab the Context and pass it to initialize. This allows Android to capture automatic breadcrumbs.

diff --git a/DemoApp/Assets/Plugins/Crittercism/Crittercism_Android_Scripts/CrittercismAndroid.cs b/DemoApp/Assets/Plugins/Crittercism/Crittercism_Android_Scripts/CrittercismAndroid.cs
index 0a11741..37b39cf 100644
--- a/DemoApp/Assets/Plugins/Crittercism/Crittercism_Android_Scripts/CrittercismAndroid.cs
+++ b/DemoApp/Assets/Plugins/Crittercism/Crittercism_Android_Scripts/CrittercismAndroid.cs
@@ -54,7 +54,9 @@ public static class CrittercismAndroid

     using (var cls_UnityPlayer = new AndroidJavaClass ("com.unity3d.player.UnityPlayer")) {
       using (var objActivity = cls_UnityPlayer.GetStatic<AndroidJavaObject> ("currentActivity")) {
-        PluginCallStatic ("initialize", objActivity, appID, config.GetAndroidConfig ());
+        using (var objContext = objActivity.Call<AndroidJavaObject> ("getApplicationContext")) {
+          PluginCallStatic ("initialize", objContext, appID, config.GetAndroidConfig());
+        }
       }
     }

diff --git a/Plugins/Crittercism/Crittercism_Android_Scripts/CrittercismAndroid.cs b/Plugins/Crittercism/Crittercism_Android_Scripts/CrittercismAndroid.cs
index 0a11741..37b39cf 100644
--- a/Plugins/Crittercism/Crittercism_Android_Scripts/CrittercismAndroid.cs
+++ b/Plugins/Crittercism/Crittercism_Android_Scripts/CrittercismAndroid.cs
@@ -54,7 +54,9 @@ public static class CrittercismAndroid

     using (var cls_UnityPlayer = new AndroidJavaClass ("com.unity3d.player.UnityPlayer")) {
       using (var objActivity = cls_UnityPlayer.GetStatic<AndroidJavaObject> ("currentActivity")) {
-        PluginCallStatic ("initialize", objActivity, appID, config.GetAndroidConfig ());
+        using (var objContext = objActivity.Call<AndroidJavaObject> ("getApplicationContext")) {
+          PluginCallStatic ("initialize", objContext, appID, config.GetAndroidConfig());
+        }
       }
     }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.