Skip to content

Commit

Permalink
feat: weshnet import and export account (#928)
Browse files Browse the repository at this point in the history
* feat: weshnet import and export account

* fix: go mod issues

* fix: use layout

* chore: cleanup unnecessary tools from github ci
  • Loading branch information
sakul-budhathoki authored Feb 21, 2024
1 parent 241315b commit a7947ac
Show file tree
Hide file tree
Showing 51 changed files with 1,660 additions and 5,748 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/mobile-build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ jobs:
- name: Cancel Previous Runs
uses: styfle/[email protected]

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
android: false
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

- uses: actions/setup-go@v3
with:
go-version: "1.19"
Expand Down
19 changes: 9 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ node_modules: package.json yarn.lock
.PHONY: go-mod-tidy
go-mod-tidy:
go mod tidy
cd electron && go mod tidy
cd ./weshd && go mod tidy

.PHONY: generate
generate: generate.protobuf generate.graphql generate.contracts-clients generate.go-networks networks.json
Expand Down Expand Up @@ -326,7 +326,7 @@ build-electron-macos-amd64:
rm -fr ./electron/dist
rm -fr ./electron/build
cd ./electron && npm i
cd ./electron && GOOS=darwin GOARCH=amd64 $(GO) build -tags noNativeLogger -o ./build/mac ./prod.go
cd ./weshd && GOOS=darwin GOARCH=amd64 $(GO) build -tags noNativeLogger -o ../electron/build/mac ./go/electron/prod.go
cd ./electron && node ./builder/mac.js amd64

# requires prepare-electron
Expand All @@ -335,7 +335,7 @@ build-electron-macos-arm64:
rm -fr ./electron/dist
rm -fr ./electron/build
cd ./electron && npm i
cd ./electron && GOOS=darwin GOARCH=arm64 $(GO) build -tags noNativeLogger -o ./build/mac ./prod.go
cd ./weshd && GOOS=darwin GOARCH=arm64 $(GO) build -tags noNativeLogger -o ../electron/build/mac ./go/electron/prod.go
cd ./electron && node ./builder/mac.js arm64

# requires prepare-electron
Expand All @@ -344,7 +344,7 @@ build-electron-windows-amd64:
rm -fr ./electron/dist
rm -fr ./electron/build
cd ./electron && npm i
cd ./electron && GOOS=windows GOARCH=amd64 $(GO) build -tags noNativeLogger -o ./build/win.exe ./prod.go
cd ./weshd && GOOS=windows GOARCH=amd64 $(GO) build -tags noNativeLogger -o ../electron/build/win.exe ./go/electron/prod.go
cd ./electron && node ./builder/win.js

# requires prepare-electron
Expand All @@ -353,7 +353,7 @@ build-electron-linux-amd64:
rm -fr ./electron/dist
rm -fr ./electron/build
cd ./electron && npm i
cd ./electron && GOOS=linux GOARCH=amd64 $(GO) build -tags noNativeLogger -o ./build/linux ./prod.go
cd ./weshd && GOOS=linux GOARCH=amd64 $(GO) build -tags noNativeLogger -o ../electron/build/linux ./go/electron/prod.go
cd ./electron && node ./builder/linux.js

.PHONY: check-ios-weshframework
Expand All @@ -366,11 +366,10 @@ check-ios-weshframework:
.PHONY: build-ios-weshframework
build-ios-weshframework:
$(MAKE) init-weshd-go
CGO_CPPFLAGS="-Wno-error -Wno-nullability-completeness -Wno-expansion-to-defined -DHAVE_GETHOSTUUID=0"
cd ./weshd && gomobile bind \
cd ./weshd && gomobile bind -v \
-o ./ios/Frameworks/WeshFramework.xcframework \
-tags "fts5 sqlite sqlite_unlock_notify" -tags 'nowatchdog' -target ios -iosversion 13.0 \
./go/
-tags 'nowatchdog' -target ios \
./go/app

.PHONY: check-android-weshframework
check-android-weshframework:
Expand All @@ -388,7 +387,7 @@ build-android-weshframework:
-javapkg=com.weshnet \
-o ./android/libs/WeshFramework.aar \
-tags "fts5 sqlite sqlite_unlock_notify" -tags 'nowatchdog' -target android -androidapi 21 \
./go/
./go/app

.PHONY: init-weshd-go
init-weshd-go:
Expand Down
10 changes: 9 additions & 1 deletion app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ const config = {
projectId: "9ce165de-0199-478c-b3bd-8688e5ce03eb",
},
},
plugins: ["expo-font"],
plugins: [
"expo-font",
[
"expo-document-picker",
{
iCloudContainerEnvironment: "Production",
},
],
],
},
};

Expand Down
4 changes: 4 additions & 0 deletions assets/icons/download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
85 changes: 85 additions & 0 deletions assets/illustrations/message-onboarding.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a7947ac

Please sign in to comment.