Project

General

Profile

« Previous | Next » 

Revision 1ef09d49

Added by Leszek Koltunski over 4 years ago

Report a Crashlytics non-fatal if we fail to compile some shaders.

View differences:

src/main/AndroidManifest.xml
5 5
    <uses-feature android:name="android.hardware.faketouch" android:required="true" />
6 6

  
7 7
    <uses-permission android:name="android.permission.INTERNET" />
8
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
8 9

  
9 10
    <application
10 11
        android:allowBackup="true"
src/main/java/org/distorted/main/RubikRenderer.java
106 106
        else
107 107
          {
108 108
          FirebaseCrashlytics crashlytics = FirebaseCrashlytics.getInstance();
109
          crashlytics.log("DistortedError: " +message );
110
          crashlytics.log("GLversion"        +version );
111
          crashlytics.log("GLSLrenderer"     +renderer);
109
          crashlytics.setCustomKey("DistortedError", message );
110
          crashlytics.setCustomKey("GLSL Version"  , shading );
111
          crashlytics.setCustomKey("GLversion"     , version );
112
          crashlytics.setCustomKey("GL Vendor "    , vendor  );
113
          crashlytics.setCustomKey("GLSLrenderer"  , renderer);
114
          crashlytics.recordException(ex);
112 115
          }
113 116
        }
114 117
      }

Also available in: Unified diff