diff --git a/app/build.gradle b/app/build.gradle index dffa1ffa..dd0abe75 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,7 +10,7 @@ android { compileSdk 33 defaultConfig { - applicationId "space.taran.arkmemo" + applicationId "dev.arkbuilders.arkmemo" minSdk 26 targetSdk 33 versionCode 1 diff --git a/app/src/androidTest/java/space/taran/arkmemo/ExampleInstrumentedTest.kt b/app/src/androidTest/java/dev/arkbuilders/arkmemo/ExampleInstrumentedTest.kt similarity index 84% rename from app/src/androidTest/java/space/taran/arkmemo/ExampleInstrumentedTest.kt rename to app/src/androidTest/java/dev/arkbuilders/arkmemo/ExampleInstrumentedTest.kt index 589c0d98..5a68a0b1 100644 --- a/app/src/androidTest/java/space/taran/arkmemo/ExampleInstrumentedTest.kt +++ b/app/src/androidTest/java/dev/arkbuilders/arkmemo/ExampleInstrumentedTest.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo +package dev.arkbuilders.arkmemo import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 @@ -19,6 +19,6 @@ class ExampleInstrumentedTest { fun useAppContext() { // Context of the app under test. val appContext = InstrumentationRegistry.getInstrumentation().targetContext - assertEquals("space.taran.arkmemo", appContext.packageName) + assertEquals("dev.arkbuilders.arkmemo", appContext.packageName) } } \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b79e2434..23a832e0 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ + package="dev.arkbuilders.arkmemo"> diff --git a/app/src/main/java/space/taran/arkmemo/App.kt b/app/src/main/java/dev/arkbuilders/arkmemo/App.kt similarity index 92% rename from app/src/main/java/space/taran/arkmemo/App.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/App.kt index 2083b325..ea91b0fc 100644 --- a/app/src/main/java/space/taran/arkmemo/App.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/App.kt @@ -1,7 +1,6 @@ -package space.taran.arkmemo +package dev.arkbuilders.arkmemo import android.app.Application -import android.content.Context import dagger.hilt.android.HiltAndroidApp import dev.arkbuilders.arklib.initArkLib import kotlinx.coroutines.CoroutineScope @@ -13,7 +12,7 @@ import org.acra.data.StringFormat import org.acra.ktx.initAcra import org.acra.sender.HttpSender import dev.arkbuilders.arkfilepicker.folders.FoldersRepo -import space.taran.arkmemo.space.taran.arkmemo.utils.Config +import dev.arkbuilders.arkmemo.utils.Config @HiltAndroidApp class App: Application() { diff --git a/app/src/main/java/space/taran/arkmemo/contracts/PermissionContract.kt b/app/src/main/java/dev/arkbuilders/arkmemo/contracts/PermissionContract.kt similarity index 86% rename from app/src/main/java/space/taran/arkmemo/contracts/PermissionContract.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/contracts/PermissionContract.kt index 321f35d9..6ef6385a 100644 --- a/app/src/main/java/space/taran/arkmemo/contracts/PermissionContract.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/contracts/PermissionContract.kt @@ -1,6 +1,5 @@ -package space.taran.arkmemo.contracts +package dev.arkbuilders.arkmemo.contracts -import android.app.Activity import android.content.Context import android.content.Intent import android.net.Uri @@ -9,7 +8,6 @@ import android.os.Environment import android.provider.Settings import androidx.activity.result.contract.ActivityResultContract import androidx.annotation.RequiresApi -import space.taran.arkmemo.files.FilePicker class PermissionContract: ActivityResultContract() { diff --git a/app/src/main/java/space/taran/arkmemo/data/ResourceMeta.kt b/app/src/main/java/dev/arkbuilders/arkmemo/data/ResourceMeta.kt similarity index 86% rename from app/src/main/java/space/taran/arkmemo/data/ResourceMeta.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/data/ResourceMeta.kt index d165bd32..47027382 100644 --- a/app/src/main/java/space/taran/arkmemo/data/ResourceMeta.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/data/ResourceMeta.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo.data +package dev.arkbuilders.arkmemo.data import dev.arkbuilders.arklib.ResourceId import java.nio.file.attribute.FileTime diff --git a/app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepo.kt b/app/src/main/java/dev/arkbuilders/arkmemo/data/repositories/TextNotesRepo.kt similarity index 73% rename from app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepo.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/data/repositories/TextNotesRepo.kt index 18e8144d..fe653de8 100644 --- a/app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepo.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/data/repositories/TextNotesRepo.kt @@ -1,7 +1,7 @@ -package space.taran.arkmemo.data.repositories +package dev.arkbuilders.arkmemo.data.repositories import kotlinx.coroutines.CoroutineScope -import space.taran.arkmemo.models.TextNote +import dev.arkbuilders.arkmemo.models.TextNote import java.nio.file.Path interface TextNotesRepo { diff --git a/app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepoImpl.kt b/app/src/main/java/dev/arkbuilders/arkmemo/data/repositories/TextNotesRepoImpl.kt similarity index 94% rename from app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepoImpl.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/data/repositories/TextNotesRepoImpl.kt index a5e08123..0477f7cf 100644 --- a/app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepoImpl.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/data/repositories/TextNotesRepoImpl.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo.data.repositories +package dev.arkbuilders.arkmemo.data.repositories import android.util.Log import dev.arkbuilders.arklib.ResourceId @@ -10,8 +10,8 @@ import dev.arkbuilders.arklib.user.properties.PropertiesStorageRepo import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext -import space.taran.arkmemo.data.ResourceMeta -import space.taran.arkmemo.models.TextNote +import dev.arkbuilders.arkmemo.data.ResourceMeta +import dev.arkbuilders.arkmemo.models.TextNote import java.nio.file.Files import java.nio.file.Path import javax.inject.Inject @@ -69,7 +69,7 @@ class TextNotesRepoImpl @Inject constructor(): TextNotesRepo { size ) val titles = propertiesStorage.getProperties(id).titles - val content = TextNote.Content(titles.elementAt(0), data.toString()) + val content = TextNote.Content(titles.elementAtOrNull(0) ?: "", data.toString()) val note = TextNote(content, meta) notes.add(note) } diff --git a/app/src/main/java/space/taran/arkmemo/di/PreferencesModule.kt b/app/src/main/java/dev/arkbuilders/arkmemo/di/PreferencesModule.kt similarity index 65% rename from app/src/main/java/space/taran/arkmemo/di/PreferencesModule.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/di/PreferencesModule.kt index e28e3d80..84a2ffad 100644 --- a/app/src/main/java/space/taran/arkmemo/di/PreferencesModule.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/di/PreferencesModule.kt @@ -1,11 +1,11 @@ -package space.taran.arkmemo.di +package dev.arkbuilders.arkmemo.di import dagger.Binds import dagger.Module import dagger.hilt.InstallIn import dagger.hilt.components.SingletonComponent -import space.taran.arkmemo.preferences.MemoPreferences -import space.taran.arkmemo.preferences.MemoPreferencesImpl +import dev.arkbuilders.arkmemo.preferences.MemoPreferences +import dev.arkbuilders.arkmemo.preferences.MemoPreferencesImpl @InstallIn(SingletonComponent::class) @Module diff --git a/app/src/main/java/space/taran/arkmemo/di/RepositoryModule.kt b/app/src/main/java/dev/arkbuilders/arkmemo/di/RepositoryModule.kt similarity index 63% rename from app/src/main/java/space/taran/arkmemo/di/RepositoryModule.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/di/RepositoryModule.kt index a4fadb03..6cfadbe1 100644 --- a/app/src/main/java/space/taran/arkmemo/di/RepositoryModule.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/di/RepositoryModule.kt @@ -1,11 +1,11 @@ -package space.taran.arkmemo.di +package dev.arkbuilders.arkmemo.di import dagger.Binds import dagger.Module import dagger.hilt.InstallIn import dagger.hilt.components.SingletonComponent -import space.taran.arkmemo.data.repositories.TextNotesRepo -import space.taran.arkmemo.data.repositories.TextNotesRepoImpl +import dev.arkbuilders.arkmemo.data.repositories.TextNotesRepo +import dev.arkbuilders.arkmemo.data.repositories.TextNotesRepoImpl @InstallIn(SingletonComponent::class) diff --git a/app/src/main/java/space/taran/arkmemo/files/FilePicker.kt b/app/src/main/java/dev/arkbuilders/arkmemo/files/FilePicker.kt similarity index 95% rename from app/src/main/java/space/taran/arkmemo/files/FilePicker.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/files/FilePicker.kt index e498e45b..1b7f2598 100644 --- a/app/src/main/java/space/taran/arkmemo/files/FilePicker.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/files/FilePicker.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo.files +package dev.arkbuilders.arkmemo.files import android.Manifest import android.content.Context @@ -13,8 +13,8 @@ import androidx.fragment.app.FragmentManager import dev.arkbuilders.arkfilepicker.ArkFilePickerConfig import dev.arkbuilders.arkfilepicker.presentation.filepicker.ArkFilePickerFragment import dev.arkbuilders.arkfilepicker.presentation.filepicker.ArkFilePickerMode -import space.taran.arkmemo.BuildConfig -import space.taran.arkmemo.R +import dev.arkbuilders.arkmemo.BuildConfig +import dev.arkbuilders.arkmemo.R class FilePicker private constructor(){ companion object{ diff --git a/app/src/main/java/space/taran/arkmemo/files/parsers/JsonParser.kt b/app/src/main/java/dev/arkbuilders/arkmemo/files/parsers/JsonParser.kt similarity index 76% rename from app/src/main/java/space/taran/arkmemo/files/parsers/JsonParser.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/files/parsers/JsonParser.kt index ab1e5282..b88f9c28 100644 --- a/app/src/main/java/space/taran/arkmemo/files/parsers/JsonParser.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/files/parsers/JsonParser.kt @@ -1,8 +1,7 @@ -package space.taran.arkmemo.files.parsers +package dev.arkbuilders.arkmemo.files.parsers -import android.graphics.Path import com.google.gson.Gson -import space.taran.arkmemo.models.TextNote +import dev.arkbuilders.arkmemo.models.TextNote class JsonParser { companion object{ diff --git a/app/src/main/java/space/taran/arkmemo/models/TextNote.kt b/app/src/main/java/dev/arkbuilders/arkmemo/models/TextNote.kt similarity index 80% rename from app/src/main/java/space/taran/arkmemo/models/TextNote.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/models/TextNote.kt index b0e3f726..4a4a74f5 100644 --- a/app/src/main/java/space/taran/arkmemo/models/TextNote.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/models/TextNote.kt @@ -1,8 +1,8 @@ -package space.taran.arkmemo.models +package dev.arkbuilders.arkmemo.models import android.os.Parcelable import kotlinx.parcelize.IgnoredOnParcel -import space.taran.arkmemo.data.ResourceMeta +import dev.arkbuilders.arkmemo.data.ResourceMeta import kotlinx.parcelize.Parcelize @Parcelize diff --git a/app/src/main/java/space/taran/arkmemo/preferences/MemoPreferences.kt b/app/src/main/java/dev/arkbuilders/arkmemo/preferences/MemoPreferences.kt similarity index 77% rename from app/src/main/java/space/taran/arkmemo/preferences/MemoPreferences.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/preferences/MemoPreferences.kt index b35a3f87..4a268aa9 100644 --- a/app/src/main/java/space/taran/arkmemo/preferences/MemoPreferences.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/preferences/MemoPreferences.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo.preferences +package dev.arkbuilders.arkmemo.preferences import java.nio.file.Path diff --git a/app/src/main/java/space/taran/arkmemo/preferences/MemoPreferencesImpl.kt b/app/src/main/java/dev/arkbuilders/arkmemo/preferences/MemoPreferencesImpl.kt similarity index 96% rename from app/src/main/java/space/taran/arkmemo/preferences/MemoPreferencesImpl.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/preferences/MemoPreferencesImpl.kt index 0011bf69..0b02a0d2 100644 --- a/app/src/main/java/space/taran/arkmemo/preferences/MemoPreferencesImpl.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/preferences/MemoPreferencesImpl.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo.preferences +package dev.arkbuilders.arkmemo.preferences import android.content.Context import android.content.Context.MODE_PRIVATE diff --git a/app/src/main/java/space/taran/arkmemo/ui/activities/MainActivity.kt b/app/src/main/java/dev/arkbuilders/arkmemo/ui/activities/MainActivity.kt similarity index 91% rename from app/src/main/java/space/taran/arkmemo/ui/activities/MainActivity.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/ui/activities/MainActivity.kt index f49928b0..4cc0b734 100644 --- a/app/src/main/java/space/taran/arkmemo/ui/activities/MainActivity.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/ui/activities/MainActivity.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo.ui.activities +package dev.arkbuilders.arkmemo.ui.activities import android.content.ClipboardManager import android.content.Context @@ -15,14 +15,14 @@ import androidx.fragment.app.Fragment import by.kirich1409.viewbindingdelegate.viewBinding import dagger.hilt.android.AndroidEntryPoint import dev.arkbuilders.arkfilepicker.presentation.onArkPathPicked -import space.taran.arkmemo.R -import space.taran.arkmemo.contracts.PermissionContract -import space.taran.arkmemo.databinding.ActivityMainBinding -import space.taran.arkmemo.files.FilePicker -import space.taran.arkmemo.preferences.MemoPreferences -import space.taran.arkmemo.ui.fragments.EditTextNotesFragment -import space.taran.arkmemo.ui.fragments.SettingsFragment -import space.taran.arkmemo.ui.fragments.TextNotesFragment +import dev.arkbuilders.arkmemo.R +import dev.arkbuilders.arkmemo.contracts.PermissionContract +import dev.arkbuilders.arkmemo.databinding.ActivityMainBinding +import dev.arkbuilders.arkmemo.files.FilePicker +import dev.arkbuilders.arkmemo.preferences.MemoPreferences +import dev.arkbuilders.arkmemo.ui.fragments.EditTextNotesFragment +import dev.arkbuilders.arkmemo.ui.fragments.SettingsFragment +import dev.arkbuilders.arkmemo.ui.fragments.TextNotesFragment import javax.inject.Inject @AndroidEntryPoint diff --git a/app/src/main/java/space/taran/arkmemo/ui/adapters/TextNotesListAdapter.kt b/app/src/main/java/dev/arkbuilders/arkmemo/ui/adapters/TextNotesListAdapter.kt similarity index 83% rename from app/src/main/java/space/taran/arkmemo/ui/adapters/TextNotesListAdapter.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/ui/adapters/TextNotesListAdapter.kt index c51c5119..54f6569f 100644 --- a/app/src/main/java/space/taran/arkmemo/ui/adapters/TextNotesListAdapter.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/ui/adapters/TextNotesListAdapter.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo.ui.adapters +package dev.arkbuilders.arkmemo.ui.adapters import android.view.LayoutInflater import android.view.View @@ -7,13 +7,13 @@ import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.FragmentManager import androidx.recyclerview.widget.RecyclerView import by.kirich1409.viewbindingdelegate.viewBinding -import space.taran.arkmemo.R -import space.taran.arkmemo.databinding.TextNoteBinding -import space.taran.arkmemo.models.TextNote -import space.taran.arkmemo.ui.activities.MainActivity -import space.taran.arkmemo.ui.activities.replaceFragment -import space.taran.arkmemo.ui.dialogs.NoteDeleteDialogFragment -import space.taran.arkmemo.ui.fragments.EditTextNotesFragment +import dev.arkbuilders.arkmemo.R +import dev.arkbuilders.arkmemo.databinding.TextNoteBinding +import dev.arkbuilders.arkmemo.models.TextNote +import dev.arkbuilders.arkmemo.ui.activities.MainActivity +import dev.arkbuilders.arkmemo.ui.activities.replaceFragment +import dev.arkbuilders.arkmemo.ui.dialogs.NoteDeleteDialogFragment +import dev.arkbuilders.arkmemo.ui.fragments.EditTextNotesFragment class TextNotesListAdapter(private val notes: List): RecyclerView.Adapter() { diff --git a/app/src/main/java/space/taran/arkmemo/ui/dialogs/NoteDeleteDialogFragment.kt b/app/src/main/java/dev/arkbuilders/arkmemo/ui/dialogs/NoteDeleteDialogFragment.kt similarity index 87% rename from app/src/main/java/space/taran/arkmemo/ui/dialogs/NoteDeleteDialogFragment.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/ui/dialogs/NoteDeleteDialogFragment.kt index 248585d4..4e95fe55 100644 --- a/app/src/main/java/space/taran/arkmemo/ui/dialogs/NoteDeleteDialogFragment.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/ui/dialogs/NoteDeleteDialogFragment.kt @@ -1,13 +1,13 @@ -package space.taran.arkmemo.ui.dialogs +package dev.arkbuilders.arkmemo.ui.dialogs import android.app.Dialog import android.os.Bundle import android.widget.Toast import androidx.appcompat.app.AlertDialog import androidx.fragment.app.DialogFragment -import space.taran.arkmemo.R -import space.taran.arkmemo.models.TextNote -import space.taran.arkmemo.ui.fragments.deleteNote +import dev.arkbuilders.arkmemo.R +import dev.arkbuilders.arkmemo.models.TextNote +import dev.arkbuilders.arkmemo.ui.fragments.deleteNote class NoteDeleteDialogFragment: DialogFragment() { diff --git a/app/src/main/java/space/taran/arkmemo/ui/fragments/EditTextNotesFragment.kt b/app/src/main/java/dev/arkbuilders/arkmemo/ui/fragments/EditTextNotesFragment.kt similarity index 92% rename from app/src/main/java/space/taran/arkmemo/ui/fragments/EditTextNotesFragment.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/ui/fragments/EditTextNotesFragment.kt index 2abd0067..c4c48517 100644 --- a/app/src/main/java/space/taran/arkmemo/ui/fragments/EditTextNotesFragment.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/ui/fragments/EditTextNotesFragment.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo.ui.fragments +package dev.arkbuilders.arkmemo.ui.fragments import android.os.Bundle import android.text.Editable @@ -9,11 +9,11 @@ import androidx.fragment.app.Fragment import androidx.fragment.app.activityViewModels import by.kirich1409.viewbindingdelegate.viewBinding import dagger.hilt.android.AndroidEntryPoint -import space.taran.arkmemo.R -import space.taran.arkmemo.ui.viewmodels.NotesViewModel -import space.taran.arkmemo.databinding.FragmentEditTextNotesBinding -import space.taran.arkmemo.models.TextNote -import space.taran.arkmemo.ui.activities.MainActivity +import dev.arkbuilders.arkmemo.R +import dev.arkbuilders.arkmemo.ui.viewmodels.NotesViewModel +import dev.arkbuilders.arkmemo.databinding.FragmentEditTextNotesBinding +import dev.arkbuilders.arkmemo.models.TextNote +import dev.arkbuilders.arkmemo.ui.activities.MainActivity @AndroidEntryPoint class EditTextNotesFragment: Fragment(R.layout.fragment_edit_text_notes) { diff --git a/app/src/main/java/space/taran/arkmemo/ui/fragments/NotesFragment.kt b/app/src/main/java/dev/arkbuilders/arkmemo/ui/fragments/NotesFragment.kt similarity index 87% rename from app/src/main/java/space/taran/arkmemo/ui/fragments/NotesFragment.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/ui/fragments/NotesFragment.kt index fcb4cfcb..863240b1 100644 --- a/app/src/main/java/space/taran/arkmemo/ui/fragments/NotesFragment.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/ui/fragments/NotesFragment.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo.ui.fragments +package dev.arkbuilders.arkmemo.ui.fragments import android.os.Bundle import android.view.View @@ -15,14 +15,14 @@ import by.kirich1409.viewbindingdelegate.viewBinding import com.google.android.material.floatingactionbutton.FloatingActionButton import dagger.hilt.android.AndroidEntryPoint import kotlinx.coroutines.launch -import space.taran.arkmemo.R -import space.taran.arkmemo.ui.viewmodels.NotesViewModel -import space.taran.arkmemo.databinding.FragmentTextNotesBinding -import space.taran.arkmemo.models.TextNote -import space.taran.arkmemo.ui.activities.MainActivity -import space.taran.arkmemo.ui.activities.getTextFromClipBoard -import space.taran.arkmemo.ui.activities.replaceFragment -import space.taran.arkmemo.ui.adapters.TextNotesListAdapter +import dev.arkbuilders.arkmemo.R +import dev.arkbuilders.arkmemo.ui.viewmodels.NotesViewModel +import dev.arkbuilders.arkmemo.databinding.FragmentTextNotesBinding +import dev.arkbuilders.arkmemo.models.TextNote +import dev.arkbuilders.arkmemo.ui.activities.MainActivity +import dev.arkbuilders.arkmemo.ui.activities.getTextFromClipBoard +import dev.arkbuilders.arkmemo.ui.activities.replaceFragment +import dev.arkbuilders.arkmemo.ui.adapters.TextNotesListAdapter @AndroidEntryPoint class TextNotesFragment: Fragment(R.layout.fragment_text_notes) { diff --git a/app/src/main/java/space/taran/arkmemo/ui/fragments/SettingsFragment.kt b/app/src/main/java/dev/arkbuilders/arkmemo/ui/fragments/SettingsFragment.kt similarity index 85% rename from app/src/main/java/space/taran/arkmemo/ui/fragments/SettingsFragment.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/ui/fragments/SettingsFragment.kt index 020b164e..11aca19d 100644 --- a/app/src/main/java/space/taran/arkmemo/ui/fragments/SettingsFragment.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/ui/fragments/SettingsFragment.kt @@ -1,15 +1,15 @@ -package space.taran.arkmemo.ui.fragments +package dev.arkbuilders.arkmemo.ui.fragments import android.os.Bundle import android.view.View import androidx.preference.PreferenceFragmentCompat import dagger.hilt.android.AndroidEntryPoint import dev.arkbuilders.arkfilepicker.presentation.onArkPathPicked -import space.taran.arkmemo.R -import space.taran.arkmemo.files.FilePicker -import space.taran.arkmemo.preferences.MemoPreferences -import space.taran.arkmemo.ui.activities.MainActivity -import space.taran.arkmemo.ui.views.PathPreference +import dev.arkbuilders.arkmemo.R +import dev.arkbuilders.arkmemo.files.FilePicker +import dev.arkbuilders.arkmemo.preferences.MemoPreferences +import dev.arkbuilders.arkmemo.ui.activities.MainActivity +import dev.arkbuilders.arkmemo.ui.views.PathPreference import javax.inject.Inject diff --git a/app/src/main/java/space/taran/arkmemo/ui/viewmodels/NotesViewModel.kt b/app/src/main/java/dev/arkbuilders/arkmemo/ui/viewmodels/NotesViewModel.kt similarity index 90% rename from app/src/main/java/space/taran/arkmemo/ui/viewmodels/NotesViewModel.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/ui/viewmodels/NotesViewModel.kt index 882a3b61..27946c5b 100644 --- a/app/src/main/java/space/taran/arkmemo/ui/viewmodels/NotesViewModel.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/ui/viewmodels/NotesViewModel.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo.ui.viewmodels +package dev.arkbuilders.arkmemo.ui.viewmodels import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope @@ -7,9 +7,9 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.launch import kotlinx.coroutines.withContext -import space.taran.arkmemo.data.repositories.TextNotesRepo -import space.taran.arkmemo.models.TextNote -import space.taran.arkmemo.preferences.MemoPreferences +import dev.arkbuilders.arkmemo.data.repositories.TextNotesRepo +import dev.arkbuilders.arkmemo.models.TextNote +import dev.arkbuilders.arkmemo.preferences.MemoPreferences import javax.inject.Inject @HiltViewModel diff --git a/app/src/main/java/space/taran/arkmemo/ui/views/PathPreference.kt b/app/src/main/java/dev/arkbuilders/arkmemo/ui/views/PathPreference.kt similarity index 91% rename from app/src/main/java/space/taran/arkmemo/ui/views/PathPreference.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/ui/views/PathPreference.kt index f3e13d19..9f7b01fa 100644 --- a/app/src/main/java/space/taran/arkmemo/ui/views/PathPreference.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/ui/views/PathPreference.kt @@ -1,11 +1,11 @@ -package space.taran.arkmemo.ui.views +package dev.arkbuilders.arkmemo.ui.views import android.content.Context import android.util.AttributeSet import android.widget.TextView import androidx.preference.Preference import androidx.preference.PreferenceViewHolder -import space.taran.arkmemo.R +import dev.arkbuilders.arkmemo.R class PathPreference(context: Context, attrs: AttributeSet): Preference(context, attrs) { private var title: TextView? = null diff --git a/app/src/main/java/space/taran/arkmemo/utils/Config.kt b/app/src/main/java/dev/arkbuilders/arkmemo/utils/Config.kt similarity index 88% rename from app/src/main/java/space/taran/arkmemo/utils/Config.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/utils/Config.kt index 795735a7..f2ce89d5 100644 --- a/app/src/main/java/space/taran/arkmemo/utils/Config.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/utils/Config.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo.space.taran.arkmemo.utils +package dev.arkbuilders.arkmemo.utils import android.content.Context import com.simplemobiletools.commons.helpers.BaseConfig diff --git a/app/src/main/java/space/taran/arkmemo/utils/Constants.kt b/app/src/main/java/dev/arkbuilders/arkmemo/utils/Constants.kt similarity index 59% rename from app/src/main/java/space/taran/arkmemo/utils/Constants.kt rename to app/src/main/java/dev/arkbuilders/arkmemo/utils/Constants.kt index 4938c638..ff46b863 100644 --- a/app/src/main/java/space/taran/arkmemo/utils/Constants.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/utils/Constants.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo.space.taran.arkmemo.utils +package dev.arkbuilders.arkmemo.utils // shared preferences const val CRASH_REPORT_ENABLE = "crash_report_enable" diff --git a/app/src/main/res/xml/root_preferences.xml b/app/src/main/res/xml/root_preferences.xml index 2b7f2d51..15479b2e 100644 --- a/app/src/main/res/xml/root_preferences.xml +++ b/app/src/main/res/xml/root_preferences.xml @@ -1,7 +1,7 @@ - diff --git a/app/src/test/java/space/taran/arkmemo/ExampleUnitTest.kt b/app/src/test/java/dev/arkbuilders/arkmemo/ExampleUnitTest.kt similarity index 90% rename from app/src/test/java/space/taran/arkmemo/ExampleUnitTest.kt rename to app/src/test/java/dev/arkbuilders/arkmemo/ExampleUnitTest.kt index 7a5c8c8d..c293eaaa 100644 --- a/app/src/test/java/space/taran/arkmemo/ExampleUnitTest.kt +++ b/app/src/test/java/dev/arkbuilders/arkmemo/ExampleUnitTest.kt @@ -1,4 +1,4 @@ -package space.taran.arkmemo +package dev.arkbuilders.arkmemo import org.junit.Test