Skip to content

Commit cde2ad1

Browse files
fixed CGSize and CGFloat generation for themes
1 parent a80ad56 commit cde2ad1

3 files changed

Lines changed: 11 additions & 15 deletions

File tree

R.objc.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Pod::Spec.new do |s|
1010

1111
s.name = 'R.objc'
12-
s.version = '0.7.0'
12+
s.version = '0.7.1'
1313
s.summary = 'Get autocompleted localizable strings and asset catalogue images names'
1414
s.description = <<-DESC
1515
Freely inspired by R.swift: get autocompleted localizable strings and asset catalogue images names.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

R.objc/Sources/ThemesGenerator.m

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -192,21 +192,9 @@ - (NSString*) typeForThemeConstantValue:(id)value
192192
{
193193
return @"UIFont*";
194194
}
195-
if ([value hasPrefix:SIZE_IDENTIFIER])
195+
if ([value hasPrefix:SIZE_IDENTIFIER] || [value hasPrefix:POINT_IDENTIFIER] || [value hasPrefix:RECT_IDENTIFIER] || [value hasPrefix:EDGE_IDENTIFIER])
196196
{
197-
return @"CGSize";
198-
}
199-
if ([value hasPrefix:POINT_IDENTIFIER])
200-
{
201-
return @"CGPoint";
202-
}
203-
if ([value hasPrefix:RECT_IDENTIFIER])
204-
{
205-
return @"CGRect";
206-
}
207-
if ([value hasPrefix:EDGE_IDENTIFIER])
208-
{
209-
return @"UIEdgeInsets";
197+
return @"NSValue*";
210198
}
211199
return @"NSString*";
212200
}

0 commit comments

Comments
 (0)