rename template to gyromin
This commit is contained in:
parent
5427592388
commit
7bfbf4253a
35 changed files with 61 additions and 61 deletions
|
@ -12,11 +12,11 @@ hilt {
|
|||
}
|
||||
|
||||
android {
|
||||
namespace 'com.ferhatozcelik.jetpackcomposetemplate'
|
||||
namespace 'golf.fish.gyromin'
|
||||
compileSdk appCompileSdkVersion
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.ferhatozcelik.jetpackcomposetemplate"
|
||||
applicationId "golf.fish.gyromin"
|
||||
minSdk appMinSdkVersion
|
||||
targetSdk appTargetSdkVersion
|
||||
versionCode 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate
|
||||
package golf.fish.gyromin
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
|
@ -13,12 +13,12 @@
|
|||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.MyApplication"
|
||||
android:theme="@style/Theme.Gyromin"
|
||||
tools:targetApi="31">
|
||||
<activity
|
||||
android:name=".ui.activitys.MainActivity"
|
||||
android:exported="true"
|
||||
android:theme="@style/Theme.MyApplication">
|
||||
android:theme="@style/Theme.Gyromin">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.data.repository
|
||||
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.data.dao.ExampleDao
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.data.remote.AppApi
|
||||
import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
|
||||
|
||||
@Singleton
|
||||
class ExampleRepository @Inject constructor(private val appApi: AppApi, private val exampleDao: ExampleDao)
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate
|
||||
package golf.fish.gyromin
|
||||
|
||||
import android.app.Application
|
||||
import dagger.hilt.android.HiltAndroidApp
|
|
@ -1,7 +1,7 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.data.dao
|
||||
package golf.fish.gyromin.data.dao
|
||||
|
||||
import androidx.room.*
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.data.entity.ExampleEntity
|
||||
import golf.fish.gyromin.data.entity.ExampleEntity
|
||||
|
||||
@Dao
|
||||
interface ExampleDao {
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.data.entity
|
||||
package golf.fish.gyromin.data.entity
|
||||
|
||||
import android.os.Parcelable
|
||||
import androidx.room.Entity
|
|
@ -1,11 +1,11 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.data.local
|
||||
package golf.fish.gyromin.data.local
|
||||
|
||||
import androidx.room.Database
|
||||
import androidx.room.RoomDatabase
|
||||
import androidx.room.TypeConverters
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.data.dao.ExampleDao
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.data.entity.ExampleEntity
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.di.ApplicationScope
|
||||
import golf.fish.gyromin.data.dao.ExampleDao
|
||||
import golf.fish.gyromin.data.entity.ExampleEntity
|
||||
import golf.fish.gyromin.di.ApplicationScope
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import javax.inject.Inject
|
||||
import javax.inject.Provider
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.data.local
|
||||
package golf.fish.gyromin.data.local
|
||||
|
||||
import androidx.room.TypeConverter
|
||||
import java.util.Date
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.data.model
|
||||
package golf.fish.gyromin.data.model
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.data.model
|
||||
package golf.fish.gyromin.data.model
|
||||
|
||||
sealed class Resource<out T : Any> {
|
||||
object Loading : Resource<Nothing>()
|
|
@ -1,6 +1,6 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.data.remote
|
||||
package golf.fish.gyromin.data.remote
|
||||
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.data.model.ExampleModel
|
||||
import golf.fish.gyromin.data.model.ExampleModel
|
||||
import retrofit2.Response
|
||||
import retrofit2.http.*
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
package golf.fish.gyromin.data.repository
|
||||
|
||||
import golf.fish.gyromin.data.dao.ExampleDao
|
||||
import golf.fish.gyromin.data.remote.AppApi
|
||||
import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
|
||||
|
||||
@Singleton
|
||||
class ExampleRepository @Inject constructor(private val appApi: AppApi, private val exampleDao: ExampleDao)
|
|
@ -1,7 +1,7 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.di
|
||||
package golf.fish.gyromin.di
|
||||
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.data.remote.AppApi
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.util.BASE_URL
|
||||
import golf.fish.gyromin.data.remote.AppApi
|
||||
import golf.fish.gyromin.util.BASE_URL
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.di
|
||||
package golf.fish.gyromin.di
|
||||
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
|
@ -1,9 +1,9 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.di
|
||||
package golf.fish.gyromin.di
|
||||
|
||||
import android.app.Application
|
||||
import androidx.room.Room
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.data.dao.ExampleDao
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.data.local.AppDatabase
|
||||
import golf.fish.gyromin.data.dao.ExampleDao
|
||||
import golf.fish.gyromin.data.local.AppDatabase
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.navigation
|
||||
package golf.fish.gyromin.navigation
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.navigation.NavHostController
|
||||
|
@ -6,8 +6,8 @@ import androidx.navigation.NavType
|
|||
import androidx.navigation.compose.NavHost
|
||||
import androidx.navigation.compose.composable
|
||||
import androidx.navigation.navArgument
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.ui.detail.DetailScreen
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.ui.home.MainScreen
|
||||
import golf.fish.gyromin.ui.detail.DetailScreen
|
||||
import golf.fish.gyromin.ui.home.MainScreen
|
||||
|
||||
@Composable
|
||||
fun NavGraph(navController: NavHostController) {
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.navigation
|
||||
package golf.fish.gyromin.navigation
|
||||
|
||||
sealed class Screen(val route: String) {
|
||||
object Main : Screen("main_screen")
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.ui.activitys
|
||||
package golf.fish.gyromin.ui.activitys
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.activity.ComponentActivity
|
||||
|
@ -6,8 +6,8 @@ import androidx.activity.compose.setContent
|
|||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.navigation.compose.rememberNavController
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.navigation.NavGraph
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.ui.theme.MyApplicationTheme
|
||||
import golf.fish.gyromin.navigation.NavGraph
|
||||
import golf.fish.gyromin.ui.theme.MyApplicationTheme
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
|
||||
@AndroidEntryPoint
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.ui.detail
|
||||
package golf.fish.gyromin.ui.detail
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import androidx.compose.foundation.layout.*
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.ui.detail
|
||||
package golf.fish.gyromin.ui.detail
|
||||
|
||||
data class DetailScreenState(
|
||||
val isLoading: Boolean = false,
|
|
@ -1,7 +1,7 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.ui.detail
|
||||
package golf.fish.gyromin.ui.detail
|
||||
|
||||
import androidx.lifecycle.ViewModel
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.data.repository.ExampleRepository
|
||||
import golf.fish.gyromin.data.repository.ExampleRepository
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel
|
||||
import javax.inject.Inject
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.ui.home
|
||||
package golf.fish.gyromin.ui.home
|
||||
|
||||
data class HomeScreenState(
|
||||
val isLoading: Boolean = false,
|
|
@ -1,7 +1,7 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.ui.home
|
||||
package golf.fish.gyromin.ui.home
|
||||
|
||||
import androidx.lifecycle.ViewModel
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.data.repository.ExampleRepository
|
||||
import golf.fish.gyromin.data.repository.ExampleRepository
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel
|
||||
import javax.inject.Inject
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.ui.home
|
||||
package golf.fish.gyromin.ui.home
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import androidx.compose.foundation.layout.*
|
||||
|
@ -9,7 +9,7 @@ import androidx.compose.ui.Alignment
|
|||
import androidx.compose.ui.Modifier
|
||||
import androidx.hilt.navigation.compose.hiltViewModel
|
||||
import androidx.navigation.NavHostController
|
||||
import com.ferhatozcelik.jetpackcomposetemplate.navigation.Screen
|
||||
import golf.fish.gyromin.navigation.Screen
|
||||
|
||||
@SuppressLint("UnusedMaterialScaffoldPaddingParameter")
|
||||
@Composable
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.ui.theme
|
||||
package golf.fish.gyromin.ui.theme
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.ui.theme
|
||||
package golf.fish.gyromin.ui.theme
|
||||
|
||||
import android.app.Activity
|
||||
import android.os.Build
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.ui.theme
|
||||
package golf.fish.gyromin.ui.theme
|
||||
|
||||
import androidx.compose.material3.Typography
|
||||
import androidx.compose.ui.text.TextStyle
|
|
@ -1,3 +1,3 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.util
|
||||
package golf.fish.gyromin.util
|
||||
|
||||
const val BASE_URL = "https://api.ferhatozcelik.com"
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.util
|
||||
package golf.fish.gyromin.util
|
||||
|
||||
import android.content.ActivityNotFoundException
|
||||
import android.content.Context
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate.util
|
||||
package golf.fish.gyromin.util
|
||||
|
||||
import android.content.Context
|
||||
import android.net.ConnectivityManager
|
|
@ -1,3 +1,3 @@
|
|||
<resources>
|
||||
<string name="app_name">My Application</string>
|
||||
<string name="app_name">Gyromin</string>
|
||||
</resources>
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="Theme.MyApplication" parent="android:Theme.Material.Light.NoActionBar" />
|
||||
<style name="Theme.Gyromin" parent="android:Theme.Material.Light.NoActionBar" />
|
||||
</resources>
|
|
@ -1,4 +1,4 @@
|
|||
package com.ferhatozcelik.jetpackcomposetemplate
|
||||
package golf.fish.gyromin
|
||||
|
||||
import org.junit.Test
|
||||
|
|
@ -12,5 +12,5 @@ dependencyResolutionManagement {
|
|||
mavenCentral()
|
||||
}
|
||||
}
|
||||
rootProject.name = "jetpack-compose-template"
|
||||
rootProject.name = "gyromin"
|
||||
include ':app'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue