Script for re-branding Countly iOS SDK
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 shell to
ExampleFolder and use the script with a
brand name to replace
Countly and a
class prefix to replace
CLY in all the file names and contents, as shown below:
bash rebrand-countly-ios-sdk.sh AnExampleCompany AEC
If there is a problem with path or arguments 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 the given prefix. This requires changes on Countly Server code too.