build: push podspecs fixups

This commit is contained in:
Ivan Smolin 2023-02-28 16:59:57 +03:00
parent 893f6f191d
commit a9a8ddde9e
5 changed files with 22 additions and 10 deletions

View File

@ -1,3 +1,5 @@
ENV["DEVELOPMENT_INSTALL"] = "true"
target 'TIFoundationUtils' do
platform :ios, 10.0
use_frameworks!

View File

@ -1,3 +1,5 @@
ENV["DEVELOPMENT_INSTALL"] = "true"
target 'TIFoundationUtils' do
platform :ios, 10.0
use_frameworks!

View File

@ -10,8 +10,8 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '10.0'
s.swift_versions = ['5.3']
sources = '**/Sources/**/*'
if File.basename(Dir.getwd) == s.name # installing using :path =>
sources = '**/Sources/**/*.swift'
if ENV["DEVELOPMENT_INSTALL"] # installing using :path =>
s.source_files = sources
s.exclude_files = s.name + '.app'
else

View File

@ -10,8 +10,8 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '9.0'
s.swift_versions = ['5.3']
sources = 'Sources/**/*'
if File.basename(Dir.getwd) == s.name # installing using :path =>
sources = 'Sources/**/*.swift'
if ENV["DEVELOPMENT_INSTALL"] # installing using :path =>
s.source_files = sources
s.exclude_files = s.name + '.app'
else

View File

@ -1,10 +1,18 @@
#!/bin/sh
# Find source dir
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Description:
# Pushes podspec files to Podspecs repo
#
# Parameters:
# $1 - additional parameters for pod repo push command
#
# Required environment variables:
# SRCROOT - path to project folder.
#
# Examples of usage:
# SRCROOT=`pwd` ./project-scripts/push_to_podspecs.sh
#
cd "$DIR"
for module_name in $(cat ordered_modules_list.txt); do
bundle exec pod repo push git@github.com:TouchInstinct/Podspecs ${module_name}/${module_name}.podspec --allow-warnings
for module_name in $(cat ${SRCROOT}/project-scripts/ordered_modules_list.txt); do
bundle exec pod repo push git@github.com:TouchInstinct/Podspecs ${SRCROOT}/${module_name}/${module_name}.podspec "$@" --allow-warnings
done