Skip to content

Commit

Permalink
Rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillt committed Jul 26, 2023
1 parent 36aceaa commit 996ce25
Show file tree
Hide file tree
Showing 114 changed files with 500 additions and 500 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ android {
def password = System.getenv("ACRA_PASS") ?: ""
def uri = System.getenv("ACRA_URI") ?: ""
def appVersionName = System.getenv("BRANCH_NAME") ?: "1.0"
applicationId "space.taran.arknavigator"
applicationId "dev.arkbuilders.navigator"
minSdkVersion 26
targetSdkVersion 32
versionCode 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arknavigator
package dev.arkbuilders.navigator

import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
Expand All @@ -17,6 +17,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("space.taran.arknavigator", appContext.packageName)
assertEquals("dev.arkbuilders.navigator", appContext.packageName)
}
}
8 changes: 4 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="space.taran.arknavigator">
package="dev.arkbuilders.navigator">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Expand All @@ -11,7 +11,7 @@
tools:ignore="ScopedStorage" />

<application
android:name="space.taran.arknavigator.ui.App"
android:name="dev.arkbuilders.navigator.ui.App"
android:allowBackup="true"
android:icon="${appIcon}"
android:label="${appLabel}"
Expand All @@ -22,7 +22,7 @@
android:usesCleartextTraffic="true"
tools:replace="android:label">
<activity
android:name="space.taran.arknavigator.ui.activity.MainActivity"
android:name="dev.arkbuilders.navigator.ui.activity.MainActivity"
android:exported="true"
android:windowSoftInputMode="adjustPan">
<intent-filter>
Expand All @@ -32,7 +32,7 @@
</activity>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="space.taran.arknavigator.provider"
android:authorities="dev.arkbuilders.navigator.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
Expand Down
50 changes: 25 additions & 25 deletions app/src/main/java/space/taran/arknavigator/di/AppComponent.kt
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
package space.taran.arknavigator.di
package dev.arkbuilders.navigator.di

import android.content.Context
import dagger.BindsInstance
import dagger.Component
import space.taran.arkfilepicker.folders.FoldersRepo
import space.taran.arknavigator.di.modules.AppModule
import space.taran.arknavigator.di.modules.CiceroneModule
import space.taran.arknavigator.di.modules.RepoModule
import space.taran.arknavigator.mvp.model.backup.StorageBackup
import space.taran.arknavigator.mvp.model.repo.preferences.Preferences
import space.taran.arknavigator.mvp.presenter.FoldersPresenter
import space.taran.arknavigator.mvp.presenter.GalleryPresenter
import space.taran.arknavigator.mvp.presenter.MainPresenter
import space.taran.arknavigator.mvp.presenter.ResourcesPresenter
import space.taran.arknavigator.mvp.presenter.adapter.ResourcesGridPresenter
import space.taran.arknavigator.mvp.presenter.adapter.tagsselector.TagsSelectorPresenter
import space.taran.arknavigator.mvp.presenter.dialog.EditTagsDialogPresenter
import space.taran.arknavigator.mvp.presenter.dialog.SortDialogPresenter
import space.taran.arknavigator.mvp.view.item.FileItemViewHolder
import space.taran.arknavigator.ui.App
import space.taran.arknavigator.ui.activity.MainActivity
import space.taran.arknavigator.ui.adapter.TagsSelectorAdapter
import space.taran.arknavigator.ui.adapter.previewpager.PreviewImageViewHolder
import space.taran.arknavigator.ui.fragments.FoldersFragment
import space.taran.arknavigator.ui.fragments.GalleryFragment
import space.taran.arknavigator.ui.fragments.ResourcesFragment
import space.taran.arknavigator.ui.fragments.SettingsFragment
import space.taran.arknavigator.ui.fragments.dialog.RootPickerDialogFragment
import space.taran.arknavigator.ui.fragments.dialog.TagsSortDialogFragment
import dev.arkbuilders.navigator.di.modules.AppModule
import dev.arkbuilders.navigator.di.modules.CiceroneModule
import dev.arkbuilders.navigator.di.modules.RepoModule
import dev.arkbuilders.navigator.mvp.model.backup.StorageBackup
import dev.arkbuilders.navigator.mvp.model.repo.preferences.Preferences
import dev.arkbuilders.navigator.mvp.presenter.FoldersPresenter
import dev.arkbuilders.navigator.mvp.presenter.GalleryPresenter
import dev.arkbuilders.navigator.mvp.presenter.MainPresenter
import dev.arkbuilders.navigator.mvp.presenter.ResourcesPresenter
import dev.arkbuilders.navigator.mvp.presenter.adapter.ResourcesGridPresenter
import dev.arkbuilders.navigator.mvp.presenter.adapter.tagsselector.TagsSelectorPresenter
import dev.arkbuilders.navigator.mvp.presenter.dialog.EditTagsDialogPresenter
import dev.arkbuilders.navigator.mvp.presenter.dialog.SortDialogPresenter
import dev.arkbuilders.navigator.mvp.view.item.FileItemViewHolder
import dev.arkbuilders.navigator.ui.App
import dev.arkbuilders.navigator.ui.activity.MainActivity
import dev.arkbuilders.navigator.ui.adapter.TagsSelectorAdapter
import dev.arkbuilders.navigator.ui.adapter.previewpager.PreviewImageViewHolder
import dev.arkbuilders.navigator.ui.fragments.FoldersFragment
import dev.arkbuilders.navigator.ui.fragments.GalleryFragment
import dev.arkbuilders.navigator.ui.fragments.ResourcesFragment
import dev.arkbuilders.navigator.ui.fragments.SettingsFragment
import dev.arkbuilders.navigator.ui.fragments.dialog.RootPickerDialogFragment
import dev.arkbuilders.navigator.ui.fragments.dialog.TagsSortDialogFragment
import javax.inject.Singleton

@Singleton
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package space.taran.arknavigator.di.modules
package dev.arkbuilders.navigator.di.modules

import android.content.Context
import dagger.Module
import dagger.Provides
import space.taran.arknavigator.mvp.model.repo.preferences.Preferences
import space.taran.arknavigator.mvp.model.repo.preferences.PreferencesImpl
import space.taran.arknavigator.ui.resource.StringProvider
import dev.arkbuilders.navigator.mvp.model.repo.preferences.Preferences
import dev.arkbuilders.navigator.mvp.model.repo.preferences.PreferencesImpl
import dev.arkbuilders.navigator.ui.resource.StringProvider
import javax.inject.Singleton

@Module
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package space.taran.arknavigator.di.modules
package dev.arkbuilders.navigator.di.modules

import dagger.Module
import dagger.Provides
import javax.inject.Singleton
import ru.terrakok.cicerone.Cicerone
import ru.terrakok.cicerone.NavigatorHolder
import space.taran.arknavigator.navigation.AppRouter
import dev.arkbuilders.navigator.navigation.AppRouter

@Module
class CiceroneModule {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arknavigator.di.modules
package dev.arkbuilders.navigator.di.modules

import android.util.Log
import dagger.Module
Expand All @@ -12,10 +12,10 @@ import space.taran.arklib.domain.index.ResourceIndexRepo
import space.taran.arklib.domain.meta.MetadataStorageRepo
import space.taran.arklib.domain.preview.PreviewStorageRepo
import space.taran.arklib.utils.Constants
import space.taran.arknavigator.mvp.model.repo.preferences.Preferences
import space.taran.arknavigator.mvp.model.repo.scores.ScoreStorageRepo
import space.taran.arknavigator.mvp.model.repo.tags.TagsStorageRepo
import space.taran.arknavigator.utils.LogTags.MAIN
import dev.arkbuilders.navigator.mvp.model.repo.preferences.Preferences
import dev.arkbuilders.navigator.mvp.model.repo.scores.ScoreStorageRepo
import dev.arkbuilders.navigator.mvp.model.repo.tags.TagsStorageRepo
import dev.arkbuilders.navigator.utils.LogTags.MAIN
import javax.inject.Named
import javax.inject.Singleton

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package space.taran.arknavigator.mvp.model.backup
package dev.arkbuilders.navigator.mvp.model.backup

import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import space.taran.arkfilepicker.folders.FoldersRepo
import space.taran.arklib.ArkFiles
import space.taran.arklib.arkFolder
import space.taran.arknavigator.mvp.model.repo.preferences.PreferenceKey
import space.taran.arknavigator.mvp.model.repo.preferences.Preferences
import dev.arkbuilders.navigator.mvp.model.repo.preferences.PreferenceKey
import dev.arkbuilders.navigator.mvp.model.repo.preferences.Preferences
import java.nio.file.Path
import java.time.OffsetDateTime
import java.time.ZoneOffset
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arknavigator.mvp.model.repo.preferences
package dev.arkbuilders.navigator.mvp.model.repo.preferences

import kotlinx.coroutines.flow.Flow

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arknavigator.mvp.model.repo.preferences
package dev.arkbuilders.navigator.mvp.model.repo.preferences

import android.content.Context
import androidx.datastore.preferences.core.Preferences
Expand All @@ -9,7 +9,7 @@ import androidx.datastore.preferences.preferencesDataStore
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.map
import javax.inject.Inject
import space.taran.arknavigator.mvp.model.repo.preferences.Preferences as ArkPreferences
import dev.arkbuilders.navigator.mvp.model.repo.preferences.Preferences as ArkPreferences

class PreferencesImpl @Inject constructor(val context: Context) : ArkPreferences {
private val SHARED_PREFERENCES_KEY = "user_preferences"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package space.taran.arknavigator.mvp.model.repo.scores
package dev.arkbuilders.navigator.mvp.model.repo.scores

import space.taran.arklib.ResourceId
import space.taran.arknavigator.utils.Score
import dev.arkbuilders.navigator.utils.Score

class AggregatedScoreStorage(
private val shards: Collection<ScoreStorage>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package space.taran.arknavigator.mvp.model.repo.scores
package dev.arkbuilders.navigator.mvp.model.repo.scores

import android.util.Log
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import space.taran.arklib.arkFolder
import space.taran.arklib.arkScores
import space.taran.arklib.ResourceId
import space.taran.arknavigator.utils.LogTags.SCORES_STORAGE
import space.taran.arknavigator.utils.Score
import dev.arkbuilders.navigator.utils.LogTags.SCORES_STORAGE
import dev.arkbuilders.navigator.utils.Score
import java.nio.charset.StandardCharsets.UTF_8
import java.nio.file.Files
import java.nio.file.Path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package space.taran.arknavigator.mvp.model.repo.scores
package dev.arkbuilders.navigator.mvp.model.repo.scores

import space.taran.arklib.ResourceId
import space.taran.arknavigator.utils.Score
import dev.arkbuilders.navigator.utils.Score

interface ScoreStorage {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arknavigator.mvp.model.repo.scores
package dev.arkbuilders.navigator.mvp.model.repo.scores

import space.taran.arklib.domain.index.ResourceIndex
import space.taran.arklib.domain.index.RootIndex
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package space.taran.arknavigator.mvp.model.repo.stats
package dev.arkbuilders.navigator.mvp.model.repo.stats

import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.joinAll
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import space.taran.arknavigator.utils.Tag
import dev.arkbuilders.navigator.utils.Tag

class AggregatedStatsStorage(val shards: List<StatsStorage>) : StatsStorage {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arknavigator.mvp.model.repo.stats
package dev.arkbuilders.navigator.mvp.model.repo.stats

import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
Expand All @@ -11,14 +11,14 @@ import kotlinx.coroutines.withContext
import space.taran.arklib.arkFolder
import space.taran.arklib.arkStats
import space.taran.arklib.domain.index.RootIndex
import space.taran.arknavigator.mvp.model.repo.preferences.PreferenceKey
import space.taran.arknavigator.mvp.model.repo.preferences.Preferences
import space.taran.arknavigator.mvp.model.repo.stats.category.StatsCategoryStorage
import space.taran.arknavigator.mvp.model.repo.stats.category.TagLabeledNStorage
import space.taran.arknavigator.mvp.model.repo.stats.category.TagLabeledTSStorage
import space.taran.arknavigator.mvp.model.repo.stats.category.TagQueriedNStorage
import space.taran.arknavigator.mvp.model.repo.stats.category.TagQueriedTSStorage
import space.taran.arknavigator.mvp.model.repo.tags.TagsStorage
import dev.arkbuilders.navigator.mvp.model.repo.preferences.PreferenceKey
import dev.arkbuilders.navigator.mvp.model.repo.preferences.Preferences
import dev.arkbuilders.navigator.mvp.model.repo.stats.category.StatsCategoryStorage
import dev.arkbuilders.navigator.mvp.model.repo.stats.category.TagLabeledNStorage
import dev.arkbuilders.navigator.mvp.model.repo.stats.category.TagLabeledTSStorage
import dev.arkbuilders.navigator.mvp.model.repo.stats.category.TagQueriedNStorage
import dev.arkbuilders.navigator.mvp.model.repo.stats.category.TagQueriedTSStorage
import dev.arkbuilders.navigator.mvp.model.repo.tags.TagsStorage
import timber.log.Timber
import kotlin.io.path.createDirectories

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package space.taran.arknavigator.mvp.model.repo.stats
package dev.arkbuilders.navigator.mvp.model.repo.stats

import space.taran.arklib.ResourceId
import space.taran.arklib.domain.meta.Kind
import space.taran.arknavigator.utils.Tag
import space.taran.arknavigator.utils.Tags
import dev.arkbuilders.navigator.utils.Tag
import dev.arkbuilders.navigator.utils.Tags

sealed class StatsEvent {
data class TagsChanged(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package space.taran.arknavigator.mvp.model.repo.stats
package dev.arkbuilders.navigator.mvp.model.repo.stats

import space.taran.arklib.domain.index.ResourceIndex
import space.taran.arklib.domain.index.RootIndex
import space.taran.arknavigator.mvp.model.repo.preferences.Preferences
import space.taran.arknavigator.mvp.model.repo.tags.PlainTagsStorage
import space.taran.arknavigator.mvp.model.repo.tags.TagsStorageRepo
import dev.arkbuilders.navigator.mvp.model.repo.preferences.Preferences
import dev.arkbuilders.navigator.mvp.model.repo.tags.PlainTagsStorage
import dev.arkbuilders.navigator.mvp.model.repo.tags.TagsStorageRepo
import java.nio.file.Path
import javax.inject.Inject
import javax.inject.Singleton
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arknavigator.mvp.model.repo.stats.category
package dev.arkbuilders.navigator.mvp.model.repo.stats.category

import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.MutableSharedFlow
Expand All @@ -8,7 +8,7 @@ import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.launch
import space.taran.arklib.arkFolder
import space.taran.arklib.arkStats
import space.taran.arknavigator.mvp.model.repo.stats.StatsEvent
import dev.arkbuilders.navigator.mvp.model.repo.stats.StatsEvent
import timber.log.Timber
import java.nio.file.Path

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package space.taran.arknavigator.mvp.model.repo.stats.category
package dev.arkbuilders.navigator.mvp.model.repo.stats.category

import kotlinx.coroutines.CoroutineScope
import kotlinx.serialization.Serializable
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.decodeFromStream
import space.taran.arklib.domain.index.ResourceIndex
import space.taran.arknavigator.mvp.model.repo.stats.StatsEvent
import space.taran.arknavigator.mvp.model.repo.tags.TagsStorage
import space.taran.arknavigator.utils.Tag
import dev.arkbuilders.navigator.mvp.model.repo.stats.StatsEvent
import dev.arkbuilders.navigator.mvp.model.repo.tags.TagsStorage
import dev.arkbuilders.navigator.utils.Tag
import timber.log.Timber
import java.nio.file.Path
import kotlin.io.path.exists
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package space.taran.arknavigator.mvp.model.repo.stats.category
package dev.arkbuilders.navigator.mvp.model.repo.stats.category

import kotlinx.coroutines.CoroutineScope
import kotlinx.serialization.Serializable
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.decodeFromStream
import space.taran.arknavigator.mvp.model.repo.stats.StatsEvent
import space.taran.arknavigator.utils.Tag
import dev.arkbuilders.navigator.mvp.model.repo.stats.StatsEvent
import dev.arkbuilders.navigator.utils.Tag
import timber.log.Timber
import java.nio.file.Path
import kotlin.io.path.inputStream
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
@file:OptIn(ExperimentalSerializationApi::class)

package space.taran.arknavigator.mvp.model.repo.stats.category
package dev.arkbuilders.navigator.mvp.model.repo.stats.category

import kotlinx.coroutines.CoroutineScope
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.Serializable
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.decodeFromStream
import space.taran.arknavigator.mvp.model.repo.stats.StatsEvent
import space.taran.arknavigator.utils.Tag
import dev.arkbuilders.navigator.mvp.model.repo.stats.StatsEvent
import dev.arkbuilders.navigator.utils.Tag
import timber.log.Timber
import java.nio.file.Path
import kotlin.io.path.inputStream
Expand Down
Loading

0 comments on commit 996ce25

Please sign in to comment.