Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

155 changes: 78 additions & 77 deletions buildSrc/src/main/java/dependencies/Dep.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,55 @@ package dependencies

object Dep {
private object LibsVersion {
const val Kotlin = "1.5.10"
const val KotlinCoroutines = "1.5.1"
const val Room = "2.3.0"
const val Navigation = "2.3.5"
const val Okhttp = "4.9.0"
const val Retrofit = "2.9.0"
const val Moshi = "1.12.0"
const val Hyperion = "0.9.31"
const val Ktlint = "0.36.0"
const val Epoxy = "3.9.0"
const val Timber = "4.7.1"
const val LiveData = "2.3.1"
const val JitPack = "1.1.2"
const val ViewPager2 = "1.0.0"
const val Dokka = "0.9.17"
const val Hilt = "2.37"
const val Compose = "1.0.0-rc01"
const val Takahirom = "0.5.0"
const val kotlin = "1.5.10"
const val kotlinCoroutines = "1.5.1"
const val room = "2.3.0"
const val navigation = "2.3.5"
const val okhttp = "4.9.0"
const val retrofit = "2.9.0"
const val moshi = "1.12.0"
const val hyperion = "0.9.31"
const val ktlint = "0.36.0"
const val epoxy = "3.9.0"
const val timber = "4.7.1"
const val liveData = "2.3.1"
const val jitPack = "1.1.2"
const val viewPager2 = "1.0.0"
const val dokka = "0.9.17"
const val hilt = "2.37"
const val compose = "1.0.0-rc01"
const val takahirom = "0.5.0"
const val fragment = "1.3.5"
const val test = "1.4.0"
}

object GradlePlugin {
const val android = "com.android.tools.build:gradle:4.2.2"
const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${LibsVersion.Kotlin}"
const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${LibsVersion.kotlin}"
const val safeArgs =
"androidx.navigation:navigation-safe-args-gradle-plugin:${LibsVersion.Navigation}"
"androidx.navigation:navigation-safe-args-gradle-plugin:${LibsVersion.navigation}"
const val playServices = "com.google.gms:google-services:4.3.3"
const val crashlytics = "com.google.firebase:firebase-crashlytics-gradle:2.0.0-beta01"
const val dokka = "org.jetbrains.dokka:dokka-gradle-plugin:${LibsVersion.Dokka}"
const val dokka = "org.jetbrains.dokka:dokka-gradle-plugin:${LibsVersion.dokka}"
const val dokkaPlugin = "org.jetbrains.dokka"
const val hilt = "com.google.dagger:hilt-android-gradle-plugin:${LibsVersion.Hilt}"
const val hilt = "com.google.dagger:hilt-android-gradle-plugin:${LibsVersion.hilt}"
}

object Test {
const val junit = "junit:junit:4.12"
const val testRunner = "androidx.test:runner:1.3.0-alpha02"
const val testRules = "androidx.test:rules:1.3.0-alpha02"
const val testCoreKtx = "androidx.test:core-ktx:1.2.1-alpha02"
const val androidJunit4Ktx = "androidx.test.ext:junit-ktx:1.1.2-alpha02"
const val orchestrator = "androidx.test:orchestrator:1.3.0-alpha02"
const val testRunner = "androidx.test:runner:${LibsVersion.test}"
const val testRules = "androidx.test:rules:${LibsVersion.test}"
const val testCoreKtx = "androidx.test:core-ktx:${LibsVersion.test}"
const val androidJunit4Ktx = "androidx.test.ext:junit-ktx:1.1.2"
const val orchestrator = "androidx.test:orchestrator:${LibsVersion.test}"
const val archCore = "androidx.arch.core:core-testing:2.1.0"
const val liveDataTestingKtx = "com.jraska.livedata:testing-ktx:1.1.0"
const val espressoCore = "androidx.test.espresso:espresso-core:3.3.0-alpha02"
const val coroutinesTest =
"org.jetbrains.kotlinx:kotlinx-coroutines-test:${LibsVersion.KotlinCoroutines}"
"org.jetbrains.kotlinx:kotlinx-coroutines-test:${LibsVersion.kotlinCoroutines}"
const val kotlinTestAssertions = "io.kotlintest:kotlintest-assertions:3.1.10"
const val testingKtx =
"androidx.navigation:navigation-testing-ktx:${LibsVersion.Navigation}"
const val testingKtx = "androidx.navigation:navigation-testing-ktx:${LibsVersion.navigation}"
const val fragmentTesting = "androidx.fragment:fragment-testing:${LibsVersion.fragment}"
}

object AndroidX {
Expand All @@ -59,44 +61,43 @@ object Dep {
const val coreKtx = "androidx.core:core-ktx:1.6.0"
const val preference = "androidx.preference:preference:1.1.1"
const val activityKtx = "androidx.activity:activity-ktx:1.2.3"
const val compose = "androidx.activity:activity-compose:1.3.0-alpha06"
const val fragmentKtx = "androidx.fragment:fragment-ktx:1.3.5"
const val fragmentKtx = "androidx.fragment:fragment-ktx:${LibsVersion.fragment}"

const val lifecycleLiveData = "androidx.lifecycle:lifecycle-livedata:${LibsVersion.LiveData}"
const val lifecycleLiveData = "androidx.lifecycle:lifecycle-livedata:${LibsVersion.liveData}"
const val liveDataCoreKtx =
"androidx.lifecycle:lifecycle-livedata-core-ktx:${LibsVersion.LiveData}"
const val liveDataKtx = "androidx.lifecycle:lifecycle-livedata-ktx:${LibsVersion.LiveData}"
"androidx.lifecycle:lifecycle-livedata-core-ktx:${LibsVersion.liveData}"
const val liveDataKtx = "androidx.lifecycle:lifecycle-livedata-ktx:${LibsVersion.liveData}"

const val viewPager2 = "androidx.viewpager2:viewpager2:${LibsVersion.ViewPager2}"
const val viewPager2 = "androidx.viewpager2:viewpager2:${LibsVersion.viewPager2}"

object Room {
const val compiler = "androidx.room:room-compiler:${LibsVersion.Room}"
const val runtime = "androidx.room:room-runtime:${LibsVersion.Room}"
const val coroutine = "androidx.room:room-ktx:${LibsVersion.Room}"
const val compiler = "androidx.room:room-compiler:${LibsVersion.room}"
const val runtime = "androidx.room:room-runtime:${LibsVersion.room}"
const val coroutine = "androidx.room:room-ktx:${LibsVersion.room}"
}

object Navigation {
const val runtimeKtx = "androidx.navigation:navigation-runtime-ktx:${LibsVersion.Navigation}"
const val runtimeKtx = "androidx.navigation:navigation-runtime-ktx:${LibsVersion.navigation}"
const val fragmentKtx =
"androidx.navigation:navigation-fragment-ktx:${LibsVersion.Navigation}"
const val uiKtx = "androidx.navigation:navigation-ui-ktx:${LibsVersion.Navigation}"
"androidx.navigation:navigation-fragment-ktx:${LibsVersion.navigation}"
const val uiKtx = "androidx.navigation:navigation-ui-ktx:${LibsVersion.navigation}"
}

object Compose {
const val ui = "androidx.compose.ui:ui:${LibsVersion.Compose}"
const val foundation = "androidx.compose.foundation:foundation:${LibsVersion.Compose}"
const val material = "androidx.compose.material:material:${LibsVersion.Compose}"
const val runtime = "androidx.compose.runtime:runtime:${LibsVersion.Compose}"
const val ui = "androidx.compose.ui:ui:${LibsVersion.compose}"
const val foundation = "androidx.compose.foundation:foundation:${LibsVersion.compose}"
const val material = "androidx.compose.material:material:${LibsVersion.compose}"
const val runtime = "androidx.compose.runtime:runtime:${LibsVersion.compose}"
}
}

object Kotlin {
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${LibsVersion.Kotlin}"
const val stdlibCommon = "org.jetbrains.kotlin:kotlin-stdlib-common:${LibsVersion.Kotlin}"
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${LibsVersion.kotlin}"
const val stdlibCommon = "org.jetbrains.kotlin:kotlin-stdlib-common:${LibsVersion.kotlin}"
const val coroutines =
"org.jetbrains.kotlinx:kotlinx-coroutines-core:${LibsVersion.KotlinCoroutines}"
"org.jetbrains.kotlinx:kotlinx-coroutines-core:${LibsVersion.kotlinCoroutines}"
const val playServices =
"org.jetbrains.kotlinx:kotlinx-coroutines-play-services:${LibsVersion.KotlinCoroutines}"
"org.jetbrains.kotlinx:kotlinx-coroutines-play-services:${LibsVersion.kotlinCoroutines}"
}

object Firebase {
Expand All @@ -110,64 +111,64 @@ object Dep {
}

object OkHttp {
const val client = "com.squareup.okhttp3:okhttp:${LibsVersion.Okhttp}"
const val loggingInterceptor = "com.squareup.okhttp3:logging-interceptor:${LibsVersion.Okhttp}"
const val client = "com.squareup.okhttp3:okhttp:${LibsVersion.okhttp}"
const val loggingInterceptor = "com.squareup.okhttp3:logging-interceptor:${LibsVersion.okhttp}"
}

object Retrofit {
const val retrofit = "com.squareup.retrofit2:retrofit:${LibsVersion.Retrofit}"
const val converter = "com.squareup.retrofit2:converter-moshi:${LibsVersion.Retrofit}"
const val retrofit = "com.squareup.retrofit2:retrofit:${LibsVersion.retrofit}"
const val converter = "com.squareup.retrofit2:converter-moshi:${LibsVersion.retrofit}"
const val coroutine = "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2"
}

object Moshi {
const val moshi = "com.squareup.moshi:moshi:${LibsVersion.Moshi}"
const val kotlin = "com.squareup.moshi:moshi-kotlin:${LibsVersion.Moshi}"
const val moshi = "com.squareup.moshi:moshi:${LibsVersion.moshi}"
const val kotlin = "com.squareup.moshi:moshi-kotlin:${LibsVersion.moshi}"
}

const val liveEvent = "com.github.hadilq.liveevent:liveevent:1.0.1"

object Hyperion {

const val core = "com.willowtreeapps.hyperion:hyperion-core:${LibsVersion.Hyperion}"
const val attr = "com.willowtreeapps.hyperion:hyperion-attr:${LibsVersion.Hyperion}"
const val core = "com.willowtreeapps.hyperion:hyperion-core:${LibsVersion.hyperion}"
const val attr = "com.willowtreeapps.hyperion:hyperion-attr:${LibsVersion.hyperion}"
const val measurement =
"com.willowtreeapps.hyperion:hyperion-measurement:${LibsVersion.Hyperion}"
const val disk = "com.willowtreeapps.hyperion:hyperion-disk:${LibsVersion.Hyperion}"
const val recorder = "com.willowtreeapps.hyperion:hyperion-recorder:${LibsVersion.Hyperion}"
const val phoenix = "com.willowtreeapps.hyperion:hyperion-phoenix:${LibsVersion.Hyperion}"
const val crash = "com.willowtreeapps.hyperion:hyperion-crash:${LibsVersion.Hyperion}"
"com.willowtreeapps.hyperion:hyperion-measurement:${LibsVersion.hyperion}"
const val disk = "com.willowtreeapps.hyperion:hyperion-disk:${LibsVersion.hyperion}"
const val recorder = "com.willowtreeapps.hyperion:hyperion-recorder:${LibsVersion.hyperion}"
const val phoenix = "com.willowtreeapps.hyperion:hyperion-phoenix:${LibsVersion.hyperion}"
const val crash = "com.willowtreeapps.hyperion:hyperion-crash:${LibsVersion.hyperion}"
const val preferences =
"com.willowtreeapps.hyperion:hyperion-shared-preferences:${LibsVersion.Hyperion}"
const val counter = "com.willowtreeapps.hyperion:hyperion-geiger-counter:${LibsVersion.Hyperion}"
"com.willowtreeapps.hyperion:hyperion-shared-preferences:${LibsVersion.hyperion}"
const val counter = "com.willowtreeapps.hyperion:hyperion-geiger-counter:${LibsVersion.hyperion}"
const val buildConfig =
"com.willowtreeapps.hyperion:hyperion-build-config:${LibsVersion.Hyperion}"
const val plugin = "com.willowtreeapps.hyperion:hyperion-plugin:${LibsVersion.Hyperion}"
const val timber = "com.willowtreeapps.hyperion:hyperion-timber:${LibsVersion.Hyperion}"
"com.willowtreeapps.hyperion:hyperion-build-config:${LibsVersion.hyperion}"
const val plugin = "com.willowtreeapps.hyperion:hyperion-plugin:${LibsVersion.hyperion}"
const val timber = "com.willowtreeapps.hyperion:hyperion-timber:${LibsVersion.hyperion}"

const val http = "com.github.Commit451:Hyperion-Chuck:${LibsVersion.JitPack}"
const val http = "com.github.Commit451:Hyperion-Chuck:${LibsVersion.jitPack}"
}

object Ktlint {
const val ktlint = "com.pinterest:ktlint:${LibsVersion.Ktlint}"
const val ktlint = "com.pinterest:ktlint:${LibsVersion.ktlint}"
}

object Epoxy {
const val epoxy = "com.airbnb.android:epoxy:${LibsVersion.Epoxy}"
const val processer = "com.airbnb.android:epoxy-processor:${LibsVersion.Epoxy}"
const val databindingSupport = "com.airbnb.android:epoxy-databinding:${LibsVersion.Epoxy}"
const val epoxy = "com.airbnb.android:epoxy:${LibsVersion.epoxy}"
const val processer = "com.airbnb.android:epoxy-processor:${LibsVersion.epoxy}"
const val databindingSupport = "com.airbnb.android:epoxy-databinding:${LibsVersion.epoxy}"
}

object Timber {
const val timber = "com.jakewharton.timber:timber:${LibsVersion.Timber}"
const val timber = "com.jakewharton.timber:timber:${LibsVersion.timber}"
}

object Hilt {
const val android = "com.google.dagger:hilt-android:${LibsVersion.Hilt}"
const val compiler = "com.google.dagger:hilt-compiler:${LibsVersion.Hilt}"
const val android = "com.google.dagger:hilt-android:${LibsVersion.hilt}"
const val compiler = "com.google.dagger:hilt-compiler:${LibsVersion.hilt}"
}

object Takahirom {
const val hyperionSimpleItem = "com.github.takahirom:Hyperion-Simple-Item:${LibsVersion.Takahirom}"
const val hyperionSimpleItem = "com.github.takahirom:Hyperion-Simple-Item:${LibsVersion.takahirom}"
}
}
7 changes: 7 additions & 0 deletions features/profile/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,11 @@ dependencies {

implementation Dep.Hilt.android
kapt Dep.Hilt.compiler

testImplementation Dep.Test.junit
androidTestImplementation Dep.Test.fragmentTesting
androidTestImplementation Dep.Test.testCoreKtx
androidTestImplementation Dep.Test.testRunner
androidTestImplementation Dep.Test.testRules
androidTestImplementation Dep.Test.androidJunit4Ktx
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package com.techcafe.todone.profile
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ File must end with a newline (\n)


class ProfileFragmentTest