1
0
mirror of https://github.com/YPLiang19/Mango synced 2025-07-07 21:55:49 +00:00
This commit is contained in:
iainchen
2023-08-17 17:11:30 +08:00
parent 67ff0e68d1
commit dc645ba7c5
4 changed files with 38 additions and 9 deletions

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MangoFix"
s.version = "1.5.4"
s.version = "1.5.5"
s.summary = "MangoFix"
s.description = <<-DESC
Mango is a DSL which syntax is very similar to Objective-CMango is also an iOS App hotfix SDK. You can use Mango method replace any Objective-C method.

View File

@ -241,7 +241,36 @@
- (double)c2doubleValue{
return [self c2uintValue];
if (self.externNativeGlobalVariable) {
if (self.externNativeGlobalVariablePointer) {
switch (_type.typeKind) {
case MF_TYPE_BOOL:
return *(BOOL *)self.externNativeGlobalVariablePointer;
case MF_TYPE_INT:
return *(NSInteger *)self.externNativeGlobalVariablePointer;
case MF_TYPE_U_INT:
return *(NSUInteger *)self.externNativeGlobalVariablePointer;
case MF_TYPE_DOUBLE:
return *(double *)self.externNativeGlobalVariablePointer;
default:
return 0;
}
}
return 0;
}
switch (_type.typeKind) {
case MF_TYPE_BOOL:
return _uintValue;
case MF_TYPE_INT:
return _integerValue;
case MF_TYPE_U_INT:
return _uintValue;
case MF_TYPE_DOUBLE:
return _doubleValue;
default:
return 0;
}
}

View File

@ -2,8 +2,8 @@
# platform :ios, '8.0'
target 'MangoFixDemo' do
pod 'MangoFix', :path => '../'
# pod 'MangoFix'
pod 'MangoFix', :path => '../'
#pod 'MangoFix'
pod 'Masonry'
end

View File

@ -1,8 +1,8 @@
PODS:
- MangoFix (1.5.2):
- MangoFix (1.5.5):
- symdl
- Masonry (1.1.0)
- symdl (0.9.0)
- symdl (0.11.0)
DEPENDENCIES:
- MangoFix (from `../`)
@ -18,10 +18,10 @@ EXTERNAL SOURCES:
:path: "../"
SPEC CHECKSUMS:
MangoFix: 8dbc1ff99d215152aeb29673f4e0f4444fa5024d
MangoFix: d8fc8e197188600e4eff6ad8a6fae8117eec390f
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
symdl: b199c582777d9abb0dc324c308f358502ca2c190
symdl: 964dc68858268eda431300463e8a634a745910f1
PODFILE CHECKSUM: 911a1bb3fd9799c1577d16ea8d90314d90fb35f1
PODFILE CHECKSUM: 489229be0c477f3b25df671aa34ff5c579e6523a
COCOAPODS: 1.12.1