-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBREnvironment.podspec
45 lines (36 loc) · 2.01 KB
/
BREnvironment.podspec
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
Pod::Spec.new do |s|
s.name = "BREnvironment"
s.version = "1.3.0"
s.summary = "A little Objective-C helper class for supporting different deployment environments during development."
s.description = <<-DESC
Provides an easy way to define *environment* settings in a
**Environment.plist** file. For example you might define a
*baseURL* as `http://my.awesome.service` for some web service your
app communicates with. During development you might want to have
the app use a *test* server, however, so **BREnvironment**
supports a **LocalEnvironment.plist** file where you can override
that *baseURL* setting to `http://my.crashful.service`.
DESC
s.homepage = "https://github.com/Blue-Rocket/BREnvironment"
s.license = "Apache License, Version 2.0"
s.author = { "Matt Magoffin" => "git+matt@msqr.us" }
s.platform = :ios, "5.0"
s.source = { :git => "https://github.com/Blue-Rocket/BREnvironment.git", :tag => s.version.to_s }
s.source_files = "BREnvironment/*.{h,m}"
s.framework = "Foundation"
s.requires_arc = true
s.prepare_command = <<-CMD
cat <<EOF
You need to add a "Run Script" build phase to any target in your project that
relies on using a LocalEnvironment.plist file. An example script is:
filePath=${SRCROOT}/PathToYourOwn/LocalEnvironment.plist
if [ -e "$filePath" ]; then
cp "$filePath" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/"
echo $filePath copied to ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}
else
echo $filePath not found.
fi
Just change the filePath to match the path to the file you want to use.
EOF
CMD
end