Skip to content

Commit

Permalink
update lib
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuo committed Jul 23, 2019
1 parent 08274e3 commit 84da3dc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
13 changes: 10 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ android {
enabled = true
}

android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}

signingConfigs {
debug {
storeFile file("../gsygithubapp-debug.jks")
Expand Down Expand Up @@ -129,12 +136,12 @@ dependencies {
implementation "androidx.recyclerview:recyclerview:${android_support}"
implementation "androidx.appcompat:appcompat:$androidx_appcompat"
implementation "androidx.legacy:legacy-support-v4:$android_other_version"
implementation "androidx.annotation:annotation:$android_other_version"
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
kapt 'androidx.lifecycle:lifecycle-compiler:2.0.0'
implementation 'androidx.room:room-runtime:2.1.0'
kapt 'androidx.room:room-compiler:2.1.0'
implementation "com.google.android.material:material:$android_other_version"
implementation "androidx.annotation:annotation:$android_other_version"
implementation "com.google.android.material:material:1.1.0-alpha08"


//constraint
Expand Down Expand Up @@ -230,7 +237,7 @@ dependencies {
implementation "com.orhanobut:dialogplus:${dialogplus_version}"

///Drawer
implementation "com.mikepenz:materialdrawer:7.0.0-beta01"
implementation "com.mikepenz:materialdrawer:7.0.0-rc03"

///lottie
implementation "com.airbnb.android:lottie:${lottie_version}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class MainDrawerController(private val activity: Activity, toolbar: Toolbar,
)
.addDrawerItems(
PrimaryDrawerItem().withName(R.string.LoginOut)
.withTextColorRes(R.color.red)
.withOnDrawerItemClickListener(object : Drawer.OnDrawerItemClickListener {
override fun onItemClick(view: View?, position: Int, drawerItem: IDrawerItem<*>): Boolean {
loginRepository.logout(view!!.context)
Expand All @@ -103,7 +104,8 @@ class MainDrawerController(private val activity: Activity, toolbar: Toolbar,
}
})
)
.withAccountHeader(AccountHeaderBuilder().withActivity(activity)
.withAccountHeader(AccountHeaderBuilder()
.withActivity(activity)
.addProfiles(ProfileDrawerItem().withName(globalModel.userObservable.login)
.withSelected(false)
.withTextColorRes(R.color.white)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ buildscript {
ext.dagger_version = '2.23.2'
ext.iconics_version = '4.0.1-b01'
ext.okhttp3_version = '3.10.0'
ext.textfiled_box_version = '1.4.4'
ext.textfiled_box_version = '1.4.5'
ext.lifecycle_version = '1.1.1'
ext.spinkit_version = '1.2.0'
ext.gradle_version = '3.3.0'
Expand Down

0 comments on commit 84da3dc

Please sign in to comment.