-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthentication.podspec
More file actions
54 lines (46 loc) · 2.26 KB
/
authentication.podspec
File metadata and controls
54 lines (46 loc) · 2.26 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Pod::Spec.new do |spec|
spec.name = 'Authentication'
spec.version = '1.0.8'
spec.homepage = 'https://github.com/MwaiBanda/Authentication'
spec.source = { :http=> ''}
spec.authors = 'Mwai Banda'
spec.license = 'mit'
spec.summary = 'iOS Firebase Auth Wrapper'
spec.vendored_frameworks = 'build/cocoapods/framework/Authentication.framework'
spec.ios.deployment_target = '13.5'
spec.dependency 'FirebaseCore', '11.6.0'
if !Dir.exist?('build/cocoapods/framework/Authentication.framework') || Dir.empty?('build/cocoapods/framework/Authentication.framework')
raise "
Kotlin framework 'Authentication' doesn't exist yet, so a proper Xcode project can't be generated.
'pod install' should be executed after running ':generateDummyFramework' Gradle task:
./gradlew :generateDummyFramework
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
end
spec.xcconfig = {
'ENABLE_USER_SCRIPT_SANDBOXING' => 'NO',
}
spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => '',
'PRODUCT_MODULE_NAME' => 'Authentication',
}
spec.script_phases = [
{
:name => 'Build Authentication',
: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++'
end