DemoApp/android/app/src/main/java/com/demoapp/DemoAppNativeModule.java [79:113]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @SuppressWarnings("unused")
    @ReactMethod
    public void configureStartup(String secretString, boolean startAutomatically) {

        /* We need to use empty string in Android for no app secret like in JSON file. */
        if (secretString == null) {
            secretString = "";
        }
        mSharedPreferences.edit()
                .putString(APP_SECRET, secretString)
                .putBoolean(START_AUTOMATICALLY, startAutomatically)
                .apply();
    }

    @SuppressWarnings("unused")
    @ReactMethod
    public void generateTestCrash() {

        /*
         * To crash the test app even in release.
         * We reach this code if Crashes.generateTestCrash detected release mode.
         * We can tell with stack trace whether we used SDK method in debug or this one in release.
         */
        throw new TestCrashException();
    }

    @SuppressWarnings("unused")
    @ReactMethod
    public void produceLowMemoryWarning() {
        final AtomicInteger i = new AtomicInteger(0);
        final Handler handler = new Handler(Looper.getMainLooper());
        handler.post(new Runnable() {
            @Override
            public void run() {
                nativeAllocateLargeBuffer();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



TestApp/android/app/src/main/java/com/testapp/TestAppNativeModule.java [70:104]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @SuppressWarnings("unused")
    @ReactMethod
    public void configureStartup(String secretString, boolean startAutomatically) {

        /* We need to use empty string in Android for no app secret like in JSON file. */
        if (secretString == null) {
            secretString = "";
        }
        mSharedPreferences.edit()
                .putString(APP_SECRET, secretString)
                .putBoolean(START_AUTOMATICALLY, startAutomatically)
                .apply();
    }

    @SuppressWarnings("unused")
    @ReactMethod
    public void generateTestCrash() {

        /*
         * To crash the test app even in release.
         * We reach this code if Crashes.generateTestCrash detected release mode.
         * We can tell with stack trace whether we used SDK method in debug or this one in release.
         */
        throw new TestCrashException();
    }

    @SuppressWarnings("unused")
    @ReactMethod
    public void produceLowMemoryWarning() {
        final AtomicInteger i = new AtomicInteger(0);
        final Handler handler = new Handler(Looper.getMainLooper());
        handler.post(new Runnable() {
            @Override
            public void run() {
                nativeAllocateLargeBuffer();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



