Skip to content

Commit

Permalink
New package name
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillt committed Jul 25, 2023
1 parent b307753 commit eef776d
Show file tree
Hide file tree
Showing 56 changed files with 164 additions and 164 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
compileSdk 33

defaultConfig {
applicationId "space.taran.arkrate"
applicationId "dev.arkbuilders.rate"
minSdk 23
targetSdk 33
versionCode 1
Expand Down
4 changes: 2 additions & 2 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "APK",
"kind": "Directory"
},
"applicationId": "space.taran.arkrate",
"applicationId": "dev.arkbuilders.rate",
"variantName": "release",
"elements": [
{
Expand All @@ -17,4 +17,4 @@
}
],
"elementType": "File"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkrate
package dev.arkbuilders.rate

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.ArkRate", appContext.packageName)
assertEquals("dev.arkbuilders.rate", 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.arkrate">
package="dev.arkbuilders.rate">

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

</manifest>
</manifest>
2 changes: 1 addition & 1 deletion app/src/main/java/space/taran/arkrate/data/Alias.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package space.taran.arkrate.data
package dev.arkbuilders.rate.data

typealias CurrencyCode = String
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkrate.data
package dev.arkbuilders.rate.data

data class CurrencyAmount(
val id: Long = 0,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/space/taran/arkrate/data/CurrencyName.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkrate.data
package dev.arkbuilders.rate.data

data class CurrencyName(
val code: CurrencyCode,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/space/taran/arkrate/data/CurrencyRate.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkrate.data
package dev.arkbuilders.rate.data

data class CurrencyRate(
val code: CurrencyCode,
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/java/space/taran/arkrate/data/CurrencyRepo.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package space.taran.arkrate.data
package dev.arkbuilders.rate.data

import android.util.Log
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.sync.Mutex
import space.taran.arkrate.data.db.CurrencyRateLocalDataSource
import space.taran.arkrate.data.db.FetchTimestampDataSource
import space.taran.arkrate.data.network.NetworkStatus
import space.taran.arkrate.utils.withContextAndLock
import dev.arkbuilders.rate.data.db.CurrencyRateLocalDataSource
import dev.arkbuilders.rate.data.db.FetchTimestampDataSource
import dev.arkbuilders.rate.data.network.NetworkStatus
import dev.arkbuilders.rate.utils.withContextAndLock
import java.util.concurrent.TimeUnit

abstract class CurrencyRepo(
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/space/taran/arkrate/data/CurrencyType.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkrate.data
package dev.arkbuilders.rate.data

enum class CurrencyType {
FIAT, CRYPTO
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package space.taran.arkrate.data
package dev.arkbuilders.rate.data

import space.taran.arkrate.data.crypto.CryptoCurrencyRepo
import space.taran.arkrate.data.fiat.FiatCurrencyRepo
import dev.arkbuilders.rate.data.crypto.CryptoCurrencyRepo
import dev.arkbuilders.rate.data.fiat.FiatCurrencyRepo
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.arkrate.data
package dev.arkbuilders.rate.data

data class PairAlertCondition(
val id: Long,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package space.taran.arkrate.data.assets
package dev.arkbuilders.rate.data.assets

import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.withContext
import space.taran.arkrate.data.CurrencyAmount
import space.taran.arkrate.data.db.AssetsLocalDataSource
import space.taran.arkrate.data.CurrencyCode
import dev.arkbuilders.rate.data.CurrencyAmount
import dev.arkbuilders.rate.data.db.AssetsLocalDataSource
import dev.arkbuilders.rate.data.CurrencyCode
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.arkrate.data.crypto
package dev.arkbuilders.rate.data.crypto

import retrofit2.http.GET

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package space.taran.arkrate.data.crypto
package dev.arkbuilders.rate.data.crypto

import space.taran.arkrate.data.CurrencyName
import space.taran.arkrate.data.CurrencyRate
import space.taran.arkrate.data.CurrencyRepo
import space.taran.arkrate.data.CurrencyType
import space.taran.arkrate.data.network.NetworkStatus
import space.taran.arkrate.data.db.CurrencyRateLocalDataSource
import space.taran.arkrate.data.db.FetchTimestampDataSource
import dev.arkbuilders.rate.data.CurrencyName
import dev.arkbuilders.rate.data.CurrencyRate
import dev.arkbuilders.rate.data.CurrencyRepo
import dev.arkbuilders.rate.data.CurrencyType
import dev.arkbuilders.rate.data.network.NetworkStatus
import dev.arkbuilders.rate.data.db.CurrencyRateLocalDataSource
import dev.arkbuilders.rate.data.db.FetchTimestampDataSource
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.arkrate.data.crypto
package dev.arkbuilders.rate.data.crypto

data class CryptoRateResponse(
val symbol: String,
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/space/taran/arkrate/data/db/AssetsDao.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkrate.data.db
package dev.arkbuilders.rate.data.db

import androidx.room.Dao
import androidx.room.Entity
Expand All @@ -8,8 +8,8 @@ import androidx.room.PrimaryKey
import androidx.room.Query
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
import space.taran.arkrate.data.CurrencyAmount
import space.taran.arkrate.data.CurrencyCode
import dev.arkbuilders.rate.data.CurrencyAmount
import dev.arkbuilders.rate.data.CurrencyCode
import javax.inject.Inject

@Entity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package space.taran.arkrate.data.db
package dev.arkbuilders.rate.data.db

import androidx.room.Dao
import androidx.room.Entity
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.PrimaryKey
import androidx.room.Query
import space.taran.arkrate.data.CurrencyRate
import space.taran.arkrate.data.CurrencyType
import space.taran.arkrate.data.CurrencyCode
import dev.arkbuilders.rate.data.CurrencyRate
import dev.arkbuilders.rate.data.CurrencyType
import dev.arkbuilders.rate.data.CurrencyCode
import javax.inject.Inject

@Entity
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/space/taran/arkrate/data/db/Database.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkrate.data.db
package dev.arkbuilders.rate.data.db

import androidx.room.AutoMigration
import androidx.room.RoomDatabase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package space.taran.arkrate.data.db
package dev.arkbuilders.rate.data.db

import androidx.room.Dao
import androidx.room.Entity
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.PrimaryKey
import androidx.room.Query
import space.taran.arkrate.data.CurrencyType
import dev.arkbuilders.rate.data.CurrencyType
import javax.inject.Inject

@Entity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package space.taran.arkrate.data.db
package dev.arkbuilders.rate.data.db

import androidx.room.Dao
import androidx.room.Entity
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.PrimaryKey
import androidx.room.Query
import space.taran.arkrate.data.PairAlertCondition
import dev.arkbuilders.rate.data.PairAlertCondition
import javax.inject.Inject
import javax.inject.Singleton

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

import retrofit2.http.GET

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package space.taran.arkrate.data.fiat
package dev.arkbuilders.rate.data.fiat

import space.taran.arkrate.data.CurrencyName
import space.taran.arkrate.data.CurrencyRate
import space.taran.arkrate.data.CurrencyRepo
import space.taran.arkrate.data.CurrencyType
import space.taran.arkrate.data.network.NetworkStatus
import space.taran.arkrate.data.db.CurrencyRateLocalDataSource
import space.taran.arkrate.data.db.FetchTimestampDataSource
import dev.arkbuilders.rate.data.CurrencyName
import dev.arkbuilders.rate.data.CurrencyRate
import dev.arkbuilders.rate.data.CurrencyRepo
import dev.arkbuilders.rate.data.CurrencyType
import dev.arkbuilders.rate.data.network.NetworkStatus
import dev.arkbuilders.rate.data.db.CurrencyRateLocalDataSource
import dev.arkbuilders.rate.data.db.FetchTimestampDataSource
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.arkrate.data.fiat
package dev.arkbuilders.rate.data.fiat

data class FiatRateResponse(
val timestamp: Long,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkrate.data.network
package dev.arkbuilders.rate.data.network

import android.content.Context
import android.net.ConnectivityManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package space.taran.arkrate.data.network
package dev.arkbuilders.rate.data.network

import android.content.Context
import android.webkit.WebSettings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package space.taran.arkrate.data.worker
package dev.arkbuilders.rate.data.worker

import android.content.Context
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import space.taran.arkrate.data.CurrencyRate
import space.taran.arkrate.data.GeneralCurrencyRepo
import space.taran.arkrate.data.db.PairAlertConditionRepo
import space.taran.arkrate.di.DIManager
import space.taran.arkrate.data.PairAlertCondition
import space.taran.arkrate.presentation.utils.NotificationUtils
import dev.arkbuilders.rate.data.CurrencyRate
import dev.arkbuilders.rate.data.GeneralCurrencyRepo
import dev.arkbuilders.rate.data.db.PairAlertConditionRepo
import dev.arkbuilders.rate.di.DIManager
import dev.arkbuilders.rate.data.PairAlertCondition
import dev.arkbuilders.rate.presentation.utils.NotificationUtils
import javax.inject.Inject

class CurrencyMonitorWorker(val context: Context, params: WorkerParameters) :
Expand Down
22 changes: 11 additions & 11 deletions app/src/main/java/space/taran/arkrate/di/AppComponent.kt
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package space.taran.arkrate.di
package dev.arkbuilders.rate.di

import android.app.Application
import android.content.Context
import dagger.BindsInstance
import dagger.Component
import space.taran.arkrate.data.GeneralCurrencyRepo
import space.taran.arkrate.data.assets.AssetsRepo
import space.taran.arkrate.data.worker.CurrencyMonitorWorker
import space.taran.arkrate.di.module.ApiModule
import space.taran.arkrate.di.module.DBModule
import space.taran.arkrate.presentation.summary.SummaryViewModelFactory
import space.taran.arkrate.presentation.addcurrency.AddCurrencyViewModelFactory
import space.taran.arkrate.presentation.assets.AssetsViewModelFactory
import space.taran.arkrate.presentation.shared.SharedViewModel
import space.taran.arkrate.presentation.shared.SharedViewModelFactory
import dev.arkbuilders.rate.data.GeneralCurrencyRepo
import dev.arkbuilders.rate.data.assets.AssetsRepo
import dev.arkbuilders.rate.data.worker.CurrencyMonitorWorker
import dev.arkbuilders.rate.di.module.ApiModule
import dev.arkbuilders.rate.di.module.DBModule
import dev.arkbuilders.rate.presentation.summary.SummaryViewModelFactory
import dev.arkbuilders.rate.presentation.addcurrency.AddCurrencyViewModelFactory
import dev.arkbuilders.rate.presentation.assets.AssetsViewModelFactory
import dev.arkbuilders.rate.presentation.shared.SharedViewModel
import dev.arkbuilders.rate.presentation.shared.SharedViewModelFactory
import javax.inject.Singleton

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

import android.app.Application

Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/space/taran/arkrate/di/NavDepContainer.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package space.taran.arkrate.di
package dev.arkbuilders.rate.di

import androidx.lifecycle.SavedStateHandle
import space.taran.arkrate.presentation.MainActivity
import space.taran.arkrate.presentation.shared.SharedViewModel
import dev.arkbuilders.rate.presentation.MainActivity
import dev.arkbuilders.rate.presentation.shared.SharedViewModel

class NavDepContainer(
val activity: MainActivity
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/java/space/taran/arkrate/di/module/ApiModule.kt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package space.taran.arkrate.di.module
package dev.arkbuilders.rate.di.module

import com.google.gson.GsonBuilder
import dagger.Module
import dagger.Provides
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import space.taran.arkrate.data.crypto.CryptoAPI
import space.taran.arkrate.data.fiat.FiatAPI
import space.taran.arkrate.data.network.OkHttpClientBuilder
import dev.arkbuilders.rate.data.crypto.CryptoAPI
import dev.arkbuilders.rate.data.fiat.FiatAPI
import dev.arkbuilders.rate.data.network.OkHttpClientBuilder
import javax.inject.Named
import javax.inject.Singleton

Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/space/taran/arkrate/di/module/DBModule.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package space.taran.arkrate.di.module
package dev.arkbuilders.rate.di.module

import android.app.Application
import androidx.room.Room
import dagger.Module
import dagger.Provides
import space.taran.arkrate.data.db.Database
import space.taran.arkrate.data.db.Database.Companion.DB_NAME
import dev.arkbuilders.rate.data.db.Database
import dev.arkbuilders.rate.data.db.Database.Companion.DB_NAME
import javax.inject.Singleton

@Module
Expand Down
Loading

0 comments on commit eef776d

Please sign in to comment.