Sha256: 6c89d5bd1009952c5ca7381c98d1dc975027bf5837dc35f7d4265a24388c4bc5

Contents?: true

Size: 962 Bytes

Versions: 14

Compression:

Stored size: 962 Bytes

Contents

module Pod
    class Config
        attr_accessor :bb_idfa_flag
    end
end

module Pod
    class Installer
      class Analyzer
        class PodfileDependencyCache
            alias_method :bb_origin_initialize, :initialize
            def initialize(podfile_dependencies, dependencies_by_target_definition)
                bb_origin_initialize(podfile_dependencies,dependencies_by_target_definition)
            
                if @podfile_dependencies
                    @podfile_dependencies.each do |dep|
                        if dep.name.include?('/noidfa')
                            Pod::Config.instance.bb_idfa_flag = 'noidfa'
                            break
                        elsif dep.name.include?('/idfa')
                            Pod::Config.instance.bb_idfa_flag = 'idfa'
                            break
                        end
                    end
                end
            end
        end
      end
    end
end


Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cocoapods-bb-PodAssistant-0.3.7.1 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.7.0 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.6.2 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.6.1 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.6.0 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.5.2 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.5.1 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.5.0 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.4.3 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.4.2 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.3 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.2 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.1 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
cocoapods-bb-PodAssistant-0.3.0 lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb