-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathpowersync.podspec
More file actions
39 lines (35 loc) · 1.63 KB
/
Copy pathpowersync.podspec
File metadata and controls
39 lines (35 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Pod::Spec.new do |spec|
spec.name = 'PowerSyncKotlin'
spec.version = '0.1'
spec.homepage = 'https://www.powersync.com'
spec.source = { :http=> ''}
spec.authors = 'JOURNEYAPPS'
spec.license = 'Apache-2.0'
spec.summary = 'PowerSync SDK for Swift'
spec.vendored_frameworks = 'build/cocoapods/framework/PowerSyncKotlin.framework'
spec.ios.deployment_target = '13.5'
spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':internal:PowerSyncKotlin',
'PRODUCT_MODULE_NAME' => 'PowerSyncKotlin',
}
spec.script_phases = [
{
:name => 'Build PowerSync Swift',
: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
}
]
spec.libraries = 'c++', 'sqlite3'
end