Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from justeat/xcode10.2-swift5
Browse files Browse the repository at this point in the history
Upgrade to Xcode 10.2 and Swift 5
  • Loading branch information
albertodebortoli authored May 3, 2019
2 parents 30197e1 + 90e2db3 commit 0b579e5
Show file tree
Hide file tree
Showing 14 changed files with 155 additions and 127 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Carthage
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
#
# Note: if you ignore the Pods directory, make sure to uncomment
# `pod install` in .travis.yml
#
Expand Down
1 change: 1 addition & 0 deletions .xcode-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10.2
21 changes: 13 additions & 8 deletions Example/JustTweak.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@
TargetAttributes = {
607FACCF1AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0910;
LastSwiftMigration = 1020;
};
607FACE41AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0910;
LastSwiftMigration = 1020;
TestTargetID = 607FACCF1AFB9204008FA782;
};
};
Expand All @@ -335,6 +335,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -418,7 +419,7 @@
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-JustTweak_Example/Pods-JustTweak_Example-frameworks.sh",
"${PODS_ROOT}/Target Support Files/Pods-JustTweak_Example/Pods-JustTweak_Example-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework",
"${BUILT_PRODUCTS_DIR}/JustTweak/JustTweak.framework",
"${BUILT_PRODUCTS_DIR}/OptimizelySDKCore/OptimizelySDKCore.framework",
Expand All @@ -445,7 +446,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-JustTweak_Example/Pods-JustTweak_Example-frameworks.sh\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-JustTweak_Example/Pods-JustTweak_Example-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -554,6 +555,7 @@
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
Expand All @@ -565,6 +567,7 @@
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_TREAT_WARNINGS_AS_ERRORS = YES;
SWIFT_VERSION = 4.2;
};
name = Debug;
Expand Down Expand Up @@ -603,6 +606,7 @@
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
Expand All @@ -613,6 +617,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_TREAT_WARNINGS_AS_ERRORS = YES;
SWIFT_VERSION = 4.2;
VALIDATE_PRODUCT = YES;
};
Expand All @@ -629,7 +634,7 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = com.justeat.JustTweak.Example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -644,7 +649,7 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = com.justeat.JustTweak.Example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -663,7 +668,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JustTweak_Example.app/JustTweak_Example";
};
name = Debug;
Expand All @@ -678,7 +683,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JustTweak_Example.app/JustTweak_Example";
};
name = Release;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
8 changes: 4 additions & 4 deletions Example/JustTweak/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
let jsonFileURL = Bundle.main.url(forResource: "ExampleConfiguration", withExtension: "json")!
let jsonConfiguration = JSONTweaksConfiguration(jsonURL: jsonFileURL)!

let firebaseConfiguration = FirebaseTweaksConfiguration()
// let firebaseConfiguration = FirebaseTweaksConfiguration()

let optimizelyConfiguration = OptimizelyTweaksConfiguration()
optimizelyConfiguration.userId = UUID().uuidString
// let optimizelyConfiguration = OptimizelyTweaksConfiguration()
// optimizelyConfiguration.userId = UUID().uuidString

let userDefaults = UserDefaults.standard
let userDefaultsConfiguration = UserDefaultsTweaksConfiguration(userDefaults: userDefaults)

let configurations: [TweaksConfiguration] = [jsonConfiguration, firebaseConfiguration, optimizelyConfiguration, userDefaultsConfiguration]
let configurations: [TweaksConfiguration] = [jsonConfiguration, /*firebaseConfiguration, optimizelyConfiguration,*/ userDefaultsConfiguration]
configurationsCoordinator = TweaksConfigurationsCoordinator(configurations: configurations)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ public class FirebaseTweaksConfiguration: NSObject, TweaksConfiguration {
public override init() {
super.init()

/* DOWNLOAD THE GoogleService.plist from your app in the Firebase console and modify `useFirebase` to true */
let useFirebase = false

/* DOWNLOAD THE GoogleService.plist from the Firebase dashboard */
let googleServicePlistURL = Bundle.main.url(forResource: "GoogleService-Info", withExtension: "plist")
if let _ = googleServicePlistURL, useFirebase {
if let _ = googleServicePlistURL {
firebaseAppClass.configure()
configured = true
fetchTweaks()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public class OptimizelyTweaksConfiguration: NSObject, TweaksConfiguration {

public override init() {
super.init()
let useOptimizely = false
guard useOptimizely else { return }
/* DOWNLOAD THE Optimizely datafile from the Optimizely dashboard */
optimizelyManager = OPTLYManager(builder: OPTLYManagerBuilder(block: { builder in
guard let builder = builder,
let filePath = Bundle.main.path(forResource: "ExampleOptimizelyDatafile", ofType: "json"),
Expand Down
115 changes: 58 additions & 57 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
PODS:
- Firebase/Core (5.14.0):
- Firebase/Core (5.20.2):
- Firebase/CoreOnly
- FirebaseAnalytics (= 5.4.0)
- Firebase/CoreOnly (5.14.0):
- FirebaseCore (= 5.1.9)
- Firebase/RemoteConfig (5.14.0):
- FirebaseAnalytics (= 5.8.1)
- Firebase/CoreOnly (5.20.2):
- FirebaseCore (= 5.4.1)
- Firebase/RemoteConfig (5.20.2):
- Firebase/Core
- FirebaseRemoteConfig (= 3.1.0)
- FirebaseABTesting (2.0.0):
- FirebaseCore (~> 5.0)
- Protobuf (~> 3.5)
- FirebaseAnalytics (5.4.0):
- FirebaseCore (~> 5.1)
- FirebaseInstanceID (~> 3.3)
- GoogleAppMeasurement (= 5.4.0)
- FirebaseAnalytics (5.8.1):
- FirebaseCore (~> 5.4)
- FirebaseInstanceID (~> 3.8)
- GoogleAppMeasurement (= 5.8.1)
- GoogleUtilities/AppDelegateSwizzler (~> 5.2)
- GoogleUtilities/MethodSwizzler (~> 5.2)
- GoogleUtilities/Network (~> 5.2)
- "GoogleUtilities/NSData+zlib (~> 5.2)"
- nanopb (~> 0.3)
- FirebaseCore (5.1.9):
- FirebaseCore (5.4.1):
- GoogleUtilities/Environment (~> 5.2)
- GoogleUtilities/Logger (~> 5.2)
- FirebaseInstanceID (3.3.0):
- FirebaseCore (~> 5.1)
- GoogleUtilities/Environment (~> 5.3)
- GoogleUtilities/UserDefaults (~> 5.3)
- FirebaseInstanceID (3.8.1):
- FirebaseCore (~> 5.2)
- GoogleUtilities/Environment (~> 5.2)
- GoogleUtilities/UserDefaults (~> 5.2)
- FirebaseRemoteConfig (3.1.0):
- FirebaseABTesting (~> 2.0)
- FirebaseAnalytics (~> 5.3)
Expand All @@ -33,55 +34,55 @@ PODS:
- GoogleUtilities/Environment (~> 5.2)
- "GoogleUtilities/NSData+zlib (~> 5.2)"
- Protobuf (~> 3.5)
- GoogleAppMeasurement (5.4.0):
- GoogleAppMeasurement (5.8.1):
- GoogleUtilities/AppDelegateSwizzler (~> 5.2)
- GoogleUtilities/MethodSwizzler (~> 5.2)
- GoogleUtilities/Network (~> 5.2)
- "GoogleUtilities/NSData+zlib (~> 5.2)"
- nanopb (~> 0.3)
- GoogleUtilities/AppDelegateSwizzler (5.3.6):
- GoogleUtilities/AppDelegateSwizzler (5.8.0):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (5.3.6)
- GoogleUtilities/Logger (5.3.6):
- GoogleUtilities/Environment (5.8.0)
- GoogleUtilities/Logger (5.8.0):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (5.3.6):
- GoogleUtilities/MethodSwizzler (5.8.0):
- GoogleUtilities/Logger
- GoogleUtilities/Network (5.3.6):
- GoogleUtilities/Network (5.8.0):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (5.3.6)"
- GoogleUtilities/Reachability (5.3.6):
- "GoogleUtilities/NSData+zlib (5.8.0)"
- GoogleUtilities/Reachability (5.8.0):
- GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (5.3.6):
- GoogleUtilities/UserDefaults (5.8.0):
- GoogleUtilities/Logger
- JustTweak (3.3.0):
- JustTweak/Core (= 3.3.0)
- JustTweak/UI (= 3.3.0)
- JustTweak/Core (3.3.0)
- JustTweak/UI (3.3.0):
- JustTweak (3.4.0):
- JustTweak/Core (= 3.4.0)
- JustTweak/UI (= 3.4.0)
- JustTweak/Core (3.4.0)
- JustTweak/UI (3.4.0):
- JustTweak/Core
- nanopb (0.3.901):
- nanopb/decode (= 0.3.901)
- nanopb/encode (= 0.3.901)
- nanopb/decode (0.3.901)
- nanopb/encode (0.3.901)
- OptimizelySDKCore (2.1.5)
- OptimizelySDKDatafileManager (2.1.5):
- OptimizelySDKShared (= 2.1.5)
- OptimizelySDKEventDispatcher (2.1.5):
- OptimizelySDKShared (= 2.1.5)
- OptimizelySDKiOS (2.1.5):
- OptimizelySDKDatafileManager (= 2.1.5)
- OptimizelySDKEventDispatcher (= 2.1.5)
- OptimizelySDKUserProfileService (= 2.1.5)
- OptimizelySDKShared (2.1.5):
- OptimizelySDKCore (= 2.1.5)
- OptimizelySDKUserProfileService (2.1.5):
- OptimizelySDKShared (= 2.1.5)
- Protobuf (3.6.1)
- OptimizelySDKCore (3.0.2)
- OptimizelySDKDatafileManager (3.0.2):
- OptimizelySDKShared (= 3.0.2)
- OptimizelySDKEventDispatcher (3.0.2):
- OptimizelySDKShared (= 3.0.2)
- OptimizelySDKiOS (3.0.2):
- OptimizelySDKDatafileManager (= 3.0.2)
- OptimizelySDKEventDispatcher (= 3.0.2)
- OptimizelySDKUserProfileService (= 3.0.2)
- OptimizelySDKShared (3.0.2):
- OptimizelySDKCore (= 3.0.2)
- OptimizelySDKUserProfileService (3.0.2):
- OptimizelySDKShared (= 3.0.2)
- Protobuf (3.7.0)

DEPENDENCIES:
- Firebase/RemoteConfig
Expand Down Expand Up @@ -112,24 +113,24 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
Firebase: 963d5685fae888a56d6d4d9cfce6b9c976958798
Firebase: 0c8cf33f266410c61ab3e2265cfa412200351d9c
FirebaseABTesting: 1f50b8d50f5e3469eea54e7463a7b7fe221d1f5e
FirebaseAnalytics: c06f9d70577d79074214700a71fd5d39de5550fb
FirebaseCore: 8f49b70f57ab5cbb032ef41d64992ded21606459
FirebaseInstanceID: e2fa4cb35ef5558c200f7f0ad8a53e212215f93e
FirebaseAnalytics: ece1aa57a4f43c64d53a648b5a5e05151aae947b
FirebaseCore: f1a9a8be1aee4bf71a2fc0f4096df6788bdfda61
FirebaseInstanceID: a122b0c258720cf250551bb2bedf48c699f80d90
FirebaseRemoteConfig: 7e11c65f0769c09bff6947997c209515058c5318
GoogleAppMeasurement: 98b71f5e04142793729a5ef23e5b96651ff4b70f
GoogleUtilities: 95996bea7c7d9b8fb811b7507669a4a8762f80c7
JustTweak: c5ee966f54c0c00b14d6225c3f5714ad6a75a067
GoogleAppMeasurement: ffe513e90551844a739e7bcbb1d2aca1c28a4338
GoogleUtilities: 04fce34bcd5620c1ee76fb79172105c74a4df335
JustTweak: 3f67df9fd81bdfbec4da283df6a70f76291c93f2
nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48
OptimizelySDKCore: cff8a662f868372ecedcd6be9ce823b546535a16
OptimizelySDKDatafileManager: 805457da07957741c9199ae4e15e671bf9f6edb0
OptimizelySDKEventDispatcher: 6c06e5c44422b9463154576a58c316d666558ded
OptimizelySDKiOS: 8b001b9a3a6c12e370811aff7822306d0a41eea8
OptimizelySDKShared: fc9599c8185d4e59551ed929643ff62c43b7e43c
OptimizelySDKUserProfileService: 7cffcfbcdb104a864f7961b7a08e0a13de4540a4
Protobuf: 1eb9700044745f00181c136ef21b8ff3ad5a0fd5
OptimizelySDKCore: b888f8e8397e74ca811b4f0e236127ef8da11f77
OptimizelySDKDatafileManager: 275d98dc1dad055a484b405fe10aecd1c2929827
OptimizelySDKEventDispatcher: fea27e443627f9afd75594dd7687e2251bbef174
OptimizelySDKiOS: 4b99fc5fd302ba272f9633fc7fd72c8486997a1e
OptimizelySDKShared: 4dc93074a383d65af2872cce9ee5afc26f730e08
OptimizelySDKUserProfileService: e61d5d40fdc0cd6c1cc62ce23649f64955f18cda
Protobuf: 7a877b7f3e5964e3fce995e2eb323dbc6831bb5a

PODFILE CHECKSUM: bc8e9826fb88612e28170bb505bed61edc07bc72

COCOAPODS: 1.5.3
COCOAPODS: 1.6.1
7 changes: 4 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ruby '2.5.1'
ruby '2.5.3'

source 'https://rubygems.org'

gem 'cocoapods', '~> 1.5.3'
gem 'fastlane', '~> 2.108.0'
gem 'cocoapods', '~> 1.6.1'
gem 'fastlane', '~> 2.112.0'
gem 'xcode-install', '~> 2.5.0'
Loading

0 comments on commit 0b579e5

Please sign in to comment.