Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed May 2, 2020
1 parent ed07415 commit 5e3ad0c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
11 changes: 7 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ dependencies {
implementation "org.jetbrains.anko:anko-sdk27-listeners:$anko_version"

//fireBase
implementation 'com.google.firebase:firebase-core:17.3.0'
implementation 'com.google.firebase:firebase-core:17.4.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'

//androidX
Expand All @@ -94,7 +94,7 @@ dependencies {
implementation 'androidx.legacy:legacy-support-v4:1.0.0'

//google
implementation 'com.google.android.material:material:1.2.0-alpha05'
implementation 'com.google.android.material:material:1.2.0-alpha06'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.google.android:flexbox:1.1.0'

Expand Down Expand Up @@ -157,6 +157,9 @@ greendao {
}

apply plugin: 'com.google.gms.google-services'
repositories {
mavenCentral()

afterEvaluate {
for (Task task : project.tasks.matching { it.name.startsWith('crashlyticsUploadDeobs') }) {
task.enabled = false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.app.Activity.RESULT_OK
import android.content.Intent
import android.net.Uri
import android.text.TextUtils
import androidx.core.content.ContextCompat
import androidx.documentfile.provider.DocumentFile
import com.hwangjr.rxbus.RxBus
import com.kunfei.bookshelf.MApplication
Expand Down Expand Up @@ -123,8 +124,8 @@ object BackupRestoreUi : Backup.CallBack, Restore.CallBack {

private fun selectBackupFolderApp(activity: Activity, isRestore: Boolean) {
val picker = FilePicker(activity, FilePicker.DIRECTORY)
picker.setBackgroundColor(activity.resources.getColor(R.color.background))
picker.setTopBackgroundColor(activity.resources.getColor(R.color.background))
picker.setBackgroundColor(ContextCompat.getColor(activity, R.color.background))
picker.setTopBackgroundColor(ContextCompat.getColor(activity, R.color.background))
picker.setItemHeight(30)
picker.setOnFilePickListener { currentPath: String ->
setBackupPath(currentPath)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("DEPRECATION")

package com.kunfei.bookshelf.view.fragment

import android.content.Intent
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ext {
support_library_version = '28.0.0'
}
buildscript {
ext.kotlin_version = '1.3.71'
ext.kotlin_version = '1.3.72'
repositories {
google()
jcenter()
Expand Down

0 comments on commit 5e3ad0c

Please sign in to comment.