Skip to content

Commit 6e81748

Browse files
authored
Merge pull request #1408 from WalletConnect/develop
BOM_1.31.4
2 parents c935b08 + f45914e commit 6e81748

File tree

89 files changed

+1518
-1069
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1518
-1069
lines changed

.github/actions/ci_relay/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ runs:
1616
java-version: '17'
1717
architecture: x86_64
1818
cache: 'gradle'
19+
- name: Cache Gradle packages
20+
uses: actions/cache@v2
21+
with:
22+
path: |
23+
~/.gradle/caches
24+
~/.gradle/wrapper
25+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
26+
restore-keys: |
27+
${{ runner.os }}-gradle-
1928
2029
- name: Fetch Properties File
2130
shell: bash

.github/workflows/ci_sonarcloud.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,5 @@ jobs:
6262
env:
6363
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
6464
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
65-
run: ./gradlew jacocoDebugTestReport --stacktrace sonar --stacktrace
65+
run: ./gradlew sonar --stacktrace
66+
# jacocoDebugTestReport --stacktrace

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ReadMe.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,23 @@ WalletConnect v2 protocols for Android applications.
77

88
####
99

10+
## BOM Instructions:
11+
To help manage compatible dependencies stay in sync, we've introduced a [BOM](https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import) to the Kotlin SDK. With this, you only need to update the BOM version to get the latest SDKs. Just add the BOM as a dependency and then list the SDKs you want to include into your project.
12+
13+
### example build.gradle.kts
14+
```kotlin
15+
dependencies {
16+
implementation(platform("com.walletconnect:android-bom:{BOM version}"))
17+
implementation("com.walletconnect:android-core")
18+
implementation("com.walletconnect:web3wallet")
19+
}
20+
```
21+
1022
## SDK Chart
1123

1224
| BOM | [Core SDK](core/android) | [Sign SDK](protocol/sign) | [Auth SDK](protocol/auth) | [Chat SDK](protocol/chat) | [Notify SDK](protocol/notify) | [web3wallet](product/web3wallet) | [web3modal](product/web3modal) | [WalletConnectModal](product/walletconnectmodal) |
1325
|-----------------------------------------------------------------------------------------|--------------------------|---------------------------|---------------------------|---------------------------|:------------------------------|----------------------------------|--------------------------------|--------------------------------------------------|
26+
| 1.31.4 | 1.31.3 | 2.31.3 | 1.28.2 | 1.0.0.beta30 | 1.3.3 | 1.31.3 | 1.5.3 | 1.5.3 |
1427
| 1.31.3 | 1.31.2 | 2.31.2 | 1.28.2 | 1.0.0.beta30 | 1.3.2 | 1.31.2 | 1.5.2 | 1.5.2 |
1528
| 1.31.1 | 1.31.1 | 2.31.1 | 1.28.1 | 1.0.0.beta26 | 1.3.1 | 1.31.1 | 1.5.1 | 1.5.1 |
1629
| 1.31.0<sup>[**](https://gist.github.com/TalhaAli00/7b9e1cadf19b9dc5141cd033aa4e6172) | 1.31.0 | 2.31.0 | 1.28.0 | 1.0.0.beta25 | 1.3.0 | 1.31.0 | 1.5.0 | 1.5.0 |
@@ -57,17 +70,5 @@ WalletConnect v2 protocols for Android applications.
5770
| | 1.0.0 | 2.0.0-rc.5 | 1.0.0-alpha01 | | | | | |
5871

5972

60-
## BOM Instructions:
61-
To help manage compatible dependencies stay in sync, we've introduced a [BOM](https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import) to the Kotlin SDK. With this, you only need to update the BOM version to get the latest SDKs. Just add the BOM as a dependency and then list the SDKs you want to include into your project.
62-
63-
### example build.gradle.kts
64-
```kotlin
65-
dependencies {
66-
implementation(platform("com.walletconnect:android-bom:{BOM version}"))
67-
implementation("com.walletconnect:android-core")
68-
implementation("com.walletconnect:web3wallet")
69-
}
70-
```
71-
7273
## License
7374
WalletConnect v2 is released under the Apache 2.0 license. [See LICENSE](/LICENSE) for details.

build.gradle.kts

Lines changed: 26 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,16 @@
11
import com.android.build.gradle.BaseExtension
2+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
23
import org.sonarqube.gradle.SonarExtension
34

45
plugins {
5-
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
6+
alias(libs.plugins.nexusPublish)
7+
alias(libs.plugins.sonarqube)
68
id("release-scripts")
79
id("version-bump")
8-
alias(libs.plugins.sonarqube)
9-
}
10-
11-
buildscript {
12-
repositories {
13-
google()
14-
mavenLocal()
15-
mavenCentral()
16-
maven(url = "https://plugins.gradle.org/m2/")
17-
}
18-
dependencies {
19-
classpath("com.android.tools.build:gradle:$agpVersion")
20-
classpath("org.jetbrains.dokka:dokka-core:$dokkaVersion") // TODO: Leave version until AGP 7.3 https://github.com/Kotlin/dokka/issues/2472#issuecomment-1143604232
21-
classpath("org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion")
22-
classpath("com.squareup.sqldelight:gradle-plugin:$sqlDelightVersion")
23-
classpath("com.google.gms:google-services:$googleServiceVersion")
24-
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.2")
25-
classpath("com.google.firebase:firebase-appdistribution-gradle:4.0.0")
26-
}
2710
}
2811

2912
allprojects {
30-
repositories {
31-
google()
32-
mavenLocal()
33-
mavenCentral()
34-
maven(url = "https://jitpack.io")
35-
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/")
36-
jcenter() // Warning: this repository is going to shut down soon
37-
}
38-
39-
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
13+
tasks.withType<KotlinCompile>().configureEach {
4014
kotlinOptions {
4115
jvmTarget = jvmVersion.toString()
4216
}
@@ -45,7 +19,10 @@ allprojects {
4519
configurations.configureEach {
4620
resolutionStrategy.eachDependency {
4721
if (requested.group == "androidx.navigation" && requested.name == "navigation-compose") {
48-
useVersion(composeNavigationVersion)
22+
useVersion(libs.versions.androidxNavigation.get())
23+
}
24+
if (requested.group == "org.bouncycastle" && requested.name == "bcprov-jdk15on") {
25+
useTarget(libs.bouncyCastle)
4926
}
5027
}
5128
}
@@ -59,7 +36,7 @@ sonar {
5936
"sonar.organization" to "walletconnect",
6037
"sonar.host.url" to "https://sonarcloud.io",
6138
"sonar.gradle.skipCompile" to true,
62-
"sonar.coverage.exclusions" to "sample/**,**/di/**"
39+
"sonar.coverage.exclusions" to "sample/**,**/di/**,/buildSrc/**,**/gradle/**,**/test/**,**/androidTest/**,**/build.gradle.kts",
6340
)
6441
)
6542
}
@@ -77,8 +54,8 @@ subprojects {
7754
mapOf(
7855
"sonar.gradle.skipCompile" to true,
7956
"sonar.sources" to "${projectDir}/src/main/kotlin",
80-
"sonar.java.binaries" to buildDir,
81-
"sonar.coverage.jacoco.xmlReportPaths" to "${buildDir}/reports/jacoco/xml/jacoco.xml"
57+
"sonar.java.binaries" to layout.buildDirectory,
58+
"sonar.coverage.jacoco.xmlReportPaths" to "${layout.buildDirectory}/reports/jacoco/xml/jacoco.xml"
8259
)
8360
)
8461
}
@@ -95,6 +72,20 @@ subprojects {
9572
add("META-INF/NOTICE.md")
9673
}
9774
}
75+
76+
dependencies {
77+
add("testImplementation", libs.mockk)
78+
add("testImplementation", libs.jUnit)
79+
add("testRuntimeOnly", libs.jUnit.engine)
80+
}
81+
}
82+
}
83+
84+
plugins.withId(rootProject.libs.plugins.javaLibrary.get().pluginId) {
85+
dependencies {
86+
add("testImplementation", libs.mockk)
87+
add("testImplementation", libs.jUnit)
88+
add("testRuntimeOnly", libs.jUnit.engine)
9889
}
9990
}
10091
}
@@ -105,7 +96,7 @@ subprojects {
10596
}
10697

10798
task<Delete>("clean") {
108-
delete(rootProject.buildDir)
99+
delete(rootProject.layout.buildDirectory)
109100
}
110101

111102
nexusPublishing {

buildSrc/build.gradle.kts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,11 @@ plugins {
33
`kotlin-dsl-precompiled-script-plugins`
44
}
55

6-
repositories {
7-
google()
8-
mavenCentral()
9-
gradlePluginPortal()
10-
}
11-
126
dependencies {
13-
implementation("com.android.tools.build:gradle:8.0.2") // when changing, remember to change version in Versions.kt in buildSrc module
14-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.21") // when changing, remember to change version in Versions.kt in buildSrc module
15-
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.7.10") // when changing, remember to change version in Versions.kt in buildSrc module
16-
implementation("com.google.firebase:firebase-appdistribution-gradle:4.0.0") // when changing, remember to change version in root build.gradle.kts
7+
implementation("com.android.tools.build:gradle:${libs.versions.agp.get()}")
8+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}")
9+
implementation("org.jetbrains.dokka:dokka-gradle-plugin:${libs.versions.dokka.get()}")
10+
implementation("com.google.firebase:firebase-appdistribution-gradle:${libs.versions.firebaseAppDistribution.get()}")
1711

18-
testImplementation("junit:junit:4.13.2") // when changing, remember to change version in Versions.kt in buildSrc module
12+
testImplementation("junit:junit:${libs.versions.jUnit.get()}")
1913
}

buildSrc/settings.gradle.kts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
pluginManagement {
2+
repositories {
3+
google {
4+
content {
5+
includeGroupByRegex("com\\.android.*")
6+
includeGroupByRegex("com\\.google.*")
7+
includeGroupByRegex("androidx.*")
8+
}
9+
}
10+
gradlePluginPortal()
11+
google()
12+
mavenCentral()
13+
}
14+
}
15+
16+
dependencyResolutionManagement {
17+
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
18+
repositories {
19+
google()
20+
mavenLocal()
21+
mavenCentral()
22+
maven(url = "https://jitpack.io")
23+
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/")
24+
jcenter() // Warning: this repository is going to shut down soon
25+
}
26+
}
27+
28+
dependencyResolutionManagement {
29+
versionCatalogs {
30+
create("libs") {
31+
from(files("../gradle/libs.versions.toml"))
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)