Skip to content

Conversation

vtrifonov
Copy link
Contributor

Related to #1056
The new setting should be added in app/package.json file under android:

{
    "main": "main.js",
    "android": {
        "forceLog": true
    }
    // setting profiling timeline should also force log in release
    // "profiling": "timeline"
}

vtrifonov added 2 commits May 14, 2018 16:32
When profiling timeline is set log in release as well
@darind darind self-requested a review May 14, 2018 14:15

initNativeScript(getRuntimeId(), Module.getApplicationFilesPath(), nativeLibDir, logger.isEnabled(), isDebuggable, appName, appConfig.getAsArray(), callingJsDir, appConfig.getMaxLogcatObjectSize());
initNativeScript(getRuntimeId(), Module.getApplicationFilesPath(), nativeLibDir, logger.isEnabled(), isDebuggable, appName, appConfig.getAsArray(), callingJsDir, appConfig.getMaxLogcatObjectSize(),
appConfig.getForceLog() || "timeline".equalsIgnoreCase(appConfig.getProfilingMode()));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for readability you can move this appConfig.getForceLog() || "timeline".equalsIgnoreCase(appConfig.getProfilingMode()) expression to a local variable.

@vtrifonov vtrifonov merged commit 7ac389f into master May 14, 2018
@vtrifonov vtrifonov deleted the trifonov/add-forceLog branch May 14, 2018 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants