require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) # Not named "MyidSdk": that differs from the vendor pod "MyIdSDK" only by case, # and on a case-insensitive filesystem both targets share one build directory, # leaving this pod's generated Swift header where ObjC++ cannot import it. Pod::Spec.new do |s| s.name = "RNMyidSdk" s.version = package["version"] s.summary = package["description"] s.homepage = package["homepage"] s.license = package["license"] s.authors = package["author"] s.platforms = { :ios => min_ios_version_supported } s.source = { :git => "https://gitlab.aigroup.uz/myid-public-code/myid-rn-sdk.git", :tag => "#{s.version}" } s.source_files = "ios/**/*.{h,m,mm,swift,cpp}" s.private_header_files = "ios/**/*.h" s.dependency "MyIdSDK", "3.1.3" s.swift_version = "5.0" # Lets the ObjC++ layer import the generated RNMyidSdk-Swift.h. s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" } install_modules_dependencies(s) end