Upgrade Gradle to v6.5

Fixed #61 for API > 16 (Hotfix) - need rework of the GameField to make it work on API 16 for RTL locale as well.
This commit is contained in:
Christopher Beckmann 2020-10-29 10:54:14 +01:00
parent f2894713b0
commit 2293991a46
4 changed files with 10 additions and 6 deletions

View file

@ -34,7 +34,7 @@ android {
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.preference:preference:1.1.1'
testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.13.1'
implementation 'androidx.core:core:1.3.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
@ -42,6 +42,5 @@ dependencies {
implementation 'com.google.android.material:material:1.2.1'
implementation 'androidx.legacy:legacy-support-core-ui:1.0.0'
implementation 'androidx.legacy:legacy-support-core-utils:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.3'
}

View file

@ -23,6 +23,7 @@ import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Build;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
@ -83,6 +84,10 @@ public class SudokuFieldLayout extends RelativeLayout implements IHighlightChang
sectionLineColor = a.getColor(R.styleable.SudokuFieldLayout_sudokuFieldSectionLineColor, Color.BLACK);
a.recycle();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
setLayoutDirection(LAYOUT_DIRECTION_LTR);
}
setWillNotDraw(false);
setBackgroundColor(backgroundColor);
}

View file

@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.android.tools.build:gradle:4.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

View file

@ -1,6 +1,6 @@
#Tue Oct 06 10:50:26 CEST 2020
#Thu Oct 29 10:00:13 CET 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip