Skip to content

Commit dd5a1b1

Browse files
committed
ANDROID-10730 Complete workflows and publishing configuration
1 parent 6195ea1 commit dd5a1b1

File tree

7 files changed

+93
-13
lines changed

7 files changed

+93
-13
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
2020
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
2121
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }}
22-
run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }}
22+
run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }}"
2323

2424
- name: Wait 1 minute until the artifacts are ready in maven central
2525
run: sleep 60s

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ 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 }}"

.github/workflows/tests.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ jobs:
1313
distribution: 'temurin'
1414
java-version: '11'
1515

16-
# - name: Assemble
17-
# run: ./gradlew assembleDebug
18-
# - name: Lint
19-
# run: ./gradlew lint
20-
# - name: Unit Tests
21-
# run: ./gradlew test
22-
2316
## Build all our Build Types at once ##
2417
- name: Build all artifacts
2518
id: buildAllApks
@@ -29,4 +22,4 @@ jobs:
2922
wrapper-cache-enabled: false
3023
dependencies-cache-enabled: false
3124
configuration-cache-enabled: false
32-
arguments: assembleRelease check detekt
25+
arguments: assembleRelease check detekt

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
# android-nested-scroll-webview
1+
<p>
2+
<img src="https://img.shields.io/badge/Platform-Android-brightgreen" />
3+
<img src="https://maven-badges.herokuapp.com/maven-central/com.telefonica/nestedscrollwebview/badge.png" />
4+
<img src="https://img.shields.io/badge/Support-%3E%3D%20Android%205.0-brightgreen" />
5+
</p>
6+
7+
# Android Nested Scroll WebView
8+
9+
Android WebView implementation for nested scrolling layouts
10+
11+
To include the library add to your app's `build.gradle`:
12+
13+
```gradle
14+
implementation 'com.telefonica:nestedscrollwebview:{version}'
15+
```

build.gradle

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,49 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
buildscript {
3+
dependencies {
4+
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0"
5+
}
6+
}
7+
28
plugins {
3-
id 'com.android.application' version '7.2.1' apply false
4-
id 'com.android.library' version '7.2.1' apply false
9+
id 'com.android.application' version '7.2.2' apply false
10+
id 'com.android.library' version '7.2.2' apply false
511
id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
12+
id 'io.gitlab.arturbosch.detekt' version '1.18.1'
13+
}
14+
15+
detekt {
16+
input = files(rootProject.rootDir)
17+
config = files("$projectDir/detekt.yml")
18+
failFast = true
19+
buildUponDefaultConfig = true
20+
21+
reports {
22+
html.enabled = true
23+
xml.enabled = true
24+
xml.destination = file("$buildDir/reports/detekt/detekt-checkstyle.xml")
25+
html.destination = file("$buildDir/reports/detekt/detekt-report.html")
26+
}
627
}
728

829
task clean(type: Delete) {
930
delete rootProject.buildDir
1031
}
32+
33+
apply plugin: 'io.codearte.nexus-staging'
34+
35+
nexusStaging {
36+
packageGroup = "com.telefonica"
37+
stagingProfileId = "f7fe7699e57a"
38+
username = System.getenv("MOBILE_MAVENCENTRAL_USER")
39+
password = System.getenv("MOBILE_MAVENCENTRAL_PASSWORD")
40+
}
41+
42+
allprojects {
43+
group = 'com.telefonica.nestedscrollwebview'
44+
if (System.getProperty("SNAPSHOT_VERSION") != null) {
45+
version = System.getProperty("SNAPSHOT_VERSION")+"-SNAPSHOT"
46+
} else {
47+
version = System.getProperty("LIBRARY_VERSION") ?: "undefined"
48+
}
49+
}

detekt.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
build:
2+
maxIssues: 0
3+
weights:
4+
complexity: 2
5+
formatting: 1
6+
LongParameterList: 1
7+
comments: 1
8+
9+
complexity:
10+
TooManyFunctions:
11+
active: false
12+
LongMethod:
13+
active: false
14+
LongParameterList:
15+
active: false
16+
17+
empty-blocks:
18+
EmptyFunctionBlock:
19+
active: false
20+
style:
21+
MagicNumber:
22+
active: false
23+
NewLineAtEndOfFile:
24+
active: false
25+
UnusedPrivateMember:
26+
active: false
27+
WildcardImport:
28+
active: false
29+
30+
exceptions:
31+
TooGenericExceptionThrown:
32+
active: false

nestedscrollwebview/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ dependencies {
3434

3535
testImplementation 'junit:junit:4.13.2'
3636
}
37+
38+
apply from: "${rootProject.projectDir}/mavencentral.gradle"

0 commit comments

Comments
 (0)