-
Notifications
You must be signed in to change notification settings - Fork 3
fix: improve memory safety and cleanup in Skeleton component #8
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
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
e7b421e
device-utils
huhuanming bd8a81a
update @onekeyfe/react-native-device-utils
huhuanming 3c8b3e7
add code
huhuanming f80b01c
Update ReactNativeDeviceUtils.swift
huhuanming 8e5f484
Update ReactNativeDeviceUtils.nitro.ts
huhuanming b9a119a
Update ReactNativeDeviceUtils.swift
huhuanming 28bbf65
fix: fix color
huhuanming 803953f
Update ReactNativeDeviceUtils.kt
huhuanming 6f81d61
Update ReactNativeDeviceUtils.kt
huhuanming d486614
Update ReactNativeDeviceUtils.kt
huhuanming dda7b07
Update ReactNativeDeviceUtils.kt
huhuanming 7308968
workspace
huhuanming b63b4d2
Update build.gradle
huhuanming 3aebc39
Update ReactNativeDeviceUtils.kt
huhuanming da2bdfd
Update ReactNativeDeviceUtils.nitro.ts
huhuanming b9e8e40
Update ReactNativeDeviceUtils.kt
huhuanming 32c93eb
Update ReactNativeDeviceUtils.swift
huhuanming 787fab2
Update ReactNativeDeviceUtils.swift
huhuanming 8ca79c0
Update ReactNativeDeviceUtils.kt
huhuanming 71b69d1
Update ReactNativeDeviceUtils.kt
huhuanming f3687c0
Update ReactNativeDeviceUtils.kt
huhuanming ab53599
Update ReactNativeDeviceUtils.kt
huhuanming a760e48
Update ReactNativeDeviceUtils.kt
huhuanming 0bd5061
fix: fix dual check
huhuanming 9f58bfd
fix: fix events
huhuanming 33536b8
Update ReactNativeDeviceUtils.kt
huhuanming 4eba40a
Update ReactNativeDeviceUtils.kt
huhuanming e493a83
Update ReactNativeDeviceUtils.kt
huhuanming effa00f
add react-native-device-utils
huhuanming 1a5d7c3
init react-native-skeleton
huhuanming 82f48d8
@onekeyfe/react-native-skeleton
huhuanming c82d3cb
Update SkeletonTestPage.tsx
huhuanming e690cdf
Update package.json
huhuanming 3ae0cf8
Update route.tsx
huhuanming 81494b6
Refactor imports and style in Skeleton components
huhuanming c4a1a3d
Update Podfile.lock
huhuanming e2436a6
Update Skeleton.nitro.ts
huhuanming f7676a7
create template
huhuanming 8fdc3b9
fix: fix code
huhuanming 80cd8d6
Add shimmerGradientColors prop to Skeleton component
huhuanming a1229e9
Update Skeleton.swift
huhuanming 41b2cdf
Update Skeleton.swift
huhuanming 7eb43b3
Update Skeleton.swift
huhuanming 6cdc50f
Revert "Update Skeleton.swift"
huhuanming e964228
Update Skeleton.swift
huhuanming 49433b0
Update Skeleton.swift
huhuanming c18d3ca
Update SkeletonTestPage.tsx
huhuanming 84e0bae
Update Skeleton.swift
huhuanming ee2bc08
Update SkeletonTestPage.tsx
huhuanming 123904b
Update Skeleton.swift
huhuanming fbb9835
Update Skeleton.swift
huhuanming 65dd3ed
fix: fix all
huhuanming ebafc8a
Update SkeletonTestPage.tsx
huhuanming 7bb25ab
Update Skeleton.swift
huhuanming f019192
Update Skeleton.swift
huhuanming 22e1c6a
fix: fix error
huhuanming 85a4729
fix: fix version
huhuanming f9773c8
Update SkeletonTestPage.tsx
huhuanming e3120e5
Update package.json
huhuanming 6b83734
Update SkeletonTestPage.tsx
huhuanming f9a0606
Update package.json
huhuanming 2423be2
Update yarn.lock
huhuanming 2859053
Update Skeleton.kt
huhuanming 34a8b84
Update Skeleton.swift
huhuanming 6ee74b1
Update Skeleton.swift
huhuanming 5b69583
Update Skeleton.swift
huhuanming b559992
update version
huhuanming af9c649
Merge branch 'main' into device-utiles
huhuanming 6e5422f
Update yarn.lock
huhuanming f5fd20b
Update ReactNativeDeviceUtils.kt
huhuanming eb8691b
Update .gitignore
huhuanming e11332a
Create commit.md
huhuanming 4cfc7e6
🐛 fix: improve memory safety and cleanup in Skeleton component
huhuanming 52210c4
Merge branch 'main' into device-utiles
huhuanming 5639ff1
fix: fix memory leak
huhuanming 853f5cb
patch version
huhuanming 4a213bc
Update Skeleton.swift
huhuanming fcdda9e
Update commit.md
huhuanming eb14d4c
Update commit.md
huhuanming 88a569d
Update Skeleton.swift
huhuanming File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,161 @@ | ||
| # Claude Command: Commit | ||
|
|
||
| This command helps you create well-formatted commits with conventional commit messages. | ||
|
|
||
| ## Usage | ||
|
|
||
| To create a commit, just type: | ||
| ``` | ||
| /commit | ||
| ``` | ||
|
|
||
| Or with options: | ||
| ``` | ||
| /commit --no-verify | ||
| ``` | ||
|
|
||
| ## What This Command Does | ||
|
|
||
| 1. Unless specified with `--no-verify`, automatically runs pre-commit checks: | ||
| - `yarn lint` to ensure code quality | ||
| 2. Checks which files are staged with `git status` | ||
| 3. If 0 files are staged, automatically adds all modified and new files with `git add` | ||
| 4. Performs a `git diff` to understand what changes are being committed | ||
| 5. Analyzes the diff to determine if multiple distinct logical changes are present | ||
| 6. If multiple distinct changes are detected, suggests breaking the commit into multiple smaller commits | ||
| 7. For each commit (or the single commit if not split), creates a commit message using conventional commit format | ||
|
|
||
| ## Best Practices for Commits | ||
|
|
||
| - **Verify before committing**: Ensure code is linted, builds correctly, and documentation is updated | ||
| - **Atomic commits**: Each commit should contain related changes that serve a single purpose | ||
| - **Split large changes**: If changes touch multiple concerns, split them into separate commits | ||
| - **Conventional commit format**: Use the format `<type>: <description>` where type is one of: | ||
| - `feat`: A new feature | ||
| - `fix`: A bug fix | ||
| - `docs`: Documentation changes | ||
| - `style`: Code style changes (formatting, etc) | ||
| - `refactor`: Code changes that neither fix bugs nor add features | ||
| - `perf`: Performance improvements | ||
| - `test`: Adding or fixing tests | ||
| - `chore`: Changes to the build process, tools, etc. | ||
| - **Present tense, imperative mood**: Write commit messages as commands (e.g., "add feature" not "added feature") | ||
| - **Concise first line**: Keep the first line under 72 characters | ||
| - `feat`: New feature | ||
| - `fix`: Bug fix | ||
| - `docs`: Documentation | ||
| - `style`: Formatting/style | ||
| - `refactor`: Code refactoring | ||
| - `perf`: Performance improvements | ||
| - `test`: Tests | ||
| - `chore`: Tooling, configuration | ||
| - `ci`: CI/CD improvements | ||
| - `revert`: Reverting changes | ||
| - `test`: Add a failing test | ||
| - `fix`: Fix compiler/linter warnings | ||
| - `fix`: Fix security issues | ||
| - `chore`: Add or update contributors | ||
| - `refactor`: Move or rename resources | ||
| - `refactor`: Make architectural changes | ||
| - `chore`: Merge branches | ||
| - `chore`: Add or update compiled files or packages | ||
| - `chore`: Add a dependency | ||
| - `chore`: Remove a dependency | ||
| - `chore`: Add or update seed files | ||
| - `chore`: Improve developer experience | ||
| - `feat`: Add or update code related to multithreading or concurrency | ||
| - `feat`: Improve SEO | ||
| - `feat`: Add or update types | ||
| - `feat`: Add or update text and literals | ||
| - `feat`: Internationalization and localization | ||
| - `feat`: Add or update business logic | ||
| - `feat`: Work on responsive design | ||
| - `feat`: Improve user experience / usability | ||
| - `fix`: Simple fix for a non-critical issue | ||
| - `fix`: Catch errors | ||
| - `fix`: Update code due to external API changes | ||
| - `fix`: Remove code or files | ||
| - `style`: Improve structure/format of the code | ||
| - `fix`: Critical hotfix | ||
| - `chore`: Begin a project | ||
| - `chore`: Release/Version tags | ||
| - `wip`: Work in progress | ||
| - `fix`: Fix CI build | ||
| - `chore`: Pin dependencies to specific versions | ||
| - `ci`: Add or update CI build system | ||
| - `feat`: Add or update analytics or tracking code | ||
| - `fix`: Fix typos | ||
| - `revert`: Revert changes | ||
| - `chore`: Add or update license | ||
| - `feat`: Introduce breaking changes | ||
| - `assets`: Add or update assets | ||
| - `feat`: Improve accessibility | ||
| - `docs`: Add or update comments in source code | ||
| - `db`: Perform database related changes | ||
| - `feat`: Add or update logs | ||
| - `fix`: Remove logs | ||
| - `test`: Mock things | ||
| - `feat`: Add or update an easter egg | ||
| - `chore`: Add or update .gitignore file | ||
| - `test`: Add or update snapshots | ||
| - `experiment`: Perform experiments | ||
| - `feat`: Add, update, or remove feature flags | ||
| - `ui`: Add or update animations and transitions | ||
| - `refactor`: Remove dead code | ||
| - `feat`: Add or update code related to validation | ||
| - `feat`: Improve offline support | ||
|
|
||
| ## Guidelines for Splitting Commits | ||
|
|
||
| When analyzing the diff, consider splitting commits based on these criteria: | ||
|
|
||
| 1. **Different concerns**: Changes to unrelated parts of the codebase | ||
| 2. **Different types of changes**: Mixing features, fixes, refactoring, etc. | ||
| 3. **File patterns**: Changes to different types of files (e.g., source code vs documentation) | ||
| 4. **Logical grouping**: Changes that would be easier to understand or review separately | ||
| 5. **Size**: Very large changes that would be clearer if broken down | ||
|
|
||
| ## Examples | ||
|
|
||
| Good commit messages: | ||
| - feat: add user authentication system | ||
| - fix: resolve memory leak in rendering process | ||
| - docs: update API documentation with new endpoints | ||
| - refactor: simplify error handling logic in parser | ||
| - fix: resolve linter warnings in component files | ||
| - chore: improve developer tooling setup process | ||
| - feat: implement business logic for transaction validation | ||
| - fix: address minor styling inconsistency in header | ||
| - fix: patch critical security vulnerability in auth flow | ||
| - style: reorganize component structure for better readability | ||
| - fix: remove deprecated legacy code | ||
| - feat: add input validation for user registration form | ||
| - fix: resolve failing CI pipeline tests | ||
| - feat: implement analytics tracking for user engagement | ||
| - fix: strengthen authentication password requirements | ||
| - feat: improve form accessibility for screen readers | ||
|
|
||
| Example of splitting commits: | ||
| - First commit: feat: add new solc version type definitions | ||
| - Second commit: docs: update documentation for new solc versions | ||
| - Third commit: chore: update package.json dependencies | ||
| - Fourth commit: feat: add type definitions for new API endpoints | ||
| - Fifth commit: feat: improve concurrency handling in worker threads | ||
| - Sixth commit: fix: resolve linting issues in new code | ||
| - Seventh commit: test: add unit tests for new solc version features | ||
| - Eighth commit: fix: update dependencies with security vulnerabilities | ||
|
|
||
| ## Command Options | ||
|
|
||
| - `--no-verify`: Skip running the pre-commit checks (lint, build, generate:docs) | ||
|
|
||
| ## Important Notes | ||
|
|
||
| - By default, pre-commit checks (`yarn lint`) will run to ensure code quality | ||
| - If these checks fail, you'll be asked if you want to proceed with the commit anyway or fix the issues first | ||
| - If specific files are already staged, the command will only commit those files | ||
| - If no files are staged, it will automatically stage all modified and new files | ||
| - The commit message will be constructed based on the changes detected | ||
| - Before committing, the command will review the diff to identify if multiple commits would be more appropriate | ||
| - If suggesting multiple commits, it will help you stage and commit the changes separately | ||
| - Always reviews the commit diff to ensure the message matches the changes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,3 +77,4 @@ test-report.html | |
|
|
||
| # Ignore tamagui config file | ||
| .tamagui | ||
| scripts/nitro-view/template/android/.gradle | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
native-modules/react-native-check-biometric-auth-changed/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.