@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
1111 s . ios . deployment_target = '7.0'
1212 s . osx . deployment_target = '10.10'
1313
14- # By default, do not require the offline SDK .
14+ # By default, do not require the offline Core .
1515 s . default_subspec = 'Online'
1616
1717 # Online-only API client.
@@ -27,14 +27,14 @@ Pod::Spec.new do |s|
2727
2828 # Offline-enabled API client.
2929 # NOTE: Disabled until release.
30- # s.subspec 'Offline' do |offline|
31- # offline.dependency 'AlgoliaSearchSDK -iOS'
32- # # Activate SDK -dependent code.
33- # # WARNING: Specifying the preprocessor macro is not enough; it must be added to Swift flags as well.
34- # offline.pod_target_xcconfig = {
35- # 'GCC_PREPROCESSOR_DEFINITIONS' => 'ALGOLIA_SDK=1',
36- # 'OTHER_SWIFT_FLAGS' => '-DALGOLIA_SDK'
37- # }
38- # offline.source_files = 'Source/Offline/*.swift'
39- # end
30+ s . subspec 'Offline' do |offline |
31+ offline . dependency 'AlgoliaSearchOfflineCore -iOS'
32+ # Activate Core -dependent code.
33+ # WARNING: Specifying the preprocessor macro is not enough; it must be added to Swift flags as well.
34+ offline . pod_target_xcconfig = {
35+ 'GCC_PREPROCESSOR_DEFINITIONS' => 'ALGOLIA_SDK=1' ,
36+ 'OTHER_SWIFT_FLAGS' => '-DALGOLIA_SDK'
37+ }
38+ offline . source_files = 'Source/Offline/*.swift'
39+ end
4040end
0 commit comments