File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,16 @@ public extension BigUInt {
13
13
self = value
14
14
}
15
15
}
16
+
17
+ #if COCOAPODS
18
+ extension BigUInt {
19
+ var isZero : Bool {
20
+ switch kind {
21
+ case . inline( 0 , 0 ) : return true
22
+ case . array: return storage. isEmpty
23
+ default :
24
+ return false
25
+ }
26
+ }
27
+ }
28
+ #endif
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |spec |
2
+ spec . compiler_flags = '-DCOCOAPODS'
3
+
2
4
spec . name = 'Web3Core'
3
5
spec . version = '3.0.0'
4
6
spec . module_name = 'Core'
@@ -12,7 +14,7 @@ Pod::Spec.new do |spec|
12
14
spec . swift_version = '5.5'
13
15
14
16
spec . dependency 'secp256k1.c' , '~> 0.1'
15
- spec . dependency 'BigInt' , '~> 5.2.0'
17
+ spec . dependency 'BigInt' , '~> 5.2.0' # no newer version in pods.
16
18
spec . dependency 'CryptoSwift' , '~> 1.5.1'
17
19
spec . source_files = "Sources/Core/**/*.swift"
18
20
end
You can’t perform that action at this time.
0 commit comments