Script for re-branding Countly iOS SDK
#Usage Copy the script 'rebrand-countly-ios-sdk.sh' next to 'countly-ios-sdk' folder like below:
├── ExampleFolder ├── countly-ios-sdk └── rebrand-countly-ios-sdk.sh
And open a Terminal to parent folder and use script with
brand name to replace
Countly and a
class prefix to replace
CLY in all the files.
bash rebrand-countly-ios-sdk.sh AnExampleCompany AEC
If there is a problem with path or parameters you will get a warning. Otherwise, if everything is fine, you will be seeing these logs:
Deleting unneccessary files... done. Renaming files... done. Replacing file contents... done. Replacing prefixes... done. Deleting count.ly URLs... done. Deleting licence... done. Renaming folder... done. All done.
After that you can use re-branded Countly iOS SDK in your project.
NOTE: Reserved event names (
[CLY]_view etc.) will also be replaced with given prefix. This requires changes on Countly Server code too.