Simple php script to change android app package name
- Open terminal in Android app project directory
cd <Android app Project>
- Run script
php <PATH TO refactor_pkg.php>/refactor_pkg.php
- Rename
app/src/*
folders according to your new package name - Optionally: add new
google-services.json
- Script looks for
find
string your enter - Replaces with
replace
string your enter - Script also deletes
google-services.json
file and.idea/
,.gradle/
,build/
folders