Skip to content

Commit

Permalink
Merge pull request #506 from birtony/update-targets
Browse files Browse the repository at this point in the history
fix(app): updated targets for demo web app
  • Loading branch information
rolsonquadras authored Jul 21, 2023
2 parents 1a747a1 + 52f82fa commit be47cf0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ copy-ios-bindings:

.PHONY: copy-js-bindings
copy-js-bindings:
@cp -f demo/app/web/node_modules/@trustbloc-cicd/wallet-sdk-js/dist/wallet-sdk.wasm demo/app/web
@rm -rf demo/app/web/node_modules && cp cmd/wallet-sdk-js/dist/wallet-sdk.wasm demo/app/web && mkdir -p demo/app/web/node_modules/@trustbloc-cicd/wallet-sdk-js/dist && cp cmd/wallet-sdk-js/dist/wasm_exec.js demo/app/web/node_modules/@trustbloc-cicd/wallet-sdk-js/dist && cp cmd/wallet-sdk-js/src/index.js demo/app/web/node_modules/@trustbloc-cicd/wallet-sdk-js/dist/agent.js && sed -i 's/export default class Agent {/class Agent {/g' demo/app/web/node_modules/@trustbloc-cicd/wallet-sdk-js/dist/agent.js

.PHONY: demo-app-ios
demo-app-ios:generate-ios-bindings copy-ios-bindings
Expand All @@ -72,10 +72,14 @@ demo-app-ios:generate-ios-bindings copy-ios-bindings
demo-app-android: generate-android-bindings copy-android-bindings
@cd demo/app && flutter doctor && flutter clean && flutter run && flutter emulators --launch Pixel_3a_API_33_arm64-v8a && flutter run -d Pixel_3a_API_33_arm64-v8a

.PHONY: demo-app-web
demo-app-web: generate-js-bindings copy-js-bindings
.PHONY: demo-app-web-local
demo-app-web-local: generate-js-bindings copy-js-bindings
@cd demo/app && flutter doctor && flutter clean && flutter run -d chrome

.PHONY: demo-app-web
demo-app-web:
@cd demo/app/web && rm -rf node_modules && npm i && cp ../../../cmd/wallet-sdk-js/src/index.js node_modules/@trustbloc-cicd/wallet-sdk-js/dist/agent.js && sed -i 's/export default class Agent {/class Agent {/g' node_modules/@trustbloc-cicd/wallet-sdk-js/dist/agent.js && cp node_modules/@trustbloc-cicd/wallet-sdk-js/dist/wallet-sdk.wasm ./ && flutter doctor && flutter clean && flutter run -d chrome

.PHONY: sample-webhook
sample-webhook:
@echo "Building sample webhook server"
Expand Down

0 comments on commit be47cf0

Please sign in to comment.