Class: BDAwesomeTransmit::BDPodsTrans
- Inherits:
-
Object
- Object
- BDAwesomeTransmit::BDPodsTrans
- Defined in:
- lib/cocoapods-BDTransform/command/BDTransform/develop/dev.rb
Class Method Summary collapse
- .accessor(podspec, subspecs, sandboxPath, podProjectPath, podspecName, workspacePath, workspaceName, effectedTargets) ⇒ Object
- .add_pod_to_Dev(pod_name) ⇒ Object
- .transmit(podspec, subspecs, sandboxPath, podProjectPath, podspecName, workspacePath, workspaceName, effectedTargets) ⇒ Object
Class Method Details
.accessor(podspec, subspecs, sandboxPath, podProjectPath, podspecName, workspacePath, workspaceName, effectedTargets) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/cocoapods-BDTransform/command/BDTransform/develop/dev.rb', line 15 def self.accessor(podspec,subspecs,sandboxPath,podProjectPath,podspecName,workspacePath,workspaceName,effectedTargets) @@library_to_build = Array.new() @@framework_to_build = Array.new() @@effectedTargets = effectedTargets @@podDirPath = sandboxPath @@subspecs_build = subspecs @@handlePodName = podspecName @@workspacePath = workspacePath @@workspaceName = workspaceName @@devPodPath = File.dirname(podspec) @@sandbox = Pod::Sandbox.new(sandboxPath) @@sandbox.store_podspec(podspecName,File.open(podspec, 'r:utf-8', &:read)) @@path = Pod::Sandbox::PathList.new(@@devPodPath) @@spec = Pod::Specification.from_file(podspec) @@project = Xcodeproj::Project.open(podProjectPath) @@file_to_added = Array.new() @@file_to_resource = Array.new() @@bunlde_resource = Hash.new() @@resourceTarget = Array.new() end |
.add_pod_to_Dev(pod_name) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/cocoapods-BDTransform/command/BDTransform/develop/dev.rb', line 36 def self.add_pod_to_Dev(pod_name) @@project.main_group.new_group('Development Pods') unless self.isContainDevPod self.generatorTargetIfNeeded self.generatorNewGroup(pod_name) targetGroup = self.development_pod.new_group(pod_name) raise "Group of #{@@handlePodName} create fail,please retry" unless targetGroup buildFiles,headerFiles = self.sourceToAdded(targetGroup) self.addToTarget(buildFiles,pod_name) self.addResource self.addSupportFiles(pod_name) self.generatorSearchHeader(headerFiles,pod_name) self.rectifyconfig self.removeDepressedProductAndOfiles @@project.save end |
.transmit(podspec, subspecs, sandboxPath, podProjectPath, podspecName, workspacePath, workspaceName, effectedTargets) ⇒ Object
9 10 11 12 13 |
# File 'lib/cocoapods-BDTransform/command/BDTransform/develop/dev.rb', line 9 def self.transmit(podspec,subspecs,sandboxPath,podProjectPath,podspecName,workspacePath,workspaceName,effectedTargets) self.accessor(podspec,subspecs,sandboxPath,podProjectPath,podspecName,workspacePath,workspaceName,effectedTargets) self.add_pod_to_Dev(podspecName) @@project.save end |