react-native-nitro-modules 0.29.7 → 0.29.8

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.
@@ -26,7 +26,7 @@ int levelToAndroidLevel(LogLevel level) {
26
26
  }
27
27
  }
28
28
 
29
- void Logger::nativeLog(LogLevel level, const char* tag, const std::string& message) {
29
+ void Logger::nativeLog([[maybe_unused]] LogLevel level, [[maybe_unused]] const char* tag, [[maybe_unused]] const std::string& message) {
30
30
  #ifdef NITRO_DEBUG
31
31
  int logLevel = levelToAndroidLevel(level);
32
32
  std::string combinedTag = "Nitro." + std::string(tag);
@@ -7,6 +7,7 @@
7
7
 
8
8
  #include "ArrayBuffer.hpp"
9
9
  #include "BorrowingReference.hpp"
10
+ #include "NitroDefines.hpp"
10
11
  #include <functional>
11
12
  #include <jsi/jsi.h>
12
13
  #include <thread>
@@ -6,6 +6,7 @@
6
6
 
7
7
  #include "HybridObjectPrototype.hpp"
8
8
 
9
+ #include "NitroDefines.hpp"
9
10
  #include <jsi/jsi.h>
10
11
  #include <memory>
11
12
  #include <type_traits>
@@ -9,6 +9,7 @@
9
9
 
10
10
  #include "BorrowingReference.hpp"
11
11
  #include "HybridFunction.hpp"
12
+ #include "NitroDefines.hpp"
12
13
  #include "Prototype.hpp"
13
14
  #include "PrototypeChain.hpp"
14
15
  #include <functional>
@@ -9,7 +9,7 @@
9
9
  #define NitroDefines_h
10
10
 
11
11
  // Sets the version of the native Nitro core library
12
- #define NITRO_VERSION "0.29.7"
12
+ #define NITRO_VERSION "0.29.8"
13
13
 
14
14
  // Sets whether to use debug or optimized production build flags
15
15
  #ifdef DEBUG
@@ -7,6 +7,7 @@
7
7
 
8
8
  #pragma once
9
9
 
10
+ #include "NitroDefines.hpp"
10
11
  #include <cstddef>
11
12
  #include <cstdint>
12
13
  #include <string>
@@ -35,7 +35,7 @@ std::string TypeInfo::replaceRegex(const std::string& original, const std::strin
35
35
  return std::regex_replace(original, regex, replacement);
36
36
  }
37
37
 
38
- std::string TypeInfo::demangleName(const std::string& typeName, bool removeNamespace) {
38
+ std::string TypeInfo::demangleName(const std::string& typeName, [[maybe_unused]] bool removeNamespace) {
39
39
  #ifdef NITRO_DEBUG
40
40
  // In debug, we demangle the name using Cxx ABI and prettify it.
41
41
  std::string name = typeName;
@@ -7,6 +7,7 @@
7
7
 
8
8
  #pragma once
9
9
 
10
+ #include "NitroDefines.hpp"
10
11
  #include "ReferenceState.hpp"
11
12
  #include <atomic>
12
13
  #include <cstddef>
@@ -26,7 +26,7 @@ const char* levelToString(LogLevel level) {
26
26
  }
27
27
  }
28
28
 
29
- void Logger::nativeLog(LogLevel level, const char* tag, const std::string& message) {
29
+ void Logger::nativeLog([[maybe_unused]] LogLevel level, [[maybe_unused]] const char* tag, [[maybe_unused]] const std::string& message) {
30
30
  #ifdef NITRO_DEBUG
31
31
  const char* logLevel = levelToString(level);
32
32
  NSLog(@"[%s] [Nitro.%s] %s", logLevel, tag, message.c_str());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nitro-modules",
3
- "version": "0.29.7",
3
+ "version": "0.29.8",
4
4
  "description": "Insanely fast native C++, Swift or Kotlin modules with a statically compiled binding layer to JSI.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",