From 60f6c79bfcca4645187c4ef44c66bcc97b02d2cd Mon Sep 17 00:00:00 2001 From: elonGT <164143151+elontron@users.noreply.github.com> Date: Tue, 30 Apr 2024 09:54:59 +0800 Subject: [PATCH] fix podsepc no arc --- tronlink-iOS-core.podspec | 76 ++++++++++----------------------------- 1 file changed, 18 insertions(+), 58 deletions(-) diff --git a/tronlink-iOS-core.podspec b/tronlink-iOS-core.podspec index db72126..49c2924 100644 --- a/tronlink-iOS-core.podspec +++ b/tronlink-iOS-core.podspec @@ -1,63 +1,19 @@ -# -# Be sure to run `pod lib lint tronlink-iOS-core.podspec' to ensure this is a -# valid spec before submitting. -# -# Any lines starting with a # are optional, but their use is encouraged -# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html -# Pod::Spec.new do |s| s.name = 'tronlink-iOS-core' - s.version = '0.1.0' + s.version = '1.0.0' s.summary = 'tronlink-iOS-core is repo of TronLink' s.module_name = 'TLCore' -# This description is used to generate tags and improve search results. -# * Think: What does it do? Why did you write it? What is the focus? -# * Try to keep it short, snappy and to the point. -# * Write the description between the DESC delimiters below. -# * Finally, don't worry about the indent, CocoaPods strips it! - - s.description = <<-DESC -TODO: Add long description of the pod here. - DESC - s.homepage = 'https://github.com/TronLink/tronlink-iOS-core' - # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' s.license = { :type => 'Apache', :file => 'LICENSE' } - s.author = { 'TronLink' => '' } + s.author = 'tronlinkdev' s.source = { :git => 'https://github.com/TronLink/tronlink-iOS-core.git', :tag => s.version.to_s } - - # s.social_media_url = 'https://twitter.com/' - s.ios.deployment_target = '10.0' s.swift_versions = '4.2' s.source_files = 'tronlink-iOS-core/Classes/**/*' - s.requires_arc = true - - # s.resource_bundles = { - # 'TLCore' => ['TLCore/Assets/*.png'] - # } - - # s.public_header_files = 'Pod/Classes/**/*.h' - # s.frameworks = 'UIKit', 'MapKit' - # s.dependency 'AFNetworking', '~> 2.3' - - # s.xcconfig = { 'SWIFT_OBJC_BRIDGING_HEADER' => '${PODS_TARGET_SRCROOT}/TLCorePod/Classes/TronLinkCore-Bridging-Header.h' } - # s.header_mappings_dir = 'src/include' - # s.compiler_flags = '-DOS_OBJECT_USE_OBJC=0' - - # s.resource_bundles = { - # 'TLCorePod' => ['TLCorePod/Assets/*.png'] - # } - - # s.public_header_files = 'Pod/Classes/**/*.h' - # s.frameworks = 'UIKit', 'MapKit' - # s.dependency 'AFNetworking', '~> 2.3' - - s.dependency 'gRPC', '1.49.0' s.dependency 'Protobuf', '3.22.0' s.dependency 'gRPC-Core', '1.49.0' @@ -69,16 +25,20 @@ TODO: Add long description of the pod here. s.dependency 'TronWalletWeb3Swift', '1.0.0' s.dependency 'TronWalletABI', '1.0.0' s.dependency 'TronWalletKeystore', '1.0.1' - - s.subspec 'no-arc' do |sp| - sp.source_files = "tronlink-iOS-core/Classes/gRPC/core/contract/SmartContract.pbobjc.{h,m}", - "tronlink-iOS-core/Classes/gRPC/google/api/Annotations.pbobjc.{h,m}", - "tronlink-iOS-core/Classes/gRPC/core/Tron.pbobjc.{h,m}", - "tronlink-iOS-core/Classes/gRPC/core/contract/Common.pbobjc.{h,m}", - "tronlink-iOS-core/Classes/gRPC/api/Zksnark.pbobjc.{h,m}", - "tronlink-iOS-core/Classes/gRPC/google/protobuf/Descriptor.pbobjc.{h,m}", - "tronlink-iOS-core/Classes/gRPC/api/Api_Tron.pbobjc.{h,m}" - sp.requires_arc = false - end - + + s.requires_arc = false + s.requires_arc = [ "tronlink-iOS-core/Classes/gRPC/google/api/HTTP.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/core/Discover.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/core/TronInventoryItems.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/core/contract/AccountContract.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/core/contract/AssetIssueContract.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/core/contract/BalanceContract.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/core/contract/ExchangeContract.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/core/contract/MarketContract.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/core/contract/ProposalContract.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/core/contract/ShieldContract.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/core/contract/StorageContract.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/core/contract/VoteAssetContract.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/core/contract/WitnessContract.pbobjc.m", + "tronlink-iOS-core/Classes/gRPC/Api.pbrpc.m"] end