Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
Update gradle plugin and wrapper versions (#344)
Browse files Browse the repository at this point in the history
* Update gradle plugin and wrapper versions

* Fix github build action by installing ndk version 21.0.6113669

* Fix android lint issues

* Small improvement
  • Loading branch information
vase4kin committed May 30, 2020
1 parent 31c5cfb commit 0bedec9
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 79 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
java-version: 1.8

- name: Install NDK
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570" --sdk_root=${ANDROID_SDK_ROOT}
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}

- name: Copy google-services jsons
run: |
Expand Down
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ apply plugin: 'org.jmailen.kotlinter'
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
apply from: '../scripts/jacoco.gradle'
apply from: '../scripts/pmd.gradle'
apply from: '../scripts/findbugs.gradle'

android {
defaultConfig {
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/layout/header_default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_height="@dimen/dp_48"
android:fillViewport="true">

<TextView
style="@style/Header"
android:layout_width="wrap_content"
android:layout_height="match_parent"
tools:text="Header" />

</HorizontalScrollView>
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ object Libs {
}

object Tools {
const val gradleAndroid = "com.android.tools.build:gradle:3.6.1"
const val gradleAndroid = "com.android.tools.build:gradle:4.0.0"
const val gradleversions = "com.github.ben-manes:gradle-versions-plugin:0.21.0"
const val androidAapt = "com.neenbedankt.gradle.plugins:android-apt:1.8"
const val googleServices = "com.google.gms:google-services:4.3.0"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
2 changes: 0 additions & 2 deletions libraries/theme/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@

<style name="Header">
<item name="android:id">@id/section_text</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">@dimen/dp_48</item>
<item name="android:gravity">center_vertical</item>
<item name="android:paddingLeft">@dimen/dp_16</item>
<item name="android:paddingRight">@dimen/dp_16</item>
Expand Down
41 changes: 0 additions & 41 deletions scripts/findbugs.gradle

This file was deleted.

27 changes: 0 additions & 27 deletions scripts/findbugs_exclude.xml

This file was deleted.

8 changes: 4 additions & 4 deletions scripts/jacoco.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Andrey Tolpeev
* Copyright 2020 Andrey Tolpeev
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -65,10 +65,10 @@ task generateCodeCoverageReport(type: JacocoReport) {
'coverage.ec'])
}

sourceDirectories = files([javaSrc, kotlinSrc])
classDirectories = files([javaClasses, kotlinClasses])
getSourceDirectories().setFrom(files([javaSrc, kotlinSrc]))
getClassDirectories().setFrom(files([javaClasses, kotlinClasses]))

executionData = files(execution)
getExecutionData().setFrom(files(execution))

doLast() {
print "file://${reports.html.destination}/index.html"
Expand Down

0 comments on commit 0bedec9

Please sign in to comment.