You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.5 KiB
39 lines
1.5 KiB
Pod::Spec.new do |spec| |
|
spec.name = 'shared' |
|
spec.version = '1.11.3' |
|
spec.homepage = 'http://' |
|
spec.source = { :http=> ''} |
|
spec.authors = '' |
|
spec.license = '' |
|
spec.summary = 'Shared code for Ballast app' |
|
spec.vendored_frameworks = 'build/cocoapods/framework/shared.framework' |
|
spec.libraries = 'c++' |
|
spec.ios.deployment_target = '11' |
|
|
|
|
|
spec.pod_target_xcconfig = { |
|
'KOTLIN_PROJECT_PATH' => ':shared', |
|
'PRODUCT_MODULE_NAME' => 'shared', |
|
} |
|
|
|
spec.script_phases = [ |
|
{ |
|
:name => 'Build shared', |
|
:execution_position => :before_compile, |
|
:shell_path => '/bin/sh', |
|
:script => <<-SCRIPT |
|
if [ "YES" = "$OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED" ]; then |
|
echo "Skipping Gradle build task invocation due to OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED environment variable set to \"YES\"" |
|
exit 0 |
|
fi |
|
set -ev |
|
REPO_ROOT="$PODS_TARGET_SRCROOT" |
|
"$REPO_ROOT/../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework \ |
|
-Pkotlin.native.cocoapods.platform=$PLATFORM_NAME \ |
|
-Pkotlin.native.cocoapods.archs="$ARCHS" \ |
|
-Pkotlin.native.cocoapods.configuration="$CONFIGURATION" |
|
SCRIPT |
|
} |
|
] |
|
|
|
end |