Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 5a5a65e

Browse files
committed
Bugfix: Renamed bundles to inloopx ones.
Fixes #79
1 parent a4b3cb2 commit 5a5a65e

File tree

7 files changed

+256
-235
lines changed

7 files changed

+256
-235
lines changed

Example/Podfile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
use_frameworks!
22

33
target 'Styles_Example' do
4-
pod 'Styles', :path => '../', :testspecs => ['Tests']
4+
pod 'Styles', :path => '../', :testspecs => ['Tests']
5+
end
6+
7+
post_install do |installer|
8+
bundle_id = 'com.inloopx.${PRODUCT_NAME}'
9+
10+
directory = installer.config.project_pods_root + 'Target Support Files/'
11+
Dir.foreach(directory) do |path|
12+
full_path = directory + path
13+
14+
if File.directory?(full_path)
15+
info_plist_path = full_path + 'Info.plist'
16+
17+
if File.exist?(info_plist_path)
18+
text = File.read(info_plist_path)
19+
new_contents = text.gsub('${PRODUCT_BUNDLE_IDENTIFIER}', bundle_id)
20+
File.open(info_plist_path, "w") { |file|
21+
file.puts new_contents
22+
}
23+
end
24+
end
25+
end
526
end

Example/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ EXTERNAL SOURCES:
1313
SPEC CHECKSUMS:
1414
Styles: 3fc440dfcecb82a37a6c6d887915b04a605d6ff3
1515

16-
PODFILE CHECKSUM: f5341d1bc44d76e5ca1e0d50940004053970d8dc
16+
PODFILE CHECKSUM: c09f254d4ef119e4e1a9bbdbcd7769eaf5da7d22
1717

1818
COCOAPODS: 1.5.3

Example/Pods/Manifest.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Pods.xcodeproj/project.pbxproj

Lines changed: 228 additions & 228 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/Pods-Styles_Example/Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/Styles/Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Styles.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@
697697
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
698698
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
699699
MODULE_NAME = ExampleApp;
700-
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
700+
PRODUCT_BUNDLE_IDENTIFIER = "com.inloopx.styles-example";
701701
PRODUCT_NAME = "$(TARGET_NAME)";
702702
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
703703
SWIFT_VERSION = 4.0;
@@ -713,7 +713,7 @@
713713
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
714714
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
715715
MODULE_NAME = ExampleApp;
716-
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
716+
PRODUCT_BUNDLE_IDENTIFIER = "com.inloopx.styles-example";
717717
PRODUCT_NAME = "$(TARGET_NAME)";
718718
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
719719
SWIFT_VERSION = 4.0;

0 commit comments

Comments
 (0)