InApp: add LINPHONE_CAPABILITY_INAPP_PURCHASE extra flag to disable in app code if not linking with in app purchase capability

This commit is contained in:
Gautier Pelloux-Prayer 2015-05-04 12:14:05 +02:00
parent 98e08b8a4d
commit 0cfcf60064
2 changed files with 6 additions and 1 deletions

View file

@ -36,7 +36,8 @@
NSString *accountCreationPassword;
}
#if !TARGET_IPHONE_SIMULATOR
// LINPHONE_CAPABILITY_INAPP_PURCHASE must be defined in Linphone Build Settings
#if LINPHONE_CAPABILITY_INAPP_PURCHASE && !TARGET_IPHONE_SIMULATOR
- (instancetype)init {
if ((self = [super init]) != nil) {

View file

@ -4592,6 +4592,7 @@
WARNING_CFLAGS = (
"-Werror=objc-method-access",
"-Werror=incomplete-implementation",
"-DLINPHONE_CAPABILITY_INAPP_PURCHASE=0",
);
};
name = Debug;
@ -4678,6 +4679,7 @@
WARNING_CFLAGS = (
"-Werror=objc-method-access",
"-Werror=incomplete-implementation",
"-DLINPHONE_CAPABILITY_INAPP_PURCHASE=0",
);
};
name = DistributionAdhoc;
@ -4762,6 +4764,7 @@
WARNING_CFLAGS = (
"-Werror=objc-method-access",
"-Werror=incomplete-implementation",
"-DLINPHONE_CAPABILITY_INAPP_PURCHASE=0",
);
};
name = Release;
@ -4847,6 +4850,7 @@
WARNING_CFLAGS = (
"-Werror=objc-method-access",
"-Werror=incomplete-implementation",
"-DLINPHONE_CAPABILITY_INAPP_PURCHASE=0",
);
};
name = Distribution;