cocoapods-force-static-framework 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0cbdf4f95132e743a483266675498e941cd9493
4
- data.tar.gz: 0d7dc5bf3b90432f7c1e00f4b58a2e48081c8d89
3
+ metadata.gz: 9198da5ec4ef823cb4aff87148833d4e865b3646
4
+ data.tar.gz: 14cbd946d923372703f3c26493e6f5c8d3d0fa57
5
5
  SHA512:
6
- metadata.gz: e9fc4db3af5971dc2327e2b42bfd8a3fa2829bd9ae51592b2a2e996711930e869299a97c7b59e0dbd7674c9e5ac316e112d25d6c66f1b2f3549a544c42ba4fdf
7
- data.tar.gz: 74fa19d43c5bbaa7f73487cbd502a5393f2914d6f3d125783d8c36657aa7dad5ad764710a742d2c9c42a13e17b36b934c25f77b67b0b52d9584e772e6fb93d7c
6
+ metadata.gz: 8a7d2a988366e4b47520e4c3d673f0f78bf1c01aff109b56b977aa3785cafea340cc24e1395530426d2d9efe333f0835aa3968c933fae0e737c05dd08c5ba1d4
7
+ data.tar.gz: a7da96e3ad97a81c4e4228296cb11217a48fc556c689e922b4acebaf606cc3ef9a5908bc35af584ef27017bf8e4bb4e0b1d995ba6ef880bb5d9e59cc874d4bde
@@ -16,8 +16,10 @@ module Pod
16
16
  should_static = options.delete(Pod::Static.keyword)
17
17
  requirements.pop if options.empty?
18
18
  pod_name = Specification.root_name(name)
19
- @force_static_framework_names ||= []
20
- @force_static_framework_names.push pod_name
19
+ if should_static
20
+ @force_static_framework_names ||= []
21
+ @force_static_framework_names.push pod_name
22
+ end
21
23
  end
22
24
  end
23
25
 
@@ -44,11 +46,11 @@ module Pod
44
46
  old_method = instance_method(:initialize)
45
47
 
46
48
  define_method(:initialize) do |sandbox, host_requires_frameworks, user_build_configurations, archs, platform, specs, target_definitions, file_accessors, scope_suffix, build_type|
47
- bt = build_type[:build_type]
48
- if target_definitions.first.force_static_framework_names.include?(specs.first.name)
49
- bt = Target::BuildType.static_framework
49
+ reval = build_type[:build_type]
50
+ if target_definitions.first.force_static_framework_names.include?(Specification.root_name(specs.first.name))
51
+ reval = Target::BuildType.static_framework
50
52
  end
51
- old_method.bind(self).(sandbox, host_requires_frameworks, user_build_configurations, archs, platform, specs, target_definitions, file_accessors, scope_suffix, :build_type => bt)
53
+ old_method.bind(self).(sandbox, host_requires_frameworks, user_build_configurations, archs, platform, specs, target_definitions, file_accessors, scope_suffix, :build_type => reval)
52
54
  end
53
55
 
54
56
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsForceStaticFramework
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-force-static-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - maqiang