Skip to content

Commit

Permalink
Merging dev into master
Browse files Browse the repository at this point in the history
  • Loading branch information
wmathurin committed Oct 28, 2024
2 parents f6e6bce + 4057fdd commit 50408bd
Show file tree
Hide file tree
Showing 54 changed files with 836 additions and 216 deletions.
4 changes: 2 additions & 2 deletions MobileSync.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|

s.name = "MobileSync"
s.version = "12.1.1"
s.version = "12.2.0"
s.summary = "Salesforce Mobile SDK for iOS - MobileSync"
s.homepage = "https://github.com/forcedotcom/SalesforceMobileSDK-iOS"

s.license = { :type => "Salesforce.com Mobile SDK License", :file => "LICENSE.md" }
s.author = { "Kevin Hawkins" => "[email protected]" }

s.platform = :ios, "16.0"
s.platforms = { :ios => "16.0", :visionos => "2.0" }
s.swift_versions = ['5.0']

s.source = { :git => "https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git",
Expand Down
7 changes: 4 additions & 3 deletions SalesforceAnalytics.podspec
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
Pod::Spec.new do |s|

s.name = "SalesforceAnalytics"
s.version = "12.1.1"
s.version = "12.2.0"
s.summary = "Salesforce Mobile SDK for iOS"
s.homepage = "https://github.com/forcedotcom/SalesforceMobileSDK-iOS"

s.license = { :type => "Salesforce.com Mobile SDK License", :file => "LICENSE.md" }
s.author = { "Bharath Hariharan" => "[email protected]" }

s.platform = :ios, "16.0"
s.platforms = { :ios => "16.0", :visionos => "2.0" }

s.source = { :git => "https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git",
:tag => "v#{s.version}" }

s.frameworks = 'CoreTelephony'
s.xcconfig = { 'OTHER_LDFLAGS[sdk=iphoneos*]' => '$(inherited) -framework "CoreTelephony"',
'OTHER_LDFLAGS[sdk=iphonesimulator*]' => '$(inherited) -framework "CoreTelephony"' }

s.requires_arc = true
s.default_subspec = 'SalesforceAnalytics'
Expand Down
4 changes: 2 additions & 2 deletions SalesforceSDKCommon.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|

s.name = "SalesforceSDKCommon"
s.version = "12.1.1"
s.version = "12.2.0"
s.summary = "Salesforce Mobile SDK for iOS"
s.homepage = "https://github.com/forcedotcom/SalesforceMobileSDK-iOS"

s.license = { :type => "Salesforce.com Mobile SDK License", :file => "LICENSE.md" }
s.author = { "Raj Rao" => "[email protected]" }

s.platform = :ios, "16.0"
s.platforms = { :ios => "16.0", :visionos => "2.0" }
s.swift_versions = ['5.0']

s.source = { :git => "https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git",
Expand Down
6 changes: 2 additions & 4 deletions SalesforceSDKCore.podspec
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
Pod::Spec.new do |s|

s.name = "SalesforceSDKCore"
s.version = "12.1.1"
s.version = "12.2.0"
s.summary = "Salesforce Mobile SDK for iOS"
s.homepage = "https://github.com/forcedotcom/SalesforceMobileSDK-iOS"

s.license = { :type => "Salesforce.com Mobile SDK License", :file => "LICENSE.md" }
s.author = { "Kevin Hawkins" => "[email protected]" }

s.platform = :ios, "16.0"
s.platforms = { :ios => "16.0", :visionos => "2.0" }
s.swift_versions = ['5.0']

s.source = { :git => "https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git",
:tag => "v#{s.version}" }

s.frameworks = 'CoreTelephony'

s.requires_arc = true
s.default_subspec = 'SalesforceSDKCore'

Expand Down
6 changes: 3 additions & 3 deletions SmartStore.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|

s.name = "SmartStore"
s.version = "12.1.1"
s.version = "12.2.0"
s.summary = "Salesforce Mobile SDK for iOS - SmartStore"
s.homepage = "https://github.com/forcedotcom/SalesforceMobileSDK-iOS"

s.license = { :type => "Salesforce.com Mobile SDK License", :file => "LICENSE.md" }
s.author = { "Kevin Hawkins" => "[email protected]" }

s.platform = :ios, "16.0"
s.platforms = { :ios => "16.0", :visionos => "2.0" }
s.swift_versions = ['5.0']

s.source = { :git => "https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git",
Expand All @@ -20,7 +20,7 @@ Pod::Spec.new do |s|
s.subspec 'SmartStore' do |smartstore|

smartstore.dependency 'SalesforceSDKCore', "~>#{s.version}"
smartstore.dependency 'FMDB/SQLCipher', '~> 2.7.10'
smartstore.dependency 'FMDB/SQLCipher', '~> 2.7.12'
smartstore.dependency 'SQLCipher', '~> 4.6.1'
smartstore.source_files = 'libs/SmartStore/SmartStore/Classes/**/*.{h,m,swift}', 'libs/SmartStore/SmartStore/SmartStore.h'
smartstore.public_header_files = 'libs/SmartStore/SmartStore/Classes/SFAlterSoupLongOperation.h', 'libs/SmartStore/SmartStore/Classes/SFQuerySpec.h', 'libs/SmartStore/SmartStore/Classes/SFSDKSmartStoreLogger.h', 'libs/SmartStore/SmartStore/Classes/SFSDKStoreConfig.h', 'libs/SmartStore/SmartStore/Classes/SFSmartSqlHelper.h', 'libs/SmartStore/SmartStore/Classes/SFSmartStore.h', 'libs/SmartStore/SmartStore/Classes/SFSmartStoreDatabaseManager.h', 'libs/SmartStore/SmartStore/Classes/SFSmartStoreInspectorViewController.h', 'libs/SmartStore/SmartStore/Classes/SFSmartStoreUtils.h', 'libs/SmartStore/SmartStore/Classes/SFSoupIndex.h', 'libs/SmartStore/SmartStore/Classes/SFStoreCursor.h', 'libs/SmartStore/SmartStore/SmartStore.h', 'libs/SmartStore/SmartStore/Classes/SmartStoreSDKManager.h'
Expand Down
2 changes: 1 addition & 1 deletion configuration/Version.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CURRENT_PROJECT_VERSION = 12.1.1
CURRENT_PROJECT_VERSION = 12.2.0
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
<array>
<dict>
<key>BinaryPath</key>
<string>libsqlcipher-catalyst.a</string>
<string>libsqlcipher-xrsimulator.a</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>xros-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>libsqlcipher-catalyst.a</string>
<string>libsqlcipher-xrsimulator.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<string>xros</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
Expand All @@ -38,6 +38,37 @@
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>libsqlcipher-catalyst.a</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>libsqlcipher-catalyst.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>libsqlcipher-xros.a</string>
<key>LibraryIdentifier</key>
<string>xros-arm64</string>
<key>LibraryPath</key>
<string>libsqlcipher-xros.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>xros</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>libsqlcipher-iphoneos.a</string>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion external/fmdb
8 changes: 8 additions & 0 deletions libs/MobileSync/MobileSync.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1442,8 +1442,11 @@
PRODUCT_BUNDLE_IDENTIFIER = com.salesforce.mobilesdk.MobileSync;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,7";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand Down Expand Up @@ -1477,8 +1480,11 @@
PRODUCT_BUNDLE_IDENTIFIER = com.salesforce.mobilesdk.MobileSync;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,7";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand Down Expand Up @@ -1534,6 +1540,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
XROS_DEPLOYMENT_TARGET = 2.0;
};
name = Debug;
};
Expand Down Expand Up @@ -1581,6 +1588,7 @@
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
VALIDATE_PRODUCT = YES;
XROS_DEPLOYMENT_TARGET = 2.0;
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objectVersion = 55;
objects = {

/* Begin PBXAggregateTarget section */
Expand All @@ -23,7 +23,7 @@
/* Begin PBXBuildFile section */
696E91442AD0A10300205884 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 696E91432AD0A10300205884 /* PrivacyInfo.xcprivacy */; };
B716A37F218F5D9F009D407F /* SalesforceSDKCommon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B716A378218F5D60009D407F /* SalesforceSDKCommon.framework */; };
CE1F09E4201A6C18006FA9D2 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CE1F09D5201A6C17006FA9D2 /* CoreTelephony.framework */; };
CE1F09E4201A6C18006FA9D2 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CE1F09D5201A6C17006FA9D2 /* CoreTelephony.framework */; platformFilters = (ios, maccatalyst, ); };
CE2B8BD31CE900F500C6FC6A /* SalesforceAnalytics.h in Headers */ = {isa = PBXBuildFile; fileRef = CE2B8BD21CE900F500C6FC6A /* SalesforceAnalytics.h */; settings = {ATTRIBUTES = (Public, ); }; };
CE2B8C2E1CE9218900C6FC6A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CE2B8C2D1CE9218900C6FC6A /* main.m */; };
CE2B8C311CE9218900C6FC6A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CE2B8C301CE9218900C6FC6A /* AppDelegate.m */; };
Expand Down Expand Up @@ -739,6 +739,7 @@
VALIDATE_PRODUCT = NO;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
XROS_DEPLOYMENT_TARGET = 2.0;
};
name = Debug;
};
Expand Down Expand Up @@ -796,6 +797,7 @@
VALIDATE_PRODUCT = NO;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
XROS_DEPLOYMENT_TARGET = 2.0;
};
name = Release;
};
Expand Down Expand Up @@ -823,8 +825,9 @@
PRODUCT_BUNDLE_IDENTIFIER = com.salesforce.mobilesdk.SalesforceAnalytics;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
TARGETED_DEVICE_FAMILY = "1,2";
TARGETED_DEVICE_FAMILY = "1,2,7";
};
name = Debug;
};
Expand All @@ -851,8 +854,9 @@
PRODUCT_BUNDLE_IDENTIFIER = com.salesforce.mobilesdk.SalesforceAnalytics;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
TARGETED_DEVICE_FAMILY = "1,2";
TARGETED_DEVICE_FAMILY = "1,2,7";
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@
#import "SFSDKInstrumentationEventBuilder.h"
#import "SFSDKAnalyticsManager+Internal.h"
#import "SFSDKInstrumentationEvent+Internal.h"
#import <CoreTelephony/CTTelephonyNetworkInfo.h>
#import <SalesforceSDKCommon/SFSDKReachability.h>

#if __has_include(<CoreTelephony/CTTelephonyNetworkInfo.h>)
#import <CoreTelephony/CTTelephonyNetworkInfo.h>
#endif

@interface SFSDKInstrumentationEventBuilder ()

@property (nonatomic, strong, readwrite) SFSDKAnalyticsManager *analyticsManager;
Expand Down Expand Up @@ -90,29 +93,38 @@ - (SFSDKInstrumentationEvent *) buildEvent {
}
}


- (NSString *) getConnectionType {
SFSDKReachability *reachability = [SFSDKReachability reachabilityForInternetConnection];
[reachability startNotifier];
SFSDKReachabilityNetworkStatus networkStatus = [reachability currentReachabilityStatus];
switch (networkStatus) {
case SFSDKReachabilityNotReachable:
return @"None";
case SFSDKReachabilityReachableViaWWAN:
return [self getMobileConnectionSubType];
case SFSDKReachabilityReachableViaWiFi:
return @"WiFi";
default:
return @"Unknown";
}
NSString *defaultType = @"Unknown";
#if TARGET_OS_VISION
return defaultType;
#else
SFSDKReachability *reachability = [SFSDKReachability reachabilityForInternetConnection];
[reachability startNotifier];
SFSDKReachabilityNetworkStatus networkStatus = [reachability currentReachabilityStatus];
switch (networkStatus) {
case SFSDKReachabilityNotReachable:
return @"None";
case SFSDKReachabilityReachableViaWWAN:
return [self getMobileConnectionSubType];
case SFSDKReachabilityReachableViaWiFi:
return @"WiFi";
default:
return defaultType;
}
#endif
}

- (NSString *) getMobileConnectionSubType {
NSString *type = @"Mobile";
CTTelephonyNetworkInfo *telephonyInfo = [[CTTelephonyNetworkInfo alloc] init];
NSString *subType = telephonyInfo.serviceCurrentRadioAccessTechnology.allValues.firstObject;
if (subType != nil) {
type = [NSString stringWithFormat:@"Mobile;%@", subType];
}
#if __has_include(<CoreTelephony/CTTelephonyNetworkInfo.h>)
CTTelephonyNetworkInfo *telephonyInfo = [[CTTelephonyNetworkInfo alloc] init];
NSString *subType = telephonyInfo.serviceCurrentRadioAccessTechnology.allValues.firstObject;
if (subType != nil) {
type = [NSString stringWithFormat:@"Mobile;%@", subType];
}
#endif

return type;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
XROS_DEPLOYMENT_TARGET = 2.0;
};
name = Debug;
};
Expand Down Expand Up @@ -661,6 +662,7 @@
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
XROS_DEPLOYMENT_TARGET = 2.0;
};
name = Release;
};
Expand Down Expand Up @@ -688,10 +690,11 @@
PRODUCT_BUNDLE_IDENTIFIER = com.salesforce.mobilesdk.SalesforceSDKCommon;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TARGETED_DEVICE_FAMILY = "1,2,7";
};
name = Debug;
};
Expand All @@ -718,9 +721,10 @@
PRODUCT_BUNDLE_IDENTIFIER = com.salesforce.mobilesdk.SalesforceSDKCommon;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TARGETED_DEVICE_FAMILY = "1,2,7";
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ typedef enum : NSInteger {
extern NSString *kSFSDKReachabilityChangedNotification;


API_UNAVAILABLE(visionos)
@interface SFSDKReachability : NSObject

/*!
Expand Down
Loading

0 comments on commit 50408bd

Please sign in to comment.