cocoapods-triumph-sdk-plugin 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7fd1ffb3f6c938cf1479810a1adfcaf0c1e68607efece321d6d32b1459e51c06
4
+ data.tar.gz: 3840eb8f191db2e0c758fe5efd97a9ad26d92daa4ff14c15ee7750c78e2c92f9
5
+ SHA512:
6
+ metadata.gz: 9da1971dfe84234119fcd78c67ec3e2ad5f992569ce2fa6cd807710d3a82dcc7892aaa9265e30b5d2f8a642dd8923751e9717e4936baacd3e6b2360d6c67af6d
7
+ data.tar.gz: a2a5f12c858f291c16005e4999728c1a1302b65179e2c13f8c16544414f93a622aa3b503ca583d5150880f288a89574f444757dc9c470e380482df033b849fb0
@@ -0,0 +1,44 @@
1
+ module Pod
2
+ class Command
3
+ # This is an example of a cocoapods plugin adding a top-level subcommand
4
+ # to the 'pod' command.
5
+ #
6
+ # You can also create subcommands of existing or new commands. Say you
7
+ # wanted to add a subcommand to `list` to show newly deprecated pods,
8
+ # (e.g. `pod list deprecated`), there are a few things that would need
9
+ # to change.
10
+ #
11
+ # - move this file to `lib/pod/command/list/deprecated.rb` and update
12
+ # the class to exist in the the Pod::Command::List namespace
13
+ # - change this class to extend from `List` instead of `Command`. This
14
+ # tells the plugin system that it is a subcommand of `list`.
15
+ # - edit `lib/cocoapods_plugins.rb` to require this file
16
+ #
17
+ # @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
18
+ # in the `plugins.json` file, once your plugin is released.
19
+ #
20
+ class Plugin < Command
21
+ self.summary = 'Short description of cocoapods-triumph-sdk-plugin.'
22
+
23
+ self.description = <<-DESC
24
+ Longer description of cocoapods-triumph-sdk-plugin.
25
+ DESC
26
+
27
+ self.arguments = 'NAME'
28
+
29
+ def initialize(argv)
30
+ @name = argv.shift_argument
31
+ super
32
+ end
33
+
34
+ def validate!
35
+ super
36
+ help! 'A Pod name is required.' unless @name
37
+ end
38
+
39
+ def run
40
+ UI.puts "Add your implementation for the cocoapods-triumph-sdk-plugin plugin in #{__FILE__}"
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1 @@
1
+ require 'cocoapods-triumph-sdk-plugin/command/plugin'
@@ -0,0 +1,3 @@
1
+ module CocoapodsTriumphSdkPlugin
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1 @@
1
+ require 'cocoapods-triumph-sdk-plugin/gem_version'
@@ -0,0 +1,30 @@
1
+ require 'cocoapods-triumph-sdk-plugin/command'
2
+
3
+ module CocoapodsTriumphSdkPlugin
4
+ Pod::HooksManager.register('cocoapods-triumph-sdk-plugin', :post_install) do |installer, options|
5
+ installer.pods_project.targets.each do |target|
6
+ target.build_configurations.each do |config|
7
+
8
+ xcconfig_path = config.base_configuration_reference.real_path
9
+ xcconfig = File.read(xcconfig_path)
10
+
11
+ new_xcconfig = xcconfig.sub('-framework "RecaptchaEnterprise"', '')
12
+ new_xcconfig = new_xcconfig.sub('-framework "FirebaseAnalytics"', '')
13
+ new_xcconfig = new_xcconfig.sub('-framework "GoogleAppMeasurement"', '')
14
+ new_xcconfig = new_xcconfig.sub('-framework "GoogleAppMeasurementIdentitySupport"', '')
15
+
16
+ File.open(xcconfig_path, "w") { |file| file << new_xcconfig }
17
+
18
+ if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 14.0
19
+ config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
20
+ end
21
+
22
+ config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
23
+
24
+ if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
25
+ config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cocoapods-triumph-sdk-plugin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Alex Oakley
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-01-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Helper plugin for installation of TriumphSDK as CocoaPod
42
+ email:
43
+ - alex@triumpharcade.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - lib/cocoapods-triumph-sdk-plugin.rb
49
+ - lib/cocoapods-triumph-sdk-plugin/command.rb
50
+ - lib/cocoapods-triumph-sdk-plugin/command/plugin.rb
51
+ - lib/cocoapods-triumph-sdk-plugin/gem_version.rb
52
+ - lib/cocoapods_plugin.rb
53
+ homepage: https://github.com/triumpharcade/cocoapods-triumph-sdk-plugin
54
+ licenses:
55
+ - MIT
56
+ metadata: {}
57
+ post_install_message:
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubygems_version: 3.3.26
73
+ signing_key:
74
+ specification_version: 4
75
+ summary: Helper plugin for installation of TriumphSDK as CocoaPod
76
+ test_files: []