@secondts/bark-react-native 0.25.0 → 0.26.1

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.
Files changed (52) hide show
  1. package/README.md +4 -12
  2. package/android/CMakeLists.txt +1 -1
  3. package/android/build.gradle +1 -1
  4. package/android/proguard-rules.pro +16 -0
  5. package/app.plugin.js +5 -1
  6. package/cpp/generated/bark.cpp +519 -31
  7. package/cpp/generated/bark.hpp +28 -2
  8. package/lib/commonjs/WalletNotifications.js +7 -2
  9. package/lib/commonjs/WalletNotifications.js.map +1 -1
  10. package/lib/commonjs/generated/bark-ffi.js.map +1 -1
  11. package/lib/commonjs/generated/bark.js +948 -573
  12. package/lib/commonjs/generated/bark.js.map +1 -1
  13. package/lib/module/WalletNotifications.js +7 -2
  14. package/lib/module/WalletNotifications.js.map +1 -1
  15. package/lib/module/generated/bark-ffi.js.map +1 -1
  16. package/lib/module/generated/bark.js +948 -573
  17. package/lib/module/generated/bark.js.map +1 -1
  18. package/lib/typescript/commonjs/src/WalletNotifications.d.ts.map +1 -1
  19. package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +35 -9
  20. package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
  21. package/lib/typescript/commonjs/src/generated/bark.d.ts +1595 -168
  22. package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
  23. package/lib/typescript/module/src/WalletNotifications.d.ts.map +1 -1
  24. package/lib/typescript/module/src/generated/bark-ffi.d.ts +35 -9
  25. package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
  26. package/lib/typescript/module/src/generated/bark.d.ts +1595 -168
  27. package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
  28. package/package.json +5 -10
  29. package/scripts/postinstall.js +127 -40
  30. package/src/WalletNotifications.ts +7 -2
  31. package/src/generated/bark-ffi.ts +397 -950
  32. package/src/generated/bark.ts +13380 -13461
  33. package/lib/typescript/commonjs/plugin/src/index.d.ts +0 -11
  34. package/lib/typescript/commonjs/plugin/src/index.d.ts.map +0 -1
  35. package/lib/typescript/commonjs/plugin/src/withAndroid.d.ts +0 -6
  36. package/lib/typescript/commonjs/plugin/src/withAndroid.d.ts.map +0 -1
  37. package/lib/typescript/commonjs/plugin/src/withIOS.d.ts +0 -7
  38. package/lib/typescript/commonjs/plugin/src/withIOS.d.ts.map +0 -1
  39. package/lib/typescript/module/plugin/src/index.d.ts +0 -11
  40. package/lib/typescript/module/plugin/src/index.d.ts.map +0 -1
  41. package/lib/typescript/module/plugin/src/withAndroid.d.ts +0 -6
  42. package/lib/typescript/module/plugin/src/withAndroid.d.ts.map +0 -1
  43. package/lib/typescript/module/plugin/src/withIOS.d.ts +0 -7
  44. package/lib/typescript/module/plugin/src/withIOS.d.ts.map +0 -1
  45. package/plugin/build/index.d.ts +0 -10
  46. package/plugin/build/index.js +0 -16
  47. package/plugin/build/withAndroid.d.ts +0 -5
  48. package/plugin/build/withAndroid.js +0 -26
  49. package/plugin/build/withIOS.d.ts +0 -6
  50. package/plugin/build/withIOS.js +0 -13
  51. package/plugin/tsconfig.json +0 -9
  52. package/plugin/tsconfig.tsbuildinfo +0 -1
package/README.md CHANGED
@@ -21,19 +21,9 @@ Requires React Native 0.75+ (Expo SDK 52+) with the New Architecture enabled and
21
21
  npx expo install @secondts/bark-react-native
22
22
  ```
23
23
 
24
- 2. Add the plugin to `app.json` or `app.config.js`:
25
-
26
- ```json
27
- {
28
- "expo": {
29
- "plugins": ["@secondts/bark-react-native"]
30
- }
31
- }
32
- ```
33
-
34
24
  Warning: If you are using pnpm v10+, run `pnpm approve-builds` and select `@secondts/bark-react-native` to allow the postinstall script to download the prebuilt native binaries.
35
25
 
36
- 3. Run prebuild
26
+ 2. Run prebuild
37
27
 
38
28
  ```bash
39
29
  npx expo prebuild
@@ -41,6 +31,8 @@ npx expo prebuild
41
31
 
42
32
  Note: `bark-react-native` contains native code and requires a development build. It will not work with Expo Go.
43
33
 
34
+ No config plugin is needed. If your `app.json` or `app.config.js` still lists `@secondts/bark-react-native` under `plugins`, the entry does nothing and can be removed.
35
+
44
36
  ### Bare React Native
45
37
 
46
38
  1. Install the package
@@ -62,7 +54,7 @@ npx expo install @secondts/bark-react-native@beta
62
54
 
63
55
  ```bash
64
56
  # Or install a specific beta version
65
- npx expo install @secondts/bark-react-native@0.25.0
57
+ npx expo install @secondts/bark-react-native@0.26.1
66
58
  ```
67
59
 
68
60
  For bare React Native projects, use:
@@ -1,5 +1,5 @@
1
1
  # Generated by uniffi-bindgen-react-native
2
- cmake_minimum_required(VERSION 3.9.0)
2
+ cmake_minimum_required(VERSION 3.13)
3
3
  project(BarkReactNative)
4
4
 
5
5
  set (CMAKE_VERBOSE_MAKEFILE ON)
@@ -2,7 +2,7 @@
2
2
 
3
3
  buildscript {
4
4
  // Buildscript is evaluated before everything else so we can't use getExtOrDefault
5
- def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["DummyLibForAndroid_kotlinVersion"]
5
+ def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["BarkReactNative_kotlinVersion"]
6
6
 
7
7
  repositories {
8
8
  google()
@@ -0,0 +1,16 @@
1
+ # Consumer ProGuard rules for @secondts/bark-react-native.
2
+ #
3
+ # build.gradle lists this file in `consumerProguardFiles`, so it must exist:
4
+ # AGP 9 (Expo SDK 58+, where R8 is on for release builds) fails the release
5
+ # build when a declared consumer rules file is missing. ubrn only generates
6
+ # this file for JNA bindings, which this package does not use.
7
+
8
+ # The TurboModule is instantiated reflectively by React Native's module
9
+ # registry, and its `nativeInstallRustCrate` / `nativeCleanupRustCrate`
10
+ # methods are resolved from JNI by name (cpp-adapter.cpp).
11
+ -keep class com.barkreactnative.** { *; }
12
+
13
+ # JNI entry points are looked up by their exact symbol names.
14
+ -keepclasseswithmembernames class * {
15
+ native <methods>;
16
+ }
package/app.plugin.js CHANGED
@@ -1 +1,5 @@
1
- module.exports = require('./plugin/build');
1
+ // No native configuration is needed: the module is autolinked, and the only
2
+ // setting the old plugin applied (`android.useAndroidX=true`) is already on in
3
+ // the Expo and React Native templates. Kept as a pass-through so app configs
4
+ // that still list "@secondts/bark-react-native" under `plugins` keep working.
5
+ module.exports = (config) => config;