File tree Expand file tree Collapse file tree 1 file changed +24
-11
lines changed Expand file tree Collapse file tree 1 file changed +24
-11
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,21 @@ This library hopes to simplify the process of adding Lightning via LDK to any Re
12
12
yarn add @synonymdev/react-native-ldk
13
13
# or
14
14
npm i -S @synonymdev/react-native-ldk
15
- ````
15
+ ```
16
16
17
17
### iOS installation
18
18
``` bash
19
19
cd ios && pod install && cd ../
20
- ` ` ` `
20
+ ```
21
21
22
22
### Android installation
23
23
1 . Add the following line to ` dependencies ` in ` /android/app/build.gradle `
24
- ` ` `
25
- dependencies {
26
- ...
27
- implementation files(" ../../node_modules/@synonymdev/react-native-ldk/android/libs/LDK-release.aar" )
28
- }
29
- ```
24
+ ``` groovy
25
+ dependencies {
26
+ // ...
27
+ implementation files("../../node_modules/@synonymdev/react-native-ldk/android/libs/LDK-release.aar") // <- this
28
+ }
29
+ ```
30
30
2. Ensure `minSdkVersion` is set to at least `24` in `/android/build.gradle`
31
31
32
32
## Development
@@ -40,19 +40,32 @@ dependencies {
40
40
5. In the popup that appears select `JavaDocs` and tap `OK` then `OK` again
41
41
42
42
## Running example app
43
+ See also [`./example/README.md`](./example/README.md)
43
44
```bash
44
-
45
- # Build dist files
45
+ # Build dist files
46
46
git clone https://github.com/synonymdev/react-native-ldk.git
47
47
cd react-native-ldk/lib/ && yarn install && yarn build && cd ../
48
48
49
49
cd example/ && yarn install && yarn rn-setup
50
50
51
51
yarn ios
52
- # or
52
+ # or
53
53
yarn android
54
54
```
55
55
56
+ ### Update config to match your local setup
57
+ In ` constants.ts ` update ` peers.lnd ` if you're using Polar locally.
58
+ ### Example for Android
59
+ ``` ts
60
+ // export const peers = {
61
+ // lnd: {
62
+ pubKey :
63
+ ' _033f4d3032ce7f54224f4bd9747b50b7cd72074a859758e40e1ca46ffa79a34324_' ,
64
+ address : ' 10.0.2.2' ,
65
+ port : 9737 ,
66
+ // },
67
+ ```
68
+
56
69
## Notes
57
70
- It is important to not mix and match account names and seeds when starting LDK. Doing so can result in a corrupt save.
58
71
You can’t perform that action at this time.
0 commit comments