pindo 5.16.2 → 5.16.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: b92f22542154ae382604b43308458957cf98e13e28827d03060b81f0644a1bb5
4
- data.tar.gz: fa89cceb033d7e4bb3933a6adb8963107e111b7d6232108bdd9955a2924f405c
3
+ metadata.gz: 422206b97d48082c23809fd79aabd82b7b3c37ce894fb59ea3356afe4f00f2ce
4
+ data.tar.gz: 6d633e17089d40b280387b2203f7912bd44d09f6635aff383d454589e1b83433
5
5
  SHA512:
6
- metadata.gz: faddb6f7f1994b614f9a4e463d4d9aae9121158cac4bb1d496ae44daddc6acb818737aa766be45a6718cee15d546157bf58a361b2f8ef8a2669268ec0807ef9c
7
- data.tar.gz: 02b1e2b5f9b299eeebeb2e41ab0fb462df55582195154456bb9ee58228e97fd673a4e8fbc9c6d07be7154f7b65a093f4bd371e3eb5f329536234fcd31c5d4f21
6
+ metadata.gz: 2cc63d005cf7d980a24cfedc90909ec9417ca8e05fcd6a169502aa6e2684ea601fd6aabcf49ca7e275ab9da58e85348c5078819c99e7497a7edcf92b5728f5c4
7
+ data.tar.gz: ecfabd23ce708f5f0e2e58b07bfbadf91181f4c604cf796a9851db7ac06e1bc4ce350b8e1f44036b82752705b7b887f7e925b4882c565b924caaec6ce0e5ddf2
@@ -312,10 +312,12 @@ module Pindo
312
312
  # 替换所有旧的图标引用为标准名称
313
313
  # app_icon -> ic_launcher
314
314
  # app_icon_round -> ic_launcher_round
315
- content.gsub!('@mipmap/app_icon_round', '@mipmap/ic_launcher_round')
316
- content.gsub!('@mipmap/app_icon', '@mipmap/ic_launcher')
317
- content.gsub!('@drawable/app_icon_round', '@drawable/ic_launcher_round')
318
- content.gsub!('@drawable/app_icon', '@drawable/ic_launcher')
315
+ # 使用正则表达式精确匹配,避免替换 app_icon_topleft 等变体
316
+ # (?=["'\s>]) 表示后面必须是引号、空格或尖括号(但不包含在替换结果中)
317
+ content.gsub!(/@mipmap\/app_icon_round(?=["'\s>])/, '@mipmap/ic_launcher_round')
318
+ content.gsub!(/@mipmap\/app_icon(?=["'\s>])/, '@mipmap/ic_launcher')
319
+ content.gsub!(/@drawable\/app_icon_round(?=["'\s>])/, '@drawable/ic_launcher_round')
320
+ content.gsub!(/@drawable\/app_icon(?=["'\s>])/, '@drawable/ic_launcher')
319
321
 
320
322
  # 如果内容有变化,保存文件
321
323
  if content != original_content
@@ -514,7 +514,7 @@ module Pindo
514
514
 
515
515
  project_build_platform = project_obj.root_object.build_configuration_list.get_setting("SDKROOT")["Release"]
516
516
  main_target = project_obj.targets.select { |target| target.product_type.include?(Xcodeproj::Constants::PRODUCT_TYPE_UTI[:application]) }.first
517
- provisioning_profile_name = main_target.build_configurations.first.build_settings['PROVISIONING_PROFILE_SPECIFIER'].downcase.split(" ")
517
+ provisioning_profile_name = main_target.build_configurations.first.build_settings['PROVISIONING_PROFILE_SPECIFIER'].downcase
518
518
 
519
519
  # 确定构建类型和 iCloud 环境
520
520
  build_type = "app-store"
@@ -522,10 +522,10 @@ module Pindo
522
522
 
523
523
  if !project_build_platform.nil? && project_build_platform.eql?("macosx")
524
524
  # macOS 平台
525
- if provisioning_profile_name.include?("development")
525
+ if provisioning_profile_name.downcase.include?("development")
526
526
  build_type = "development"
527
527
  icloud_env = "Development"
528
- elsif provisioning_profile_name.include?("appstore")
528
+ elsif provisioning_profile_name.downcase.include?("appstore")
529
529
  build_type = "mac-application"
530
530
  icloud_env = "Production"
531
531
  else
@@ -534,10 +534,10 @@ module Pindo
534
534
  end
535
535
  else
536
536
  # iOS 平台
537
- if provisioning_profile_name.include?("adhoc")
537
+ if provisioning_profile_name.downcase.include?("adhoc")
538
538
  build_type = "ad-hoc"
539
539
  icloud_env = "Development"
540
- elsif provisioning_profile_name.include?("development")
540
+ elsif provisioning_profile_name.downcase.include?("development")
541
541
  build_type = "development"
542
542
  icloud_env = "Development"
543
543
  else
data/lib/pindo/version.rb CHANGED
@@ -6,7 +6,7 @@ require 'time'
6
6
 
7
7
  module Pindo
8
8
 
9
- VERSION = "5.16.2"
9
+ VERSION = "5.16.3"
10
10
 
11
11
  class VersionCheck
12
12
  RUBYGEMS_API = 'https://rubygems.org/api/v1/gems/pindo.json'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pindo
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.16.2
4
+ version: 5.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - wade