-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(android): remove some deprecated classes #14039
Conversation
public static boolean DEBUG = Config.DEBUG; | ||
public static boolean RELEASE = !Config.DEBUG; | ||
public static boolean PROFILE = Config.PROFILE; | ||
public static boolean LOGD = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs say LOGD
is always true
. Are we sure we want false
here? I have no idea what this is even. The Android docs are completely useless.
Just in case, here's the suggestion to expidite the change:
public static boolean LOGD = false; | |
public static boolean LOGD = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Config.LOGD in the Android Config is true, but here we used Config.DEBUG
(which is always false) before. And this is the place where it is set:
TiConfig.DEBUG = TiConfig.LOGD = appProperties.getBool("ti.android.debug", false);
with false
as default too. So I would keep it as false.
It is added to every module private static final boolean DBG = TiConfig.LOGD;
so in case people use that it should be the same value as before (false) unless you change it with the property.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohhh, that makes sense! Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and reviewed. LGTM. APPROVED!
Just two minor changes that are currently marked as deprecated: