@rnpack/utils 0.1.6 → 0.1.7
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/Utils.podspec +2 -2
- package/android/CMakeLists.txt +3 -3
- package/android/build.gradle +3 -3
- package/android/gradle.properties +5 -5
- package/android/src/main/cpp/cpp-adapter.cpp +2 -2
- package/android/src/main/java/com/margelo/nitro/rnpack/utils/{Utils.kt → RNPackUtils.kt} +1 -1
- package/android/src/main/java/com/margelo/nitro/rnpack/utils/{UtilsPackage.kt → RNPackUtilsPackage.kt} +2 -2
- package/ios/{Utils.swift → RNPackUtils.swift} +1 -1
- package/lib/module/RNPackUtils.nitro.js +4 -0
- package/lib/module/RNPackUtils.nitro.js.map +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/{Utils.nitro.d.ts → RNPackUtils.nitro.d.ts} +2 -2
- package/lib/typescript/src/RNPackUtils.nitro.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/nitro.json +16 -9
- package/nitrogen/generated/android/{rnpack_utils+autolinking.cmake → RNPackUtils+autolinking.cmake} +10 -10
- package/nitrogen/generated/android/{rnpack_utils+autolinking.gradle → RNPackUtils+autolinking.gradle} +3 -3
- package/nitrogen/generated/android/{rnpack_utilsOnLoad.cpp → RNPackUtilsOnLoad.cpp} +10 -10
- package/nitrogen/generated/android/{rnpack_utilsOnLoad.hpp → RNPackUtilsOnLoad.hpp} +5 -5
- package/nitrogen/generated/android/c++/{JHybridUtilsSpec.cpp → JHybridRNPackUtilsSpec.cpp} +11 -11
- package/nitrogen/generated/android/c++/{JHybridUtilsSpec.hpp → JHybridRNPackUtilsSpec.hpp} +12 -12
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rnpack/utils/{HybridUtilsSpec.kt → HybridRNPackUtilsSpec.kt} +6 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rnpack/utils/{rnpack_utilsOnLoad.kt → RNPackUtilsOnLoad.kt} +8 -8
- package/nitrogen/generated/ios/{Utils+autolinking.rb → RNPackUtils+autolinking.rb} +4 -4
- package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Bridge.cpp +33 -0
- package/nitrogen/generated/ios/RNPackUtils-Swift-Cxx-Bridge.hpp +51 -0
- package/nitrogen/generated/ios/{Utils-Swift-Cxx-Umbrella.hpp → RNPackUtils-Swift-Cxx-Umbrella.hpp} +13 -13
- package/nitrogen/generated/ios/{UtilsAutolinking.mm → RNPackUtilsAutolinking.mm} +8 -8
- package/nitrogen/generated/ios/{UtilsAutolinking.swift → RNPackUtilsAutolinking.swift} +9 -9
- package/nitrogen/generated/ios/c++/HybridRNPackUtilsSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/{HybridUtilsSpecSwift.hpp → HybridRNPackUtilsSpecSwift.hpp} +15 -15
- package/nitrogen/generated/ios/swift/HybridRNPackUtilsSpec.swift +56 -0
- package/nitrogen/generated/ios/swift/{HybridUtilsSpec_cxx.swift → HybridRNPackUtilsSpec_cxx.swift} +21 -21
- package/nitrogen/generated/shared/c++/{HybridUtilsSpec.cpp → HybridRNPackUtilsSpec.cpp} +6 -6
- package/nitrogen/generated/shared/c++/{HybridUtilsSpec.hpp → HybridRNPackUtilsSpec.hpp} +11 -11
- package/package.json +2 -2
- package/src/{Utils.nitro.ts → RNPackUtils.nitro.ts} +1 -1
- package/src/index.tsx +3 -2
- package/lib/module/Utils.nitro.js +0 -4
- package/lib/module/Utils.nitro.js.map +0 -1
- package/lib/typescript/src/Utils.nitro.d.ts.map +0 -1
- package/nitrogen/generated/ios/Utils-Swift-Cxx-Bridge.cpp +0 -33
- package/nitrogen/generated/ios/Utils-Swift-Cxx-Bridge.hpp +0 -51
- package/nitrogen/generated/ios/c++/HybridUtilsSpecSwift.cpp +0 -11
- package/nitrogen/generated/ios/swift/HybridUtilsSpec.swift +0 -56
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// HybridUtilsSpec.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import NitroModules
|
|
10
|
-
|
|
11
|
-
/// See ``HybridUtilsSpec``
|
|
12
|
-
public protocol HybridUtilsSpec_protocol: HybridObject {
|
|
13
|
-
// Properties
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
// Methods
|
|
17
|
-
func multiply(a: Double, b: Double) throws -> Double
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
public extension HybridUtilsSpec_protocol {
|
|
21
|
-
/// Default implementation of ``HybridObject.toString``
|
|
22
|
-
func toString() -> String {
|
|
23
|
-
return "[HybridObject Utils]"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/// See ``HybridUtilsSpec``
|
|
28
|
-
open class HybridUtilsSpec_base {
|
|
29
|
-
private weak var cxxWrapper: HybridUtilsSpec_cxx? = nil
|
|
30
|
-
public init() { }
|
|
31
|
-
public func getCxxWrapper() -> HybridUtilsSpec_cxx {
|
|
32
|
-
#if DEBUG
|
|
33
|
-
guard self is HybridUtilsSpec else {
|
|
34
|
-
fatalError("`self` is not a `HybridUtilsSpec`! Did you accidentally inherit from `HybridUtilsSpec_base` instead of `HybridUtilsSpec`?")
|
|
35
|
-
}
|
|
36
|
-
#endif
|
|
37
|
-
if let cxxWrapper = self.cxxWrapper {
|
|
38
|
-
return cxxWrapper
|
|
39
|
-
} else {
|
|
40
|
-
let cxxWrapper = HybridUtilsSpec_cxx(self as! HybridUtilsSpec)
|
|
41
|
-
self.cxxWrapper = cxxWrapper
|
|
42
|
-
return cxxWrapper
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* A Swift base-protocol representing the Utils HybridObject.
|
|
49
|
-
* Implement this protocol to create Swift-based instances of Utils.
|
|
50
|
-
* ```swift
|
|
51
|
-
* class HybridUtils : HybridUtilsSpec {
|
|
52
|
-
* // ...
|
|
53
|
-
* }
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
public typealias HybridUtilsSpec = HybridUtilsSpec_protocol & HybridUtilsSpec_base
|