Skip to content

Commit a973147

Browse files
authored
[Feature] mParticle Migration Update (SDK v7+) (#43)
[Feature] Update mParticle initialization for v7+
1 parent ac9cca7 commit a973147

File tree

16 files changed

+71
-69
lines changed

16 files changed

+71
-69
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2
1+
4.1

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@
33
# # * https://github.com/supermarin/xcpretty#usage
44
#
55

6-
language: objective-c
7-
osx_image: xcode9
6+
language: swift
7+
osx_image: xcode9.3
88
cache: cocoapods
99
podfile: Podfile
1010
before_install:
1111
- rvm install $(cat .ruby-version)
1212
- rvm use $(cat .ruby-version)
1313
- gem install bundler
1414
- bundle install
15-
- pod repo update --silent
16-
- pod install
15+
- pod install --repo-update
1716
script:
1817
- set -o pipefail && xcodebuild test -workspace Simcoe.xcworkspace -scheme SimcoeTests -destination 'platform=iOS Simulator,name=iPhone 7,OS=latest' | xcpretty
1918
- pod lib lint

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
source 'https://rubygems.org'
22

3-
gem 'cocoapods', '1.1.1'
3+
gem 'cocoapods', '1.3.1'
44
gem 'xcpretty', '0.2.4'

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://github.com/CocoaPods/Specs.git'
22
platform :ios, '8.0'
33
use_frameworks!
4-
inhibit_all_warnings!
4+
# inhibit_all_warnings!
55

66
install! 'cocoapods', :deterministic_uuids => false
77

Podfile.lock

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,27 @@ PODS:
22
- AdobeMobileSDK (4.13.8):
33
- AdobeMobileSDK/iOS (= 4.13.8)
44
- AdobeMobileSDK/iOS (4.13.8)
5-
- Mixpanel-swift (2.2.1)
6-
- mParticle-Apple-SDK (6.15.10):
7-
- mParticle-Apple-SDK/mParticle (= 6.15.10)
8-
- mParticle-Apple-SDK/mParticle (6.15.10)
5+
- Mixpanel-swift (2.4.4):
6+
- Mixpanel-swift/Complete (= 2.4.4)
7+
- Mixpanel-swift/Complete (2.4.4)
8+
- mParticle-Apple-SDK (7.5.1):
9+
- mParticle-Apple-SDK/mParticle (= 7.5.1)
10+
- mParticle-Apple-SDK/mParticle (7.5.1)
911
- Simcoe/Adobe (1.2.0):
1012
- AdobeMobileSDK (~> 4.13)
1113
- Simcoe/Core
1214
- Simcoe/Core (1.2.0)
1315
- Simcoe/Mixpanel (1.2.0):
14-
- Mixpanel-swift (~> 2.2.0)
16+
- Mixpanel-swift (~> 2.4.4)
1517
- Simcoe/Core
1618
- Simcoe/mParticle (1.2.0):
17-
- mParticle-Apple-SDK (~> 6)
19+
- mParticle-Apple-SDK (= 7.5.1)
1820
- Simcoe/Core
1921

2022
DEPENDENCIES:
2123
- AdobeMobileSDK (~> 4.13)
22-
- Mixpanel-swift (~> 2.2.0)
23-
- mParticle-Apple-SDK (~> 6)
24+
- Mixpanel-swift (~> 2.4.4)
25+
- mParticle-Apple-SDK (= 7.5.1)
2426
- Simcoe/Adobe (from `./`)
2527
- Simcoe/Mixpanel (from `./`)
2628
- Simcoe/mParticle (from `./`)
@@ -31,10 +33,10 @@ EXTERNAL SOURCES:
3133

3234
SPEC CHECKSUMS:
3335
AdobeMobileSDK: de79920972a9abcf4e27b141fb79d0262fe9ee11
34-
Mixpanel-swift: d0374c33e38a7f184203eef1c8eae64be54986ed
35-
mParticle-Apple-SDK: 7be8af83582e0c2c99e78075142eb7be9e24aab3
36-
Simcoe: d29afc62c1f5cbfe8d90522d2a46331b71c9a502
36+
Mixpanel-swift: 1908db7a972b362fcab1a0c3b37ec6087b95d8d9
37+
mParticle-Apple-SDK: e901dec4147c3f1c041c2cb493b129ae652e26f1
38+
Simcoe: 014cb7317cc7f51472dfd3202db86fd960288696
3739

38-
PODFILE CHECKSUM: 3168a08aa3eb292250204b2bc967159b719878a0
40+
PODFILE CHECKSUM: 8d8a42d64db1433bbfb67a53162f9258ec0d74fb
3941

4042
COCOAPODS: 1.3.1

Simcoe.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pod::Spec.new do |s|
33

44
s.name = "Simcoe"
5-
s.version = "1.1.0"
5+
s.version = "1.2.0"
66
s.summary = "An analytics framework that provides a base layer of simple APIs for managing analytics frameworks."
77
s.description = <<-DESC
88
Simcoe is an analytics framework that aims to provide a simple, extensible API for managing and handling various analytics frameworks. It makes very few assumptions about your analytics implementations, allowing the implementer to customize it to their needs.
@@ -34,8 +34,8 @@ Pod::Spec.new do |s|
3434
# Each subspec represents an analytics library implemented using Simcoe.
3535

3636
adobe = { :name => "Adobe", :dependency => "AdobeMobileSDK", :version => '~> 4.13' }
37-
mParticle = { :name => "mParticle", :dependency => "mParticle-Apple-SDK", :version => '~> 6' }
38-
mixpanel = { :name => "Mixpanel", :dependency => "Mixpanel-swift", :version => '~> 2.2.0' }
37+
mParticle = { :name => "mParticle", :dependency => "mParticle-Apple-SDK", :version => '7.5.1' }
38+
mixpanel = { :name => "Mixpanel", :dependency => "Mixpanel-swift", :version => '~> 2.4.4' }
3939

4040
all_specs = [adobe, mParticle, mixpanel]
4141

Simcoe.xcodeproj/project.pbxproj

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@
427427
isa = PBXProject;
428428
attributes = {
429429
LastSwiftUpdateCheck = 0720;
430-
LastUpgradeCheck = 0900;
430+
LastUpgradeCheck = 0940;
431431
ORGANIZATIONNAME = "Prolific Interactive";
432432
TargetAttributes = {
433433
72897FDC1C79E25800393482 = {
@@ -663,7 +663,7 @@
663663
PRODUCT_BUNDLE_IDENTIFIER = com.prolificinteractive.SimcoeTests;
664664
PRODUCT_NAME = "$(TARGET_NAME)";
665665
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
666-
SWIFT_VERSION = 3.0;
666+
SWIFT_VERSION = 4.0;
667667
};
668668
name = Debug;
669669
};
@@ -676,7 +676,7 @@
676676
PRODUCT_BUNDLE_IDENTIFIER = com.prolificinteractive.SimcoeTests;
677677
PRODUCT_NAME = "$(TARGET_NAME)";
678678
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
679-
SWIFT_VERSION = 3.0;
679+
SWIFT_VERSION = 4.0;
680680
};
681681
name = Release;
682682
};
@@ -693,12 +693,14 @@
693693
CLANG_WARN_BOOL_CONVERSION = YES;
694694
CLANG_WARN_COMMA = YES;
695695
CLANG_WARN_CONSTANT_CONVERSION = YES;
696+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
696697
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
697698
CLANG_WARN_EMPTY_BODY = YES;
698699
CLANG_WARN_ENUM_CONVERSION = YES;
699700
CLANG_WARN_INFINITE_RECURSION = YES;
700701
CLANG_WARN_INT_CONVERSION = YES;
701702
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
703+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
702704
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
703705
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
704706
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -726,12 +728,12 @@
726728
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
727729
GCC_WARN_UNUSED_FUNCTION = YES;
728730
GCC_WARN_UNUSED_VARIABLE = YES;
729-
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
731+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
730732
MTL_ENABLE_DEBUG_INFO = YES;
731733
ONLY_ACTIVE_ARCH = YES;
732734
SDKROOT = iphoneos;
733735
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
734-
SWIFT_VERSION = 3.0;
736+
SWIFT_VERSION = 4.0;
735737
TARGETED_DEVICE_FAMILY = "1,2";
736738
VERSIONING_SYSTEM = "apple-generic";
737739
VERSION_INFO_PREFIX = "";
@@ -751,12 +753,14 @@
751753
CLANG_WARN_BOOL_CONVERSION = YES;
752754
CLANG_WARN_COMMA = YES;
753755
CLANG_WARN_CONSTANT_CONVERSION = YES;
756+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
754757
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
755758
CLANG_WARN_EMPTY_BODY = YES;
756759
CLANG_WARN_ENUM_CONVERSION = YES;
757760
CLANG_WARN_INFINITE_RECURSION = YES;
758761
CLANG_WARN_INT_CONVERSION = YES;
759762
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
763+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
760764
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
761765
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
762766
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -778,11 +782,11 @@
778782
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
779783
GCC_WARN_UNUSED_FUNCTION = YES;
780784
GCC_WARN_UNUSED_VARIABLE = YES;
781-
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
785+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
782786
MTL_ENABLE_DEBUG_INFO = NO;
783787
SDKROOT = iphoneos;
784788
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
785-
SWIFT_VERSION = 3.0;
789+
SWIFT_VERSION = 4.0;
786790
TARGETED_DEVICE_FAMILY = "1,2";
787791
VALIDATE_PRODUCT = YES;
788792
VERSIONING_SYSTEM = "apple-generic";
@@ -811,7 +815,7 @@
811815
SWIFT_OBJC_BRIDGING_HEADER = "";
812816
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
813817
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
814-
SWIFT_VERSION = 3.0;
818+
SWIFT_VERSION = 4.0;
815819
};
816820
name = Debug;
817821
};
@@ -835,7 +839,7 @@
835839
SKIP_INSTALL = YES;
836840
SWIFT_OBJC_BRIDGING_HEADER = "";
837841
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
838-
SWIFT_VERSION = 3.0;
842+
SWIFT_VERSION = 4.0;
839843
};
840844
name = Release;
841845
};

Simcoe.xcodeproj/xcshareddata/xcschemes/Simcoe.xcscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "0940"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,7 +26,6 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
3029
shouldUseLaunchSchemeArgsEnv = "YES">
3130
<Testables>
3231
<TestableReference
@@ -56,7 +55,6 @@
5655
buildConfiguration = "Debug"
5756
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5857
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59-
language = ""
6058
launchStyle = "0"
6159
useCustomWorkingDirectory = "NO"
6260
ignoresPersistentStateOnLaunch = "NO"

Simcoe.xcodeproj/xcshareddata/xcschemes/SimcoeTests.xcscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "0940"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -10,7 +10,6 @@
1010
buildConfiguration = "Debug"
1111
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
1212
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
13-
language = ""
1413
shouldUseLaunchSchemeArgsEnv = "YES">
1514
<Testables>
1615
<TestableReference
@@ -40,7 +39,6 @@
4039
buildConfiguration = "Debug"
4140
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4241
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43-
language = ""
4442
launchStyle = "0"
4543
useCustomWorkingDirectory = "NO"
4644
ignoresPersistentStateOnLaunch = "NO"
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>

0 commit comments

Comments
 (0)