cocoapods-hooks 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34a8f75a4c149e23f7e8a89da4e4ef52542255f18ee9468072b3f89936cf4d88
4
- data.tar.gz: 5e826359b216b88c93a862f90961b7ed79489911165d4c6964ac0a72b8fcdc3b
3
+ metadata.gz: b774376e750a3c3822e4f5ed5c931eecaff030fe085c62fe5425f60f4b5519f2
4
+ data.tar.gz: 2697c46d3e92760c8758ee22b7bfbddf0e07191f8edeed0544692a8fc6a45447
5
5
  SHA512:
6
- metadata.gz: d0dcb09899bce00b905c21ead92b245f4d55827302ca75c5b1187027af6aa94684f58afef47d17dde2af2ebd7c7c5d0f2fe124f0bb62d36487bbc5f35dc9ade0
7
- data.tar.gz: 8ef78f056a942eb258cbe9e7b89b702e5cfa915a4faf80bf46c713730c7390fbd251426624c6ea9524e304f79ca086a84af7a2c4191b71ca8949cf160fc327f8
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
- FileUtils.cp(project_config_plist_path, CocoapodsHooks::PLIST_PATH)
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
@@ -1,3 +1,3 @@
1
1
  module CocoapodsHooks
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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.1
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-18 00:00:00.000000000 Z
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