-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created Home module and setting base architecture
- Loading branch information
Showing
115 changed files
with
569 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
androidCommon/common_utils/src/main/java/com/noble/common_utils/base/BaseFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package com.noble.common_utils.base | ||
|
||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import androidx.annotation.LayoutRes | ||
import androidx.databinding.DataBindingUtil | ||
import androidx.fragment.app.Fragment | ||
import androidx.lifecycle.ViewModel | ||
import androidx.viewbinding.ViewBinding | ||
|
||
abstract class BaseFragment<VM : ViewModel, B : ViewBinding>: Fragment() { | ||
|
||
protected lateinit var binding: B | ||
protected lateinit var viewModel: VM | ||
|
||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
} | ||
|
||
override fun onCreateView( | ||
inflater: LayoutInflater, | ||
container: ViewGroup?, | ||
savedInstanceState: Bundle? | ||
): View? { | ||
super.onCreateView(inflater, container, savedInstanceState) | ||
binding = DataBindingUtil.inflate(inflater, getLayout(), container, false) | ||
return binding.root | ||
} | ||
|
||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
setObservers() | ||
} | ||
|
||
override fun onStart() { | ||
super.onStart() | ||
setListeners() | ||
} | ||
|
||
override fun onResume() { | ||
super.onResume() | ||
} | ||
|
||
override fun onPause() { | ||
super.onPause() | ||
} | ||
|
||
override fun onStop() { | ||
super.onStop() | ||
removeListeners() | ||
} | ||
|
||
override fun onDestroyView() { | ||
super.onDestroyView() | ||
removeObservers() | ||
} | ||
|
||
override fun onDestroy() { | ||
super.onDestroy() | ||
} | ||
|
||
abstract fun setListeners() | ||
abstract fun removeListeners() | ||
abstract fun setObservers() | ||
abstract fun removeObservers() | ||
|
||
@LayoutRes | ||
abstract fun getLayout(): Int | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import android.app.Application | ||
|
||
class App: Application() { | ||
} |
12 changes: 12 additions & 0 deletions
12
app/src/main/java/com/noble/rickandmorty/ui/main/MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.noble.rickandmorty.ui.main | ||
|
||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
import com.noble.rickandmorty.R | ||
|
||
class MainActivity : AppCompatActivity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_main) | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
.../com/noble/rickandmorty/SplashActivity.kt → .../rickandmorty/ui/splash/SplashActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".ui.main.MainActivity"> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-980 Bytes
(55%)
buildSrc/build/classes/kotlin/main/Dependencies$CoreDep.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-515 Bytes
(63%)
buildSrc/build/classes/kotlin/main/Dependencies$SplashDep.class
Binary file not shown.
Binary file modified
BIN
-1.39 KB
(43%)
buildSrc/build/classes/kotlin/main/Dependencies$TestDep.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+958 Bytes
.../classes/kotlin/main/Modules$Splash.class → ...ild/classes/kotlin/main/Modules$App.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Dependencies$CoreDep.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Dependencies$SplashDep.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Dependencies$TestDep.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Dependencies.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Modules$Splash.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Modules.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Versions.class | ||
C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Dependencies$CoreDep.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Dependencies$Coroutines.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Dependencies$HiltDep.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Dependencies$Retrofit.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Dependencies$SplashDep.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Dependencies$TestDep.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Dependencies.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Modules$AndroidCommon.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Modules$App.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Modules$Common.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Modules$Home.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Modules.class;C:\Users\yoges\AndroidStudioProjects\RickAndMorty\buildSrc\build\classes\kotlin\main\Versions.class |
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab
Binary file not shown.
Binary file modified
BIN
+4.64 KB
(490%)
...Src/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...d/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len
Binary file not shown.
Binary file modified
BIN
+174 Bytes
(300%)
...build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...rc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...n/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...uild/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len
Binary file not shown.
Binary file modified
BIN
+2.51 KB
(540%)
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i
Binary file not shown.
Binary file added
BIN
+4 KB
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab
Binary file not shown.
Binary file added
BIN
+4 KB
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream
Binary file not shown.
Binary file added
BIN
+8 Bytes
...rc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len
Binary file not shown.
Binary file added
BIN
+8 Bytes
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len
Binary file not shown.
Binary file added
BIN
+2.39 KB
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at
Binary file not shown.
Binary file added
BIN
+32 KB
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i
Binary file not shown.
Binary file added
BIN
+8 Bytes
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...rc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...n/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...uild/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len
Binary file not shown.
Binary file modified
BIN
+2.51 KB
(540%)
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len
Binary file not shown.
Binary file modified
BIN
+13.9 KB
(530%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab
Binary file not shown.
Binary file modified
BIN
+1.24 KB
(480%)
...uild/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/counters.tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
6 | ||
20 | ||
0 |
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab
Binary file not shown.
Binary file modified
BIN
+84 Bytes
(200%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...dSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len
Binary file not shown.
Binary file modified
BIN
+608 Bytes
(300%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.len
Binary file not shown.
Binary file modified
BIN
+1.58 KB
(530%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin
Binary file not shown.
Binary file modified
BIN
+3.44 KB
(640%)
buildSrc/build/kotlin/compileKotlin/local-state/build-history.bin
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,37 @@ | ||
object Dependencies { | ||
object CoreDep { | ||
val coreKtx = "androidx.core:core-ktx:${Versions.coreKtxVersion}" | ||
val appCompat = "androidx.appcompat:appcompat:${Versions.appCompatVersion}" | ||
val material = "com.google.android.material:material:${Versions.materialVersion}" | ||
val constraint = "androidx.constraintlayout:constraintlayout:${Versions.constraintVersion}" | ||
const val coreKtx = "androidx.core:core-ktx:${Versions.coreKtxVersion}" | ||
const val appCompat = "androidx.appcompat:appcompat:${Versions.appCompatVersion}" | ||
const val material = "com.google.android.material:material:${Versions.materialVersion}" | ||
const val constraint = "androidx.constraintlayout:constraintlayout:${Versions.constraintVersion}" | ||
} | ||
|
||
object SplashDep{ | ||
val splash = "androidx.core:core-splashscreen:${Versions.splashVersion}" | ||
const val splash = "androidx.core:core-splashscreen:${Versions.splashVersion}" | ||
} | ||
|
||
object HiltDep{ | ||
const val hiltAndroid = "com.google.dagger:hilt-android:${Versions.hilt}" | ||
const val hiltCore = "com.google.dagger:hilt-core:${Versions.hilt}" | ||
const val hiltCompiler = "com.google.dagger:hilt-compiler:${Versions.hilt}" | ||
const val hiltAndroidTest = "com.google.dagger:hilt-android-testing:${Versions.hilt}" | ||
} | ||
|
||
object Retrofit{ | ||
const val retrofit = "com.squareup.retrofit2:retrofit:${Versions.retrofit}" | ||
const val retrofitGsonConverter = "com.squareup.retrofit2:converter-gson:${Versions.retrofit}" | ||
const val retrofitOkHttp = "com.squareup.okhttp3:okhttp:${Versions.okHttp}" | ||
} | ||
|
||
object Coroutines{ | ||
const val coroutinesAndroid = "org.jetbrains.kotlinx:kotlinx-coroutines-android:${Versions.coroutines}" | ||
const val coroutinesCore = "org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.coroutines}" | ||
} | ||
|
||
object TestDep { | ||
var junit = "junit:junit:${Versions.junitVersion}" | ||
var testJunitExt = "androidx.test.ext:junit:${Versions.testJunitExtVersion}" | ||
var espressoCore = "androidx.test.espresso:espresso-core:${Versions.espressoCoreVersion}" | ||
const val junit = "junit:junit:${Versions.junitVersion}" | ||
const val testJunitExt = "androidx.test.ext:junit:${Versions.testJunitExtVersion}" | ||
const val espressoCore = "androidx.test.espresso:espresso-core:${Versions.espressoCoreVersion}" | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
object Modules { | ||
object Splash{ | ||
val presentation = ":splash:splash_presentation" | ||
object App{ | ||
val app = ":app" | ||
} | ||
object AndroidCommon{ | ||
val common_utils = ":androidCommon:common_utils" | ||
} | ||
object Common{ | ||
val common_utils = ":common:common_utils" | ||
} | ||
object Home{ | ||
val home_data = ":home:home_data" | ||
val home_domain = ":home:home_domain" | ||
val home_presentation = ":home:home_presentation" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
object Versions { | ||
val coreKtxVersion = "1.10.1" | ||
val appCompatVersion = "1.6.1" | ||
val materialVersion = "1.9.0" | ||
val constraintVersion = "2.1.4" | ||
val splashVersion = "1.0.0" | ||
|
||
val junitVersion = "4.13.2" | ||
val testJunitExtVersion = "1.1.5" | ||
val espressoCoreVersion = "3.5.1" | ||
const val coreKtxVersion = "1.10.1" | ||
const val appCompatVersion = "1.6.1" | ||
const val materialVersion = "1.9.0" | ||
const val constraintVersion = "2.1.4" | ||
const val splashVersion = "1.0.0" | ||
|
||
const val hilt = "2.47" | ||
const val coroutines = "1.7.3" | ||
const val retrofit = "2.9.0" | ||
const val okHttp = "3.6.0" | ||
|
||
const val junitVersion = "4.13.2" | ||
const val testJunitExtVersion = "1.1.5" | ||
const val espressoCoreVersion = "3.5.1" | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
plugins { | ||
id("java-library") | ||
id("org.jetbrains.kotlin.jvm") | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_7 | ||
targetCompatibility = JavaVersion.VERSION_1_7 | ||
} | ||
|
||
dependencies { | ||
|
||
} |
4 changes: 4 additions & 0 deletions
4
common/common_utils/src/main/java/com/noble/common_utils/DateTimeHelper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.noble.common_utils | ||
|
||
object DateTimeHelper { | ||
} |
6 changes: 6 additions & 0 deletions
6
common/common_utils/src/main/java/com/noble/common_utils/enums/ErrorType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.noble.common_utils.enums | ||
|
||
enum class ErrorType { | ||
NO_INTERNET, | ||
CUSTOM | ||
} |
9 changes: 9 additions & 0 deletions
9
common/common_utils/src/main/java/com/noble/common_utils/state/State.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.noble.common_utils.state | ||
|
||
import com.noble.common_utils.enums.ErrorType | ||
|
||
sealed class State<T>{ | ||
class Loading<T>():State<T>() | ||
class Success<T>(val data: T?):State<T>() | ||
class Error<T>(val message: String, val type: ErrorType, val data:T? = null):State<T>() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins { | ||
id("java-library") | ||
id("org.jetbrains.kotlin.jvm") | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_7 | ||
targetCompatibility = JavaVersion.VERSION_1_7 | ||
} | ||
|
||
dependencies { | ||
implementation(project(Modules.Home.home_domain)) | ||
|
||
implementation(Dependencies.Coroutines.coroutinesCore) | ||
|
||
implementation(Dependencies.Retrofit.retrofit) | ||
implementation(Dependencies.Retrofit.retrofitOkHttp) | ||
implementation(Dependencies.Retrofit.retrofitGsonConverter) | ||
} |
6 changes: 6 additions & 0 deletions
6
home/home_data/src/main/java/com/noble/home_data/dto/CharactersResponseDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.noble.home_data.dto | ||
|
||
data class CharactersResponseDto( | ||
val info: Info?, | ||
val results: List<Result>? | ||
) |
Oops, something went wrong.