Skip to content
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

Dev #9

Merged
merged 20 commits into from
Oct 12, 2024
Merged

Dev #9

merged 20 commits into from
Oct 12, 2024

Conversation

huhuanming
Copy link
Contributor

@huhuanming huhuanming commented Oct 12, 2024

Summary by CodeRabbit

  • 新特性

    • 引入了多个自定义视图组件和布局,包括 HomePageManagerSlidingTabLayoutSlidingTabLayout2 等,增强了应用的导航和用户交互体验。
    • 新增了 SwipeRefreshLayoutViewPager2 的支持,提升了页面刷新和滑动功能。
  • 文档

    • 添加了新的 XML 布局文件和自定义属性资源,支持更灵活的样式配置。
  • 其他

    • 进行了代码结构的重组,移除了不再使用的文件和条目。

@huhuanming huhuanming enabled auto-merge (squash) October 12, 2024 01:19
Copy link

coderabbitai bot commented Oct 12, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

本次变更涉及多个文件,主要包括对.gitignore.yarnrc.ymlbuild.gradleAndroidManifest.xml等文件的修改。.gitignore文件添加和删除了一些条目,以更新忽略规则;.yarnrc.yml文件添加了新的配置项和插件;build.gradle文件引入了Kotlin支持并更新了Java版本及依赖;AndroidManifest.xml文件进行了格式调整。此外,还新增了多个Kotlin和Java类文件,以增强应用的功能和可维护性。

Changes

文件路径 变更摘要
.gitignore 移除web-build/.history/.yarn,新增多个条目,包括.classpath.cxxandroid.iml等。
.yarnrc.yml 添加nmHoistingLimits、插件配置和yarnPath
android/build.gradle 添加Kotlin插件,更新Java版本至17,新增多个AndroidX依赖。
android/src/main/AndroidManifest.xml 移除package属性,添加XML声明。
android/src/main/java/com/onekey/tabpage/SelectedLabelPackage.java 删除文件。
android/src/main/java/so/onekey/app/wallet/extensions/ReadableMapExt.kt 新增扩展函数以安全获取ReadableMap中的值。
android/src/main/java/so/onekey/app/wallet/extensions/ViewExt.kt 新增多个扩展函数以处理字符串和颜色资源。
android/src/main/java/so/onekey/app/wallet/selectedLabel/SelectedLabel.java 更改包名。
android/src/main/java/so/onekey/app/wallet/selectedLabel/SelectedLabelViewManager.java 更改包名。
android/src/main/java/so/onekey/app/wallet/utils/HexUtils.java 新增十六进制与字节数组转换工具类。
android/src/main/java/so/onekey/app/wallet/utils/Utils.java 新增应用生命周期管理工具类。
android/src/main/java/so/onekey/app/wallet/viewManager/homePage/HomePageManager.kt 新增自定义视图管理器。
android/src/main/java/so/onekey/app/wallet/viewManager/homePage/HomePageView.kt 新增自定义视图类。
android/src/main/java/so/onekey/app/wallet/viewManager/homePage/event/PageScrollStateChangeEvent.kt 新增页面滚动状态变化事件类。
android/src/main/java/so/onekey/app/wallet/viewManager/homePage/event/PageSelectedEvent.kt 新增页面选择事件类。
android/src/main/java/so/onekey/app/wallet/viewManager/homePage/event/SwipeRefreshEvent.kt 新增下拉刷新事件类。
android/src/main/java/so/onekey/app/wallet/widget/HomePageLayout.kt 新增自定义布局组件。
android/src/main/java/so/onekey/app/wallet/widget/NestedScrollableFrameLayout.kt 新增嵌套可滚动框架布局类。
android/src/main/java/so/onekey/app/wallet/widget/SimplePagerAdapter.kt 新增自定义适配器。
android/src/main/java/so/onekey/app/wallet/widget/SlidingTabLayout.java 新增自定义滑动标签布局组件。
android/src/main/java/so/onekey/app/wallet/widget/SlidingTabLayout2.java 新增与ViewPager2集成的滑动标签布局组件。
android/src/main/java/so/onekey/app/wallet/widget/SlidingTabLayoutBase.java 新增滑动标签布局的抽象基类。
android/src/main/java/so/onekey/app/wallet/widget/TabViewPackage.kt 新增ReactPackage实现类。
android/src/main/java/so/onekey/app/wallet/widget/ViewFragment.kt 新增视图片段类。
android/src/main/java/so/onekey/app/wallet/widget/listener/CustomTabEntity.java 新增自定义标签实体接口。
android/src/main/java/so/onekey/app/wallet/widget/listener/OnTabSelectListener.java 新增标签选择监听器接口。
android/src/main/java/so/onekey/app/wallet/widget/transition/ITabScaleTransformer.java 新增标签缩放变换接口。
android/src/main/java/so/onekey/app/wallet/widget/transition/TabScaleTransformer.java 新增标签缩放变换实现类。
android/src/main/res/layout/layout_tab.xml 新增标签布局XML文件。
android/src/main/res/layout/view_home_page.xml 新增主页布局XML文件。
android/src/main/res/values/attrs.xml 新增自定义属性XML文件。
ios/PagingView/PagingView.h 新增PagingView接口文件。

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary or Summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@huhuanming huhuanming requested review from originalix, hellohublot and a team October 12, 2024 01:21
@huhuanming huhuanming merged commit 9bf17ef into main Oct 12, 2024
7 of 8 checks passed
@huhuanming huhuanming deleted the dev branch October 12, 2024 01: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.

4 participants