Skip to content

Commit

Permalink
Merge pull request #9 from wingify/init-fix
Browse files Browse the repository at this point in the history
fix: throw failure callback on relaunch of SDK
  • Loading branch information
batraabhishek authored Oct 11, 2019
2 parents d41ed82 + 37748c5 commit 2b157fa
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Demo/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PODS:
- Socket.IO-Client-Swift (13.3.0):
- Starscream (~> 3.0.2)
- Starscream (3.0.5)
- VWO (2.4.2):
- VWO/All (= 2.4.2)
- VWO/All (2.4.2):
- VWO (2.5.1):
- VWO/All (= 2.5.1)
- VWO/All (2.5.1):
- Socket.IO-Client-Swift (~> 13.1)

DEPENDENCIES:
Expand All @@ -15,7 +15,7 @@ DEPENDENCIES:
- VWO (from `../`)

SPEC REPOS:
https://github.com/cocoapods/specs.git:
trunk:
- MBProgressHUD
- SCLAlertView
- Socket.IO-Client-Swift
Expand All @@ -30,8 +30,8 @@ SPEC CHECKSUMS:
SCLAlertView: 6a77bb2edfc65e04dbe57725546cb4107a506b85
Socket.IO-Client-Swift: 0afb192a562db90d50e3f7f7421c06925a3f0179
Starscream: faf918b2f2eff7d5dd21180646bf015a669673bd
VWO: 6508b8083e35479212f2444b77782324ad333957
VWO: 73f3fe52b839f74f17c1260b3175d69f91898dd7

PODFILE CHECKSUM: 132ef71ef05014159c35355b317739088f66af35

COCOAPODS: 1.5.3
COCOAPODS: 1.8.3
4 changes: 2 additions & 2 deletions Demo/VWO Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-VWO Demo/Pods-VWO Demo-frameworks.sh",
"${PODS_ROOT}/Target Support Files/Pods-VWO Demo/Pods-VWO Demo-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/MBProgressHUD/MBProgressHUD.framework",
"${BUILT_PRODUCTS_DIR}/SCLAlertView/SCLAlertView.framework",
"${BUILT_PRODUCTS_DIR}/Socket.IO-Client-Swift/SocketIO.framework",
Expand All @@ -318,7 +318,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-VWO Demo/Pods-VWO Demo-frameworks.sh\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-VWO Demo/Pods-VWO Demo-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
878FD425F301D14D2EB57176 /* [CP] Check Pods Manifest.lock */ = {
Expand Down
2 changes: 1 addition & 1 deletion VWO.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "VWO"
s.version = "2.5.0"
s.version = "2.5.1"
s.summary = "VWO SDK for A/B Testing iOS apps."
s.description = "VWO iOS SDK enables you to A/B test mobile apps."
s.documentation_url = "http://developers.vwo.com/reference#ios-sdk-reference"
Expand Down
5 changes: 4 additions & 1 deletion VWO.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@
E39814CD1F6288C80035D519 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0930;
LastUpgradeCheck = 1110;
ORGANIZATIONNAME = vwo;
TargetAttributes = {
E39814D51F6288C80035D519 = {
Expand All @@ -602,6 +602,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
);
mainGroup = E39814CC1F6288C80035D519;
Expand Down Expand Up @@ -739,6 +740,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
Expand Down Expand Up @@ -799,6 +801,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
Expand Down
2 changes: 1 addition & 1 deletion VWO/VWOController.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

NS_ASSUME_NONNULL_BEGIN

static NSString *kVWOSDKversion = @"2.5.0";
static NSString *kVWOSDKversion = @"2.5.1";

@class VWOConfig;

Expand Down
5 changes: 5 additions & 0 deletions VWO/VWOController.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ - (void)launchWithAPIKey:(NSString *)apiKey

if (_initialised) {
VWOLogWarning(@"VWO must not be initialised more than once");
if (failureBlock) {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
failureBlock(@"VWO must not be initialised more than once");
});
}
return;
}

Expand Down
2 changes: 1 addition & 1 deletion VWO/VWOURL.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ + (instancetype)vwoComponentForPath:(NSString *)path {
}
@end

static NSString *kSDKversionNumber = @"13";
static NSString *kSDKversionNumber = @"14";

@interface VWOURL()

Expand Down

0 comments on commit 2b157fa

Please sign in to comment.