-
Notifications
You must be signed in to change notification settings - Fork 3
refactor: refactor react-native-lite-card to turbo module #1
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
40 commits
Select commit
Hold shift + click to select a range
45984d1
init yarn
huhuanming 4a3cfea
init
huhuanming 015c4f1
add ios code
huhuanming c002e9b
Create Gemfile.lock
huhuanming c7a9edc
1.1.1
huhuanming 424645e
fix: fix build
huhuanming 231892a
Update keys.c
huhuanming 7f2ff36
fix: fix missing header
huhuanming 3564381
Update metro.config.js
huhuanming 2b10a4a
commit all
huhuanming 8149585
Refactor LiteCardInfo type and getLiteInfo return value
huhuanming f4d9fde
fix promise type
huhuanming e100f00
Update LiteCard.swift
huhuanming fd948ce
Update LiteCard.swift
huhuanming a2972e3
remove code
huhuanming 63173ef
init code
huhuanming 8e01d8f
init
huhuanming 8dd691a
init
huhuanming 56ff195
Update metro.config.js
huhuanming 8755eab
Add OnekeyLite NFC card module with type definitions
huhuanming 111e80c
fix: fix code
huhuanming e3bcc43
fix: fix error
huhuanming 6116c28
Update App.tsx
huhuanming 3f57c73
Update ReactNativeLiteCard.mm
huhuanming 998fbef
Update ReactNativeLiteCard.mm
huhuanming 56169dd
Update App.tsx
huhuanming 91128d0
add code
huhuanming 06e2b43
fix: fix build
huhuanming 29efc0e
remove code
huhuanming 46b6cae
fix: fix kotlin code
huhuanming e07edda
fix: fix code
huhuanming 4517775
Update ReactNativeLiteCardModule.kt
huhuanming ffa7df9
Update ReactNativeLiteCardModule.kt
huhuanming f83bcc9
Update package.json
huhuanming 8c8d5f1
release it
huhuanming cd25397
Update README.md
huhuanming 98928c4
Update package.json
huhuanming 782bbd3
Update package.json
huhuanming 41a5389
fix: fix version
huhuanming edbadc3
Create package-publish.yml
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,19 @@ | ||
| name: package-publish | ||
|
|
||
| on: workflow_dispatch | ||
|
|
||
| jobs: | ||
| package-publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: '20.x' | ||
| registry-url: 'https://registry.npmjs.org' | ||
| - name: Install Package | ||
| run: yarn | ||
| - name: | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| run: yarn version:publish | ||
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,79 @@ | ||
| node_modules | ||
| __generated__ | ||
|
|
||
| .expo-shared | ||
| .expo | ||
| .DS_Store | ||
| .idea/ | ||
| .vscode/ | ||
| .chat/ | ||
| .claude/PRPs | ||
| .claude/settings.local.json | ||
| .clauderc | ||
| .tmp/ | ||
|
|
||
| dist | ||
| build-electron | ||
| .next | ||
| build | ||
| *.tsbuildinfo | ||
| yarn-error.log | ||
|
|
||
| .pnp.* | ||
| .yarn/* | ||
| !.yarn/patches | ||
| !.yarn/plugins | ||
| !.yarn/releases | ||
| !.yarn/sdks | ||
| !.yarn/versions | ||
|
|
||
| .env | ||
| webpack.config.preview.json | ||
| webpack.config.preview.devServer.json | ||
|
|
||
| *.jks | ||
| *.p8 | ||
| *.p12 | ||
| *.key | ||
| *.mobileprovision | ||
| *.orig.* | ||
| web-build/ | ||
| # !/apps/web-embed/web-build/ | ||
| /inpage-provider-bak | ||
|
|
||
| ### VisualStudioCode ### | ||
| .vscode/* | ||
| !.vscode/settings.json | ||
| !.vscode/tasks.json | ||
| !.vscode/launch.json | ||
| !.vscode/extensions.json | ||
| !.vscode/*.code-snippets | ||
|
|
||
| ### VisualStudioCode Patch ### | ||
| # Ignore all local history of files | ||
| .history | ||
| .ionide | ||
|
|
||
| # Support for Project snippet scope | ||
| .vscode/*.code-snippets | ||
|
|
||
| # Ignore code-workspaces | ||
| *.code-workspace | ||
|
|
||
| # Ignore yalc | ||
| .yalc/ | ||
| yalc.lock | ||
|
|
||
| stats.json | ||
| stats.html | ||
| .java-version | ||
| .eslintcache | ||
| tsconfig.tsbuildinfo | ||
|
|
||
| test-report.html | ||
|
|
||
| # Temporary files created by Metro to check the health of the file watcher | ||
| .metro-health-check* | ||
|
|
||
| # Ignore tamagui config file | ||
| .tamagui |
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,6 @@ | ||
| compressionLevel: mixed | ||
|
|
||
| enableGlobalCache: false | ||
|
|
||
| nodeLinker: node-modules | ||
|
|
||
|
huhuanming marked this conversation as resolved.
|
||
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 |
|---|---|---|
| @@ -1 +1,15 @@ | ||
| # app-modules | ||
| # app-modules | ||
|
|
||
| ## Create new package | ||
|
|
||
| ## Publish all package | ||
|
|
||
| To update the versions of all workspace packages, run the following command in the project root directory: | ||
|
|
||
| ```shell | ||
| yarn version:bump | ||
| yarn version:apply | ||
| ``` | ||
| Commit version changes and push to GitHub. | ||
|
|
||
| Run publish package actions on GitHub. |
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,42 @@ | ||
| # EXAMPLE USAGE: | ||
| # | ||
| # Refer for explanation to following link: | ||
| # https://lefthook.dev/configuration/ | ||
| # | ||
| # pre-push: | ||
| # jobs: | ||
| # - name: packages audit | ||
| # tags: | ||
| # - frontend | ||
| # - security | ||
| # run: yarn audit | ||
| # | ||
| # - name: gems audit | ||
| # tags: | ||
| # - backend | ||
| # - security | ||
| # run: bundle audit | ||
| # | ||
| # pre-commit: | ||
| # parallel: true | ||
| # jobs: | ||
| # - run: yarn eslint {staged_files} | ||
| # glob: "*.{js,ts,jsx,tsx}" | ||
| # | ||
| # - name: rubocop | ||
| # glob: "*.rb" | ||
| # exclude: | ||
| # - config/application.rb | ||
| # - config/routes.rb | ||
| # run: bundle exec rubocop --force-exclusion {all_files} | ||
| # | ||
| # - name: govet | ||
| # files: git ls-files -m | ||
| # glob: "*.go" | ||
| # run: go vet {files} | ||
| # | ||
| # - script: "hello.js" | ||
| # runner: node | ||
| # | ||
| # - script: "hello.go" | ||
| # runner: go run |
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,15 @@ | ||
| # EditorConfig helps developers define and maintain consistent | ||
| # coding styles between different editors and IDEs | ||
| # editorconfig.org | ||
|
|
||
| root = true | ||
|
|
||
| [*] | ||
|
|
||
| indent_style = space | ||
| indent_size = 2 | ||
|
|
||
| end_of_line = lf | ||
| charset = utf-8 | ||
| trim_trailing_whitespace = true | ||
| insert_final_newline = true |
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,3 @@ | ||
| *.pbxproj -text | ||
| # specific for windows script files | ||
| *.bat text eol=crlf | ||
|
huhuanming marked this conversation as resolved.
|
||
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,86 @@ | ||
| # OSX | ||
| # | ||
| .DS_Store | ||
|
|
||
| # XDE | ||
| .expo/ | ||
|
|
||
| # VSCode | ||
| .vscode/ | ||
| jsconfig.json | ||
|
|
||
| # Xcode | ||
| # | ||
| build/ | ||
| *.pbxuser | ||
| !default.pbxuser | ||
| *.mode1v3 | ||
| !default.mode1v3 | ||
| *.mode2v3 | ||
| !default.mode2v3 | ||
| *.perspectivev3 | ||
| !default.perspectivev3 | ||
| xcuserdata | ||
| *.xccheckout | ||
| *.moved-aside | ||
| DerivedData | ||
| *.hmap | ||
| *.ipa | ||
| *.xcuserstate | ||
| project.xcworkspace | ||
| **/.xcode.env.local | ||
|
|
||
| # Android/IJ | ||
| # | ||
| .classpath | ||
| .cxx | ||
| .gradle | ||
| .idea | ||
| .project | ||
| .settings | ||
| local.properties | ||
| android.iml | ||
|
|
||
| # Cocoapods | ||
| # | ||
| example/ios/Pods | ||
|
|
||
| # Ruby | ||
| example/vendor/ | ||
|
|
||
| # node.js | ||
| # | ||
| node_modules/ | ||
| npm-debug.log | ||
| yarn-debug.log | ||
| yarn-error.log | ||
|
|
||
| # BUCK | ||
| buck-out/ | ||
| \.buckd/ | ||
| android/app/libs | ||
| android/keystores/debug.keystore | ||
|
|
||
| # Yarn | ||
| .yarn/* | ||
| !.yarn/patches | ||
| !.yarn/plugins | ||
| !.yarn/releases | ||
| !.yarn/sdks | ||
| !.yarn/versions | ||
|
|
||
| # Expo | ||
| .expo/ | ||
|
|
||
| # Turborepo | ||
| .turbo/ | ||
|
|
||
| # generated by bob | ||
| lib/ | ||
|
|
||
| # React Native Codegen | ||
| ios/generated | ||
| android/generated | ||
|
|
||
| # React Native Nitro Modules | ||
| nitrogen/ |
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 @@ | ||
| v22.20.0 | ||
|
huhuanming marked this conversation as resolved.
|
||
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 @@ | ||
| {} |
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.