implement the album feature

This commit is contained in:
Carlos Martinez
2020-02-03 23:01:38 -03:00
parent 1d752803d7
commit 2411c1c84d
24 changed files with 367 additions and 98 deletions

View File

@@ -1,24 +0,0 @@
package com.hako.friendlists
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.hako.friendlists", appContext.packageName)
}
}

View File

@@ -1,6 +1,7 @@
package com.hako.friendlists
import android.app.Application
import com.hako.albumlist.di.albumListModules
import com.hako.userlist.di.userlistModules
import com.hako.friendlists.di.appModules
import org.koin.android.ext.koin.androidContext
@@ -26,7 +27,8 @@ class MainApplication : Application() {
modules(
listOf(
appModules,
userlistModules
userlistModules,
albumListModules
)
)
}

View File

@@ -2,8 +2,10 @@
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_navigation"
app:startDestination="@id/userlist_navigation">
app:startDestination="@id/albumlist_navigation">
<include app:graph="@navigation/userlist_navigation" />
<include app:graph="@navigation/albumlist_navigation" />
</navigation>

View File

@@ -4,4 +4,5 @@
<color name="colorPrimaryDark">#324047</color>
<color name="colorAccent">#CBCFD1</color>
<color name="colorRed">#D32F2F</color>
<color name="colorDarkGray">#333333</color>
</resources>

View File

@@ -5,6 +5,7 @@
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowBackground">@color/soft_background</item>
<item name="android:textColor">@color/colorDarkGray</item>
</style>
</resources>

View File

@@ -1,17 +0,0 @@
package com.hako.friendlists
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}