Skip to content
Snippets Groups Projects
Verified Commit 3164fb8b authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Attempt at improving lint, updating versions, improving CI

parent eacd04f0
Branches
Tags
No related merge requests found
Pipeline #
Showing
with 66 additions and 30 deletions
...@@ -37,11 +37,16 @@ unitTests: ...@@ -37,11 +37,16 @@ unitTests:
cache: cache:
policy: "pull" policy: "pull"
script: script:
- "./gradlew test" - "./gradlew check"
deploy: deploy:
stage: "deploy" stage: "deploy"
image: "k8r.eu/justjanne/docker-s3cmd:latest" image: "k8r.eu/justjanne/docker-s3cmd:latest"
only:
refs:
- "master"
variables:
- "$S3_CONFIG != ''"
dependencies: dependencies:
- "build" - "build"
script: script:
......
...@@ -106,7 +106,8 @@ android { ...@@ -106,7 +106,8 @@ android {
} }
lintOptions { lintOptions {
disable("ResourceType") isWarningsAsErrors = true
setLintConfig(file("../lint.xml"))
} }
} }
...@@ -133,7 +134,7 @@ dependencies { ...@@ -133,7 +134,7 @@ dependencies {
} }
// App Arch Persistence // App Arch Persistence
withVersion("1.1.0-beta2") { withVersion("1.1.0-beta3") {
implementation("android.arch.persistence.room", "runtime", version) implementation("android.arch.persistence.room", "runtime", version)
implementation("android.arch.persistence.room", "rxjava2", version) implementation("android.arch.persistence.room", "rxjava2", version)
kapt("android.arch.persistence.room", "compiler", version) kapt("android.arch.persistence.room", "compiler", version)
...@@ -141,7 +142,7 @@ dependencies { ...@@ -141,7 +142,7 @@ dependencies {
} }
// App Arch Paging // App Arch Paging
implementation("android.arch.paging", "runtime", "1.0.0-beta1") { implementation("android.arch.paging", "runtime", "1.0.0-rc1") {
exclude(group = "junit", module = "junit") exclude(group = "junit", module = "junit")
} }
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
}, },
{ {
"name": "Android Architecture Components: Persistence", "name": "Android Architecture Components: Persistence",
"version": "1.1.0-beta1", "version": "1.1.0-beta3",
"license": { "license": {
"short_name": "Apache-2.0", "short_name": "Apache-2.0",
"full_name": "Apache License" "full_name": "Apache License"
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
}, },
{ {
"name": "Android Architecture Components: Room", "name": "Android Architecture Components: Room",
"version": "1.1.0-beta1", "version": "1.1.0-beta3",
"license": { "license": {
"short_name": "Apache-2.0", "short_name": "Apache-2.0",
"full_name": "Apache License" "full_name": "Apache License"
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
}, },
{ {
"name": "Android Support Library", "name": "Android Support Library",
"version": "27.1.0", "version": "27.1.1",
"license": { "license": {
"short_name": "Apache-2.0", "short_name": "Apache-2.0",
"full_name": "Apache License" "full_name": "Apache License"
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
<application <application
android:name=".QuasselDroid" android:name=".QuasselDroid"
android:allowBackup="true" android:allowBackup="true"
android:fullBackupContent="@xml/backup_content"
android:description="@string/app_description" android:description="@string/app_description"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
......
...@@ -107,13 +107,13 @@ class AboutFragment : DaggerFragment() { ...@@ -107,13 +107,13 @@ class AboutFragment : DaggerFragment() {
), ),
Library( Library(
name = "Android Architecture Components: Persistence", name = "Android Architecture Components: Persistence",
version = "1.1.0-beta1", version = "1.1.0-beta3",
license = apache2, license = apache2,
url = "https://android.googlesource.com/platform/frameworks/support/+/master/persistence" url = "https://android.googlesource.com/platform/frameworks/support/+/master/persistence"
), ),
Library( Library(
name = "Android Architecture Components: Room", name = "Android Architecture Components: Room",
version = "1.1.0-beta1", version = "1.1.0-beta3",
license = apache2, license = apache2,
url = "https://android.googlesource.com/platform/frameworks/support/+/master/persistence" url = "https://android.googlesource.com/platform/frameworks/support/+/master/persistence"
), ),
...@@ -125,7 +125,7 @@ class AboutFragment : DaggerFragment() { ...@@ -125,7 +125,7 @@ class AboutFragment : DaggerFragment() {
), ),
Library( Library(
name = "Android Support Library", name = "Android Support Library",
version = "27.1.0", version = "27.1.1",
license = apache2, license = apache2,
url = "https://android.googlesource.com/platform/frameworks/support/+/master" url = "https://android.googlesource.com/platform/frameworks/support/+/master"
), ),
......
...@@ -67,7 +67,7 @@ import de.kuschku.quasseldroid.R; ...@@ -67,7 +67,7 @@ import de.kuschku.quasseldroid.R;
/** /**
* @author Aidan Follestad (afollestad) * @author Aidan Follestad (afollestad)
*/ */
@SuppressWarnings({"FieldCanBeLocal", "ConstantConditions"}) @SuppressWarnings({"FieldCanBeLocal", "ConstantConditions", "PrivateResource"})
public class ColorChooserDialog extends DialogFragment public class ColorChooserDialog extends DialogFragment
implements View.OnClickListener, View.OnLongClickListener { implements View.OnClickListener, View.OnLongClickListener {
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
package de.kuschku.quasseldroid.util.ui package de.kuschku.quasseldroid.util.ui
import android.annotation.SuppressLint
import android.view.GestureDetector import android.view.GestureDetector
import android.view.MotionEvent import android.view.MotionEvent
import android.view.View import android.view.View
...@@ -43,5 +44,6 @@ class DoubleClickHelper(view: View) : View.OnTouchListener { ...@@ -43,5 +44,6 @@ class DoubleClickHelper(view: View) : View.OnTouchListener {
} }
) )
@SuppressLint("ClickableViewAccessibility")
override fun onTouch(v: View?, event: MotionEvent?) = gestureDetector.onTouchEvent(event) override fun onTouch(v: View?, event: MotionEvent?) = gestureDetector.onTouchEvent(event)
} }
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
package de.kuschku.quasseldroid.util.ui package de.kuschku.quasseldroid.util.ui
import android.annotation.SuppressLint
import android.content.Context import android.content.Context
import android.support.v7.widget.AppCompatTextView import android.support.v7.widget.AppCompatTextView
import android.text.Spannable import android.text.Spannable
...@@ -36,6 +37,7 @@ class RipplePassthroughTextView : AppCompatTextView { ...@@ -36,6 +37,7 @@ class RipplePassthroughTextView : AppCompatTextView {
// The goal is to provide all normal interaction to the parent view, unless a link is touched // The goal is to provide all normal interaction to the parent view, unless a link is touched
// But additionally, we want to provide all normal textview interactions as well // But additionally, we want to provide all normal textview interactions as well
@SuppressLint("ClickableViewAccessibility")
override fun onTouchEvent(event: MotionEvent): Boolean { override fun onTouchEvent(event: MotionEvent): Boolean {
val movementMethod = this.movementMethod val movementMethod = this.movementMethod
this.movementMethod = null this.movementMethod = null
......
...@@ -35,6 +35,8 @@ import android.graphics.drawable.shapes.OvalShape; ...@@ -35,6 +35,8 @@ import android.graphics.drawable.shapes.OvalShape;
import android.graphics.drawable.shapes.RectShape; import android.graphics.drawable.shapes.RectShape;
import android.graphics.drawable.shapes.RoundRectShape; import android.graphics.drawable.shapes.RoundRectShape;
import java.util.Locale;
/** /**
* @author amulya * @author amulya
* created 14 Oct 2014 * created 14 Oct 2014
...@@ -62,7 +64,7 @@ public class TextDrawable extends ShapeDrawable { ...@@ -62,7 +64,7 @@ public class TextDrawable extends ShapeDrawable {
radius = builder.radius; radius = builder.radius;
// text and color // text and color
text = builder.toUpperCase ? builder.text.toUpperCase() : builder.text; text = builder.toUpperCase ? builder.text.toUpperCase(Locale.getDefault()) : builder.text;
// text paint settings // text paint settings
fontSize = builder.fontSize; fontSize = builder.fontSize;
......
...@@ -21,10 +21,12 @@ ...@@ -21,10 +21,12 @@
--> -->
<vector xmlns:android="http://schemas.android.com/apk/res/android" <vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:width="24dp" android:width="24dp"
android:height="24dp" android:height="24dp"
android:viewportHeight="24" android:viewportHeight="24"
android:viewportWidth="24"> android:viewportWidth="24"
tools:ignore="VectorPath">
<path <path
android:fillColor="#000" android:fillColor="#000"
android:pathData="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z" /> android:pathData="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z" />
......
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingLeft="?attr/actionBarSize" android:paddingLeft="?attr/actionBarSize"
android:paddingRight="?attr/actionBarSize"> android:paddingRight="?attr/actionBarSize"
tools:ignore="InconsistentLayout">
<LinearLayout <LinearLayout
android:layout_width="0dip" android:layout_width="0dip"
......
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
tools:ignore="InconsistentLayout">
<LinearLayout <LinearLayout
android:layout_width="400dp" android:layout_width="400dp"
......
...@@ -21,10 +21,12 @@ ...@@ -21,10 +21,12 @@
--> -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
tools:ignore="PrivateResource">
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
......
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="@dimen/md_title_frame_margin_bottom" android:paddingBottom="@dimen/md_title_frame_margin_bottom"
android:paddingTop="@dimen/md_title_frame_margin_bottom"> android:paddingTop="@dimen/md_title_frame_margin_bottom"
tools:ignore="PrivateResource">
<View <View
android:id="@+id/md_colorIndicator" android:id="@+id/md_colorIndicator"
...@@ -63,6 +64,7 @@ ...@@ -63,6 +64,7 @@
android:textColor="?colorTextPrimary" android:textColor="?colorTextPrimary"
android:textColorHint="?colorTextSecondary" android:textColorHint="?colorTextSecondary"
android:textSize="@dimen/md_title_textsize" android:textSize="@dimen/md_title_textsize"
android:inputType="textNoSuggestions"
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />
</LinearLayout> </LinearLayout>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
--> -->
<com.afollestad.materialdialogs.color.FillGridView xmlns:android="http://schemas.android.com/apk/res/android" <com.afollestad.materialdialogs.color.FillGridView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/md_grid" android:id="@+id/md_grid"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
...@@ -32,4 +33,5 @@ ...@@ -32,4 +33,5 @@
android:orientation="vertical" android:orientation="vertical"
android:padding="16dp" android:padding="16dp"
android:stretchMode="columnWidth" android:stretchMode="columnWidth"
android:verticalSpacing="8dp" /> android:verticalSpacing="8dp"
tools:ignore="PrivateResource" />
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
android:layout_weight="1" /> android:layout_weight="1" />
<android.support.v7.widget.AppCompatImageView <android.support.v7.widget.AppCompatImageView
android:id="@+id/send" android:id="@+id/close"
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="48dp" android:layout_height="48dp"
android:layout_gravity="top|end" android:layout_gravity="top|end"
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
...@@ -34,7 +35,8 @@ ...@@ -34,7 +35,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/label_connection_host" android:hint="@string/label_connection_host"
app:errorEnabled="true"> app:errorEnabled="true"
tools:ignore="LabelFor">
<EditText <EditText
android:id="@+id/host" android:id="@+id/host"
...@@ -48,7 +50,8 @@ ...@@ -48,7 +50,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/labelConnectionPort" android:hint="@string/labelConnectionPort"
app:errorEnabled="true"> app:errorEnabled="true"
tools:ignore="LabelFor">
<EditText <EditText
android:id="@+id/port" android:id="@+id/port"
......
...@@ -59,7 +59,8 @@ ...@@ -59,7 +59,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/label_account_name" android:hint="@string/label_account_name"
app:errorEnabled="true"> app:errorEnabled="true"
tools:ignore="LabelFor">
<EditText <EditText
android:id="@+id/name" android:id="@+id/name"
...@@ -102,7 +103,8 @@ ...@@ -102,7 +103,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/label_connection_host" android:hint="@string/label_connection_host"
app:errorEnabled="true"> app:errorEnabled="true"
tools:ignore="LabelFor">
<EditText <EditText
android:id="@+id/host" android:id="@+id/host"
...@@ -116,7 +118,8 @@ ...@@ -116,7 +118,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/labelConnectionPort" android:hint="@string/labelConnectionPort"
app:errorEnabled="true"> app:errorEnabled="true"
tools:ignore="LabelFor">
<EditText <EditText
android:id="@+id/port" android:id="@+id/port"
...@@ -161,7 +164,8 @@ ...@@ -161,7 +164,8 @@
android:id="@+id/userWrapper" android:id="@+id/userWrapper"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/label_account_user"> android:hint="@string/label_account_user"
tools:ignore="LabelFor">
<EditText <EditText
android:id="@+id/user" android:id="@+id/user"
...@@ -176,7 +180,8 @@ ...@@ -176,7 +180,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/label_account_pass" android:hint="@string/label_account_pass"
app:passwordToggleEnabled="true"> app:passwordToggleEnabled="true"
tools:ignore="LabelFor">
<EditText <EditText
android:id="@+id/pass" android:id="@+id/pass"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
...@@ -32,7 +33,8 @@ ...@@ -32,7 +33,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/label_account_name" android:hint="@string/label_account_name"
app:errorEnabled="true"> app:errorEnabled="true"
tools:ignore="LabelFor">
<EditText <EditText
android:id="@+id/name" android:id="@+id/name"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
...@@ -31,7 +32,8 @@ ...@@ -31,7 +32,8 @@
android:id="@+id/userWrapper" android:id="@+id/userWrapper"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/label_account_user"> android:hint="@string/label_account_user"
tools:ignore="LabelFor">
<EditText <EditText
android:id="@+id/user" android:id="@+id/user"
...@@ -46,7 +48,8 @@ ...@@ -46,7 +48,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/label_account_pass" android:hint="@string/label_account_pass"
app:passwordToggleEnabled="true"> app:passwordToggleEnabled="true"
tools:ignore="LabelFor">
<EditText <EditText
android:id="@+id/pass" android:id="@+id/pass"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment