@lightninglabs/wavelength-react-native 0.1.0 → 0.1.1-rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -25,14 +25,20 @@ npm install @lightninglabs/wavelength-react-native @lightninglabs/wavelength-rea
25
25
  ```
26
26
 
27
27
  The native wallet runtime binaries (`Wavewalletdk.aar` and
28
- `Wavewalletdk.xcframework`) are not bundled inside the npm package. Get them one
29
- of two ways, then stage them into this package before running `pod install` or a
30
- Gradle build:
31
-
32
- - Download them from the paired
33
- [wavelength release](https://github.com/lightninglabs/wavelength/releases).
34
- - Build them from a `wavelength` checkout with `scripts/fetch-bindings.sh`, which
35
- compiles them from the daemon source named by `WAVELENGTH_DIR`.
28
+ `Wavewalletdk.xcframework`) are not bundled inside the npm package. Download
29
+ them from the [wavelength release](https://github.com/lightninglabs/wavelength/releases)
30
+ tagged with the `RUNTIME_MANIFEST_VERSION` that
31
+ `@lightninglabs/wavelength-core` exports, and stage them into this package
32
+ before running `pod install` or a Gradle build.
33
+ [Installation](https://wavelength.lightning.engineering/react-native/get-started/installation/)
34
+ in the documentation walks through the exact staging steps, including the
35
+ header rewrite the iOS framework needs.
36
+
37
+ Working from a checkout of this repository instead, the `bindings:fetch` script
38
+ does all of that for you, and `bindings:local` builds the binaries from the
39
+ daemon source named by `WAVELENGTH_DIR` (for unreleased daemon revisions).
40
+ Neither ships in the published package: both resolve paths relative to the
41
+ repository root, which does not exist in an install.
36
42
 
37
43
  ## Quick start
38
44
 
@@ -14,7 +14,9 @@ Pod::Spec.new do |s|
14
14
  s.source_files = "ios/**/*.{h,mm,swift}"
15
15
  s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" }
16
16
 
17
- # The gomobile-built daemon; staged by scripts/fetch-bindings.sh (gitignored).
17
+ # The gomobile-built daemon. Not shipped in the npm package and gitignored
18
+ # here, so it must be staged before `pod install`; the package README has the
19
+ # steps, and a wavelength-sdk checkout can run scripts/fetch-bindings.sh.
18
20
  s.vendored_frameworks = "ios/Wavewalletdk.xcframework"
19
21
 
20
22
  # The Go runtime's DNS resolver links against libresolv (res_9_* symbols).
@@ -30,7 +30,9 @@ android {
30
30
 
31
31
  dependencies {
32
32
  implementation "com.facebook.react:react-android"
33
- // The gomobile-generated bindings, staged by scripts/fetch-bindings.sh.
33
+ // The gomobile-generated bindings. Not shipped in the npm package, so they
34
+ // must be staged before a Gradle build; the package README has the steps, and
35
+ // a wavelength-sdk checkout can run scripts/fetch-bindings.sh.
34
36
  api files("libs/Wavewalletdk.aar")
35
37
  // Passkeys: Credential Manager plus its Play services provider binding.
36
38
  implementation "androidx.credentials:credentials:1.6.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightninglabs/wavelength-react-native",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-rc2",
4
4
  "private": false,
5
5
  "description": "React Native transport for the Wavelength self-custodial Lightning wallet SDK.",
6
6
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  }
42
42
  },
43
43
  "dependencies": {
44
- "@lightninglabs/wavelength-core": "0.1.0"
44
+ "@lightninglabs/wavelength-core": "0.1.1-rc2"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": ">=18.0.0",
@@ -65,6 +65,7 @@
65
65
  "build": "tsc -p tsconfig.json",
66
66
  "typecheck": "tsc -p tsconfig.json --noEmit",
67
67
  "test": "node --test",
68
- "fetch-bindings": "bash scripts/fetch-bindings.sh"
68
+ "bindings:fetch": "bash scripts/fetch-bindings.sh",
69
+ "bindings:local": "bash scripts/bindings-local.sh"
69
70
  }
70
71
  }
@@ -1,31 +0,0 @@
1
- import type { TurboModule } from 'react-native';
2
- /**
3
- * The Turbo Module contract for the walletdk native bridge. The surface is a
4
- * deliberately thin JSON pipe: `call` dispatches every facade verb by name
5
- * with a JSON string in and a JSON string out, and the activity stream
6
- * arrives as 'walletdkActivity' device events carrying
7
- * `{ kind: 'entry' | 'end' | 'error', payload: string }`.
8
- */
9
- export interface Spec extends TurboModule {
10
- /** Invokes a facade verb by name with a JSON payload, returning JSON. */
11
- call(method: string, paramsJson: string): Promise<string>;
12
- /** Opens the activity subscription; entries arrive as device events. */
13
- startActivity(reqJson: string): Promise<void>;
14
- /** Closes the activity subscription; a no-op when none is open. */
15
- stopActivity(): Promise<void>;
16
- /** Resolves the platform default wallet data directory. */
17
- getDefaultDataDir(): Promise<string>;
18
- /** Reports whether the platform can run a passkey PRF ceremony. */
19
- passkeySupported(): Promise<boolean>;
20
- /** Runs a passkey registration ceremony; WebAuthn JSON in and out. */
21
- passkeyCreate(requestJson: string): Promise<string>;
22
- /** Runs a passkey assertion ceremony; WebAuthn JSON in and out. */
23
- passkeyGet(requestJson: string): Promise<string>;
24
- /** Required by NativeEventEmitter. */
25
- addListener(eventName: string): void;
26
- /** Required by NativeEventEmitter. */
27
- removeListeners(count: number): void;
28
- }
29
- declare const _default: Spec;
30
- export default _default;
31
- //# sourceMappingURL=NativeWalletdk.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeWalletdk.d.ts","sourceRoot":"","sources":["../src/NativeWalletdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD;;;;;;GAMG;AACH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,yEAAyE;IACzE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1D,wEAAwE;IACxE,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,mEAAmE;IACnE,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,2DAA2D;IAC3D,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACrC,mEAAmE;IACnE,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACrC,sEAAsE;IACtE,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACpD,mEAAmE;IACnE,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,sCAAsC;IACtC,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,sCAAsC;IACtC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;;AAED,wBAAkE"}
@@ -1,2 +0,0 @@
1
- import { TurboModuleRegistry } from 'react-native';
2
- export default TurboModuleRegistry.getEnforcing('Walletdk');