simplejsble 0.0.19 → 0.0.20

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/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import type { Adapter } from "./specs/Adapter.nitro";
2
+ export declare const HybridAdapter: Adapter;
package/lib/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import { NitroModules } from "react-native-nitro-modules";
2
+ export const HybridAdapter = NitroModules.createHybridObject("Adapter");
@@ -0,0 +1,9 @@
1
+ import { type HybridObject } from 'react-native-nitro-modules';
2
+ export interface Adapter extends HybridObject<{
3
+ ios: 'c++';
4
+ android: 'c++';
5
+ }> {
6
+ greet(name: string): string;
7
+ get_adapters(): Adapter[];
8
+ bluetooth_enabled(): boolean;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplejsble",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "React Native Bluetooth Low Energy library using SimpleBLE with Nitro Modules",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",
@@ -28,7 +28,7 @@
28
28
  "scripts": {
29
29
  "prepack": "node scripts/prepare-package.js",
30
30
  "typecheck": "tsc --noEmit",
31
- "build": "tsc --noEmit false",
31
+ "build": "tsc --composite false",
32
32
  "clean": "rm -rf android/build android/.cxx android/.gradle lib",
33
33
  "lint": "eslint \"**/*.{js,ts,tsx}\" --fix",
34
34
  "prepublishOnly": "npm run build",