- Rename folder of project.
- Rename package [baseproject] in app module.
- Rename applicationId in config.gradle.
- Rename rootProject.name in settings.gradle. Tap sync.
- Rename package attribute in Manifest.
- Rename app name in strings.xml.
- Check tag in main_graph (of NavComponent) for any errors.
- Delete additional package (it contains materials (pic and etc) for the github).
- Delete Readme.md (if you need).
- Stop Gradle Daemons + Delete cache directory + Delete build directory.
./gradlew --stop && rm -rf ~/.gradle/caches/build-cache/ && ./gradlew clean
- If you don't have gradle wrapper - install it:
gradle wrapper
fun bubbleSort(list: MutableList<Int>) {
do {
var isSorted = true
for (i in 1 until list.size) {
if (list[i] < list[i - 1]) {
val temp = list[i]
list[i] = list[i - 1]
list[i - 1] = temp
isSorted = false
fun quickSort(list: MutableList<Int>, min: Int = 0, max: Int = list.size - 1) {
// завершить выполнение, если длина массива равна 0
if (list.size == 0) return
// завершить выполнение если уже нечего делить
if (min >= max) return
// выбрать опорный элемент
- Setup git-filter-repo from https://github.com/newren/git-filter-repo
- Setup replace file with strings to replace and place it to your project root package: replaces.txt
password_1==>0001
password_2==>0002
password_3==>0003
- Replce your strings locally by do this command in your project path: git filter-repo --replace-text replaces.txt --force