Skip to content

Commit

Permalink
Package renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillt committed Oct 8, 2023
1 parent 02c20c2 commit 31f023d
Show file tree
Hide file tree
Showing 27 changed files with 93 additions and 93 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
compileSdk 32

defaultConfig {
applicationId "space.taran.arkshelf"
applicationId "dev.arkbuilders.arkshelf"
minSdk 26
targetSdk 32
versionCode 1
Expand Down Expand Up @@ -67,7 +67,7 @@ android {
}

dependencies {
implementation "space.taran:arklib:0.1.0-SNAPSHOT-f81e34a657"
implementation "dev.arkbuilders:arklib:0.1.0-SNAPSHOT-f81e34a657"

implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf
package dev.arkbuilders.arkshelf

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
Expand All @@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("space.taran.arkshelf", appContext.packageName)
assertEquals("dev.arkbuilders.arkshelf", appContext.packageName)
}
}
4 changes: 2 additions & 2 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.arkshelf">
package="dev.arkbuilders.arkshelf">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down Expand Up @@ -40,4 +40,4 @@
</application>


</manifest>
</manifest>
20 changes: 10 additions & 10 deletions app/src/main/java/space/taran/arkshelf/data/LinkLocalDataSource.kt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package space.taran.arkshelf.data
package dev.arkbuilders.arkshelf.data

import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.withContext
import space.taran.arkfilepicker.folders.FoldersRepo
import space.taran.arklib.arkFolder
import space.taran.arklib.arkPreviews
import space.taran.arklib.getLinkHash
import space.taran.arklib.loadLinkFile
import space.taran.arkshelf.domain.Link
import space.taran.arkshelf.domain.UserPreferences
import space.taran.arkshelf.presentation.listChildren
import dev.arkbuilders.arkfilepicker.folders.FoldersRepo
import dev.arkbuilders.arklib.arkFolder
import dev.arkbuilders.arklib.arkPreviews
import dev.arkbuilders.arklib.getLinkHash
import dev.arkbuilders.arklib.loadLinkFile
import dev.arkbuilders.arkshelf.domain.Link
import dev.arkbuilders.arkshelf.domain.UserPreferences
import dev.arkbuilders.arkshelf.presentation.listChildren
import timber.log.Timber
import java.nio.file.Path
import javax.inject.Inject
Expand All @@ -21,7 +21,7 @@ import kotlin.io.path.exists
import kotlin.io.path.extension
import kotlin.io.path.getLastModifiedTime
import kotlin.io.path.isDirectory
import space.taran.arklib.createLinkFile as createLinkFileN
import dev.arkbuilders.arklib.createLinkFile as createLinkFileN


class LinkLocalDataSource @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package space.taran.arkshelf.data
package dev.arkbuilders.arkshelf.data

import android.content.Context
import android.graphics.Bitmap
import com.bumptech.glide.Glide
import space.taran.arklib.fetchLinkData
import space.taran.arkshelf.domain.Link
import dev.arkbuilders.arklib.fetchLinkData
import dev.arkbuilders.arkshelf.domain.Link
import java.nio.file.Path
import javax.inject.Inject
import kotlin.io.path.createTempFile
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/java/space/taran/arkshelf/data/LinkRepoImpl.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package space.taran.arkshelf.data
package dev.arkbuilders.arkshelf.data

import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import space.taran.arkshelf.data.network.NetworkStatus
import space.taran.arkshelf.domain.Link
import space.taran.arkshelf.domain.LinkRepo
import space.taran.arkshelf.domain.NoInternetException
import dev.arkbuilders.arkshelf.data.network.NetworkStatus
import dev.arkbuilders.arkshelf.domain.Link
import dev.arkbuilders.arkshelf.domain.LinkRepo
import dev.arkbuilders.arkshelf.domain.NoInternetException
import java.nio.file.Path
import javax.inject.Inject

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package space.taran.arkshelf.data
package dev.arkbuilders.arkshelf.data

import android.content.Context
import android.os.Environment
import space.taran.arkshelf.domain.UserPreferences
import dev.arkbuilders.arkshelf.domain.UserPreferences
import java.nio.file.Path
import javax.inject.Inject
import kotlin.io.path.Path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.data.network
package dev.arkbuilders.arkshelf.data.network

interface NetworkStatus {
fun isOnline(): Boolean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.data.network
package dev.arkbuilders.arkshelf.data.network

import android.content.Context
import android.net.ConnectivityManager
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/java/space/taran/arkshelf/di/AppComponent.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package space.taran.arkshelf.di
package dev.arkbuilders.arkshelf.di

import android.app.Application
import android.content.Context
import dagger.BindsInstance
import dagger.Component
import space.taran.arkshelf.di.module.RepoModule
import space.taran.arkshelf.presentation.searchedit.SearchEditFragment
import space.taran.arkshelf.presentation.settings.SettingsFragment
import dev.arkbuilders.arkshelf.di.module.RepoModule
import dev.arkbuilders.arkshelf.presentation.searchedit.SearchEditFragment
import dev.arkbuilders.arkshelf.presentation.settings.SettingsFragment
import javax.inject.Singleton

@Singleton
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/space/taran/arkshelf/di/DIManager.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.di
package dev.arkbuilders.arkshelf.di

import android.app.Application

Expand Down
14 changes: 7 additions & 7 deletions app/src/main/java/space/taran/arkshelf/di/module/RepoModule.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package space.taran.arkshelf.di.module
package dev.arkbuilders.arkshelf.di.module

import dagger.Binds
import dagger.Module
import space.taran.arkshelf.data.LinkRepoImpl
import space.taran.arkshelf.data.UserPreferencesImpl
import space.taran.arkshelf.data.network.NetworkStatus
import space.taran.arkshelf.data.network.NetworkStatusImpl
import space.taran.arkshelf.domain.LinkRepo
import space.taran.arkshelf.domain.UserPreferences
import dev.arkbuilders.arkshelf.data.LinkRepoImpl
import dev.arkbuilders.arkshelf.data.UserPreferencesImpl
import dev.arkbuilders.arkshelf.data.network.NetworkStatus
import dev.arkbuilders.arkshelf.data.network.NetworkStatusImpl
import dev.arkbuilders.arkshelf.domain.LinkRepo
import dev.arkbuilders.arkshelf.domain.UserPreferences
import javax.inject.Singleton

@Module
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/space/taran/arkshelf/domain/Link.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.domain
package dev.arkbuilders.arkshelf.domain

import java.nio.file.Path

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/space/taran/arkshelf/domain/LinkRepo.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.domain
package dev.arkbuilders.arkshelf.domain

import java.nio.file.Path

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package space.taran.arkshelf.domain
package dev.arkbuilders.arkshelf.domain

class NoInternetException: Exception()
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.domain
package dev.arkbuilders.arkshelf.domain

import java.nio.file.Path

Expand Down
10 changes: 5 additions & 5 deletions app/src/main/java/space/taran/arkshelf/presentation/App.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package space.taran.arkshelf.presentation
package dev.arkbuilders.arkshelf.presentation

import android.app.Application
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import space.taran.arkfilepicker.folders.FoldersRepo
import space.taran.arklib.initArkLib
import space.taran.arklib.initRustLogger
import space.taran.arkshelf.di.DIManager
import dev.arkbuilders.arkfilepicker.folders.FoldersRepo
import dev.arkbuilders.arklib.initArkLib
import dev.arkbuilders.arklib.initRustLogger
import dev.arkbuilders.arkshelf.di.DIManager
import timber.log.Timber

class App : Application() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.presentation
package dev.arkbuilders.arkshelf.presentation

object LogTags {
const val OKHTTP: String = "okhttp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.presentation
package dev.arkbuilders.arkshelf.presentation

import androidx.constraintlayout.motion.widget.MotionLayout

Expand Down
8 changes: 4 additions & 4 deletions app/src/main/java/space/taran/arkshelf/presentation/Utils.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.presentation
package dev.arkbuilders.arkshelf.presentation

import android.Manifest
import android.content.Intent
Expand All @@ -18,9 +18,9 @@ import kotlinx.coroutines.launch
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import kotlinx.coroutines.withContext
import space.taran.arkshelf.BuildConfig
import space.taran.arkshelf.R
import space.taran.arkshelf.presentation.main.MainActivity
import dev.arkbuilders.arkshelf.BuildConfig
import dev.arkbuilders.arkshelf.R
import dev.arkbuilders.arkshelf.presentation.main.MainActivity
import java.nio.file.Path
import java.nio.file.Paths
import java.text.DecimalFormat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package space.taran.arkshelf.presentation.main
package dev.arkbuilders.arkshelf.presentation.main

import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import by.kirich1409.viewbindingdelegate.viewBinding
import space.taran.arklib.initRustLogger
import space.taran.arkshelf.R
import space.taran.arkshelf.databinding.ActivityMainBinding
import space.taran.arkshelf.presentation.searchedit.SearchEditFragment
import space.taran.arkshelf.presentation.settings.SettingsFragment
import dev.arkbuilders.arklib.initRustLogger
import dev.arkbuilders.arkshelf.R
import dev.arkbuilders.arkshelf.databinding.ActivityMainBinding
import dev.arkbuilders.arkshelf.presentation.searchedit.SearchEditFragment
import dev.arkbuilders.arkshelf.presentation.settings.SettingsFragment

class MainActivity : AppCompatActivity(R.layout.activity_main) {
private val binding by viewBinding(ActivityMainBinding::bind)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.presentation.searchedit
package dev.arkbuilders.arkshelf.presentation.searchedit

import android.content.ClipData
import android.content.ClipboardManager
Expand All @@ -15,9 +15,9 @@ import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.CenterCrop
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
import kotlinx.coroutines.CoroutineScope
import space.taran.arkshelf.R
import space.taran.arkshelf.databinding.ItemLinkBinding
import space.taran.arkshelf.domain.Link
import dev.arkbuilders.arkshelf.R
import dev.arkbuilders.arkshelf.databinding.ItemLinkBinding
import dev.arkbuilders.arkshelf.domain.Link

class LinkListAdapter(
private val context: Context,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.presentation.searchedit
package dev.arkbuilders.arkshelf.presentation.searchedit

import android.content.Context
import android.os.Bundle
Expand All @@ -22,18 +22,18 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import org.orbitmvi.orbit.viewmodel.observe
import space.taran.arkfilepicker.ArkFilePickerConfig
import space.taran.arkfilepicker.presentation.filepicker.ArkFilePickerFragment
import space.taran.arkfilepicker.presentation.filepicker.ArkFilePickerMode
import space.taran.arkfilepicker.presentation.onArkPathPicked
import space.taran.arkshelf.R
import space.taran.arkshelf.databinding.FragmentSearchEditBinding
import space.taran.arkshelf.di.DIManager
import space.taran.arkshelf.domain.NoInternetException
import space.taran.arkshelf.presentation.askWritePermissions
import space.taran.arkshelf.presentation.hideKeyboard
import space.taran.arkshelf.presentation.isWritePermGranted
import space.taran.arkshelf.presentation.main.MainActivity
import dev.arkbuilders.arkfilepicker.ArkFilePickerConfig
import dev.arkbuilders.arkfilepicker.presentation.filepicker.ArkFilePickerFragment
import dev.arkbuilders.arkfilepicker.presentation.filepicker.ArkFilePickerMode
import dev.arkbuilders.arkfilepicker.presentation.onArkPathPicked
import dev.arkbuilders.arkshelf.R
import dev.arkbuilders.arkshelf.databinding.FragmentSearchEditBinding
import dev.arkbuilders.arkshelf.di.DIManager
import dev.arkbuilders.arkshelf.domain.NoInternetException
import dev.arkbuilders.arkshelf.presentation.askWritePermissions
import dev.arkbuilders.arkshelf.presentation.hideKeyboard
import dev.arkbuilders.arkshelf.presentation.isWritePermGranted
import dev.arkbuilders.arkshelf.presentation.main.MainActivity
import java.net.UnknownHostException
import javax.inject.Inject

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.presentation.searchedit
package dev.arkbuilders.arkshelf.presentation.searchedit

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
Expand All @@ -14,9 +14,9 @@ import org.orbitmvi.orbit.syntax.simple.intent
import org.orbitmvi.orbit.syntax.simple.postSideEffect
import org.orbitmvi.orbit.syntax.simple.reduce
import org.orbitmvi.orbit.viewmodel.container
import space.taran.arkshelf.domain.Link
import space.taran.arkshelf.domain.LinkRepo
import space.taran.arkshelf.domain.UserPreferences
import dev.arkbuilders.arkshelf.domain.Link
import dev.arkbuilders.arkshelf.domain.LinkRepo
import dev.arkbuilders.arkshelf.domain.UserPreferences
import java.nio.file.Path

data class SearchEditState(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf.presentation.settings
package dev.arkbuilders.arkshelf.presentation.settings

import android.content.Context
import android.os.Bundle
Expand All @@ -8,13 +8,13 @@ import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import by.kirich1409.viewbindingdelegate.viewBinding
import kotlinx.coroutines.launch
import space.taran.arkfilepicker.ArkFilePickerConfig
import space.taran.arkfilepicker.presentation.filepicker.ArkFilePickerFragment
import space.taran.arkfilepicker.presentation.filepicker.ArkFilePickerMode
import space.taran.arkfilepicker.presentation.onArkPathPicked
import space.taran.arkshelf.R
import space.taran.arkshelf.databinding.FragmentSettingsBinding
import space.taran.arkshelf.di.DIManager
import dev.arkbuilders.arkfilepicker.ArkFilePickerConfig
import dev.arkbuilders.arkfilepicker.presentation.filepicker.ArkFilePickerFragment
import dev.arkbuilders.arkfilepicker.presentation.filepicker.ArkFilePickerMode
import dev.arkbuilders.arkfilepicker.presentation.onArkPathPicked
import dev.arkbuilders.arkshelf.R
import dev.arkbuilders.arkshelf.databinding.FragmentSettingsBinding
import dev.arkbuilders.arkshelf.di.DIManager
import javax.inject.Inject

class SettingsFragment: Fragment(R.layout.fragment_settings) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package space.taran.arkshelf.presentation.settings
package dev.arkbuilders.arkshelf.presentation.settings

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import kotlinx.coroutines.flow.MutableStateFlow
import space.taran.arkshelf.domain.UserPreferences
import dev.arkbuilders.arkshelf.domain.UserPreferences
import java.nio.file.Path
import javax.inject.Inject

Expand Down
2 changes: 1 addition & 1 deletion app/src/test/java/space/taran/arkshelf/ExampleUnitTest.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkshelf
package dev.arkbuilders.arkshelf

import org.junit.Test

Expand Down

0 comments on commit 31f023d

Please sign in to comment.