Skip to content

Commit

Permalink
Prepare for 0.5.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquim-verges committed Mar 29, 2020
1 parent a1388de commit a88db7d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
min_sdk = 14
target_sdk = 28

kotlin_version = '1.3.61'
kotlin_version = '1.3.70'
robolectric_version = '4.2'
mockito_kotlin_version = '1.5.0'
test_core_version = '1.2.0'
Expand All @@ -22,7 +22,7 @@ buildscript {
recyclerview_version = '1.1.0'
swiperefresh_version = '1.0.0'
constraint_layout_version = '1.1.3'
material_lib_version = '1.2.0-alpha04'
material_lib_version = '1.2.0-alpha05'
}

repositories {
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ org.gradle.jvmargs=-Xmx1536m
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
VERSION_NAME=0.4.0
VERSION_CODE=5
VERSION_NAME=0.5.0
VERSION_CODE=6
GROUP=com.joaquimverges.helium

POM_DESCRIPTION=Lightweight MVP Framework for Android
POM_DESCRIPTION=Lightweight Framework for Android
POM_URL=https://github.com/joaquim-verges/Helium
POM_SCM_URL=https://github.com/joaquim-verges/Helium
POM_SCM_CONNECTION=scm:[email protected]:joaquim-verges/Helium.git
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
package com.joaquimverges.demoapp

import android.content.res.ColorStateList
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import com.joaquimverges.helium.navigation.bottomnav.BottomNavUi

class BottomNavActivity: AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val ui = BottomNavUi(layoutInflater, R.menu.my_menu, R.navigation.my_graph)
val ui = BottomNavUi(layoutInflater, R.menu.my_menu, R.navigation.my_graph, bottomBarCustomization = {
val colors = ContextCompat.getColorStateList(this, R.color.bottom_tab_colors)
it.itemIconTintList = colors
it.itemTextColor = colors
})
setContentView(ui.view)
}

Expand Down
5 changes: 5 additions & 0 deletions samples/demoapp/src/main/res/color/bottom_tab_colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@android:color/holo_blue_dark" android:state_checked="true" />
<item android:color="#777" android:state_checked="false" />
</selector>
2 changes: 1 addition & 1 deletion samples/demoapp/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#2196F3</color>
<color name="colorPrimary">#FFF</color>
<color name="colorPrimaryDark">#FFF</color>
<color name="colorAccent">#FF4081</color>
<color name="colorBackground">#F0F0F0</color>
Expand Down

0 comments on commit a88db7d

Please sign in to comment.