@secondts/bark-react-native 0.26.0 → 0.27.0

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 +84 -38
  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 +81 -6
  7. package/cpp/generated/bark.hpp +4 -0
  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 +854 -708
  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 +853 -707
  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 +7 -3
  20. package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
  21. package/lib/typescript/commonjs/src/generated/bark.d.ts +533 -20
  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 +7 -3
  25. package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
  26. package/lib/typescript/module/src/generated/bark.d.ts +533 -20
  27. package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
  28. package/package.json +5 -15
  29. package/scripts/postinstall.js +92 -31
  30. package/src/WalletNotifications.ts +7 -2
  31. package/src/generated/bark-ffi.ts +400 -1022
  32. package/src/generated/bark.ts +12904 -14919
  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
@@ -1,11 +0,0 @@
1
- import type { ConfigPlugin } from '@expo/config-plugins';
2
- export interface BarkPluginProps {
3
- /**
4
- * Skip downloading binary artifacts during prebuild.
5
- * Useful if you're building from source or have artifacts pre-installed.
6
- */
7
- skipBinaryDownload?: boolean;
8
- }
9
- declare const _default: ConfigPlugin<void | BarkPluginProps>;
10
- export default _default;
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAOzD,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;;AAaD,wBAA+E"}
@@ -1,6 +0,0 @@
1
- import { type ConfigPlugin } from '@expo/config-plugins';
2
- /**
3
- * Configure Android build settings for Bark
4
- */
5
- export declare const withBarkAndroid: ConfigPlugin;
6
- //# sourceMappingURL=withAndroid.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withAndroid.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/withAndroid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAwB,MAAM,sBAAsB,CAAC;AAqB/E;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,YAI7B,CAAC"}
@@ -1,7 +0,0 @@
1
- import { type ConfigPlugin } from '@expo/config-plugins';
2
- /**
3
- * Configure iOS build settings for Bark
4
- * The podspec already defines the minimum iOS version via min_ios_version_supported
5
- */
6
- export declare const withBarkIOS: ConfigPlugin;
7
- //# sourceMappingURL=withIOS.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withIOS.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/withIOS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,YAIzB,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { ConfigPlugin } from '@expo/config-plugins';
2
- export interface BarkPluginProps {
3
- /**
4
- * Skip downloading binary artifacts during prebuild.
5
- * Useful if you're building from source or have artifacts pre-installed.
6
- */
7
- skipBinaryDownload?: boolean;
8
- }
9
- declare const _default: ConfigPlugin<void | BarkPluginProps>;
10
- export default _default;
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAOzD,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;;AAaD,wBAA+E"}
@@ -1,6 +0,0 @@
1
- import { type ConfigPlugin } from '@expo/config-plugins';
2
- /**
3
- * Configure Android build settings for Bark
4
- */
5
- export declare const withBarkAndroid: ConfigPlugin;
6
- //# sourceMappingURL=withAndroid.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withAndroid.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/withAndroid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAwB,MAAM,sBAAsB,CAAC;AAqB/E;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,YAI7B,CAAC"}
@@ -1,7 +0,0 @@
1
- import { type ConfigPlugin } from '@expo/config-plugins';
2
- /**
3
- * Configure iOS build settings for Bark
4
- * The podspec already defines the minimum iOS version via min_ios_version_supported
5
- */
6
- export declare const withBarkIOS: ConfigPlugin;
7
- //# sourceMappingURL=withIOS.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withIOS.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/withIOS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,YAIzB,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { ConfigPlugin } from '@expo/config-plugins';
2
- export interface BarkPluginProps {
3
- /**
4
- * Skip downloading binary artifacts during prebuild.
5
- * Useful if you're building from source or have artifacts pre-installed.
6
- */
7
- skipBinaryDownload?: boolean;
8
- }
9
- declare const _default: ConfigPlugin<void | BarkPluginProps>;
10
- export default _default;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const config_plugins_1 = require("@expo/config-plugins");
4
- const withAndroid_1 = require("./withAndroid");
5
- const withIOS_1 = require("./withIOS");
6
- const pkg = require('../../package.json');
7
- const withBarkReactNative = (config, props = {}) => {
8
- const { skipBinaryDownload = false } = props || {};
9
- return (0, config_plugins_1.withPlugins)(config, [
10
- // Android configuration
11
- [withAndroid_1.withBarkAndroid, { skipBinaryDownload }],
12
- // iOS configuration
13
- [withIOS_1.withBarkIOS, { skipBinaryDownload }],
14
- ]);
15
- };
16
- exports.default = (0, config_plugins_1.createRunOncePlugin)(withBarkReactNative, pkg.name, pkg.version);
@@ -1,5 +0,0 @@
1
- import { type ConfigPlugin } from '@expo/config-plugins';
2
- /**
3
- * Configure Android build settings for Bark
4
- */
5
- export declare const withBarkAndroid: ConfigPlugin;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.withBarkAndroid = void 0;
4
- const config_plugins_1 = require("@expo/config-plugins");
5
- /**
6
- * Add required configurations to gradle.properties
7
- */
8
- const withGradlePropertiesConfig = (config) => {
9
- return (0, config_plugins_1.withGradleProperties)(config, (config) => {
10
- config.modResults = config.modResults.filter((item) => item.type !== 'property' || item.key !== 'android.useAndroidX');
11
- config.modResults.push({
12
- type: 'property',
13
- key: 'android.useAndroidX',
14
- value: 'true',
15
- });
16
- return config;
17
- });
18
- };
19
- /**
20
- * Configure Android build settings for Bark
21
- */
22
- const withBarkAndroid = (config) => {
23
- config = withGradlePropertiesConfig(config);
24
- return config;
25
- };
26
- exports.withBarkAndroid = withBarkAndroid;
@@ -1,6 +0,0 @@
1
- import { type ConfigPlugin } from '@expo/config-plugins';
2
- /**
3
- * Configure iOS build settings for Bark
4
- * The podspec already defines the minimum iOS version via min_ios_version_supported
5
- */
6
- export declare const withBarkIOS: ConfigPlugin;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.withBarkIOS = void 0;
4
- /**
5
- * Configure iOS build settings for Bark
6
- * The podspec already defines the minimum iOS version via min_ios_version_supported
7
- */
8
- const withBarkIOS = (config) => {
9
- // Currently no additional iOS configuration needed
10
- // The podspec handles minimum version and framework linking
11
- return config;
12
- };
13
- exports.withBarkIOS = withBarkIOS;
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "expo-module-scripts/tsconfig.plugin",
3
- "compilerOptions": {
4
- "outDir": "build",
5
- "rootDir": "src"
6
- },
7
- "include": ["./src"],
8
- "exclude": ["**/__mocks__/*", "**/__tests__/*"]
9
- }
@@ -1 +0,0 @@
1
- {"root":["./src/index.ts","./src/withandroid.ts","./src/withios.ts"],"version":"5.9.3"}