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

chore: Remove the unused gRPC server #35

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

jefft0
Copy link
Collaborator

@jefft0 jefft0 commented Dec 17, 2024

Initially, communication between the app and Gnokey Mobile was with gRPC. But now we only use deep links and the gRPC support is dead code, so this PR removes it.

  • Remove the unused api, service and test folders.
  • In the top-level folder, remove Makefile and go.mod. Move .tool-versions into the mobile folder.

(After merging this PR, we'll do a gnonative PR to remove references to gnokey-mobile.)

@jefft0 jefft0 marked this pull request as draft December 17, 2024 09:57
@jefft0 jefft0 marked this pull request as ready for review December 17, 2024 10:05
@jefft0 jefft0 requested a review from D4ryl00 December 17, 2024 10:06
@jefft0 jefft0 force-pushed the chore/remove-unused-gRPC-server branch from 7df17ff to b74b5f5 Compare December 17, 2024 16:41
@jefft0 jefft0 removed the request for review from D4ryl00 December 18, 2024 14:17
@jefft0 jefft0 marked this pull request as draft December 18, 2024 14:17
@jefft0 jefft0 force-pushed the chore/remove-unused-gRPC-server branch from 9e086f8 to 0a9e7fb Compare December 19, 2024 08:51
@jefft0 jefft0 marked this pull request as ready for review December 19, 2024 09:25
@jefft0 jefft0 requested a review from D4ryl00 December 19, 2024 09:25
Copy link
Collaborator

@D4ryl00 D4ryl00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jefft0 jefft0 merged commit 11c457e into gnolang:main Dec 19, 2024
1 check passed
@jefft0 jefft0 deleted the chore/remove-unused-gRPC-server branch December 19, 2024 09:51
jefft0 added a commit to gnolang/gnonative that referenced this pull request Dec 19, 2024
gnokey-mobile PR gnolang/gnokey-mobile#35
removed the unused gRPC server, since we now use deep links.
Importantly, the code to call functions like
`gnoNativeService.ClientSignTx` are removed. So we can remove these
functions in gnonative.

* In the `GnoNativeService` interface and `gnoNativeService` type,
remove `ClientGetRemote`, `ClientListKeyInfo` and `ClientSignTx` which
were only used by the Gnokey Mobile gRPC server.
* In the `Config` and `gnoNativeService` structs, remove
`useGnokeyMobile` flag and the code in api.go which does special
handling for this flag.
* In bridge.go and the related Swift and Kotlin files, remove support
for `StartGnokeyMobileService`. This allows us to remove the dependency
on `github.com/gnolang/gnokey-mobile/service`, so remove it from go.mod.
* Run `make regenerate` which updates files in api/gen/go, including
changes for the new buf version.

This PR was tested by running `make npm.pack` in the expo folder,
installing this package in gnokey-mobile, then testing with dsocial on
Android and iOS simulators.

(Note that examples/js/react-native/hello has a copies of files from the
expo folder. These are out-of-date for recent changes in the API,
including this PR. We will do a future PR to update the hello example.)

---------

Signed-off-by: Jeff Thompson <[email protected]>
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.

2 participants