Skip to content

Commit

Permalink
Minor fixes for iOS 10 compatibility. Nowhere near done yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
akemin-dayo committed Feb 7, 2017
1 parent d81620e commit a8aff5e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
6 changes: 1 addition & 5 deletions AppSyncUnified/dump.h
Expand Up @@ -40,11 +40,7 @@ enum {
};

#ifdef DEBUG
enum {
kCFLogLevelError = 3,
kCFLogLevelWarning = 4
};
extern void CFLog(int32_t level, CFStringRef format, ...);
#include <CoreFoundation/CFLogUtilities.h>
CFStringRef entErrorString(int code);
#endif

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -2,7 +2,7 @@ THEOS_PACKAGE_DIR_NAME = debs
TWEAK_NAME = AppSyncUnified
IPHONE_ARCHS = armv7 armv7s arm64
TARGET_IPHONEOS_DEPLOYMENT_VERSION = 5.0
DEBUG = 0
DEBUG = 1
PACKAGE_VERSION = $(THEOS_PACKAGE_BASE_VERSION)

include $(THEOS)/makefiles/common.mk
Expand Down
2 changes: 1 addition & 1 deletion asu_inject/Makefile
@@ -1,5 +1,5 @@
IPHONE_ARCHS = armv7 armv7s arm64
TARGET_IPHONEOS_DEPLOYMENT_VERSION = 5.0
TARGET_IPHONEOS_DEPLOYMENT_VERSION = 6.0
DEBUG = 0
include $(THEOS)/makefiles/common.mk
TOOL_NAME = asu_inject
Expand Down
2 changes: 1 addition & 1 deletion control
Expand Up @@ -7,7 +7,7 @@ Provides: appsync
Replaces: us.hackulo.appsync50
Package: net.angelxwind.appsyncunified
Name: AppSync Unified
Version: 5.8
Version: 6.0~unstable1
Architecture: iphoneos-arm
Description: AppSync Unified allows you to sync and install unsigned iOS applications. Works on iOS 5 and above.
Section: Tweaks
Expand Down
6 changes: 6 additions & 0 deletions postinst/misc.h
Expand Up @@ -29,8 +29,14 @@
#define kCFCoreFoundationVersionNumber_iOS_8_0 1140.10
#endif

#ifndef kCFCoreFoundationVersionNumber_iOS_10_0
#define kCFCoreFoundationVersionNumber_iOS_10_0 1300.0
#endif

#define SYSTEM_GE_IOS_8() (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_8_0)

#define SYSTEM_GE_IOS_8_LT_IOS_10() (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_8_0 && kCFCoreFoundationVersionNumber < kCFCoreFoundationVersionNumber_iOS_10_0)

#define INFO(...) do { \
fprintf(stdout, __VA_ARGS__); \
fprintf(stdout, "\n"); \
Expand Down
2 changes: 1 addition & 1 deletion postinst/postinst.c
Expand Up @@ -59,7 +59,7 @@ int main(int argc, const char **argv)
INFO("fatal: must be run as root, quit");
return 1;
}
if (SYSTEM_GE_IOS_8()) {
if (SYSTEM_GE_IOS_8_LT_IOS_10()) {
if (access(PLIST_PATH_IOS_8, F_OK) == -1) {
INFO("symlinking installd plist...");
symlink(PLIST_PATH, PLIST_PATH_IOS_8);
Expand Down

0 comments on commit a8aff5e

Please sign in to comment.