aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Core
diff options
context:
space:
mode:
authorGravatar Ryan Wilson <wilsonryan@google.com>2017-12-11 12:25:49 -0500
committerGravatar GitHub <noreply@github.com>2017-12-11 12:25:49 -0500
commit6a8d436f0943f10220fddb81b89e27c23ac72e2f (patch)
tree048305da8f84f6baf91f2878ed5119c2ebd68714 /Firebase/Core
parent69b892b9e138a58dd5e15e732372f3f9e03b11ef (diff)
Modified FirebaseAppStoreURLCheckEnabled Key. (#554)
Diffstat (limited to 'Firebase/Core')
-rw-r--r--Firebase/Core/third_party/FIRAppEnvironmentUtil.m10
1 files changed, 6 insertions, 4 deletions
diff --git a/Firebase/Core/third_party/FIRAppEnvironmentUtil.m b/Firebase/Core/third_party/FIRAppEnvironmentUtil.m
index 337f082..fe4e23d 100644
--- a/Firebase/Core/third_party/FIRAppEnvironmentUtil.m
+++ b/Firebase/Core/third_party/FIRAppEnvironmentUtil.m
@@ -36,9 +36,11 @@ struct encryption_info_command {
@implementation FIRAppEnvironmentUtil
-/// A key for the Info.plist to enable or disable checking if the App Store is running in a sandbox,
-/// which would be true while running on TestFlight.
-static NSString *const kFIRAppStoreSandboxCheckEnabledKey = @"FirebaseAppStoreSandboxCheckEnabled";
+/// A key for the Info.plist to enable or disable checking if the App Store is running in a sandbox.
+/// This will affect your data integrity when using Firebase Analytics, as it will disable some
+/// necessary checks.
+static NSString *const kFIRAppStoreReceiptURLCheckEnabledKey =
+ @"FirebaseAppStoreReceiptURLCheckEnabled";
/// The file name of the sandbox receipt. This is available on iOS >= 8.0
static NSString *const kFIRAIdentitySandboxReceiptFileName = @"sandboxReceipt";
@@ -159,7 +161,7 @@ static BOOL isAppEncrypted() {
// Since checking the App Store's receipt URL can be memory intensive, check the option in the
// Info.plist if developers opted out of this check.
id enableSandboxCheck =
- [[NSBundle mainBundle] objectForInfoDictionaryKey:kFIRAppStoreSandboxCheckEnabledKey];
+ [[NSBundle mainBundle] objectForInfoDictionaryKey:kFIRAppStoreReceiptURLCheckEnabledKey];
if (enableSandboxCheck &&
[enableSandboxCheck isKindOfClass:[NSNumber class]] &&
![enableSandboxCheck boolValue]) {