cocoapods-hooks 0.0.1 → 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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b774376e750a3c3822e4f5ed5c931eecaff030fe085c62fe5425f60f4b5519f2
|
4
|
+
data.tar.gz: 2697c46d3e92760c8758ee22b7bfbddf0e07191f8edeed0544692a8fc6a45447
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 353d56fe09af4ec28c657d175497f5ce0e4a87af66232605fb347547409fd76e8b76ddba8e7d3125447d56241ca276768c512f3793fa0bd3063a54331a6ef511
|
7
|
+
data.tar.gz: d3bff57043eaa38635974c1a91ce4abe81901e671470db55dfc18881c0fd53e30df49c7b78d50e7d59f50ba503a30e355a05460fb736a1e8fea2f392e8210ba1
|
@@ -48,7 +48,8 @@ module Pod
|
|
48
48
|
puts "repository cloned to #{Dir.pwd}"
|
49
49
|
project_config_plist_path = Dir.pwd + "/ios_project_config/#{tenant_id}/ProjectConfig.plist"
|
50
50
|
# 将配置文件拷贝到工程目录下
|
51
|
-
|
51
|
+
current_plist_path = Dir.pwd + '/AddxAi/AppConfig/ProjectConfig.plist'
|
52
|
+
FileUtils.cp(project_config_plist_path, current_plist_path)
|
52
53
|
puts "AppIcon.appiconset path is: #{Dir.pwd + "/ios_project_config/#{tenant_id}/resource/AppIcon.appiconset"}"
|
53
54
|
puts "dest AppIcon.appiconset path is: #{Dir.pwd + '/AddxAi/Assets.xcassets/AppIcon.appiconset'}"
|
54
55
|
# 将资源文件拷贝到资源目录下
|
@@ -31,11 +31,23 @@ module Pod
|
|
31
31
|
@branch = 'main_develop'
|
32
32
|
end
|
33
33
|
# 1. 根据 tenant_id 下载相关的配置文件
|
34
|
-
system("pod git-clone --tenantid=#{@tenantid} --branch=#{@branch}")
|
34
|
+
result = system("pod git-clone --tenantid=#{@tenantid} --branch=#{@branch}")
|
35
|
+
unless result
|
36
|
+
puts "pod git-clone command execution failed. Exiting..."
|
37
|
+
exist 1
|
38
|
+
end
|
35
39
|
# 2. 修改图片的主题色
|
36
|
-
system("pod change-color")
|
40
|
+
result = system("pod change-color")
|
41
|
+
unless result
|
42
|
+
puts "pod change-color command execution failed. Exiting..."
|
43
|
+
exist 1
|
44
|
+
end
|
37
45
|
# 3. 修改工程配置, 进行签名
|
38
|
-
system("pod fastlane-sign")
|
46
|
+
result = system("pod fastlane-sign")
|
47
|
+
unless result
|
48
|
+
puts "pod fastlane-sign command execution failed. Exiting..."
|
49
|
+
exist 1
|
50
|
+
end
|
39
51
|
end
|
40
52
|
end
|
41
53
|
end
|
data/lib/cocoapods_plugin.rb
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
require 'cocoapods-hooks/command'
|
2
|
-
require 'install'
|
3
|
-
require 'dsl'
|
4
2
|
require 'cocoapods'
|
5
|
-
require 'fileutils'
|
6
|
-
require 'plist'
|
7
3
|
|
8
4
|
module CocoapodsHooks
|
9
|
-
|
10
|
-
PLIST_PATH = Dir.pwd + '/AddxAi/AppConfig/ProjectConfig.plist'
|
11
5
|
# 注册 pod install 钩子
|
12
6
|
Pod::HooksManager.register('cocoapods-hooks', :pre_install) do |installer|
|
13
7
|
p "cocoapods-plugin-hooks, hooks pre_install"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-hooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- huafeng
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: plist
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
description: A short description of cocoapods-hooks.
|
56
42
|
email:
|
57
43
|
- hm@a4x.io
|