cocoapods-bb-PodAssistant 0.3.4.3 → 0.3.5.1

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: d0ca45d7ccff88bdc005a64e976843df6dca731391930454f316eba4273d5e04
4
- data.tar.gz: b2ef42b1321c8d5d7f5747e937108288876486667060788d2a04d1851d9ed358
3
+ metadata.gz: 59dcc2483cb31282edbc5c6bb398bfb02176a5224b24bee4adbcc9ca13c4666e
4
+ data.tar.gz: '062378b4abbd095939268a5e947d38a57e3fee6a515b14454220071440def7b4'
5
5
  SHA512:
6
- metadata.gz: a40f83e76e30726cee9e85dd91414619525c0dc9d2de959a6aee7659ed42e59dd3e6bdfc3284c75212a2c36182a3fde5c344c23ff58f46eda97f82e5d33a30b4
7
- data.tar.gz: a88f5cf15ad866c27ae165077ec4ca7784392dae05023f1e419384167406e56ead6b3b7a88b4a54f9c2a1949a06d7caed60ede7f943bebf3f08b8f3c6d80a371
6
+ metadata.gz: 6a1f0a8f694db5bc67f8311bac4a7d8aa9dcd9f1d0111952d17db31a80d95abed25d115495d1a12434bd1b9ea88e4f35848e0c2a9eb8c8349047363d78e8ea77
7
+ data.tar.gz: 32c657b29be44d08c6e536b9b9a0e89ea5125d06b141f6830d4846b88269e405309005b8c5d67226c46c4b5746bd683af7e2aa273f65f4b27416e8b702845541
data/bin/match_decrypt ADDED
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env ruby
2
+ require 'fastlane'
3
+ require 'match'
4
+ # CLI to decrypt files using fastlane match encryption layer
5
+
6
+ def usage
7
+ puts("USAGE: ruby math_decrypt.rb [password] [input_path] [output_path]")
8
+ exit(-1)
9
+ end
10
+
11
+ if ARGV.count < 2 || ARGV.count > 3
12
+ usage
13
+ end
14
+
15
+ method_name = 'decrypt'
16
+ unless ['encrypt', 'decrypt'].include?(method_name)
17
+ usage
18
+ end
19
+ password = ARGV.shift
20
+ input_file = ARGV.shift
21
+
22
+ if ARGV.count > 0
23
+ output_file = ARGV.shift
24
+ else
25
+ output_file = input_file
26
+ end
27
+
28
+ unless File.exist?(input_file)
29
+ puts "input_file:#{input_file} doesn't exist".red
30
+ exit
31
+ end
32
+ exit if password.empty?
33
+
34
+ begin
35
+ puts "match encryption method_name:#{method_name} password:#{password} input_file:#{input_file} output_file:#{output_file}"
36
+ Match::Encryption::MatchFileEncryption.new.send(method_name, file_path: input_file, password: password, output_path: output_file)
37
+ puts "match decrypted mobileprovision finish!"
38
+ rescue => e
39
+ puts("ERROR #{method_name}ing. [#{e}]. Check your password")
40
+ usage
41
+ end
data/bin/match_encrypt ADDED
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env ruby
2
+ require 'fastlane'
3
+ require 'match'
4
+ # CLI to encrypt files using fastlane match decryption layer
5
+
6
+ def usage
7
+ puts("USAGE: ruby math_encrypt.rb [password] [input_path] [output_path]")
8
+ exit(-1)
9
+ end
10
+
11
+ if ARGV.count < 2 || ARGV.count > 3
12
+ usage
13
+ end
14
+
15
+ method_name = 'encrypt'
16
+ unless ['encrypt', 'decrypt'].include?(method_name)
17
+ usage
18
+ end
19
+ password = ARGV.shift
20
+ input_file = ARGV.shift
21
+
22
+ if ARGV.count > 0
23
+ output_file = ARGV.shift
24
+ else
25
+ output_file = input_file
26
+ end
27
+
28
+ unless File.exist?(input_file)
29
+ puts "input_file:#{input_file} doesn't exist".red
30
+ exit
31
+ end
32
+ exit if password.empty?
33
+
34
+ begin
35
+ puts "match decryption method_name:#{method_name} password:#{password} input_file:#{input_file} output_file:#{output_file}"
36
+ Match::Encryption::MatchFileEncryption.new.send(method_name, file_path: input_file, password: password, output_path: output_file)
37
+ puts "match encrypted mobileprovision finish!"
38
+ rescue => e
39
+ puts("ERROR #{method_name}ing. [#{e}]. Check your password")
40
+ usage
41
+ end
@@ -120,6 +120,12 @@ def isCityApp
120
120
  return bundleId === "com.sinyee.babybus.city"
121
121
  end
122
122
 
123
+ # 是否创意世界产品
124
+ def isGameWorldApp
125
+ bundleId = getProjectBundleIdentifier()
126
+ return bundleId === "com.sinyee.babybus.gameworld"
127
+ end
128
+
123
129
  # 是否矩阵产品
124
130
  def isMatrixApp
125
131
  bundleId = getProjectBundleIdentifier()
@@ -74,7 +74,7 @@ class PodPostInstaller
74
74
 
75
75
  # 配置工程最低部署
76
76
  origin_value = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
77
- if origin_value.to_i != ios_deployment_target.to_i then
77
+ if origin_value.to_i != ios_deployment_target.to_i
78
78
  config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = ios_deployment_target.to_s
79
79
  new_value = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
80
80
  puts "#{target.name}-#{config.name} Build Setting 'IPHONEOS_DEPLOYMENT_TARGET' deployment target: #{origin_value} => #{new_value}"
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBbPodassistant
2
- VERSION = "0.3.4.3"
2
+ VERSION = "0.3.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bb-PodAssistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4.3
4
+ version: 0.3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-20 00:00:00.000000000 Z
11
+ date: 2024-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods-core
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.2.7.7
55
+ - !ruby/object:Gem::Dependency
56
+ name: fastlane
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 2.174.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 2.174.0
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bundler
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -83,12 +97,16 @@ dependencies:
83
97
  description: A short description of cocoapods-bb-PodAssistant.
84
98
  email:
85
99
  - humin1102@126.com
86
- executables: []
100
+ executables:
101
+ - match_decrypt
102
+ - match_encrypt
87
103
  extensions: []
88
104
  extra_rdoc_files: []
89
105
  files:
90
106
  - LICENSE.txt
91
107
  - README.md
108
+ - bin/match_decrypt
109
+ - bin/match_encrypt
92
110
  - lib/cocoapods-bb-PodAssistant.rb
93
111
  - lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
94
112
  - lib/cocoapods-bb-PodAssistant/babybus/business/babybus_install_environment.rb
@@ -143,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
161
  - !ruby/object:Gem::Version
144
162
  version: '0'
145
163
  requirements: []
146
- rubygems_version: 3.5.9
164
+ rubygems_version: 3.5.14
147
165
  signing_key:
148
166
  specification_version: 4
149
167
  summary: A longer description of cocoapods-bb-PodAssistant.