akcache 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: a09a77cf0dd1f6e164eedf0a94b3e2f87009416c2ca271acb24a2823c26dd190
4
- data.tar.gz: 636c83770b0dfc9d78219333daf57cb33b548d69c4f58a85eb753a5355f62f6f
3
+ metadata.gz: 890961de10e634c3aecdfabf9e89d93b78c50a310e04e44d3ea75c0fb4565c53
4
+ data.tar.gz: a7f2473162f65bc4f67a66abb1d7a93e97a2647a720856900671b43850bf9036
5
5
  SHA512:
6
- metadata.gz: 8ca2435c52e371036a4465960eb3504ecf587628becff5f3dd1a15ff5f92b745bcf02ad5d77d23dad0aac0614cd196d3f7c1b906b976dc04e8ff5e42b9b976bd
7
- data.tar.gz: 8b2185ff6a399a12af7c297c690596d8ac4989d0d3e30bfc41276186fdc98196050773f2a3b0e2aa84a163cfa2e18a81ae6a493011e607c0b9f633bedc2b0346
6
+ metadata.gz: 765afe47fcc2df2d63095d49c8817b6212efa7c64d768a97105da8626075244de37bfb0549af153e08d910dc06c0f37a10775179094f7923f4d061e452ba3cbb
7
+ data.tar.gz: 87006aa95d29ec372f9e28d88b6c0c70d397a297f9019af031d3bb0503117f8be061d4a02e18e168a27edecdd1e6fbc418ee9f6cb5f9a2b118bf03a01b08c052
data/bin/kcache CHANGED
@@ -5,7 +5,7 @@ require 'kcache'
5
5
  manager = CacheManager.new
6
6
 
7
7
  if ARGV[0] == "xcodebuild" or ARGV[0] == "fastlane"
8
- manager.project_task_begin
8
+ manager.project_task_begin(ARGV)
9
9
  raise unless system(*ARGV)
10
10
  manager.project_task_end
11
11
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kcache
4
- VERSION = "1.1.1"
4
+ VERSION = "1.1.2"
5
5
  end
data/lib/kcache.rb CHANGED
@@ -9,7 +9,6 @@ require "find"
9
9
  require 'set'
10
10
 
11
11
  #配置
12
- Target_Build_Configuration = "Release"
13
12
 
14
13
  TARGET_CACHE_CONFIG = "target_cache_config.yml"
15
14
 
@@ -36,6 +35,7 @@ OBJROOT = "OBJROOT"
36
35
 
37
36
 
38
37
  #变量
38
+ $target_build_configuration = "Release"
39
39
  $podfile_spec_checksums = nil
40
40
  $file_md5_hash = {}
41
41
  $exclude_target = []
@@ -188,7 +188,7 @@ class CacheManager
188
188
  $podfile_spec_checksums = podfile_lock["SPEC CHECKSUMS"]
189
189
  end
190
190
 
191
- project_configuration = project.build_configurations.detect { | config | config.name == Target_Build_Configuration}
191
+ project_configuration = project.build_configurations.detect { | config | config.name == $target_build_configuration}
192
192
  project_configuration_content = project_configuration.pretty_print.to_yaml
193
193
 
194
194
  project_xcconfig = ""
@@ -199,7 +199,7 @@ class CacheManager
199
199
  end
200
200
  end
201
201
 
202
- target_configuration = target.build_configurations.detect { | config | config.name == Target_Build_Configuration}
202
+ target_configuration = target.build_configurations.detect { | config | config.name == $target_build_configuration}
203
203
  target_configuration_content = target_configuration.pretty_print.to_yaml
204
204
 
205
205
  target_xcconfig = ""
@@ -514,7 +514,17 @@ class CacheManager
514
514
  end
515
515
 
516
516
 
517
- def project_task_begin
517
+ def project_task_begin(argv)
518
+
519
+ argv.each do |prama|
520
+ if prama.include? "configuration"
521
+ if prama.include? "Debug"
522
+ $target_build_configuration = "Debug"
523
+ elsif prama.include? "Release"
524
+ $target_build_configuration = "Release"
525
+ end
526
+ end
527
+ end
518
528
 
519
529
  projects = get_projects
520
530
  total_count = 0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akcache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yusheng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-31 00:00:00.000000000 Z
11
+ date: 2022-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcodeproj