This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: Renamed bundles to inloopx ones.
Fixes #79
- Loading branch information
1 parent
a4b3cb2
commit 5a5a65e
Showing
7 changed files
with
256 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
use_frameworks! | ||
|
||
target 'Styles_Example' do | ||
pod 'Styles', :path => '../', :testspecs => ['Tests'] | ||
pod 'Styles', :path => '../', :testspecs => ['Tests'] | ||
end | ||
|
||
post_install do |installer| | ||
bundle_id = 'com.inloopx.${PRODUCT_NAME}' | ||
|
||
directory = installer.config.project_pods_root + 'Target Support Files/' | ||
Dir.foreach(directory) do |path| | ||
full_path = directory + path | ||
|
||
if File.directory?(full_path) | ||
info_plist_path = full_path + 'Info.plist' | ||
|
||
if File.exist?(info_plist_path) | ||
text = File.read(info_plist_path) | ||
new_contents = text.gsub('${PRODUCT_BUNDLE_IDENTIFIER}', bundle_id) | ||
File.open(info_plist_path, "w") { |file| | ||
file.puts new_contents | ||
} | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
Example/Pods/Target Support Files/Pods-Styles_Example/Info.plist
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters