Skip to content

style:remove LOG of smartRefresh library #17

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

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions harmony/smart_refresh_layout/src/main/cpp/Animation.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class Animation {

void UpdateLoop() {
state_ = Animation_State::ANIMATION_RUN;
LOG(INFO) << "[tyBrave] Animation startValue_: " << startValue_ << ";currentValue_:" << currentValue_;
const double p0 = 0.1, p1 = 0.0, p2 = 0.58, p3 = 1.0; // CubicBezier控制点
auto startTime = std::chrono::high_resolution_clock::now();
for (double t = 0.0; t < 1.01; t += 0.01) {
Expand Down Expand Up @@ -95,7 +94,6 @@ class Animation {
delete updateThread_; // 如果使用new分配,则需要delete释放
updateThread_ = nullptr;
}
LOG(INFO) << "[tyBrave] Animation startValue_ssss cancelAnimation end";
}
};
#endif // HARMONY_ANIMATION_H
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ namespace rnoh {
PullToRefreshNode::PullToRefreshNode()
: ArkUINode(NativeNodeApi::getInstance()->createNode(ArkUI_NodeType::ARKUI_NODE_COLUMN)),
m_headerArkUINodeHandle(nullptr), m_listArkUINodeHandle(nullptr), m_pullToRefreshNodeDelegate(nullptr) {
// ArkUI_NumberValue columnFlexValue[] = {{.i32 = ARKUI_FLEX_ALIGNMENT_CENTER}};
// ArkUI_AttributeItem columnFlexItem = {columnFlexValue, sizeof(columnFlexValue) / sizeof(ArkUI_NumberValue)};
// NativeNodeApi::getInstance()->setAttribute(m_nodeHandle, NODE_COLUMN_JUSTIFY_CONTENT, &columnFlexItem);
}

PullToRefreshNode::~PullToRefreshNode() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ namespace rnoh {
void RNCClassicsHeaderComponentInstance::onPropsChanged(SharedConcreteProps const &props) {
if (props != nullptr) {
// facebook::react::SharedColor headerColor = props->primaryColor;
// LOG(INFO) << "[tyBrave] <SmartRefreshLayoutComponentInstance ---------------" <<
// props->accentColor
// << ";sss:" << props->primaryColor;
// if (props->accentColor) {
// textNode.setFontColor(props->accentColor);
// imageNode.setTintColor(props->accentColor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ namespace rnoh {
void RNCDefaultHeaderComponentInstance::onPropsChanged(SharedConcreteProps const &props) {
if (props != nullptr) {
facebook::react::SharedColor headerColor = props->primaryColor;
LOG(INFO) << "[tyBrave] <SmartRefreshLayoutComponentInstance ---------------" << props->accentColor
<< ";sss:" << props->primaryColor;
if (props->accentColor) {
textNode.setFontColor(props->accentColor);
imageNode.setTintColor(props->accentColor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ namespace rnoh {
using ComponentInstanceFactoryDelegate::ComponentInstanceFactoryDelegate;

ComponentInstance::Shared create(ComponentInstance::Context ctx) override {
LOG(INFO) << "[tyBrave] <SmartRefreshLayoutPackageComponentInstanceFactoryDelegate s------:"
<< ctx.componentName;
if (ctx.componentName == "RNCAnyHeader") {
globalHeaderType = "RNCAnyHeader";
return std::make_shared<RNCAnyHeaderComponentInstance>(std::move(ctx));
Expand Down