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

demos: update deps #15

Merged
merged 5 commits into from
Dec 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ listener = eventEmitter.addListener(eventName, (event: any) => {
listener.stop();
```

## Demos

To highlight the functionality of `lnc-rn` we've included two demos in the repo: `connect-demo` and `multi-connect-demo`. To run these you must run `npm run install-lnc` after installing their npm dependencies to fetch the LNC mobile binaries, which are not bundled into the module directly.

## Further documentation

- https://docs.lightning.engineering/lightning-network-tools/lightning-terminal/lnc-npm
4 changes: 2 additions & 2 deletions demos/connect-demo/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ PODS:
- glog (0.3.5)
- hermes-engine (0.70.6)
- libevent (2.1.12)
- lnc-rn (0.1.11-alpha.1):
- lnc-rn (0.2.1-alpha.2):
- React
- OpenSSL-Universal (1.1.1100)
- RCT-Folly (2021.07.22.00):
Expand Down Expand Up @@ -606,7 +606,7 @@ SPEC CHECKSUMS:
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
hermes-engine: 2af7b7a59128f250adfd86f15aa1d5a2ecd39995
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
lnc-rn: 436823281176c6c5818dd249629a32318d3537d0
lnc-rn: 4c1d7510e5b36069a993697a08468c0d2cedcdae
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda
RCTRequired: e1866f61af7049eb3d8e08e8b133abd38bc1ca7a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
74D902A22930F65800BC2EBB /* Lncmobile.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 74D902A12930F65800BC2EBB /* Lncmobile.xcframework */; };
7436416C294A297A002AB00B /* Lncmobile.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7436416B294A297A002AB00B /* Lncmobile.xcframework */; };
7699B88040F8A987B510C191 /* libPods-lncmobiledemo-lncmobiledemoTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-lncmobiledemo-lncmobiledemoTests.a */; };
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -42,7 +42,7 @@
5709B34CF0A7D63546082F79 /* Pods-lncmobiledemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-lncmobiledemo.release.xcconfig"; path = "Target Support Files/Pods-lncmobiledemo/Pods-lncmobiledemo.release.xcconfig"; sourceTree = "<group>"; };
5B7EB9410499542E8C5724F5 /* Pods-lncmobiledemo-lncmobiledemoTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-lncmobiledemo-lncmobiledemoTests.debug.xcconfig"; path = "Target Support Files/Pods-lncmobiledemo-lncmobiledemoTests/Pods-lncmobiledemo-lncmobiledemoTests.debug.xcconfig"; sourceTree = "<group>"; };
5DCACB8F33CDC322A6C60F78 /* libPods-lncmobiledemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-lncmobiledemo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
74D902A12930F65800BC2EBB /* Lncmobile.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = Lncmobile.xcframework; path = ../../../ios/Lncmobile.xcframework; sourceTree = "<group>"; };
7436416B294A297A002AB00B /* Lncmobile.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = Lncmobile.xcframework; path = "../node_modules/@lightninglabs/lnc-rn/ios/Lncmobile.xcframework"; sourceTree = "<group>"; };
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = lncmobiledemo/LaunchScreen.storyboard; sourceTree = "<group>"; };
89C6BE57DB24E9ADA2F236DE /* Pods-lncmobiledemo-lncmobiledemoTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-lncmobiledemo-lncmobiledemoTests.release.xcconfig"; path = "Target Support Files/Pods-lncmobiledemo-lncmobiledemoTests/Pods-lncmobiledemo-lncmobiledemoTests.release.xcconfig"; sourceTree = "<group>"; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
Expand All @@ -62,7 +62,7 @@
buildActionMask = 2147483647;
files = (
0C80B921A6F3F58F76C31292 /* libPods-lncmobiledemo.a in Frameworks */,
74D902A22930F65800BC2EBB /* Lncmobile.xcframework in Frameworks */,
7436416C294A297A002AB00B /* Lncmobile.xcframework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -102,7 +102,7 @@
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
isa = PBXGroup;
children = (
74D902A12930F65800BC2EBB /* Lncmobile.xcframework */,
7436416B294A297A002AB00B /* Lncmobile.xcframework */,
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
5DCACB8F33CDC322A6C60F78 /* libPods-lncmobiledemo.a */,
19F6CBCC0A4E27FBF8BF4A61 /* libPods-lncmobiledemo-lncmobiledemoTests.a */,
Expand Down
3 changes: 0 additions & 3 deletions demos/connect-demo/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ module.exports = (async () => {
resolver: { sourceExts, assetExts }
} = await getDefaultConfig();
return {
watchFolders: [
path.resolve(path.join('..','..')),
],
resolver: {
assetExts: assetExts.filter(ext => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg']
Expand Down
112 changes: 26 additions & 86 deletions demos/connect-demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions demos/connect-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
"tsc": "tsc",
"lint": "eslint --ext .js,.ts,.tsx '*.@(js|ts|tsx)' .",
"prettier": "prettier --check '**/*.ts*'",
"prettier-write": "prettier --check --write '**/*.ts*'"
"prettier-write": "prettier --check --write '**/*.ts*'",
"install-lnc": "cd node_modules/@lightninglabs/lnc-rn; yarn run fetch-libraries"
},
"dependencies": {
"@lightninglabs/lnc-rn": "file:///Users/satoshi/Repos/lightninglabs/lnc-rn",
"@lightninglabs/lnc-rn": "0.2.1-alpha.2",
"@react-native-community/masked-view": "0.1.11",
"@react-navigation/native": "6.0.13",
"mobx": "6.6.2",
Expand Down
4 changes: 2 additions & 2 deletions demos/multi-connect-demo/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ PODS:
- glog (0.3.5)
- hermes-engine (0.70.6)
- libevent (2.1.12)
- lnc-rn (0.1.11-alpha.1):
- lnc-rn (0.2.1-alpha.2):
- React
- OpenSSL-Universal (1.1.1100)
- RCT-Folly (2021.07.22.00):
Expand Down Expand Up @@ -606,7 +606,7 @@ SPEC CHECKSUMS:
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
hermes-engine: 2af7b7a59128f250adfd86f15aa1d5a2ecd39995
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
lnc-rn: 436823281176c6c5818dd249629a32318d3537d0
lnc-rn: 4c1d7510e5b36069a993697a08468c0d2cedcdae
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda
RCTRequired: e1866f61af7049eb3d8e08e8b133abd38bc1ca7a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
74D902A42930F72500BC2EBB /* Lncmobile.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 74D902A32930F72500BC2EBB /* Lncmobile.xcframework */; };
74A129D6294A2A5C00C7A86C /* Lncmobile.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 74A129D5294A2A5B00C7A86C /* Lncmobile.xcframework */; };
7699B88040F8A987B510C191 /* libPods-lncmobiledemo-lncmobiledemoTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-lncmobiledemo-lncmobiledemoTests.a */; };
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -42,7 +42,7 @@
5709B34CF0A7D63546082F79 /* Pods-lncmobiledemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-lncmobiledemo.release.xcconfig"; path = "Target Support Files/Pods-lncmobiledemo/Pods-lncmobiledemo.release.xcconfig"; sourceTree = "<group>"; };
5B7EB9410499542E8C5724F5 /* Pods-lncmobiledemo-lncmobiledemoTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-lncmobiledemo-lncmobiledemoTests.debug.xcconfig"; path = "Target Support Files/Pods-lncmobiledemo-lncmobiledemoTests/Pods-lncmobiledemo-lncmobiledemoTests.debug.xcconfig"; sourceTree = "<group>"; };
5DCACB8F33CDC322A6C60F78 /* libPods-lncmobiledemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-lncmobiledemo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
74D902A32930F72500BC2EBB /* Lncmobile.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = Lncmobile.xcframework; path = ../../../ios/Lncmobile.xcframework; sourceTree = "<group>"; };
74A129D5294A2A5B00C7A86C /* Lncmobile.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = Lncmobile.xcframework; path = "../node_modules/@lightninglabs/lnc-rn/ios/Lncmobile.xcframework"; sourceTree = "<group>"; };
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = lncmobiledemo/LaunchScreen.storyboard; sourceTree = "<group>"; };
89C6BE57DB24E9ADA2F236DE /* Pods-lncmobiledemo-lncmobiledemoTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-lncmobiledemo-lncmobiledemoTests.release.xcconfig"; path = "Target Support Files/Pods-lncmobiledemo-lncmobiledemoTests/Pods-lncmobiledemo-lncmobiledemoTests.release.xcconfig"; sourceTree = "<group>"; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
Expand All @@ -62,7 +62,7 @@
buildActionMask = 2147483647;
files = (
0C80B921A6F3F58F76C31292 /* libPods-lncmobiledemo.a in Frameworks */,
74D902A42930F72500BC2EBB /* Lncmobile.xcframework in Frameworks */,
74A129D6294A2A5C00C7A86C /* Lncmobile.xcframework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -102,7 +102,7 @@
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
isa = PBXGroup;
children = (
74D902A32930F72500BC2EBB /* Lncmobile.xcframework */,
74A129D5294A2A5B00C7A86C /* Lncmobile.xcframework */,
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
5DCACB8F33CDC322A6C60F78 /* libPods-lncmobiledemo.a */,
19F6CBCC0A4E27FBF8BF4A61 /* libPods-lncmobiledemo-lncmobiledemoTests.a */,
Expand Down
3 changes: 0 additions & 3 deletions demos/multi-connect-demo/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ module.exports = (async () => {
resolver: { sourceExts, assetExts }
} = await getDefaultConfig();
return {
watchFolders: [
path.resolve(path.join('..','..')),
],
resolver: {
assetExts: assetExts.filter(ext => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg']
Expand Down
Loading