Skip to content

Commit e435769

Browse files
Merge branch 'main' of github.com:Telefonica/android-nested-scroll-webview into jmanrique/ANDROID-17069-update-agp
# Conflicts: # app/build.gradle # build.gradle # gradle.properties # gradle/wrapper/gradle-wrapper.properties # nestedscrollwebview/build.gradle
2 parents 5765cfe + 2b41c01 commit e435769

File tree

15 files changed

+246
-147
lines changed

15 files changed

+246
-147
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### :tickets: Jira ticket
2+
[ANDROID-XXXX](https://jira.tid.es/browse/ANDROID-XXXX)
3+
4+
### :goal_net: What's the goal?
5+
_Provide a description of the overall goal. The description in the Jira ticket may help._
6+
7+
### :construction: How do we do it?
8+
_Provide a description of the implementation. A list of steps would be ideal._
9+
* _Step 1_
10+
* _Step 2_
11+
* _Step 3_
12+
13+
### :white_check_mark: Documentation changes?
14+
- [ ] No docs to update nor create
15+
16+
### :test_tube: How can I test this?
17+
_If it cannot be tested explain why._
18+
- [ ] ...

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
2121
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }}
2222
run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }}
23-
--max-workers 1 closeAndReleaseStagingRepository"
23+
--max-workers 1 closeAndReleaseStagingRepositories"

.github/workflows/snapshot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ jobs:
2222
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
2323
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
2424
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }}
25-
run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DSNAPSHOT_VERSION=${{ github.event.inputs.snapshotVersion }}"
25+
run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DSNAPSHOT_VERSION=${{ github.event.inputs.snapshotVersion }}
26+
--max-workers 1 closeAndReleaseStagingRepositories"

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
- name: Checkout
88
uses: actions/[email protected]
99

10-
- name: Set up JDK 11
10+
- name: Set up JDK 17
1111
uses: actions/setup-java@v2
1212
with:
1313
distribution: 'temurin'
14-
java-version: '11'
14+
java-version: '17'
1515

1616
## Build all our Build Types at once ##
1717
- name: Build all artifacts

app/build.gradle

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
2-
id 'com.android.application'
3-
id 'org.jetbrains.kotlin.android'
4+
alias(libs.plugins.android.application)
5+
alias(libs.plugins.kotlin.android)
46
}
57

68
android {
@@ -21,11 +23,13 @@ android {
2123
}
2224
}
2325
compileOptions {
24-
sourceCompatibility JavaVersion.VERSION_1_8
25-
targetCompatibility JavaVersion.VERSION_1_8
26+
sourceCompatibility JavaVersion.VERSION_17
27+
targetCompatibility JavaVersion.VERSION_17
2628
}
27-
kotlinOptions {
28-
jvmTarget = '1.8'
29+
kotlin {
30+
compilerOptions {
31+
jvmTarget.set(JvmTarget.JVM_17)
32+
}
2933
}
3034
buildFeatures {
3135
viewBinding true

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools"
4-
package="com.telefonica.nestedscrollwebviewdemo">
3+
xmlns:tools="http://schemas.android.com/tools">
54

65
<uses-permission android:name="android.permission.INTERNET"/>
76

build.gradle

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import io.gitlab.arturbosch.detekt.Detekt
2+
13
// Top-level build file where you can add configuration options common to all sub-projects/modules.
24
buildscript {
35
dependencies {
@@ -15,22 +17,27 @@ plugins {
1517
alias(libs.plugins.detekt)
1618
}
1719

18-
detekt {
19-
input = files(rootProject.rootDir)
20-
config = files("$projectDir/detekt.yml")
20+
tasks.withType(Detekt).configureEach {
21+
// Files to analyze
22+
setSource(files(rootProject.rootDir))
23+
24+
// Configuration
25+
config.setFrom(files("$projectDir/detekt.yml"))
2126
allRules = true
2227
buildUponDefaultConfig = true
2328

2429
reports {
25-
html.enabled = true
26-
xml.enabled = true
27-
xml.destination = file("$buildDir/reports/detekt/detekt-checkstyle.xml")
28-
html.destination = file("$buildDir/reports/detekt/detekt-report.html")
30+
html.required.set(true)
31+
html.outputLocation.set(layout.buildDirectory.file("reports/detekt/detekt-report.html"))
32+
33+
xml.required.set(true)
34+
xml.outputLocation.set(layout.buildDirectory.file("reports/detekt/detekt-checkstyle.xml"))
2935
}
3036
}
3137

32-
task clean(type: Delete) {
33-
delete rootProject.buildDir
38+
39+
tasks.register('clean', Delete) {
40+
delete rootProject.layout.buildDirectory
3441
}
3542

3643
allprojects {

gradle/libs.versions.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[versions]
2-
compileSdk = "31"
2+
compileSdk = "34"
33
minSdk = "21"
4-
targetSdk = "31"
4+
targetSdk = "34"
55
versionCode = "1"
66
versionName = "1.0"
77
agp = "8.13.1"
88
kotlin = "1.8.0"
9-
kotlinAndroid = "1.6.21"
9+
kotlinAndroid = "2.1.20"
1010
nexusStaging = "0.30.0"
11-
nexusPublish = "1.3.0"
12-
detekt = "1.22.0"
11+
nexusPublish = "2.0.0"
12+
detekt = "1.23.8"
1313
material = "1.6.1"
1414
appcompat = "1.4.2"
1515
constraintlayout = "2.1.4"

gradle/wrapper/gradle-wrapper.jar

-15.4 KB
Binary file not shown.
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Wed Aug 03 11:27:29 CEST 2022
21
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
42
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)