Skip to content

Commit

Permalink
Bugfix: Renamed bundles to inloopx ones.
Browse files Browse the repository at this point in the history
Fixes #79
  • Loading branch information
radimhalfar committed Aug 17, 2018
1 parent a4b3cb2 commit cb305d8
Show file tree
Hide file tree
Showing 7 changed files with 278 additions and 257 deletions.
23 changes: 22 additions & 1 deletion Example/Podfile
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:rfc1034identifier)'

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
2 changes: 1 addition & 1 deletion Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Styles: 3fc440dfcecb82a37a6c6d887915b04a605d6ff3

PODFILE CHECKSUM: f5341d1bc44d76e5ca1e0d50940004053970d8dc
PODFILE CHECKSUM: db7b31f00d4e65c6696abf0d2bb41bfe66906d6d

COCOAPODS: 1.5.3
2 changes: 1 addition & 1 deletion Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

462 changes: 231 additions & 231 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 20 additions & 20 deletions Example/Pods/Target Support Files/Styles/Info.plist

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Styles.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_BUNDLE_IDENTIFIER = "com.inloopx.styles-example";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
Expand All @@ -713,7 +713,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_BUNDLE_IDENTIFIER = "com.inloopx.styles-example";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
Expand Down

0 comments on commit cb305d8

Please sign in to comment.