Skip to content

Commit

Permalink
Merge branch 'migrate-to-androidx' of https://github.com/fs/android-base
Browse files Browse the repository at this point in the history
 into migrate-to-androidx

# Conflicts:
#	app/src/main/java/com/flatstack/android/mainscreen/TestDialog.kt
  • Loading branch information
Yaroslav Sudnik committed May 16, 2019
2 parents 2a97b8d + ca71ace commit e3b5f93
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 97 deletions.
10 changes: 0 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@ android {
include 'spek2'
}
}
jacocoOptions {
// here goes all jacoco config, for example
html.enabled = true
xml.enabled = false
csv.enabled = false
unitTests.all {
testLogging.events = ["passed", "skipped", "failed"]
}
}
}
}
lintOptions {
Expand All @@ -94,7 +85,6 @@ repositories {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin"
implementation "com.jakewharton:butterknife:$versions.butterKnife"

implementation androidLibs
implementation retrofitLibs
Expand Down
6 changes: 3 additions & 3 deletions app/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Mon May 06 16:49:10 MSK 2019
appVersionCode=11
appVersionName=0.1.16
#Wed May 15 11:26:23 MSK 2019
appVersionCode=12
appVersionName=0.1.17
17 changes: 6 additions & 11 deletions app/src/main/java/com/flatstack/android/mainscreen/TestDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,17 @@ package com.flatstack.android.mainscreen
import android.os.Bundle
import android.view.View
import android.widget.TextView
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.FragmentManager
import butterknife.BindView

import com.flatstack.android.R
import com.flatstack.android.util.ui.BaseDialogFragment

class TestDialog : BaseDialogFragment() {
@BindView(R.id.tv_title) internal lateinit var uiTitle: TextView
@BindView(R.id.tv_message) internal lateinit var uiMessage: TextView
class TestDialog : DialogFragment() {
private lateinit var uiTitle: TextView
internal lateinit var uiMessage: TextView

private var title: String? = null
private var message: String? = null

override val layoutRes: Int
get() = R.layout.dialog_test

override fun parseArguments(args: Bundle) {
private fun parseArguments() {
arguments?.let {
title = it.getString(KEY_TITLE)
message = it.getString(KEY_MESSAGE)
Expand All @@ -31,6 +25,7 @@ class TestDialog : BaseDialogFragment() {
savedInstanceState: Bundle?
) {
super.onViewCreated(view, savedInstanceState)
parseArguments()
uiTitle.text = title
uiMessage.text = message
}
Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions deps.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ ext {
retrofit : '2.5.0',
coroutines : '1.1.1',
room : '2.1.0-beta01',
butterKnife : '10.1.0',
espressoVersion : '3.1.1'
]
androidx = [
Expand Down Expand Up @@ -57,7 +56,6 @@ ext {
kapt = [
room_compiler : "androidx.room:room-compiler:$versions.room",
lifecycle : "androidx.lifecycle:lifecycle-compiler:$versions.lifecycle",
butterKnife : "com.jakewharton:butterknife-compiler:$versions.butterKnife"
]

androidLibs = androidx.values()
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Apr 17 17:11:54 MSK 2019
#Wed May 15 11:21:42 MSK 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip

0 comments on commit e3b5f93

Please sign in to comment.