unsigned Minor_;
unsigned BugFix_;
+CFLocaleRef Locale_;
CGColorSpaceRef space_;
#define FW_LEAST(major, minor, bugfix) \
if (update == nil)
return @"Never or Unknown";
- CFLocaleRef locale = CFLocaleCopyCurrent();
- CFDateFormatterRef formatter = CFDateFormatterCreate(NULL, locale, kCFDateFormatterMediumStyle, kCFDateFormatterMediumStyle);
+ CFDateFormatterRef formatter = CFDateFormatterCreate(NULL, Locale_, kCFDateFormatterMediumStyle, kCFDateFormatterMediumStyle);
CFStringRef formatted = CFDateFormatterCreateStringWithDate(NULL, formatter, (CFDateRef) update);
CFRelease(formatter);
- CFRelease(locale);
return [(NSString *) formatted autorelease];
}
context:@"remove"
];
+#ifndef __OBJC2__
[essential_ setDestructiveButton:[[essential_ buttons] objectAtIndex:0]];
+#endif
[essential_ setBodyText:@"This operation involves the removal of one or more packages that are required for the continued operation of either Cydia or iPhoneOS. If you continue, you may not be able to use Cydia to repair any damage."];
} else {
essential_ = [[UIAlertSheet alloc]
- (void) _leftButtonClicked {
UIAlertSheet *sheet = [[[UIAlertSheet alloc]
- initWithTitle:@"About Cydia Packager"
+ initWithTitle:@"About Cydia Installer"
buttons:[NSArray arrayWithObjects:@"Close", nil]
defaultButtonIndex:0
delegate:self
upgrades_ = 0;
bool unseens = false;
- CFLocaleRef locale = CFLocaleCopyCurrent();
- CFDateFormatterRef formatter = CFDateFormatterCreate(NULL, locale, kCFDateFormatterMediumStyle, kCFDateFormatterMediumStyle);
+ CFDateFormatterRef formatter = CFDateFormatterCreate(NULL, Locale_, kCFDateFormatterMediumStyle, kCFDateFormatterMediumStyle);
for (size_t offset = 0, count = [packages_ count]; offset != count; ++offset) {
Package *package = [packages_ objectAtIndex:offset];
}
CFRelease(formatter);
- CFRelease(locale);
if (unseens) {
Section *last = [sections_ lastObject];
}
- (void) flipPage {
+#ifndef __OBJC2__
LKAnimation *animation = [LKTransition animation];
[animation setType:@"oglFlip"];
[animation setTimingFunction:[LKTimingFunction functionWithName:@"easeInEaseOut"]];
[[transition_ _layer] addAnimation:animation forKey:0];
[transition_ transition:0 toView:(flipped_ ? (UIView *) table_ : (UIView *) advanced_)];
flipped_ = !flipped_;
+#endif
}
- (void) configurePushed {
if (access("/User", F_OK) != 0)
system("/usr/libexec/cydia/firmware.sh");
+ Locale_ = CFLocaleCopyCurrent();
space_ = CGColorSpaceCreateDeviceRGB();
Blueish_.Set(space_, 0x19/255.f, 0x32/255.f, 0x50/255.f, 1.0);
int value = UIApplicationMain(argc, argv, [Cydia class]);
CGColorSpaceRelease(space_);
+ CFRelease(Locale_);
[pool release];
return value;
target := $(PKG_TARG)-
endif
+frameworks :=
+
+ifneq ($(wildcard $(PKG_ROOT)/System/Library/*Frameworks/LayerKit.framework),)
+frameworks += -framework LayerKit
+endif
+
all: Cydia exec
clean:
$(target)g++ -Wall -Werror -o $@ $< -framework Foundation -framework CoreFoundation -lobjc
Cydia: Cydia.mm ../uicaboodle.m/*.mm *.h makefile
- $(target)g++ -I../uicaboodle.m -fobjc-call-cxx-cdtors -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework IOKit -framework CoreFoundation -framework Foundation -framework CoreGraphics -framework GraphicsServices -framework LayerKit -lobjc -lapt-pkg -lpcre -fobjc-exceptions -I/apl/i20 -F$${PKG_ROOT}/System/Library/PrivateFrameworks
+ $(target)g++ -I../uicaboodle.m -fobjc-call-cxx-cdtors -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework IOKit -framework CoreFoundation -framework Foundation -framework CoreGraphics -framework GraphicsServices $(frameworks) -lobjc -lapt-pkg -lpcre -fobjc-exceptions -I/apl/i20 -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks
.PHONY: all clean